From 612c3e462e40e8ee347276500d8bc7371655e607 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sat, 22 Feb 2014 13:20:49 -0800 Subject: [PATCH] * lisp/imenu.el (imenu--generic-function): Doc fix. * etc/NEWS: Related markup. --- etc/NEWS | 1 + lisp/ChangeLog | 2 ++ lisp/imenu.el | 8 ++++++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 622a44a02bb..cffe6c8b437 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -704,6 +704,7 @@ the symbol found near point. *** New option `hi-lock-auto-select-face'. When non-nil, hi-lock commands will cycle through faces in `hi-lock-face-defaults' without prompting. +--- ** New Imenu option `imenu-generic-skip-comments-and-strings'. ** Info diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 47a582750fb..8ebb68622f5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2014-02-22 Glenn Morris + * imenu.el (imenu--generic-function): Doc fix. + * register.el (frame-configuration-to-register): Make obsolete. 2014-02-22 Juanma Barranquero diff --git a/lisp/imenu.el b/lisp/imenu.el index 9f11ef45e75..e5f33a5efb9 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -726,8 +726,12 @@ for modes which use `imenu--generic-function'. If it is not set, but ;; so it needs to be careful never to loop! (defun imenu--generic-function (patterns) "Return an index alist of the current buffer based on PATTERNS. -PATTERNS should be an alist which has the same form as -`imenu-generic-expression'. +PATTERNS should be an alist with the same form as `imenu-generic-expression'. + +If `imenu-generic-skip-comments-and-strings' is non-nil, this ignores +text inside comments and strings. + +If `imenu-case-fold-search' is non-nil, this ignores case. The return value is an alist of the form (INDEX-NAME . INDEX-POSITION) -- 2.39.2