[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kill-ring visualization
From: |
Juri Linkov |
Subject: |
Re: kill-ring visualization |
Date: |
Wed, 31 Mar 2010 18:04:35 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) |
>> In the patch I sent earlier, yank-pop doesn't insert the string selected
>> from the *Completions* buffer. It searches for selected completion string
>> in the kill-ring (using `member' that ignores the `display' property),
>> gets its position in the kill-ring, and calls `yank' with this position
>> as a numeric index.
>
> Yes, I noticed it, and the problem is that my yank happens to be advised
> and that breaks it (because the advice occasionally adds elements to
> the kill-ring).
>
> So, while I also started with such an approach, I ended up going the
> more straightforward route of inserting the actual selected text, since
> it's more reliable.
`yank' and `yank-pop' use `current-kill' to rotate the yanking pointer
in the kill ring.
But maybe `yank-browse' should have its own yanking pointer?
For instance, with the kill ring having the value:
'("string1" "foo" "string2" "bar" "string3")
this scenario would be useful:
M-y str RET ;; the user types a substring "str" in the minibuffer
;; and RET inserts "string1" to the current buffer
M-y ;; reinserts "string2" to the current buffer
M-y ;; reinserts "string3" to the current buffer
M-y ;; reinserts "string1" to the current buffer
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: anything.el inclusion, (continued)
- Re: anything.el inclusion, Ted Zlatanov, 2010/03/29
- regexp completion (was: kill-ring visualization), Stefan Monnier, 2010/03/25
- Re: kill-ring visualization, Juri Linkov, 2010/03/25
- Re: kill-ring visualization, Stefan Monnier, 2010/03/25
- Re: kill-ring visualization, Juri Linkov, 2010/03/26
- Re: kill-ring visualization, Stefan Monnier, 2010/03/26
- Re: kill-ring visualization, Juri Linkov, 2010/03/27
- Re: kill-ring visualization, Stefan Monnier, 2010/03/27
- Re: kill-ring visualization, Juri Linkov, 2010/03/30
- Re: kill-ring visualization, Stefan Monnier, 2010/03/30
- Re: kill-ring visualization,
Juri Linkov <=
- RE: kill-ring visualization, Drew Adams, 2010/03/25
RE: kill-ring visualization, Drew Adams, 2010/03/18