[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18426: [PATCH] Increase default size of imenu-auto-rescan-maxout
From: |
Alex Branham |
Subject: |
bug#18426: [PATCH] Increase default size of imenu-auto-rescan-maxout |
Date: |
Thu, 30 Aug 2018 16:55:38 -0500 |
User-agent: |
mu4e 1.0; emacs 26.1 |
Here's a patch that includes some text for the manual. I'm not sure of
the right way to submit this since the patch I send would go into 27.1
(I assume?), but this is a manual update that could go into the emacs-26
branch:
Thanks again,
Alex
---
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi
index c72558ce9a..cfeb61e44d 100644
--- a/doc/emacs/programs.texi
+++ b/doc/emacs/programs.texi
@@ -274,6 +274,10 @@ Imenu
a non-@code{nil} value. There is no need to rescan because of small
changes in the text.
+@vindex imenu-auto-rescan-maxout
+ @code{imenu-auto-rescan} will be disabled in buffers that are larger
+than @code{imenu-auto-rescan-maxout} in bytes.
+
@vindex imenu-sort-function
You can customize the way the menus are sorted by setting the
variable @code{imenu-sort-function}. By default, names are ordered as
On Thu 30 Aug 2018 at 16:46, Alex Branham <alex.branham@gmail.com> wrote:
> I just ran into this issue that was originally reported 4 years ago.
> Here's a patch that increases the default size of
> imenu-auto-rescan-maxout by a factor of 10 like Stefan suggested, though
> honestly we could probably increase it past this even.
>
> I also removed the doc about it being a buffer-local variable because
> it's not AFAICT.
>
> This doesn't need a NEWS entry, right?
>
> Thanks,
> Alex
>
>
> ---
>
>
> From c3a820f680a5b65e946f300709e0fac0bf9420ba Mon Sep 17 00:00:00 2001
> From: Alex Branham <alex.branham@gmail.com>
> Date: Thu, 30 Aug 2018 16:41:37 -0500
> Subject: [PATCH] * lisp/imenu.el (imenu-auto-rescan-maxout): Increase default
> size
>
> Closes bug#18426
> ---
> lisp/imenu.el | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/lisp/imenu.el b/lisp/imenu.el
> index 7285b10574..e67dabed7d 100644
> --- a/lisp/imenu.el
> +++ b/lisp/imenu.el
> @@ -96,11 +96,11 @@ imenu-auto-rescan
> :type 'boolean
> :group 'imenu)
>
> -(defcustom imenu-auto-rescan-maxout 60000
> - "Imenu auto-rescan is disabled in buffers larger than this size (in bytes).
> -This variable is buffer-local."
> +(defcustom imenu-auto-rescan-maxout 600000
> + "Imenu auto-rescan is disabled in buffers larger than this size (in
> bytes)."
> :type 'integer
> - :group 'imenu)
> + :group 'imenu
> + :version "27.1")
>
> (defcustom imenu-use-popup-menu 'on-mouse
> "Use a popup menu rather than a minibuffer prompt.
> --
> 2.18.0
> From c3a820f680a5b65e946f300709e0fac0bf9420ba Mon Sep 17 00:00:00 2001
> From: Alex Branham <alex.branham@gmail.com>
> Date: Thu, 30 Aug 2018 16:41:37 -0500
> Subject: [PATCH] * lisp/imenu.el (imenu-auto-rescan-maxout): Increase default
> size
>
> Closes bug#18426
> ---
> lisp/imenu.el | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/lisp/imenu.el b/lisp/imenu.el
> index 7285b10574..e67dabed7d 100644
> --- a/lisp/imenu.el
> +++ b/lisp/imenu.el
> @@ -96,11 +96,11 @@ imenu-auto-rescan
> :type 'boolean
> :group 'imenu)
>
> -(defcustom imenu-auto-rescan-maxout 60000
> - "Imenu auto-rescan is disabled in buffers larger than this size (in bytes).
> -This variable is buffer-local."
> +(defcustom imenu-auto-rescan-maxout 600000
> + "Imenu auto-rescan is disabled in buffers larger than this size (in
> bytes)."
> :type 'integer
> - :group 'imenu)
> + :group 'imenu
> + :version "27.1")
>
> (defcustom imenu-use-popup-menu 'on-mouse
> "Use a popup menu rather than a minibuffer prompt.