[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PATCH: isearch-yank-until-char
From: |
Juri Linkov |
Subject: |
Re: PATCH: isearch-yank-until-char |
Date: |
Thu, 15 Aug 2019 21:24:51 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
> I like the idea, but would welcome even more warmly an isearch which
> yanks "whatever text is skipped by the next command" so it can be used
> to yank the next word, sexp, char, ...
A.k.a. isearch-yank-on-move.
Since there is no non-isearch global command to skip to the next char
that could be used by isearch-yank-on-move, a fictional command is needed
like this
(defun skip-to-char (arg char)
(interactive "^p\ncSkip to char: ")
(search-forward (char-to-string char) nil nil arg)
(forward-char -1))
then it could be used with
(define-key esc-map "\C-c" 'skip-to-char)
(setq isearch-yank-on-move t)
;; optional: (put 'skip-to-char 'isearch-move t)
e.g. 'C-s M-C-c <SPC>'.
- Re: PATCH: isearch-yank-until-char, (continued)
- Re: PATCH: isearch-yank-until-char, Karl Fogel, 2019/08/26
- RE: PATCH: isearch-yank-until-char, Drew Adams, 2019/08/26
- Re: PATCH: isearch-yank-until-char, Juri Linkov, 2019/08/26
- Re: PATCH: isearch-yank-until-char, Karl Fogel, 2019/08/26
- RE: PATCH: isearch-yank-until-char, Drew Adams, 2019/08/26
- Re: PATCH: isearch-yank-until-char, Juri Linkov, 2019/08/27
- RE: PATCH: isearch-yank-until-char, Drew Adams, 2019/08/27
- RE: PATCH: isearch-yank-until-char, Drew Adams, 2019/08/27
- Re: PATCH: isearch-yank-until-char, Juri Linkov, 2019/08/25
Re: PATCH: isearch-yank-until-char, Stefan Monnier, 2019/08/14
- Re: PATCH: isearch-yank-until-char,
Juri Linkov <=
Re: PATCH: isearch-yank-until-char, Karl Fogel, 2019/08/16