From: Christopher Davis <ckd@loiosh.kei.com>
Subject: DWIM fix to message.el (TAB handling)
Date: 25 Feb 1997 15:32:56 -0500 [thread overview]
Message-ID: <w4sp2ksk1z.fsf@loiosh.kei.com> (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 ()
next reply other threads:[~1997-02-25 20:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-02-25 20:32 Christopher Davis [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=w4sp2ksk1z.fsf@loiosh.kei.com \
--to=ckd@loiosh.kei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).