From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David PONCE Newsgroups: gmane.emacs.devel Subject: Re: Double hyphens in variable names. Date: Mon, 6 Oct 2003 11:06:51 +0200 (CEST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <21949769.1065431211910.JavaMail.www@wwinf0103> Reply-To: david.ponce@wanadoo.fr NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1065431475 11962 80.91.224.253 (6 Oct 2003 09:11:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Oct 2003 09:11:15 +0000 (UTC) Cc: emacs-devel Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Oct 06 11:11:13 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 1A6ROb-0006tA-00 for ; Mon, 06 Oct 2003 11:11:13 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A6ROa-00065q-00 for ; Mon, 06 Oct 2003 11:11:13 +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 1A6RMG-0007bt-9b for emacs-devel@quimby.gnus.org; Mon, 06 Oct 2003 05:08:48 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A6RKx-0007Sc-Hc for emacs-devel@gnu.org; Mon, 06 Oct 2003 05:07:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A6RKQ-0007I9-6T for emacs-devel@gnu.org; Mon, 06 Oct 2003 05:07:26 -0400 Original-Received: from [193.252.22.30] (helo=mwinf0104.wanadoo.fr) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A6RKP-0007HR-Qr for emacs-devel@gnu.org; Mon, 06 Oct 2003 05:06:54 -0400 Original-Received: from wwinf0103 (wwinf0103 [172.22.132.30]) by mwinf0104.wanadoo.fr (SMTP Server) with ESMTP id E0A7C1BFFF87; Mon, 6 Oct 2003 11:06:51 +0200 (CEST) Original-To: lute.kamstra@cwi.nl 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:16959 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16959 Hi, >>Is there another "standard" method to force a rescan of the imenu >>without using `imenu--index-alist'? > > No, not on the lisp level. There is a user-level way to do this: by > selecting the *Rescan* item from Imenu's menu. Setting > imenu--index-alist to nil might work but it's not documented. 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) (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)) David