diff options
| author | Stefan Kangas | 2021-11-09 06:59:24 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2021-11-09 06:59:24 +0100 |
| commit | ba0e4f3ad3f0605a99b497e2a375a1e1cfacb35c (patch) | |
| tree | 597543a8da51dc9e5f5fa37154bc50e23c700f32 | |
| parent | 3808cb89c3740b5ba4346c70fe3c7508ad42a11b (diff) | |
| parent | 307d164c9c053501df8159719b3b502d720a945a (diff) | |
| download | emacs-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.texi | 10 | ||||
| -rw-r--r-- | etc/NEWS.28 | 36 | ||||
| -rw-r--r-- | lisp/mouse.el | 2 |
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, | |||
| 337 | search-upper-case}) is other than @code{not-yanks}, that disables this | 337 | search-upper-case}) is other than @code{not-yanks}, that disables this |
| 338 | down-casing. | 338 | down-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 | ||
| 343 | into the initial search string, type @kbd{M-s M-.} that runs the | ||
| 344 | command @code{isearch-forward-thing-at-point}. If the region was | ||
| 345 | active, then it yanks the text from the region into the search string. | ||
| 346 | Otherwise, it tries to yank a URL, a symbol or an expression found | ||
| 347 | near 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. | ||
| 1258 | This key is bound to the new command 'isearch-forward-thing-at-point'. | ||
| 1259 | The new user option 'isearch-forward-thing-at-point' defines | ||
| 1260 | a list of symbols to try to get the "thing" at point. By default, | ||
| 1261 | the first element of the list is 'region' that tries to yank | ||
| 1262 | the 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. |
| 1258 | There are choices to disable wrapping completely and to wrap immediately. | 1266 | There are choices to disable wrapping completely and to wrap immediately. |
| 1259 | When wrapping immediately, it consistently handles the numeric arguments | 1267 | When wrapping immediately, it consistently handles the numeric arguments |
| @@ -1266,12 +1274,17 @@ When this option is set, direction changes in Isearch move to another | |||
| 1266 | search match, if there is one, instead of moving point to the other | 1274 | search match, if there is one, instead of moving point to the other |
| 1267 | end of the current match. | 1275 | end of the current match. |
| 1268 | 1276 | ||
| 1269 | *** New key 'M-s M-.' starts isearch looking for the thing at point. | 1277 | +++ |
| 1270 | This key is bound to the new command 'isearch-forward-thing-at-point'. | 1278 | *** New user option 'isearch-allow-motion'. |
| 1271 | The new user option 'isearch-forward-thing-at-point' defines | 1279 | When 'isearch-allow-motion' is set, the commands 'beginning-of-buffer', |
| 1272 | a 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 |
| 1273 | the first element of the list is 'region' that tries to yank | 1281 | invoked during I-search, move respectively to the first occurrence of |
| 1274 | the currently active region to the search string. | 1282 | the current search string in the buffer, the last one, the first one |
| 1283 | after the current window, and the last one before the current window. | ||
| 1284 | Additionally, users can change the meaning of other motion commands | ||
| 1285 | during I-search by using their 'isearch-motion' property. The user | ||
| 1286 | option 'isearch-motion-changes-direction' controls whether the | ||
| 1287 | direction 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: | |||
| 1383 | Using it instead of 'read-char-choice' allows using 'C-x o' | 1396 | Using it instead of 'read-char-choice' allows using 'C-x o' |
| 1384 | to switch to the help window displayed after typing 'C-h'. | 1397 | to switch to the help window displayed after typing 'C-h'. |
| 1385 | 1398 | ||
| 1386 | +++ | ||
| 1387 | ** New user option 'isearch-allow-motion'. | ||
| 1388 | When 'isearch-allow-motion' is set, the commands 'beginning-of-buffer', | ||
| 1389 | 'end-of-buffer', 'scroll-up-command' and 'scroll-down-command', when | ||
| 1390 | invoked during I-search, move respectively to the first occurrence of | ||
| 1391 | the current search string in the buffer, the last one, the first one | ||
| 1392 | after the current window, and the last one before the current window. | ||
| 1393 | Additionally, users can change the meaning of other motion commands | ||
| 1394 | during I-search by using their 'isearch-motion' property. The user | ||
| 1395 | option 'isearch-motion-changes-direction' controls whether the | ||
| 1396 | direction 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"))) |