help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (Flaw in) tab completion of email addresses in mail buffer


From: Kevin Rodgers
Subject: Re: (Flaw in) tab completion of email addresses in mail buffer
Date: Thu, 10 Jul 2003 12:25:43 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Kaustuv wrote:

(defun bbdb-tab-complete-name "Tab complete name using BBDB database "
  (interactive)
  (setq p (point))
  (beginning-of-line)
  (setq tag (read (current-buffer)))
  (goto-char p)
  (if (string= tag "To:") (bbdb-complete-name)))

(add-hook 'mail-mode-hook (lambda ()
            (local-set-key [(tab)] 'bbdb-tab-complete-name)))

Even though I can exectue each line of the function correctly when I call
the function as a whole I get Invalid-Function. Can some one suggest why?


You left out the function's lambda list:


(defun bbdb-tab-complete-name ()
  ...)

--
Kevin Rodgers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]