* message.el (message-display-abbrev): Small optimization.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 14 Apr 2006 10:30:27 +0000 (10:30 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Fri, 14 Apr 2006 10:30:27 +0000 (10:30 +0000)
lisp/ChangeLog
lisp/message.el

index 3aa0a2d..968dbc1 100644 (file)
@@ -1,5 +1,7 @@
 2006-04-14  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * message.el (message-display-abbrev): Small optimization.
+
        * ecomplete.el (ecomplete-display-matches): Allow automatic
        display. 
 
index bde3bba..07e3585 100644 (file)
@@ -7182,7 +7182,8 @@ From headers in the original article."
 (defun message-display-abbrev (&optional choose)
   "Display the next possible abbrev for the text before point."
   (interactive (list t))
-  (when (and (message-point-in-header-p)
+  (when (and (member (char-after (line-beginning-position)) '(?C ?T ? ))
+            (message-point-in-header-p)
             (save-excursion
               (save-restriction
                 (message-narrow-to-field)