From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: kill-ring visualization Date: Fri, 26 Mar 2010 16:17:19 -0400 Message-ID: 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 1269637459 4791 80.91.229.12 (26 Mar 2010 21:04:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Mar 2010 21:04:19 +0000 (UTC) Cc: Emacs development discussions To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 26 22:04:15 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 1NvGhS-0004CN-HB for ged-emacs-devel@m.gmane.org; Fri, 26 Mar 2010 22:04:14 +0100 Original-Received: from localhost ([127.0.0.1]:60098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvGhR-00024z-V4 for ged-emacs-devel@m.gmane.org; Fri, 26 Mar 2010 17:04:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvG9T-00054A-LJ for emacs-devel@gnu.org; Fri, 26 Mar 2010 16:29:07 -0400 Original-Received: from [140.186.70.92] (port=46789 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvG9O-0004gj-OJ for emacs-devel@gnu.org; Fri, 26 Mar 2010 16:29:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvFy5-00081o-4W for emacs-devel@gnu.org; Fri, 26 Mar 2010 16:17:22 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:53350) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvFy5-00081i-0w for emacs-devel@gnu.org; Fri, 26 Mar 2010 16:17:21 -0400 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o2QKHJQH011281; Fri, 26 Mar 2010 16:17:20 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id D8FBD3A0F4; Fri, 26 Mar 2010 16:17:19 -0400 (EDT) In-Reply-To: <87aatvogu3.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 26 Mar 2010 09:09:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3500=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:122725 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. 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. > + ((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. Stefan