* emacs 22.1. where is hide-ifdef-mode-hook defined?
@ 2008-03-06 17:41 Maciej Kwapulinski
2008-03-07 5:49 ` Kevin Rodgers
2008-03-09 1:00 ` Xavier Maillard
0 siblings, 2 replies; 4+ messages in thread
From: Maciej Kwapulinski @ 2008-03-06 17:41 UTC (permalink / raw)
To: emacs mailing list
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.
regards,
Michal
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: emacs 22.1. where is hide-ifdef-mode-hook defined?
2008-03-06 17:41 Maciej Kwapulinski
@ 2008-03-07 5:49 ` Kevin Rodgers
2008-03-09 1:00 ` Xavier Maillard
1 sibling, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2008-03-07 5:49 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: bug-gnu-emacs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: emacs 22.1. where is hide-ifdef-mode-hook defined?
2008-03-06 17:41 Maciej Kwapulinski
2008-03-07 5:49 ` Kevin Rodgers
@ 2008-03-09 1:00 ` Xavier Maillard
1 sibling, 0 replies; 4+ messages in thread
From: Xavier Maillard @ 2008-03-09 1:00 UTC (permalink / raw)
To: Maciej Kwapulinski; +Cc: help-gnu-emacs
it does not appear even after I run M-x hide-ifdef-mode on current (C++) buffer.
hideif.el is talking about this but I do not see it anywhere in
the body so it sounds like either a bug (documentation) or my
version is outdated.
By the way I am using CVS TRUNK here.
I checked for changes into the etc/NEWS file to see if something
was said about that, nothing.
Nothing either into ChangeLog*.
Xavier
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-09 1:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.8456.1204831567.18990.help-gnu-emacs@gnu.org>
2008-03-08 21:17 ` emacs 22.1. where is hide-ifdef-mode-hook defined? Stefan Monnier
2008-03-06 17:41 Maciej Kwapulinski
2008-03-07 5:49 ` Kevin Rodgers
2008-03-09 1:00 ` Xavier Maillard
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.