From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: org-mode and mode hooks. Date: Wed, 1 Jun 2005 18:26:00 -0500 (CDT) Message-ID: <200506012326.j51NQ0T26305@raven.dms.auburn.edu> References: <87y8a3mnz8.fsf@xs4all.nl> <87ll63weye.fsf-monnier+emacs@gnu.org> <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.fs NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1117669118 1000 80.91.229.2 (1 Jun 2005 23:38:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Jun 2005 23:38:38 +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:38:34 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ddclx-0001E5-4k for ged-emacs-devel@m.gmane.org; Thu, 02 Jun 2005 01:37:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdcrK-0000fS-TB for ged-emacs-devel@m.gmane.org; Wed, 01 Jun 2005 19:42:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DdcpX-0000G5-Vt for emacs-devel@gnu.org; Wed, 01 Jun 2005 19:41:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DdcpV-0000F3-JT for emacs-devel@gnu.org; Wed, 01 Jun 2005 19:40:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdcpV-00008y-3y for emacs-devel@gnu.org; Wed, 01 Jun 2005 19:40:57 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ddcdk-0006l4-ET; Wed, 01 Jun 2005 19:28:48 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j51NQcCK004623; Wed, 1 Jun 2005 18:26:38 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j51NQ0T26305; Wed, 1 Jun 2005 18:26:00 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: monnier@iro.umontreal.ca In-reply-to: <87r7flpubg.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Wed, 01 Jun 2005 18:55:21 -0400) 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:38024 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38024 Stefan Monnier wrote: Who said it will? BTW, why did you underscore the "in your .emacs"? Are you implying that things might be different elsewhere? I am not implying that. I am claiming that it makes no difference whatsoever. But several docstrings, the Emacs manual and the Elisp manual all imply that there is such a difference. I have no clue what your talking about w.r.t ".emacs vs Lisp program". Because the docs are talking about such a difference all over the place. >>From `(elisp)Search-based Fontification': *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. 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. Sincerely, Luc.