* Re: problem whith abbrevs in message-mode
[not found] ` <200202030441.g134fwE02150@aztec.santafe.edu>
@ 2002-02-07 17:03 ` Matt Armstrong
0 siblings, 0 replies; only message in thread
From: Matt Armstrong @ 2002-02-07 17:03 UTC (permalink / raw
Cc: larsi, zsh, ding, emacs-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-02-07 17:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <2n3d0wo299.fsf@zsh.cs.rochester.edu>
[not found] ` <200201240800.g0O806B17062@aztec.santafe.edu>
[not found] ` <m1vgdsw3c4.fsf@reader.newsguy.com>
[not found] ` <200201250621.g0P6LGk18813@aztec.santafe.edu>
[not found] ` <m3ofjgka8n.fsf@quimbies.gnus.org>
[not found] ` <200201271856.g0RIu1v21410@aztec.santafe.edu>
[not found] ` <873d0ng0p7.fsf@squeaker.lickey.com>
[not found] ` <200202030441.g134fwE02150@aztec.santafe.edu>
2002-02-07 17:03 ` problem whith abbrevs in message-mode Matt Armstrong
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).