Gnus development mailing list
 help / color / mirror / Atom feed
From: Christopher Davis <ckd@loiosh.kei.com>
Cc: ding@ifi.uio.no
Subject: Re: DWIM fix to message.el (TAB handling)
Date: 06 Mar 1997 10:44:09 -0500	[thread overview]
Message-ID: <w4sp29hvp2.fsf@loiosh.kei.com> (raw)
In-Reply-To: Kai Grossjohann's message of 26 Feb 1997 11:33:42 +0100

Here are my minor changes to support non-BBDB completion in message-x.

--- message-x.el~	Thu Mar  6 10:37:45 1997
+++ message-x.el	Thu Mar  6 10:40:55 1997
@@ -1,6 +1,7 @@
 ;; message-x.el -- customizable completion in message headers
 ;; Kai Grossjohann <grossjohann@ls6.informatik.uni-dortmund.de>
 ;;  9 Aug 96
+;; modifications 1997-03-06 Christopher Davis <ckd@kei.com>
 
 (require 'message)
 
@@ -8,12 +9,23 @@
   "message-x-tab executes this if point is in the body of a message.")
 
 (defvar message-x-completion-alist
-  '(("to" . bbdb-complete-name)
-    ("cc" . bbdb-complete-name)
+  '(("to" . message-x-complete-name)
+    ("cc" . message-x-complete-name)
+    ("bcc" . message-x-complete-name)
+    ("resent-to" . message-x-complete-name)
+    ("resent-cc" . message-x-complete-name)
+    ("resent-bcc" . message-x-complete-name)
     ("gcc" . message-expand-group)
     ("newsgroups" . message-expand-group))
   "Table telling which completion function message-x-tab should invoke.
 Lookup in the table is done with `equal' comparison of the header.")
+
+(defun message-x-complete-name ()
+  "Does name completion in recipient headers."
+  (interactive)
+  (if (fboundp 'bbdb-complete-name)
+      (bbdb-complete-name)
+    (expand-abbrev)))
 
 (defun message-x-in-header-p ()
   "Returns t iff point is in the header section."


  parent reply	other threads:[~1997-03-06 15:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-25 20:32 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 [this message]
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=w4sp29hvp2.fsf@loiosh.kei.com \
    --to=ckd@loiosh.kei.com \
    --cc=ding@ifi.uio.no \
    /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).