unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Cc: bug-gnu-emacs@gnu.org
Subject: Re: emacs 22.1. where is hide-ifdef-mode-hook defined?
Date: Thu, 06 Mar 2008 22:49:25 -0700	[thread overview]
Message-ID: <fqql14$ard$2@ger.gmane.org> (raw)
In-Reply-To: <m2fxv3n41h.fsf@tenbit.pl>

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	other threads:[~2008-03-07  5:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-06 17:41 emacs 22.1. where is hide-ifdef-mode-hook defined? Maciej Kwapulinski
2008-03-07  5:49 ` Kevin Rodgers [this message]
2008-03-09  1:00 ` Xavier Maillard
     [not found] <mailman.8456.1204831567.18990.help-gnu-emacs@gnu.org>
2008-03-08 21:17 ` Stefan Monnier

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='fqql14$ard$2@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).