Gnus development mailing list
 help / color / mirror / 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__37192.3232371502$1042212346@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



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

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-24  3:29 ShengHuo ZHU
2002-01-24  8:00 ` Richard Stallman
2002-01-24  8:39   ` Harry Putnam
2002-01-25  6:21     ` Richard Stallman
2002-01-26 22:37       ` Lars Magne Ingebrigtsen
2002-01-26 22:39       ` Lars Magne Ingebrigtsen
2002-01-27 18:56         ` Richard Stallman
2002-01-30 18:20           ` Matt Armstrong
2002-02-03  4:41             ` Richard Stallman
2002-02-07 17:03               ` Matt Armstrong [this message]
2002-02-07 17:10               ` Matt Armstrong
2002-02-07 17:24                 ` ShengHuo ZHU

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

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

  git send-email \
    --in-reply-to='87adul5imy.fsf__37192.3232371502$1042212346@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.
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 NNTP newsgroup(s).