Mercurial > emacs
comparison lisp/which-func.el @ 38194:a23820c19d03
(which-func-maxout): Increase default to 500000.
(which-function-mode): This is now the "real" name of the function.
(which-func-mode): Now an alias.
(which-func-mode-global): Name deleted.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 26 Jun 2001 11:52:27 +0000 |
parents | a72b3da04728 |
children | d215f2e13397 |
comparison
equal
deleted
inserted
replaced
38193:715aab816884 | 38194:a23820c19d03 |
---|---|
91 larger than `which-func-maxout' behave in this way too; | 91 larger than `which-func-maxout' behave in this way too; |
92 Which Function mode doesn't do anything until you use Imenu." | 92 Which Function mode doesn't do anything until you use Imenu." |
93 :group 'which-func | 93 :group 'which-func |
94 :type '(repeat (symbol :tag "Major mode"))) | 94 :type '(repeat (symbol :tag "Major mode"))) |
95 | 95 |
96 (defcustom which-func-maxout 100000 | 96 (defcustom which-func-maxout 500000 |
97 "Don't automatically compute the Imenu menu if buffer is this big or bigger. | 97 "Don't automatically compute the Imenu menu if buffer is this big or bigger. |
98 Zero means compute the Imenu menu regardless of size." | 98 Zero means compute the Imenu menu regardless of size." |
99 :group 'which-func | 99 :group 'which-func |
100 :type 'integer) | 100 :type 'integer) |
101 | 101 |
162 (setq which-func-previous which-func-current))) | 162 (setq which-func-previous which-func-current))) |
163 (error | 163 (error |
164 (which-func-mode -1) | 164 (which-func-mode -1) |
165 (error "Error in which-func-update: %s" info))))) | 165 (error "Error in which-func-update: %s" info))))) |
166 | 166 |
167 ;;;###autoload | |
168 (defalias 'which-func-mode 'which-function-mode) | |
169 | |
167 ;; This is the name people would normally expect. | 170 ;; This is the name people would normally expect. |
168 ;;;###autoload | 171 ;;;###autoload |
169 (defalias 'which-function-mode 'which-func-mode-global) | 172 (define-minor-mode which-function-mode |
170 ;;;###autoload | |
171 (defalias 'which-func-mode 'which-func-mode-global) | |
172 ;;;###autoload | |
173 (define-minor-mode which-func-mode-global | |
174 "Toggle Which Function mode, globally. | 173 "Toggle Which Function mode, globally. |
175 When Which Function mode is enabled, the current function name is | 174 When Which Function mode is enabled, the current function name is |
176 continuously displayed in the mode line, in certain major modes. | 175 continuously displayed in the mode line, in certain major modes. |
177 | 176 |
178 With prefix ARG, turn Which Function mode on iff arg is positive, | 177 With prefix ARG, turn Which Function mode on iff arg is positive, |