(sendmail-pre-abbrev-expand-hook): Check for

self-insert-command, not self-insert.
This commit is contained in:
Andreas Schwab 2007-08-08 11:52:16 +00:00
parent 4b4a23c466
commit eac59e3cc7
2 changed files with 6 additions and 1 deletions

View file

@ -495,7 +495,7 @@ of a mail alias. The value is set up, buffer-local, when first needed.")
(or (and (integerp last-command-char)
;; Some commands such as M-> may want to expand first.
(equal this-command 'self-insert)
(equal this-command 'self-insert-command)
(or (eq (char-syntax last-command-char) ?_)
;; Don't expand on @.
(memq last-command-char '(?@ ?. ?% ?! ?_ ?-))))