From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Branham Newsgroups: gmane.emacs.bugs Subject: bug#18426: [PATCH] Increase default size of imenu-auto-rescan-maxout Date: Fri, 31 Aug 2018 08:07:12 -0500 Message-ID: <87in3qsn0f.fsf@gmail.com> References: <878t4nfrz7.fsf@gmail.com> <877ek7frj9.fsf@gmail.com> <87bm9j2cy5.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1535720769 32702 195.159.176.226 (31 Aug 2018 13:06:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 31 Aug 2018 13:06:09 +0000 (UTC) User-Agent: mu4e 1.0; emacs 26.1 Cc: 18426@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 31 15:06:05 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvj7l-0008R5-3N for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Aug 2018 15:06:05 +0200 Original-Received: from localhost ([::1]:53643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvj9r-0007GP-5h for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Aug 2018 09:08:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvj9h-000757-Q0 for bug-gnu-emacs@gnu.org; Fri, 31 Aug 2018 09:08:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvj9e-00057G-Pm for bug-gnu-emacs@gnu.org; Fri, 31 Aug 2018 09:08:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34882) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fvj9e-000577-IL for bug-gnu-emacs@gnu.org; Fri, 31 Aug 2018 09:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fvj9e-0002qg-9J for bug-gnu-emacs@gnu.org; Fri, 31 Aug 2018 09:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Branham Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Aug 2018 13:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18426 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18426-submit@debbugs.gnu.org id=B18426.153572084310893 (code B ref 18426); Fri, 31 Aug 2018 13:08:02 +0000 Original-Received: (at 18426) by debbugs.gnu.org; 31 Aug 2018 13:07:23 +0000 Original-Received: from localhost ([127.0.0.1]:39900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvj91-0002pd-0J for submit@debbugs.gnu.org; Fri, 31 Aug 2018 09:07:23 -0400 Original-Received: from mail-oi0-f46.google.com ([209.85.218.46]:46366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvj8z-0002pR-L0 for 18426@debbugs.gnu.org; Fri, 31 Aug 2018 09:07:22 -0400 Original-Received: by mail-oi0-f46.google.com with SMTP id y207-v6so21461386oie.13 for <18426@debbugs.gnu.org>; Fri, 31 Aug 2018 06:07:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=NPlzeUm5J/j5WGL8ok0mWFFt5KeuL1MKLGaw6h+gXVU=; b=dTKhAyJyJF1n8R5amgSFbyzp9cVVdpe6s7DIENSO5AZNOeuFI4XQ6pnKOzcrJcoHJK nNJg88CIZOEG+5aqbRYLRU4kGv/oqPUds9ldaGHtMP/5yfKLt1h9neYTboIzSAEAsGT0 3e92Y5xn90Nww479JVNaJH2PdLwJ+7brs78wFGHygwLD8wtPP+ydgD8gRfr6aNJGri/n 6nssvNMew2L9ihrMIUrV04IbEdlNil8mD0cuvJbuPhqXZiOqjrpaK8O/JD2Ve4/5Ms/t tFiXlxtnQU8Ac98X6PnxuUwBYgkYh0yhlPmD7/m4+nvfQkeC+j56icX+hEEWPIr2IRtm WctA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=NPlzeUm5J/j5WGL8ok0mWFFt5KeuL1MKLGaw6h+gXVU=; b=fSu0LXEXOEjZ2rF14v/PwWAo2ORBQXBKmM4zqoGhDvq/uERKaria0GBZvG+SEO8NPR M95vjnuv9xCnXVq/Tr/gY+Y2bNyyEVlxXPrdwio+N3cJBAdMVMf+AdsPwDytct3ZE9H6 MT5qrKAODjARqwCRGezhVjAP2CzK/gN7t3I7LsUtz/cxjiHCivBPAr4ANR9Yy6yRoX6Q PpK7cit5ARoL5W/mm/fQfboroapZr5sDf9n23HEz2sYUg+V2AjsFEze2eB0Px/edNAMo 4VSwc0Oqk55eDFZzOlEHFUcF0ka2pVVL44g7cpIHFjAS5qcrPOzoWWJB6ushGdytpUvv iB2Q== X-Gm-Message-State: APzg51A5z46lzFpvmk9uvzOZk4/WXauiMJlHKQ5H4LJmAIXZG1mqvCYx 7JdTQcps/NICEKiOlrYVS7a0opHe X-Google-Smtp-Source: ANB0VdaHLdQ/sDSf7qFF30Ip7d0xVdc5bEAR4NpqKcoi+EB8jyKZW4s7i9xHjyaw56Idq+0fJlc0aQ== X-Received: by 2002:aca:4f44:: with SMTP id d65-v6mr7709214oib.224.1535720835640; Fri, 31 Aug 2018 06:07:15 -0700 (PDT) Original-Received: from earth (cpe-70-114-192-208.austin.res.rr.com. [70.114.192.208]) by smtp.gmail.com with ESMTPSA id b125-v6sm9660842oia.38.2018.08.31.06.07.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 Aug 2018 06:07:15 -0700 (PDT) In-reply-to: <87bm9j2cy5.fsf@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149924 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Fri 31 Aug 2018 at 02:49, Robert Pluim wrote: > You could probably put both of them in emacs-26, although that=CA=BCs up = to > Eli. In any case, emacs-26 gets merged to master regularly, so the doc > change could definitely go there. Great, I've attached a patch that bunches it all together for the emacs-26 = branch. Thanks, Alex ------------------------------------------------------------ >From 1fd71c5195eb3c32e1da161770fbf4dd820d8e31 Mon Sep 17 00:00:00 2001 From: Alex Branham Date: Fri, 31 Aug 2018 08:05:06 -0500 Subject: [PATCH] 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. --- doc/emacs/programs.texi | 4 ++++ etc/NEWS | 4 ++++ lisp/imenu.el | 8 ++++---- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index 138f82a6bf..46711aaf30 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi @@ -308,6 +308,10 @@ Imenu a non-@code{nil} value. There is no need to rescan because of small changes in the text. =20 +@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 diff --git a/etc/NEWS b/etc/NEWS index f575d4dd00..90f98041be 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -50,6 +50,10 @@ often cause crashes. Set it to nil if you really need t= hose fonts. --- *** New toggle 'ibuffer-do-toggle-lock', bound to 'L'. =20 +** Imenu +--- +*** The value for 'imenu-auto-rescan-maxout' has been increased to 600000. + ** Gnus =20 --- diff --git a/lisp/imenu.el b/lisp/imenu.el index 89114524eb..6185debc83 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el @@ -96,11 +96,11 @@ imenu-auto-rescan :type 'boolean :group 'imenu) =20 -(defcustom imenu-auto-rescan-maxout 60000 - "Imenu auto-rescan is disabled in buffers larger than this size (in byte= s). -This variable is buffer-local." +(defcustom imenu-auto-rescan-maxout 600000 + "Imenu auto-rescan is disabled in buffers larger than this size (in byte= s)." :type 'integer - :group 'imenu) + :group 'imenu + :version "27.1") =20 (defvar imenu-always-use-completion-buffer-p nil) (make-obsolete-variable 'imenu-always-use-completion-buffer-p --=20 2.18.0 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Increase-default-value-for-imenu-auto-rescan-maxout.patch >From 1fd71c5195eb3c32e1da161770fbf4dd820d8e31 Mon Sep 17 00:00:00 2001 From: Alex Branham Date: Fri, 31 Aug 2018 08:05:06 -0500 Subject: [PATCH] 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. --- doc/emacs/programs.texi | 4 ++++ etc/NEWS | 4 ++++ lisp/imenu.el | 8 ++++---- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index 138f82a6bf..46711aaf30 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi @@ -308,6 +308,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 diff --git a/etc/NEWS b/etc/NEWS index f575d4dd00..90f98041be 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -50,6 +50,10 @@ often cause crashes. Set it to nil if you really need those fonts. --- *** New toggle 'ibuffer-do-toggle-lock', bound to 'L'. +** Imenu +--- +*** The value for 'imenu-auto-rescan-maxout' has been increased to 600000. + ** Gnus --- diff --git a/lisp/imenu.el b/lisp/imenu.el index 89114524eb..6185debc83 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") (defvar imenu-always-use-completion-buffer-p nil) (make-obsolete-variable 'imenu-always-use-completion-buffer-p -- 2.18.0 --=-=-=--