From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: problem getting hooks to be active Date: Mon, 11 Aug 2003 18:30:12 GMT Organization: Level(3) Communications, Woburn, MA Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <227a55e9.0308110934.1eb23f37@posting.google.com> <87ptjc3x6r.fsf@lorien.concordia.ca> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1060628474 24265 80.91.224.253 (11 Aug 2003 19:01:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2003 19:01:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 11 21:01:13 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 19mHur-0003If-00 for ; Mon, 11 Aug 2003 21:01:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19mHum-0006af-5H for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Aug 2003 15:01:08 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!crtntx1-snh1.gtei.net!news.gtei.net!news.level3.com.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: never X-Newsreader: trn 4.0-test72 (19 April 1999) Originator: barmar@genuity.net (Barry Margolin) Original-Lines: 32 Original-NNTP-Posting-Host: 171.78.176.30 Original-X-Trace: news.level3.com 1060626612 171.78.176.30 (Mon, 11 Aug 2003 18:30:12 GMT) Original-NNTP-Posting-Date: Mon, 11 Aug 2003 18:30:12 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:115810 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:11728 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11728 In article <87ptjc3x6r.fsf@lorien.concordia.ca>, Peter Solodov wrote: >On 11 Aug 2003, Eric Pement wrote: >> (add-hook 'sgml-mode-hook' > >That second quote is really there??? In this case you're adding to >"sgml-mode-hook'", and not sgml-mode-hook. No he isn't. Lisp has no provisions for turning single-quotes into double-quotes. What he wrote is actually equivalent to: (add-hook 'sgml-mode-hook '(lambda ...)) because Lisp doesn't care about the presence or absence of whitespace before or after quotes. But I agree that his layout suggests a serious misunderstanding of how Lisp quoting works. >(add-hook 'sgml-mode-hook > (lambda () > ... That should work the same as his version, because (lambda ...) is a macro invocation that expands into '(lambda ...). -- Barry Margolin, barry.margolin@level3.com Level(3), Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.