[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Let's make C-M-w in isearch yank symbol, not delete character
From: |
Eli Zaretskii |
Subject: |
Re: Let's make C-M-w in isearch yank symbol, not delete character |
Date: |
Wed, 28 Feb 2018 05:40:05 +0200 |
> From: Juri Linkov <address@hidden>
> Cc: address@hidden, address@hidden
> Date: Tue, 27 Feb 2018 23:28:41 +0200
>
> >> Fortunately, it's easy to add support for yanking an expression:
> >> in addition to the existing option 'edit' of 'search-exit-option'
> >> we can also provide a new option 'move' that will sync the current
> >> search string with the new position in the buffer after moving point
> >> using all standard motion commands, e.g. `C-f' will add the next char
> >> to the end of the search string, `C-M-f' will add the next expression,
> >> `M-f' will add the next word, `C-b' will delete text from the end of
> >> the search string, etc. Here is the implementation:
> >
> > Thanks. I think this needs a documentation update as well.
>
> I updated the documentation in the docstring of search-exit-option below.
This should be in NEWS as well. What about the manual?
> +(defcustom search-exit-option 'move
> + "Defines what control characters do in incremental search.
> +If t, random control and meta characters terminate the search
> +and are then executed normally.
> +If `edit', edit the search string instead of exiting.
> +If `move', use motion commands to extend the search string.
> +If nil, run the command without exiting Isearch."
> + :type '(choice (const :tag "Terminate incremental search" t)
> + (const :tag "Edit the search string" edit)
> + (const :tag "Extend the search string by motion commands" move)
> + (const :tag "Don't terminate incremental search" nil)))
Please add a :version tag to this defcustom.
Thanks.