From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Guldo K Newsgroups: gmane.emacs.help Subject: hooks and mail Date: Sun, 30 Nov 2003 16:54:46 GMT Organization: [Infostrada] Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87ad6dajr5.fsf@libero.it> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070211749 20487 80.91.224.253 (30 Nov 2003 17:02:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Nov 2003 17:02:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 30 18:02:27 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AQUxn-0003uy-00 for ; Sun, 30 Nov 2003 18:02:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQVt1-0000LC-So for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Nov 2003 13:01:35 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 151.37.45.28 Original-X-Complaints-To: abuse@net24.it Original-X-Trace: twister2.libero.it 1070211286 151.37.45.28 (Sun, 30 Nov 2003 17:54:46 MET) Original-NNTP-Posting-Date: Sun, 30 Nov 2003 17:54:46 MET Original-Xref: shelby.stanford.edu gnu.emacs.help:118805 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14747 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14747 Hello. I'm sorry, but I can't understand how do hooks work. I'd like to set reply-to to a certain value; I wrote: (add-hook 'vm-mail-hook '(lambda() (setq mail-default-reply-to "me@host.xyz") ) ) but it does not work. I tried some other sintaxes, with no luck. How can it be achieved? What's that lambda() I found in emacs manual, I can't understand. Can't the value of a variable be used in a hook? Such as '(setq variable 'other-var-value) ? Thanks, Guldo