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: A bad indentation made by C Date: Mon, 23 Apr 2007 00:49:15 -0400 Message-ID: References: <462B46D9.3050003@gmail.com> <20070422132250.GA2402@muc.de> <462B5818.8030008@gmail.com> <20070422153743.GB2402@muc.de> <462B7626.9010401@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177303763 11098 80.91.229.12 (23 Apr 2007 04:49:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Apr 2007 04:49:23 +0000 (UTC) Cc: Alan Mackenzie , Emacs Devel , Eric Lilja To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 23 06:49:21 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HfqUK-0006C9-HK for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2007 06:49:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HfqZg-0007wn-OZ for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2007 00:54:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HfqZe-0007wi-J6 for emacs-devel@gnu.org; Mon, 23 Apr 2007 00:54:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HfqZd-0007wW-Gi for emacs-devel@gnu.org; Mon, 23 Apr 2007 00:54:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HfqZd-0007wT-D7 for emacs-devel@gnu.org; Mon, 23 Apr 2007 00:54:49 -0400 Original-Received: from tomts36.bellnexxia.net ([209.226.175.93] helo=tomts36-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HfqUG-0003WH-II for emacs-devel@gnu.org; Mon, 23 Apr 2007 00:49:16 -0400 Original-Received: from pastel.home ([74.12.206.245]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070423044915.PODH1612.tomts36-srv.bellnexxia.net@pastel.home> for ; Mon, 23 Apr 2007 00:49:15 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 532A98045; Mon, 23 Apr 2007 00:49:15 -0400 (EDT) In-Reply-To: <462B7626.9010401@gmail.com> (Lennart Borgman's message of "Sun\, 22 Apr 2007 16\:50\:14 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:69834 Archived-At: > I want to set c-special-indent-hook to nil locally in the buffer and I do > not want to run the global hook then. Is the global hook still run when > I set the local hook to nil? I believe it is not run, but I am not sure. Read the Elisp manual's section about Hooks. The local hook contains a special entry t which means "run the global hook". So if you remove the t, the local hook will ignore the global hook. E.g. if you set the local value to nil, nothing is run. Stefan