unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Matt Armstrong <matt@lickey.com>
Cc: larsi@gnus.org, zsh@cs.rochester.edu, ding@gnus.org, emacs-devel@gnu.org
Subject: Re: problem whith abbrevs in message-mode
Date: Thu, 07 Feb 2002 10:03:33 -0700	[thread overview]
Message-ID: <87adul5imy.fsf@squeaker.lickey.com> (raw)
In-Reply-To: <200202030441.g134fwE02150@aztec.santafe.edu> (Richard Stallman's message of "Sat, 2 Feb 2002 21:41:58 -0700 (MST)")

Richard Stallman <rms@gnu.org> writes:

> This is very strange.  mailabbrev.el does assume the existence
> of mail-mode-abbrev-table, as you say.  But the code in
> sendmail.el seems not to have used mail-mode-abbrev-table
> until a few months ago.  Perhaps this was an unreported bug.
> I had better investigate further.
>
>     Maybe sendmail-pre-abbrev-expand-hook needs to always restore
>     local-abbrev-table and the syntax table to whatever they were
>     before it was called?
>
> I agree.  The reason this was not done was an undoc feature I didn't
> know about: setting up a different, convenient syntax table for
> address headers.  The feature could be useful but the implementation
> was unreliable, so I eliminated it.
>
> Does this version solve the problem?

Yes, thanks for looking into it.  I've now got message-mode using
text-mode-abbrev-table and the setting takes.


> ;;; mailabbrev.el --- abbrev-expansion of mail aliases

[...]

> (defun sendmail-pre-abbrev-expand-hook ()

[...]

> 	   (let ((local-abbrev-table mail-abbrevs)
> 		 (old-syntax-table (syntax-table)))

[...]

I assume that let statement is the key.


-- 
matt

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


           reply	other threads:[~2002-02-07 17:03 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <200202030441.g134fwE02150@aztec.santafe.edu>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87adul5imy.fsf@squeaker.lickey.com \
    --to=matt@lickey.com \
    --cc=ding@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=zsh@cs.rochester.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).