emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double hyphens in variable names.


From: Lute Kamstra
Subject: Re: Double hyphens in variable names.
Date: Mon, 06 Oct 2003 11:18:05 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

David PONCE <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]