Gnus development mailing list
 help / color / mirror / Atom feed
* message-tab: grok eudc?
@ 2004-01-08  9:15 Kai Grossjohann
  2004-01-08 14:31 ` David S Goldberg
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kai Grossjohann @ 2004-01-08  9:15 UTC (permalink / raw)


What do people think about this patch to make message-expand-name
support EUDC?

--- message.el.~7.2.~	Mon Jan  5 17:30:15 2004
+++ message.el	Thu Jan  8 10:06:27 2004
@@ -6628,9 +6628,12 @@
 	    (delete-region (point) (progn (forward-line 3) (point))))))))))
 
 (defun message-expand-name ()
-  (if (fboundp 'bbdb-complete-name)
-      (bbdb-complete-name)
-    (expand-abbrev)))
+  (cond ((and (boundp 'eudc-protocol) eudc-protocol)
+	 (eudc-expand-inline))
+	((fboundp 'bbdb-complete-name)
+	 (bbdb-complete-name))
+	(t
+	 (expand-abbrev))))
 
 ;;; Help stuff.



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

* Re: message-tab: grok eudc?
  2004-01-08  9:15 message-tab: grok eudc? Kai Grossjohann
@ 2004-01-08 14:31 ` David S Goldberg
  2004-01-08 17:34 ` Reiner Steib
  2004-01-12  6:49 ` Kai Grossjohann
  2 siblings, 0 replies; 4+ messages in thread
From: David S Goldberg @ 2004-01-08 14:31 UTC (permalink / raw)


I just added eudc-expand-inline to message-completion-alist.  Been
working like a champ since I did the equivalent with message-x :-)

(setq message-completion-alist
      (list
       (cons "^\\(Newsgroups\\|Followup-To\\|Posted-To\\|Gcc\\):"
	     'message-expand-group)
       (cons "^\\(Resent-\\)?\\(From\\|To\\|B?Cc\\):"
	     '(lambda ()
		(interactive)
		(condition-case nil
		    (eudc-expand-inline)
		  (error nil))
		(dsg-eudc-fill-header)))))

However, if message-expand-name can do it all automatically, so much
the better.
-- 
Dave Goldberg
david.goldberg6@verizon.net





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

* Re: message-tab: grok eudc?
  2004-01-08  9:15 message-tab: grok eudc? Kai Grossjohann
  2004-01-08 14:31 ` David S Goldberg
@ 2004-01-08 17:34 ` Reiner Steib
  2004-01-12  6:49 ` Kai Grossjohann
  2 siblings, 0 replies; 4+ messages in thread
From: Reiner Steib @ 2004-01-08 17:34 UTC (permalink / raw)


On Thu, Jan 08 2004, Kai Grossjohann wrote:

> What do people think about this patch to make message-expand-name
> support EUDC?

I had now idea what this is until I asked Emacs about
`eudc-expand-inline'.  :-)
(FWIW, I see no problem in installing it in No Gnus.)

>  (defun message-expand-name ()
> -  (if (fboundp 'bbdb-complete-name)
> -      (bbdb-complete-name)
> -    (expand-abbrev)))
> +  (cond ((and (boundp 'eudc-protocol) eudc-protocol)
                 (gnus-boundp 'eudc-protocol) ?

... ah, no, we shouldn't use `gnus-boundp' in `message.el'.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/




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

* Re: message-tab: grok eudc?
  2004-01-08  9:15 message-tab: grok eudc? Kai Grossjohann
  2004-01-08 14:31 ` David S Goldberg
  2004-01-08 17:34 ` Reiner Steib
@ 2004-01-12  6:49 ` Kai Grossjohann
  2 siblings, 0 replies; 4+ messages in thread
From: Kai Grossjohann @ 2004-01-12  6:49 UTC (permalink / raw)


Committed.

Kai



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

end of thread, other threads:[~2004-01-12  6:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-08  9:15 message-tab: grok eudc? Kai Grossjohann
2004-01-08 14:31 ` David S Goldberg
2004-01-08 17:34 ` Reiner Steib
2004-01-12  6:49 ` Kai Grossjohann

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