From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: kill-ring visualization Date: Sat, 27 Mar 2010 21:42:35 +0200 Organization: JURTA Message-ID: <87hbo2jmux.fsf@mail.jurta.org> References: <87y6hib6vi.fsf@mail.jurta.org> <87aatwv12t.fsf@mail.jurta.org> <87aatvogu3.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269720485 32421 80.91.229.12 (27 Mar 2010 20:08:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 27 Mar 2010 20:08:05 +0000 (UTC) Cc: Emacs development discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 27 21:08:01 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NvcIb-0006cG-8f for ged-emacs-devel@m.gmane.org; Sat, 27 Mar 2010 21:08:01 +0100 Original-Received: from localhost ([127.0.0.1]:49406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvcIa-0005s6-Ke for ged-emacs-devel@m.gmane.org; Sat, 27 Mar 2010 16:08:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvcHd-0005Pm-Mg for emacs-devel@gnu.org; Sat, 27 Mar 2010 16:07:01 -0400 Original-Received: from [140.186.70.92] (port=57241 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvcHb-0005PK-7u for emacs-devel@gnu.org; Sat, 27 Mar 2010 16:07:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvcHY-0007IL-Gu for emacs-devel@gnu.org; Sat, 27 Mar 2010 16:06:58 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4]:50974 helo=mx2.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvcHY-0007Gv-6i for emacs-devel@gnu.org; Sat, 27 Mar 2010 16:06:56 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.30.101.cable.starman.ee [82.131.30.101]) by mx2.starman.ee (Postfix) with ESMTP id D3E433F40B0; Sat, 27 Mar 2010 22:06:48 +0200 (EET) In-Reply-To: (Stefan Monnier's message of "Fri, 26 Mar 2010 16:17:19 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:122770 Archived-At: >> 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 http://www.jurta.org/emacs/