From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: Adding to a submenu under the HTML menu Date: Sun, 29 Jan 2006 20:59:58 -0500 Message-ID: <20060129205958.762fbe8b@dellap.mousecar.net> References: <20060122233614.6c6e895f@dellap.mousecar.net> <20060124193501.GE6260@free.fr> <20060128060340.2e925987@dellap.mousecar.net> <20060128235759.GB4681@free.fr> Reply-To: gebser@speakeasy.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1138586476 12925 80.91.229.2 (30 Jan 2006 02:01:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Jan 2006 02:01:16 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 30 03:01:14 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F3OLx-0005I3-1c for geh-help-gnu-emacs@m.gmane.org; Mon, 30 Jan 2006 03:01:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3OOt-0004gg-5O for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jan 2006 21:04:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F3OO9-0004Wz-QA for help-gnu-emacs@gnu.org; Sun, 29 Jan 2006 21:03:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F3OO7-0004W4-Hi for help-gnu-emacs@gnu.org; Sun, 29 Jan 2006 21:03:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3OO6-0004Vl-Ut for help-gnu-emacs@gnu.org; Sun, 29 Jan 2006 21:03:27 -0500 Original-Received: from [69.17.117.5] (helo=mail3.sea5.speakeasy.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F3OMK-0006bh-Ol for help-gnu-emacs@gnu.org; Sun, 29 Jan 2006 21:01:37 -0500 Original-Received: (qmail 15033 invoked from network); 30 Jan 2006 02:00:21 -0000 Original-Received: from dsl093-011-017.cle1.dsl.speakeasy.net (HELO dellap.mousecar.net) ([66.93.11.17]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 30 Jan 2006 02:00:21 -0000 Original-To: help-gnu-emacs@gnu.org In-Reply-To: <20060128235759.GB4681@free.fr> X-Mailer: Sylpheed-Claws 1.0.3 (GTK+ 1.2.10; i686-suse-linux) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32915 Archived-At: On Sun, 29 Jan 2006 00:57:59 +0100 Fran=E7ois Gannaz wrote: > Le sam 28 jan 06:03, ken a =E9crit : > > > > > > .... >=20 > 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.=20 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). >=20 > 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=E9dille" ("ç")) > (entity "\C-cD" "‡" "double dagger (‡)" ("‡")) > ;; and so on > )) > (html-helper-rebuild-menu)) > (add-hook 'html-helper-load-hook 'my-html-load-hook) >=20 > Hope it helps. Works perfectly. I would have never figured all this out. Merci vielmals. =20 > -- > Fran=E7ois Gannaz >=20 >=20 > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --=20 "This world ain't big enough for the both of us," said the big noema to the little noema.