From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: org-mode and mode hooks. Date: Thu, 02 Jun 2005 01:58:32 +0200 Message-ID: <85vf4xbpef.fsf@lola.goethe.zz> References: <87y8a3mnz8.fsf@xs4all.nl> <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.j51NQ0T26305@raven.dms.auburn.edu> <87fyw1ps0a.fs NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117670257 3365 80.91.229.2 (1 Jun 2005 23:57:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2005 23:57:37 +0000 (UTC) Cc: Luc Teirlinck , rms@gnu.org, Lute.Kamstra.lists@xs4all.nl, emacs-devel@gnu.org, mmaug@yahoo.com, dominik@science.uva.nl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 02 01:57:34 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ddd59-0002qY-MW for ged-emacs-devel@m.gmane.org; Thu, 02 Jun 2005 01:57:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DddAX-0001b1-Gp for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2005 20:02:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DddA2-0001XO-J9 for emacs-devel@gnu.org; Wed, 01 Jun 2005 20:02:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DddA0-0001W7-PX for emacs-devel@gnu.org; Wed, 01 Jun 2005 20:02:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DddA0-0001Vx-Ca for emacs-devel@gnu.org; Wed, 01 Jun 2005 20:02:08 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ddd8j-0000Oq-Tr for emacs-devel@gnu.org; Wed, 01 Jun 2005 20:00:49 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Ddd5Z-0008SF-N6; Wed, 01 Jun 2005 19:57:33 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id B89BA1C2FE3A; Thu, 2 Jun 2005 01:58:32 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: <87fyw1ps0a.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 01 Jun 2005 19:43:37 -0400") 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:38028 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38028 Stefan Monnier writes: >> *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). Har har har. 80% of all users use some .emacs that has been hotch-potched together from various sources. Their sources are somewhat more likely to have peeked into the manual. So if the manual does not recommend techniques that will break when throwing together initializiation files, there will be less chaos in need of resolution by Emacs hackers or sysadmins. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum