From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: org-mode and mode hooks. Date: Wed, 01 Jun 2005 19:43:37 -0400 Message-ID: <87fyw1ps0a.fsf-monnier+emacs@gnu.org> References: <87y8a3mnz8.fsf@xs4all.nl> <200505252135.j4PLZvt26969@raven.dms.auburn.edu> <87hdgrufcl.fsf-monnier+emacs@gnu.org> <200505260359.j4Q3xbj28809@raven.dms.auburn.edu> <87is16rsid.fsf-monnier+emacs@gnu.org> <200505261501.j4QF17h00246@raven.dms.auburn.edu> <87psveq60w.fsf-monnier+emacs@gnu.org> <200505271717.j4RHHGD07067@raven.dms.auburn.edu> <200505290157.j4T1vus10117@raven.dms.auburn.edu> <200505292354.j4TNsTE13354@raven.dms.auburn.edu> <200505311544.j4VFijq17680@raven.dms.auburn.edu> <200506011911.j51JBR025269@raven.dms.auburn.edu> <87oeap231t.fsf-monnier+emacs@gnu.org> <200506012242.j51MgBj26277@raven.dms.auburn.edu> <87r7flpubg.fsf-monnier+emacs@gnu.org> <200506012326 NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117669775 2366 80.91.229.2 (1 Jun 2005 23:49:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2005 23:49:35 +0000 (UTC) Cc: Lute.Kamstra.lists@xs4all.nl, dominik@science.uva.nl, mmaug@yahoo.com, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 02 01:49:32 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ddcwd-00025c-9B for ged-emacs-devel@m.gmane.org; Thu, 02 Jun 2005 01:48:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ddd20-0001vf-Ts for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2005 19:53:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ddd15-0001T5-Ud for emacs-devel@gnu.org; Wed, 01 Jun 2005 19:52:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ddd12-0001Qt-Ft for emacs-devel@gnu.org; Wed, 01 Jun 2005 19:52:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ddd11-0001Ox-6D for emacs-devel@gnu.org; Wed, 01 Jun 2005 19:52:51 -0400 Original-Received: from [209.226.175.74] (helo=tomts20-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DdcuE-0007ou-El; Wed, 01 Jun 2005 19:45:50 -0400 Original-Received: from alfajor ([67.71.32.43]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050601234338.GKQY19894.tomts20-srv.bellnexxia.net@alfajor>; Wed, 1 Jun 2005 19:43:38 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 4AC45D7339; Wed, 1 Jun 2005 19:43:37 -0400 (EDT) Original-To: Luc Teirlinck In-Reply-To: <200506012326.j51NQ0T26305@raven.dms.auburn.edu> (Luc Teirlinck's message of "Wed, 1 Jun 2005 18:26:00 -0500 (CDT)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38026 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38026 > *Warning:* Only use a non-`nil' MODE argument when you use > `font-lock-add-keywords' or `font-lock-remove-keywords' in your > `.emacs' file. When you use these functions from a Lisp program (such > as a minor mode), we recommend that you use `nil' for MODE (and place > the call on a hook) to avoid subtle problems due to the details of the > implementation. > Why should the keywords not apply to derived modes when set from > .emacs, while they have to apply when set from code? Similar > recommendations are repeated, with different wording, all over the place. Oh, I see. Sorry for being so dense. Basically, all it says is that a non-nil MODE argument should be avoided, but it is phrased in such a way that users shouldn't feel too scared if they use it in their .emacs where it can be convenient if the user is intimidated by add-hook (and where the possible problems won't be too serious since they only affect that one user). > That's pretty ugly, don't you think? It's like saying "use this form to > benefit from quirk A or that form if you prefer quirk B". > If you give people a choice between two alternatives, you _have_ to > tell them what the difference between the two alternatives is. I tell them the difference: one is recommended the other isn't. Stefan