aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Branham2018-08-31 08:05:06 -0500
committerRobert Pluim2018-09-12 15:20:25 +0200
commit1c22f037fddb6dd9ea3b89ed25543f83c1e147ce (patch)
treeb3e314169324ab199f8b06079c70e27e6cae1329
parentee843895cb5aaac9837162bfe740067e9a5d2403 (diff)
downloademacs-1c22f037fddb6dd9ea3b89ed25543f83c1e147ce.tar.gz
emacs-1c22f037fddb6dd9ea3b89ed25543f83c1e147ce.zip
Increase default value for imenu-auto-rescan-maxout
* lisp/imenu.el (imenu-auto-rescan-maxout): Increase default value to 600000. (Bug#18426) * doc/emacs/programs.texi (imenu-auto-rescan-maxout): Add documentation for imenu-auto-rescan-maxout. Copyright-paperwork-exempt: yes
-rw-r--r--doc/emacs/programs.texi4
-rw-r--r--etc/NEWS5
-rw-r--r--lisp/imenu.el8
3 files changed, 13 insertions, 4 deletions
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi
index 138f82a6bfe..46711aaf305 100644
--- a/doc/emacs/programs.texi
+++ b/doc/emacs/programs.texi
@@ -308,6 +308,10 @@ Rescanning happens automatically if you set @code{imenu-auto-rescan} to
308a non-@code{nil} value. There is no need to rescan because of small 308a non-@code{nil} value. There is no need to rescan because of small
309changes in the text. 309changes in the text.
310 310
311@vindex imenu-auto-rescan-maxout
312 @code{imenu-auto-rescan} will be disabled in buffers that are larger
313than @code{imenu-auto-rescan-maxout} in bytes.
314
311@vindex imenu-sort-function 315@vindex imenu-sort-function
312 You can customize the way the menus are sorted by setting the 316 You can customize the way the menus are sorted by setting the
313variable @code{imenu-sort-function}. By default, names are ordered as 317variable @code{imenu-sort-function}. By default, names are ordered as
diff --git a/etc/NEWS b/etc/NEWS
index f575d4dd005..a54ac2db430 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -50,6 +50,11 @@ often cause crashes. Set it to nil if you really need those fonts.
50--- 50---
51*** New toggle 'ibuffer-do-toggle-lock', bound to 'L'. 51*** New toggle 'ibuffer-do-toggle-lock', bound to 'L'.
52 52
53** Imenu
54
55---
56*** The value for 'imenu-auto-rescan-maxout' has been increased to 600000.
57
53** Gnus 58** Gnus
54 59
55--- 60---
diff --git a/lisp/imenu.el b/lisp/imenu.el
index 89114524ebc..2608eb259a2 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -96,11 +96,11 @@ This might not yet be honored by all index-building functions."
96 :type 'boolean 96 :type 'boolean
97 :group 'imenu) 97 :group 'imenu)
98 98
99(defcustom imenu-auto-rescan-maxout 60000 99(defcustom imenu-auto-rescan-maxout 600000
100 "Imenu auto-rescan is disabled in buffers larger than this size (in bytes). 100 "Imenu auto-rescan is disabled in buffers larger than this size (in bytes)."
101This variable is buffer-local."
102 :type 'integer 101 :type 'integer
103 :group 'imenu) 102 :group 'imenu
103 :version "26.2")
104 104
105(defvar imenu-always-use-completion-buffer-p nil) 105(defvar imenu-always-use-completion-buffer-p nil)
106(make-obsolete-variable 'imenu-always-use-completion-buffer-p 106(make-obsolete-variable 'imenu-always-use-completion-buffer-p