(sendmail-pre-abbrev-expand-hook): When setting the
authorKarl Heuer <kwzh@gnu.org>
Thu, 20 Apr 1995 21:27:14 +0000 (21:27 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 20 Apr 1995 21:27:14 +0000 (21:27 +0000)
dummy value for abbrev-start-location, use (point-max) rather than
(point), so we won't delete a "-" that happens to be at point.

lisp/mail/mailabbrev.el

index 27d54fe..3245fc9 100644 (file)
@@ -458,7 +458,7 @@ characters which may be a part of the name of a mail alias.")
                   (expand-abbrev)
                   ;; Now set it back to what it was before.
                   (set-syntax-table mail-mode-header-syntax-table)))
-            (setq abbrev-start-location (point) ; This is the trick.
+            (setq abbrev-start-location (point-max) ; This is the trick.
                   abbrev-start-location-buffer (current-buffer)))
 
         ;; We're not in a mail header where mail aliases should