From: ken <gebser@speakeasy.net>
Subject: Re: Adding to a submenu under the HTML menu
Date: Sun, 29 Jan 2006 20:59:58 -0500 [thread overview]
Message-ID: <20060129205958.762fbe8b@dellap.mousecar.net> (raw)
In-Reply-To: <20060128235759.GB4681@free.fr>
On Sun, 29 Jan 2006 00:57:59 +0100 François Gannaz
<mytskine@laposte.net> wrote:
> Le sam 28 jan 06:03, ken a écrit :
> > >
> > > ....
>
> In fact the problem is that you used the wrong hook. I you read above
> carefully, you'll find that I suggested to use html-helper-load-hook.
> Yet you used html-helper-mode-hook.
Obviously a cut-n-paste malfunction. :)
> A load-hook is evaluated once
> (when the file is loaded) whereas a mode-hook might be evaluated
> several times (in fact, each time you enter the mode).
>
> So you should write something like:
> (defun my-html-load-hook ()
> (mapcar ; just to avoid repeating hh-add-tag
> 'html-helper-add-tag
> '(
> (entity "\C-c%" "ç" "C cédille" ("ç"))
> (entity "\C-cD" "‡" "double dagger (‡)" ("‡"))
> ;; and so on
> ))
> (html-helper-rebuild-menu))
> (add-hook 'html-helper-load-hook 'my-html-load-hook)
>
> Hope it helps.
Works perfectly. I would have never figured all this
out. Merci vielmals.
> --
> François Gannaz
>
>
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
--
"This world ain't big enough for the both of us,"
said the big noema to the little noema.
prev parent reply other threads:[~2006-01-30 1:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-23 4:36 Adding to a submenu under the HTML menu ken
2006-01-24 17:21 ` Kevin Rodgers
2006-01-24 22:12 ` ken
2006-01-24 19:35 ` François.Gannaz
2006-01-28 11:03 ` ken
2006-01-28 23:57 ` François Gannaz
2006-01-30 1:59 ` ken [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060129205958.762fbe8b@dellap.mousecar.net \
--to=gebser@speakeasy.net \
/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 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.