From c32212bf966523e3a3153c5ad2c131d140aeff8a Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Mon, 18 Jul 2022 17:39:55 -0400 Subject: (help-fns--first-release): Try and avoid false positives We used to use a very "optimistic" regexp which worked well for longish symbol names but suffered from too many false positives on short names. Use a more restrictive regexp, which should make the recent "weed out" change unnecessary. This in turn requires the use of '...' more consistently in etc/NEWS* files. * lisp/help-fns.el (help-fns--first-release-regexp): New function. (help-fns--first-release): Use it. Fix minor issue with the Emacs version regexp. (help-fns--mention-first-release): Undo last change. * etc/NEWS*: Replace `...' with '...'. Indent code examples by at least 2 spaces. Add previously missing '...' quotes around many of the variables and functions described. --- etc/NEWS.25 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc/NEWS.25') diff --git a/etc/NEWS.25 b/etc/NEWS.25 index 21fcd052dce..d1e43e0538e 100644 --- a/etc/NEWS.25 +++ b/etc/NEWS.25 @@ -550,8 +550,8 @@ When you invoke 'shell' interactively, the '*shell*' buffer will now display in a new window. However, you can customize this behavior via the 'display-buffer-alist' variable. For example, to get the old behavior -- '*shell*' buffer displays in current window -- use -(add-to-list 'display-buffer-alist - '("^\\*shell\\*$" . (display-buffer-same-window))). + (add-to-list 'display-buffer-alist + '("\\`\\*shell\\*\\'" . (display-buffer-same-window))). ** EIEIO *** The ':protection' slot option is not obeyed any more. @@ -1264,7 +1264,7 @@ SWITCH-BUFFER to 'completion-table-dynamic'. ** window-configurations no longer record the buffers' marks. -** 'inhibit-modification-hooks' now also inhibits lock-file checks, as +** 'inhibit-modification-hooks' now also inhibits 'lock-file' checks, as well as active region handling. ** 'deactivate-mark' is now buffer-local. -- cgit v1.2.1