[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: Sat, 27 Mar 2010 21:42:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu)

>> This requires implementing a new option in `completions-format'
>> and let-binding it in `yank-browse'.
> let-binding is not a good option, because if you use recursive
> minibuffers, this let-binding can end up affecting unrelated completions.

Thanks, I see now that it should be (mini)buffer-local.

> Also, to tell you the truth, I'd want this format to be specified by the
> completion table rather than by the code calling the completing-read.

If this means dropping `completion--insert-strings',
then I don't see benefits of doing that.

>> +         ((eq completions-format 'line)
>> +          ;; One-line format
>> +          (setq str (query-replace-descr str)))
> But this will not just change the string displayed, but also the string
> inserted by the yank.  We need to distinguish the two.

Maybe to put the `display' property with the value "^J" on newlines?

Juri Linkov

reply via email to

[Prev in Thread] Current Thread [Next in Thread]