From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: Double hyphens in variable names. Date: Mon, 06 Oct 2003 11:18:05 +0200 Organization: CWI, Amsterdam Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <21949769.1065431211910.JavaMail.www@wwinf0103> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1065432002 12916 80.91.224.253 (6 Oct 2003 09:20:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Oct 2003 09:20:02 +0000 (UTC) Cc: emacs-devel Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Oct 06 11:20:00 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A6RX6-0007Jj-00 for ; Mon, 06 Oct 2003 11:20:00 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A6RX6-00066R-00 for ; Mon, 06 Oct 2003 11:20:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A6RWQ-0001T5-Gt for emacs-devel@quimby.gnus.org; Mon, 06 Oct 2003 05:19:18 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A6RVr-0001Rh-NM for emacs-devel@gnu.org; Mon, 06 Oct 2003 05:18:43 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A6RVK-0001I2-76 for emacs-devel@gnu.org; Mon, 06 Oct 2003 05:18:42 -0400 Original-Received: from [192.16.191.8] (helo=hera.cwi.nl) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A6RVH-0001H3-Dc for emacs-devel@gnu.org; Mon, 06 Oct 2003 05:18:07 -0400 Original-Received: from occarina.pna.cwi.nl (occarina.pna.cwi.nl [192.16.184.200]) by hera.cwi.nl with ESMTP id h969I6qi027502 for ; Mon, 6 Oct 2003 11:18:06 +0200 (MEST) Original-Received: (from lute@localhost) by occarina.pna.cwi.nl (8.12.8/8.12.5) id h969I5wf018756; Mon, 6 Oct 2003 11:18:05 +0200 X-Authentication-Warning: occarina.pna.cwi.nl: lute set sender to Lute.Kamstra@cwi.nl using -f Original-To: david.ponce@wanadoo.fr In-Reply-To: <21949769.1065431211910.JavaMail.www@wwinf0103> (David PONCE's message of "Mon, 6 Oct 2003 11:06:51 +0200 (CEST)") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Original-Lines: 30 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16960 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16960 David PONCE writes: >> As it seems useful for lisp programs to be able to force a rescan, >> we could implement such a feature. I'll try and see if I can come >> up with a function that does this. > > Thanks! I think a such function will be very useful. Perhaps it > could just contain the code run when selecting the *Rescan* item? > Something like this: > > (defun imenu-refresh () > "Refresh the imenu." > (imenu--cleanup) > (setq imenu--index-alist nil) > (imenu-update-menubar) > t) Why insist on returning t? > (defun imenu--menubar-select (item) > "Use Imenu to select the function or variable named in this menu ITEM." > (if (equal item imenu--rescan-item) > (imenu-refresh) > (imenu item) > nil)) I was thinking of something very similar. (I happens often, doesn't it?) I'll test it a bit first, though. Lute.