🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #9027

Re: vm-mail and mail-abbrevs

#9027
From: Mark Borges
Date: Thu, 11 Jun 1992 14:54
42 lines
2660 bytes
In article <1992Jun10.183915.22633@colorado.edu> mdb@noaacrd.colorado.edu (Mark Borges) writes:

>   ;;; Abbrev-expansion of mail aliases.
>   ;;; Copyright (C) 1985, 1986, 1987, 1992 Free Software Foundation, Inc.
>   ;;; Created: 19 oct 90, Jamie Zawinski <jwz@lucid.com>
>   ;;; Modified: 5 apr 92, Roland McGrath <roland@gnu.ai.mit.edu>
>   ;;; Last change 22-apr-92. jwz
>
>   The documentation for this package states that it will expand mail
>   aliases by using abbrev-mode expansion when the cursor is in the To:
>   field, for example. Including the following in one's .emacs file:
>
>	(setq mail-setup-hook '(lambda () (require 'mail-abbrevs)))
>
>   will supposedly load the package; it does so for *mail* buffers, but
>   not for the *VM-mail* buffer.
>[stuff deleted]
>   Relevant Versions:
>   GNU Emacs v18.58.  VM5.32(beta)  SunOS4.1.2
>

   After some experimentation, I discovered by adding two more lines
to the mail-setup-hook, the package will be loaded as advertised:

;; Addendum to .vm startup file
(setq mail-setup-hook '(lambda ()
			 (require 'mail-abbrevs)
			 (mail-aliases-setup)
			 (setq local-abbrev-table mail-aliases)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

mail-aliases-setup appears to create an abbrev-table named
mail-aliases. I believe that vm-mail was trying to use the
text-mode-abbrev-table by default.
--
.____________________________________________________________________________.
| Mark Borges                          |                                     |
| CIRES                                | FAX: (303) 492 - 2468               |
| Campus Box 449                       | Internet: mdb@noaacrd.colorado.edu  |
| University of Colorado               | Phone: (303) 492 - 0612             | 
| Boulder, Colorado 80303              |                                     |
\____________________________________________________________________________/
Technical Details
Message-ID: <MDB.92Jun11145441@noaacrd.colorado.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!agate!boulder!colorado.edu!mdb
References: <1992Jun10.183915.22633@colorado.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6829,2a2200f5258ab78d
X-Google-Attributes: gidf6829,public
X-Google-ArrivalTime: 1992-06-11 04:50:24 PST
Newsgroups: gnu.emacs.vm.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!agate!boulder!colorado.edu!mdb
From: mdb@colorado.edu (Mark Borges)
Subject: Re: vm-mail and mail-abbrevs
In-Reply-To: mdb@noaacrd.colorado.edu's message of Wed, 10 Jun 1992 18:39:15 GMT
Message-ID: <MDB.92Jun11145441@noaacrd.colorado.edu>
Sender: news@colorado.edu (The Daily Planet)
Nntp-Posting-Host: noaacrd-gw.colorado.edu
Organization: CIRES, University of Colorado
References: <1992Jun10.183915.22633@colorado.edu>
Date: 11 Jun 92 14:54:41
Lines: 42