From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: comint-carriage-motion causes severe problems. Date: 05 Jul 2002 03:21:12 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: <87sn2zfj6v.fsf@tc-1-100.kawasaki.gol.ne.jp> References: <200207020035.TAA19789@eel.dms.auburn.edu> <200207021534.g62FYao17897@rum.cs.yale.edu> <200207021618.LAA20219@eel.dms.auburn.edu> <200207032057.g63KvX604721@aztec.santafe.edu> <200207032111.g63LBAv25925@rum.cs.yale.edu> <200207040118.UAA22469@eel.dms.auburn.edu> <200207041543.g64FhEb29778@rum.cs.yale.edu> <200207041656.LAA22736@eel.dms.auburn.edu> <200207041704.g64H4fU30311@rum.cs.yale.edu> Reply-To: Miles Bader NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1025808014 18195 127.0.0.1 (4 Jul 2002 18:40:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 4 Jul 2002 18:40:14 +0000 (UTC) Cc: Luc Teirlinck , rms@gnu.org, Kai.Grossjohann@CS.Uni-Dortmund.DE, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17QBWY-0004jL-00 for ; Thu, 04 Jul 2002 20:40:14 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17QBcf-0007in-00 for ; Thu, 04 Jul 2002 20:46:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17QBGx-0005Wk-00; Thu, 04 Jul 2002 14:24:07 -0400 Original-Received: from smtp02.fields.gol.com ([203.216.5.132]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 17QBEL-0005Km-00; Thu, 04 Jul 2002 14:21:25 -0400 Original-Received: from tc-2-189.kawasaki.gol.ne.jp ([203.216.25.189] helo=tc-1-100.kawasaki.gol.ne.jp) by smtp02.fields.gol.com with esmtp (Magnetic Fields) id 17QBED-0005Y8-00; Fri, 05 Jul 2002 03:21:17 +0900 Original-Received: by tc-1-100.kawasaki.gol.ne.jp (Postfix, from userid 1000) id 798663076; Fri, 5 Jul 2002 03:21:12 +0900 (JST) Original-To: "Stefan Monnier" System-Type: i686-pc-linux-gnu In-Reply-To: <200207041704.g64H4fU30311@rum.cs.yale.edu> Original-Lines: 16 X-Abuse-Complaints: abuse@gol.com Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5469 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5469 "Stefan Monnier" writes: > Global customizations normally occur before buffers are created, so > before the (remove-hook 'foo 'bar 'local) has even a chance of being run. Yes but as Kai noted `normally' isn't `always'. It seems simpler and less likely to cause surprises to just always add (not . FOO) if FOO isn't in the local hook, even if there's no FOO in the global hook either -- what would be the disadvantage of that? [of course, doing a local `add-hook' of FOO should remove the (not . FOO)!] -Miles -- `There are more things in heaven and earth, Horatio, Than are dreamt of in your philosophy.'