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, 8 Jun 2005 20:06:09 -0500 (CDT) Message-ID: <200506090106.j59169m28386@raven.dms.auburn.edu> References: <87y8a3mnz8.fsf@xs4all.nl> <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> <200506012349.j51NnUA26352@raven.dms.auburn.edu> <200506031505.j53F5IE04403@raven.dms.auburn.edu> <200506041517.j54FHgg09328@raven.dms.auburn.edu> <200506062328.j56NSnY18148@raven.dms.auburn.edu> <87wtp6jarp.fsf-monnier+emacs@gnu.org> <200506071908.j57J8nk19610@raven.dms.auburn.edu> <874qc9kerl.fsf-monnier+emacs@gnu.org> <200506080136. NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1118279116 6982 80.91.229.2 (9 Jun 2005 01:05:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Jun 2005 01:05:16 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 09 03:05:05 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DgBTN-0005dl-R3 for ged-emacs-devel@m.gmane.org; Thu, 09 Jun 2005 03:04:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgBaC-00041d-Ld for ged-emacs-devel@m.gmane.org; Wed, 08 Jun 2005 21:11:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DgBZu-000401-0t for emacs-devel@gnu.org; Wed, 08 Jun 2005 21:11:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DgBZs-0003yz-DZ for emacs-devel@gnu.org; Wed, 08 Jun 2005 21:11:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DgBZs-0003yw-6u for emacs-devel@gnu.org; Wed, 08 Jun 2005 21:11:24 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DgBVl-000116-FA; Wed, 08 Jun 2005 21:07:09 -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 j59176CK005074; Wed, 8 Jun 2005 20:07:06 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j59169m28386; Wed, 8 Jun 2005 20:06:09 -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: <87zmu0hlwj.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Wed, 08 Jun 2005 12:15:36 -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:38398 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38398 Stefan Monnier wrote: Don't know about the TeXinfo doc, but the docstring is pretty clear: MODE should be a symbol, the major mode command name, such as `c-mode' or nil. If nil, highlighting keywords are added for the current buffer. What was not clear was what it was supposed to achieve, whether it tried to add keywords for one single mode, or for a mode and the modes derived from it, or be completely independent of any major mode. Anyway, the docs have been fixed since. > The docs clearly seemed to suggest that a nil argument tried to enable the > keywords for MODE only and not for derived modes, Then the docs obviously need to be fixed, since there is no nil MODE. I was somewhat unclear there. With MODE, I meant the mode on whose hook the call was added. Originally, I tried to provide a complete fix, also working for modes that do not yet follow the new conventions and there the behavior was completely unpredictable. (It still is for such modes, eventually we decided to just document that.) Anyway, the old docs confused me. This discussion has started to concentrate on whether or not they _should_ have confused me. Somehow, that does not seem to be a very fruitful topic of discussion. Sincerely, Luc.