emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A bad indentation made by C


From: Lennart Borgman (gmail)
Subject: Re: A bad indentation made by C
Date: Mon, 23 Apr 2007 07:29:26 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666

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 via email to

[Prev in Thread] Current Thread [Next in Thread]