Gnus development mailing list
 help / color / mirror / Atom feed
* DWIM fix to message.el (TAB handling)
@ 1997-02-25 20:32 Christopher Davis
  1997-02-25 21:26 ` Justin Sheehy
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Christopher Davis @ 1997-02-25 20:32 UTC (permalink / raw)


The following will allow "tab" in a message-mode header to expand mail
aliases as well as completing newsgroup names.  This makes message-mode
more integrated between mail and news.

(I don't use BBDB, so if someone wants to contribute a BBDB-completion
routine for this, feel free. :-)

I think this is the Right Thing To Do with TAB in recipient headers and
should go in 5.4.16.

--- message.el~	Wed Feb 19 22:19:54 1997
+++ message.el	Tue Feb 25 15:27:07 1997
@@ -3344,13 +3344,19 @@
   "Regexp that match headers that lists groups.")
 
 (defun message-tab ()
-  "Expand group names in Newsgroups and Followup-To headers.
+  "Expand group names or mail aliases in appropriate headers.
+Will complete group names in Newsgroups and Followup-To headers,
+or mail aliases in recipient headers.
 Do a `tab-to-tab-stop' if not in those headers."
   (interactive)
-  (if (let ((mail-abbrev-mode-regexp message-newgroups-header-regexp))
+  (cond
+   ((let ((mail-abbrev-mode-regexp message-newgroups-header-regexp))
 	(mail-abbrev-in-expansion-header-p))
-      (message-expand-group)
-    (tab-to-tab-stop)))
+    (message-expand-group))
+   ((mail-abbrev-in-expansion-header-p)
+    (expand-abbrev))
+   (t
+    (tab-to-tab-stop))))
 
 (defvar gnus-active-hashtb)
 (defun message-expand-group ()


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~1997-03-06 15:56 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-02-25 20:32 DWIM fix to message.el (TAB handling) Christopher Davis
1997-02-25 21:26 ` Justin Sheehy
1997-02-25 21:47 ` Edward J. Sabol
1997-02-26 10:33 ` Kai Grossjohann
1997-02-26 15:00   ` Christopher Davis
1997-02-26 16:48     ` Edward J. Sabol
1997-02-28 23:47       ` Lars Magne Ingebrigtsen
1997-03-03  9:20         ` Robert Bihlmeyer
1997-03-06 15:44   ` Christopher Davis
1997-03-06 15:56     ` Kai Grossjohann
1997-02-28 23:46 ` Lars Magne Ingebrigtsen
1997-03-01  3:53   ` Christopher Davis
1997-03-05  8:05     ` Lars Magne Ingebrigtsen
1997-03-05 11:40       ` Per Abrahamsen
1997-03-05 15:22       ` Edward J. Sabol

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).