* bbdb-complete-name in to:, cc:, bcc: fields only
@ 2001-01-18 15:34 Ian Swainson
2001-01-18 15:41 ` ShengHuo ZHU
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ian Swainson @ 2001-01-18 15:34 UTC (permalink / raw)
Hi All,
Long shot this one.
I have bbdb complete name setup thusly in my .emacs:
(define-key message-mode-map [(tab)] 'bbdb-complete-name)
Is there any variable I can check so that the binding only applies when I am in
an address field?
Cheers,
Ian
--
fortune says:
"Oh what wouldn't I give to be spat at in the face..."
-- a prisoner in "Life of Brian"
~~~~~~~~~~~~Made in Ireland using GNU Emacs~~~~~~~~~~~~
Available *free* from:
http://www.gnu.org
http://www.cs.washington.edu/homes/voelker/ntemacs.html
http://www.gnusoftware.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bbdb-complete-name in to:, cc:, bcc: fields only
2001-01-18 15:34 bbdb-complete-name in to:, cc:, bcc: fields only Ian Swainson
@ 2001-01-18 15:41 ` ShengHuo ZHU
2001-01-18 15:44 ` NAGY Andras
2001-01-18 17:33 ` Kai Großjohann
2 siblings, 0 replies; 4+ messages in thread
From: ShengHuo ZHU @ 2001-01-18 15:41 UTC (permalink / raw)
Ian Swainson <ian.swainson@clients.ie> writes:
> Hi All,
>
> Long shot this one.
>
> I have bbdb complete name setup thusly in my .emacs:
>
> (define-key message-mode-map [(tab)] 'bbdb-complete-name)
>
> Is there any variable I can check so that the binding only applies
> when I am in an address field?
mail-abbrev-in-expansion-header-p is the one. The code is,
(defun my-bbdb-tab-complete ()
(interactive)
(if (mail-abbrev-in-expansion-header-p)
(bbdb-complete-name)
(message-tab)))
(define-key message-mode-map [tab] 'my-bbdb-tab-complete)
ShengHuo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bbdb-complete-name in to:, cc:, bcc: fields only
2001-01-18 15:34 bbdb-complete-name in to:, cc:, bcc: fields only Ian Swainson
2001-01-18 15:41 ` ShengHuo ZHU
@ 2001-01-18 15:44 ` NAGY Andras
2001-01-18 17:33 ` Kai Großjohann
2 siblings, 0 replies; 4+ messages in thread
From: NAGY Andras @ 2001-01-18 15:44 UTC (permalink / raw)
Ian Swainson <ian.swainson@clients.ie> writes:
> I have bbdb complete name setup thusly in my .emacs:
>
> (define-key message-mode-map [(tab)] 'bbdb-complete-name)
>
> Is there any variable I can check so that the binding only applies when I am in
> an address field?
;; Name completion hack
(define-key message-mode-map "\t"
(lambda ()
(interactive)
(if (mail-abbrev-in-expansion-header-p)
(bbdb-complete-name)
(message-tab))))
Andras
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bbdb-complete-name in to:, cc:, bcc: fields only
2001-01-18 15:34 bbdb-complete-name in to:, cc:, bcc: fields only Ian Swainson
2001-01-18 15:41 ` ShengHuo ZHU
2001-01-18 15:44 ` NAGY Andras
@ 2001-01-18 17:33 ` Kai Großjohann
2 siblings, 0 replies; 4+ messages in thread
From: Kai Großjohann @ 2001-01-18 17:33 UTC (permalink / raw)
Cc: ding
(Shameless plug alert.)
There is message-x.el which allows you to configure the TAB key to do
various things in various headers, and something else in the body of a
message.
ftp://ls6-ftp.cs.uni-dortmund.de/pub/src/emacs/
kai
--
Be indiscrete. Do it continuously.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-01-18 17:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-18 15:34 bbdb-complete-name in to:, cc:, bcc: fields only Ian Swainson
2001-01-18 15:41 ` ShengHuo ZHU
2001-01-18 15:44 ` NAGY Andras
2001-01-18 17:33 ` Kai Großjohann
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).