help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: emacs 22.1. where is hide-ifdef-mode-hook defined?


From: Kevin Rodgers
Subject: Re: emacs 22.1. where is hide-ifdef-mode-hook defined?
Date: Thu, 06 Mar 2008 22:49:25 -0700
User-agent: Thunderbird 2.0.0.12 (Macintosh/20080213)

Maciej Kwapulinski wrote:
Hallo Group Members.

I am running GNU Emacs 22.1.1 (i686-pc-linux-gnu) of 2008-03-03 on 
localhost.localdomain

it does not appear even after I run M-x hide-ifdef-mode on current (C++) buffer.

That's because hide-ifdef-mode is defined by define-minor-mode, which
doesn't declare the mode hook.  But it could:

*** emacs-22.1/lisp/emacs-lisp/easy-mmode.el~   Mon May 14 08:56:30 2007
--- emacs-22.1/lisp/emacs-lisp/easy-mmode.el    Thu Mar  6 22:38:39 2008
***************
*** 211,216 ****
--- 211,222 ----
               ,@(unless (eq require t) `(:require ,require))
                 ,@(nreverse extra-keywords))))

+        ;; Define the hook:
+        (defcustom ,hook nil
+        ,(format "Normal hook run when entering %s." pretty-name)
+        ,@group
+        :type 'hook)
+
         ;; The actual function.
         (defun ,mode (&optional arg ,@extra-args)
         ,(or doc

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

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