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: Sat, 27 Mar 2010 16:37:21 -0400 Message-ID: References: <87y6hib6vi.fsf@mail.jurta.org> <87aatwv12t.fsf@mail.jurta.org> <87aatvogu3.fsf@mail.jurta.org> <87hbo2jmux.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 1269722298 5372 80.91.229.12 (27 Mar 2010 20:38:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 27 Mar 2010 20:38:18 +0000 (UTC) Cc: Emacs development discussions To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 27 21:38:13 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 1Nvclo-0003ME-Md for ged-emacs-devel@m.gmane.org; Sat, 27 Mar 2010 21:38:12 +0100 Original-Received: from localhost ([127.0.0.1]:44420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nvclo-0000c9-0W for ged-emacs-devel@m.gmane.org; Sat, 27 Mar 2010 16:38:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nvcl4-0000VO-1V for emacs-devel@gnu.org; Sat, 27 Mar 2010 16:37:26 -0400 Original-Received: from [140.186.70.92] (port=39566 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nvcl2-0000VD-JI for emacs-devel@gnu.org; Sat, 27 Mar 2010 16:37:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nvcl1-0001ED-Cn for emacs-devel@gnu.org; Sat, 27 Mar 2010 16:37:24 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:22872 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nvcl1-0001E7-9H for emacs-devel@gnu.org; Sat, 27 Mar 2010 16:37:23 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAJcIrktMCqKh/2dsb2JhbACbLXS9JoUBBIse X-IronPort-AV: E=Sophos;i="4.51,320,1267419600"; d="scan'208";a="59166345" Original-Received: from 76-10-162-161.dsl.teksavvy.com (HELO ceviche.home) ([76.10.162.161]) by ironport2-out.pppoe.ca with ESMTP; 27 Mar 2010 16:37:22 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id C40F1660BF; Sat, 27 Mar 2010 16:37:21 -0400 (EDT) In-Reply-To: <87hbo2jmux.fsf@mail.jurta.org> (Juri Linkov's message of "Sat, 27 Mar 2010 21:42:35 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:122772 Archived-At: >> 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. I don't see why you'd think there should be such a connection. >>> + ((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? That would only work if this property is removed when the string in subsequently inserted. Stefan