unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs Devel <emacs-devel@gnu.org>
Subject: Re: A bad indentation made by C
Date: Mon, 23 Apr 2007 07:29:26 +0200	[thread overview]
Message-ID: <462C4436.8040605@gmail.com> (raw)
In-Reply-To: <jwv4pn77l3p.fsf-monnier+emacs@gnu.org>

Stefan Monnier wrote:
>> 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.


Ah, thanks. That was what I was looking for.

      reply	other threads:[~2007-04-23  5:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-22 11:28 A bad indentation made by C Lennart Borgman (gmail)
2007-04-22 12:02 ` Alan Mackenzie
2007-04-22 12:42   ` Lennart Borgman (gmail)
2007-04-22 14:17     ` Alan Mackenzie
2007-04-22 14:50       ` Lennart Borgman (gmail)
2007-04-22 17:50         ` Alan Mackenzie
2007-04-23  4:49         ` Stefan Monnier
2007-04-23  5:29           ` Lennart Borgman (gmail) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=462C4436.8040605@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).