unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Branham <alex.branham@gmail.com>
To: 18426@debbugs.gnu.org
Subject: bug#18426: [PATCH] Increase default size of imenu-auto-rescan-maxout
Date: Thu, 30 Aug 2018 16:46:04 -0500	[thread overview]
Message-ID: <878t4nfrz7.fsf@gmail.com> (raw)
In-Reply-To: <1611741.pliqg7B921@thunder>

[-- Attachment #1: Type: text/plain, Size: 1388 bytes --]

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-imenu.el-imenu-auto-rescan-maxout-Increase-defa.patch --]
[-- Type: text/x-patch, Size: 995 bytes --]

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


  parent reply	other threads:[~2018-08-30 21:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-08 16:13 bug#18426: 24.3; imenu-auto-rescan-maxout not mentioned in manual Ethan Glasser-Camp
2014-09-09  0:38 ` Stefan Monnier
2018-08-30 21:46 ` Alex Branham [this message]
2018-08-30 21:55   ` bug#18426: [PATCH] Increase default size of imenu-auto-rescan-maxout Alex Branham
2018-08-31  7:49     ` Robert Pluim
2018-08-31 13:07       ` Alex Branham
2018-08-31 13:12         ` Robert Pluim
2018-08-31 13:15           ` Alex Branham
2018-09-06 15:09             ` Alex Branham
2018-09-06 15:16               ` Robert Pluim
2018-09-06 18:43                 ` Eli Zaretskii
2018-09-12 13:33                   ` Robert Pluim
2018-09-12 14:07                     ` Alex Branham
2018-09-12 14:29                     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878t4nfrz7.fsf@gmail.com \
    --to=alex.branham@gmail.com \
    --cc=18426@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).