aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2021-11-09 06:59:24 +0100
committerStefan Kangas2021-11-09 06:59:24 +0100
commitba0e4f3ad3f0605a99b497e2a375a1e1cfacb35c (patch)
tree597543a8da51dc9e5f5fa37154bc50e23c700f32
parent3808cb89c3740b5ba4346c70fe3c7508ad42a11b (diff)
parent307d164c9c053501df8159719b3b502d720a945a (diff)
downloademacs-ba0e4f3ad3f0605a99b497e2a375a1e1cfacb35c.tar.gz
emacs-ba0e4f3ad3f0605a99b497e2a375a1e1cfacb35c.zip
Merge from origin/emacs-28
307d164c9c * lisp/mouse.el (mouse-buffer-menu-mode-groups): Tighten "... 818211ed89 * doc/emacs/search.texi (Isearch Yank): Add isearch-forwar... # Conflicts: # etc/NEWS
-rw-r--r--doc/emacs/search.texi10
-rw-r--r--etc/NEWS.2836
-rw-r--r--lisp/mouse.el2
3 files changed, 30 insertions, 18 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index f6d9cb3be18..fbbb1f6e682 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -337,6 +337,16 @@ value of the variable @code{search-upper-case} (@pxref{Lax Search,
337search-upper-case}) is other than @code{not-yanks}, that disables this 337search-upper-case}) is other than @code{not-yanks}, that disables this
338down-casing. 338down-casing.
339 339
340@kindex M-s M-.
341@findex isearch-forward-thing-at-point
342 To begin a new incremental search with the text near point yanked
343into the initial search string, type @kbd{M-s M-.} that runs the
344command @code{isearch-forward-thing-at-point}. If the region was
345active, then it yanks the text from the region into the search string.
346Otherwise, it tries to yank a URL, a symbol or an expression found
347near point. What to yank is defined by the user option
348@code{isearch-forward-thing-at-point}.
349
340@node Error in Isearch 350@node Error in Isearch
341@subsection Errors in Incremental Search 351@subsection Errors in Incremental Search
342 352
diff --git a/etc/NEWS.28 b/etc/NEWS.28
index 9ed340ae6a7..1d1b37a2d4f 100644
--- a/etc/NEWS.28
+++ b/etc/NEWS.28
@@ -1254,6 +1254,14 @@ Like 'search-highlight-submatches', this is controlled by the new user option
1254'query-replace-highlight-submatches'. 1254'query-replace-highlight-submatches'.
1255 1255
1256+++ 1256+++
1257*** New key 'M-s M-.' starts isearch looking for the thing at point.
1258This key is bound to the new command 'isearch-forward-thing-at-point'.
1259The new user option 'isearch-forward-thing-at-point' defines
1260a list of symbols to try to get the "thing" at point. By default,
1261the first element of the list is 'region' that tries to yank
1262the currently active region to the search string.
1263
1264+++
1257*** New user option 'isearch-wrap-pause' defines how to wrap the search. 1265*** New user option 'isearch-wrap-pause' defines how to wrap the search.
1258There are choices to disable wrapping completely and to wrap immediately. 1266There are choices to disable wrapping completely and to wrap immediately.
1259When wrapping immediately, it consistently handles the numeric arguments 1267When wrapping immediately, it consistently handles the numeric arguments
@@ -1266,12 +1274,17 @@ When this option is set, direction changes in Isearch move to another
1266search match, if there is one, instead of moving point to the other 1274search match, if there is one, instead of moving point to the other
1267end of the current match. 1275end of the current match.
1268 1276
1269*** New key 'M-s M-.' starts isearch looking for the thing at point. 1277+++
1270This key is bound to the new command 'isearch-forward-thing-at-point'. 1278*** New user option 'isearch-allow-motion'.
1271The new user option 'isearch-forward-thing-at-point' defines 1279When 'isearch-allow-motion' is set, the commands 'beginning-of-buffer',
1272a list of symbols to try to get the "thing" at point. By default, 1280'end-of-buffer', 'scroll-up-command' and 'scroll-down-command', when
1273the first element of the list is 'region' that tries to yank 1281invoked during I-search, move respectively to the first occurrence of
1274the currently active region to the search string. 1282the current search string in the buffer, the last one, the first one
1283after the current window, and the last one before the current window.
1284Additionally, users can change the meaning of other motion commands
1285during I-search by using their 'isearch-motion' property. The user
1286option 'isearch-motion-changes-direction' controls whether the
1287direction of the search changes after a motion command.
1275 1288
1276+++ 1289+++
1277*** New user option 'lazy-highlight-no-delay-length'. 1290*** New user option 'lazy-highlight-no-delay-length'.
@@ -1383,17 +1396,6 @@ keys, add the following to your init file:
1383Using it instead of 'read-char-choice' allows using 'C-x o' 1396Using it instead of 'read-char-choice' allows using 'C-x o'
1384to switch to the help window displayed after typing 'C-h'. 1397to switch to the help window displayed after typing 'C-h'.
1385 1398
1386+++
1387** New user option 'isearch-allow-motion'.
1388When 'isearch-allow-motion' is set, the commands 'beginning-of-buffer',
1389'end-of-buffer', 'scroll-up-command' and 'scroll-down-command', when
1390invoked during I-search, move respectively to the first occurrence of
1391the current search string in the buffer, the last one, the first one
1392after the current window, and the last one before the current window.
1393Additionally, users can change the meaning of other motion commands
1394during I-search by using their 'isearch-motion' property. The user
1395option 'isearch-motion-changes-direction' controls whether the
1396direction of the search changes after a motion command.
1397 1399
1398+++ 1400+++
1399** Emacs 28.1 comes with Org v9.5. 1401** Emacs 28.1 comes with Org v9.5.
diff --git a/lisp/mouse.el b/lisp/mouse.el
index d6912892eff..4f9c49ce463 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -2477,7 +2477,7 @@ a large number if you prefer a mixed multitude. The default is 4."
2477 ("Text" . "Text") 2477 ("Text" . "Text")
2478 ("Outline" . "Text") 2478 ("Outline" . "Text")
2479 ("\\(HT\\|SG\\|X\\|XHT\\)ML" . "SGML") 2479 ("\\(HT\\|SG\\|X\\|XHT\\)ML" . "SGML")
2480 ("log\\|diff\\|vc\\|cvs\\|Git\\|Annotate" . "Version Control") 2480 ("\\blog\\b\\|diff\\|\\bvc\\b\\|cvs\\|Git\\|Annotate" . "Version Control")
2481 ("Threads\\|Memory\\|Disassembly\\|Breakpoints\\|Frames\\|Locals\\|Registers\\|Inferior I/O\\|Debugger" 2481 ("Threads\\|Memory\\|Disassembly\\|Breakpoints\\|Frames\\|Locals\\|Registers\\|Inferior I/O\\|Debugger"
2482 . "GDB") 2482 . "GDB")
2483 ("Lisp" . "Lisp"))) 2483 ("Lisp" . "Lisp")))