all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* imenu-generic-expression elements (confusing)
@ 2006-06-02  3:00 Tim Johnson
  2006-06-02  3:49 ` Johan Bockgård
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Johnson @ 2006-06-02  3:00 UTC (permalink / raw)


Hello:
What follows is an excerpt from c-h v imenu-generic-expression:
"
The value should be an alist with elements that look like this:
 (MENU-TITLE REGEXP INDEX)
or like this:
 (MENU-TITLE REGEXP INDEX FUNCTION ARGUMENTS...)
"
Now follows the value for this as local to a python file:
("\\(^[ 	]*\\(class[ 	]+[a-zA-Z0-9_]+\\)\\([
]*\\((\\([a-zA-Z0-9_,. 	\n]\\)*)\\)?\\)[ 	]*:\\)\\|\\(^[ 	]*\\(def[
]+\\([a-zA-Z0-9_]+\\)[ 	]*(\\([^:#]*\\))\\)[ 	]*:\\)" 2 8)

I'm frankly confused.... what I see above is a sexp composed of:
1) A string that is a regexp (appears to properly identify
   python code as I would expect)
2) an integer
3) another integer

My impression is that the buffer-local value of the variable is
very different from what the documentation says it should be.
Can anyone comment on this?

Thanks
tim

-- 
Tim Johnson <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: imenu-generic-expression elements (confusing)
  2006-06-02  3:00 imenu-generic-expression elements (confusing) Tim Johnson
@ 2006-06-02  3:49 ` Johan Bockgård
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Bockgård @ 2006-06-02  3:49 UTC (permalink / raw)


Tim Johnson <tim@johnsons-web.com> writes:

> Now follows the value for this as local to a python file:
[...]
> My impression is that the buffer-local value of the variable is very
> different from what the documentation says it should be. Can anyone
> comment on this?

Python mode uses its own `imenu-create-index-function' so it doesn't
care.

-- 
Johan Bockgård

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-02  3:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-02  3:00 imenu-generic-expression elements (confusing) Tim Johnson
2006-06-02  3:49 ` Johan Bockgård

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.