From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43886 Path: main.gmane.org!not-for-mail From: Martin Thornquist Newsgroups: gmane.emacs.gnus.general Subject: Re: Address completion a la pine. Date: Thu, 14 Mar 2002 20:12:52 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1016133261 15160 127.0.0.1 (14 Mar 2002 19:14:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 14 Mar 2002 19:14:21 +0000 (UTC) Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16lag8-0003wQ-00 for ; Thu, 14 Mar 2002 20:14:20 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16laf1-00082K-00; Thu, 14 Mar 2002 13:13:11 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 14 Mar 2002 13:13:17 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id NAA18625 for ; Thu, 14 Mar 2002 13:13:04 -0600 (CST) Original-Received: (qmail 13215 invoked by alias); 14 Mar 2002 19:12:53 -0000 Original-Received: (qmail 13210 invoked from network); 14 Mar 2002 19:12:53 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by gnus.org with SMTP; 14 Mar 2002 19:12:53 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 16lahv-0002xb-00 for ; Thu, 14 Mar 2002 20:16:11 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 37 Original-NNTP-Posting-Host: levding.ifi.uio.no Original-X-Trace: quimby.gnus.org 1016133371 11232 129.240.64.43 (14 Mar 2002 19:16:11 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 14 Mar 2002 19:16:11 GMT X-Face: *F7Hd7p3}A$V&*+$yikQb~';$]%NCmb'VY Mail-Copies-To: nobody User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (sparc-sun-solaris2.7) Cancel-Lock: sha1:zxwzq0hGMx+WlNKpkl7/Ngdszsg= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:43886 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43886 [ Matthieu Moy ] > Whenever they type a user name in the To: field, pine "finger"s this > user, and completes his email address. This is the same kind of things > as bbdb-complete-name, but the address does not have to be in there > address book. It's very usefull when everybody in a > company/school/laboratory have an account on the same machine as you. I use this (its origins are shrouded in the mists of time, I inherited it together with my first .gnus): (defun complete-email-addr () (interactive) (let* ((wbeg (and (forward-word -1) (point))) (wend (and (forward-word 1) (point))) (unam (and wbeg wend (buffer-substring wbeg wend))) (name (and unam (user-full-name unam)))) (if (not name) (error "No such user: %s" unam) (save-excursion (goto-char wbeg) (insert name " <")) (insert "@ifi.uio.no>")))) Obviously, you want to frob the last line. > So, is it possible with Gnus ? This is Emacs -- ask not if, but how! :-) Martin -- "An ideal world is left as an exercise to the reader." -Paul Graham, On Lisp