Mercurial > emacs
comparison lisp/imenu.el @ 56683:dee43d88905e
Several doc fixes: don't say variables are buffer-local.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 16 Aug 2004 22:40:47 +0000 |
parents | 7e0e6be19969 |
children | 1389687cfa0a d8411455de48 |
comparison
equal
deleted
inserted
replaced
56682:1f3b8d221bc6 | 56683:dee43d88905e |
---|---|
209 menu. See the info section on Regexps for more information. | 209 menu. See the info section on Regexps for more information. |
210 | 210 |
211 INDEX points to the substring in REGEXP that contains the name (of the | 211 INDEX points to the substring in REGEXP that contains the name (of the |
212 function, variable or type) that is to appear in the menu. | 212 function, variable or type) that is to appear in the menu. |
213 | 213 |
214 The variable is buffer-local. | |
215 | |
216 The variable `imenu-case-fold-search' determines whether or not the | 214 The variable `imenu-case-fold-search' determines whether or not the |
217 regexp matches are case sensitive, and `imenu-syntax-alist' can be | 215 regexp matches are case sensitive, and `imenu-syntax-alist' can be |
218 used to alter the syntax table for the search. | 216 used to alter the syntax table for the search. |
219 | 217 |
220 For example, see the value of `fortran-imenu-generic-expression' used by | 218 For example, see the value of `fortran-imenu-generic-expression' used by |
238 Special elements look like (INDEX-NAME INDEX-POSITION FUNCTION ARGUMENTS...). | 236 Special elements look like (INDEX-NAME INDEX-POSITION FUNCTION ARGUMENTS...). |
239 A nested sub-alist element looks like (INDEX-NAME SUB-ALIST). | 237 A nested sub-alist element looks like (INDEX-NAME SUB-ALIST). |
240 The function `imenu--subalist-p' tests an element and returns t | 238 The function `imenu--subalist-p' tests an element and returns t |
241 if it is a sub-alist. | 239 if it is a sub-alist. |
242 | 240 |
243 This function is called within a `save-excursion'. | 241 This function is called within a `save-excursion'.") |
244 | |
245 The variable is buffer-local.") | |
246 ;;;###autoload | 242 ;;;###autoload |
247 (make-variable-buffer-local 'imenu-create-index-function) | 243 (make-variable-buffer-local 'imenu-create-index-function) |
248 | 244 |
249 ;;;###autoload | 245 ;;;###autoload |
250 (defvar imenu-prev-index-position-function 'beginning-of-defun | 246 (defvar imenu-prev-index-position-function 'beginning-of-defun |
975 (imenu-add-to-menubar "Index")) | 971 (imenu-add-to-menubar "Index")) |
976 | 972 |
977 (defvar imenu-buffer-menubar nil) | 973 (defvar imenu-buffer-menubar nil) |
978 | 974 |
979 (defvar imenu-menubar-modified-tick 0 | 975 (defvar imenu-menubar-modified-tick 0 |
980 "The value of (buffer-modified-tick) as of last call to `imenu-update-menubar'. | 976 "The value of (buffer-modified-tick) as of last call to `imenu-update-menubar'.") |
981 This value becomes local in every buffer when it is set.") | |
982 (make-variable-buffer-local 'imenu-menubar-modified-tick) | 977 (make-variable-buffer-local 'imenu-menubar-modified-tick) |
983 | 978 |
984 (defun imenu-update-menubar () | 979 (defun imenu-update-menubar () |
985 (when (and (current-local-map) | 980 (when (and (current-local-map) |
986 (keymapp (lookup-key (current-local-map) [menu-bar index])) | 981 (keymapp (lookup-key (current-local-map) [menu-bar index])) |