From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Difficulties with `purecopy' discarding text properties from strings Date: Sat, 20 May 2017 10:40:47 +0000 Message-ID: <20170520104047.GC4616@acm.fritz.box> References: <20170519185508.GA5330@acm.fritz.box> <20170519195458.GB5330@acm.fritz.box> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1495276916 7047 195.159.176.226 (20 May 2017 10:41:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 20 May 2017 10:41:56 +0000 (UTC) User-Agent: Mutt/1.5.24 (2015-08-30) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 20 12:41:49 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dC1pV-0001dI-7q for ged-emacs-devel@m.gmane.org; Sat, 20 May 2017 12:41:49 +0200 Original-Received: from localhost ([::1]:33726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dC1pY-0008GH-Tp for ged-emacs-devel@m.gmane.org; Sat, 20 May 2017 06:41:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dC1pT-0008G1-MA for emacs-devel@gnu.org; Sat, 20 May 2017 06:41:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dC1pQ-0000Dr-Im for emacs-devel@gnu.org; Sat, 20 May 2017 06:41:47 -0400 Original-Received: from ocolin.muc.de ([193.149.48.4]:44166 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1dC1pQ-0000Da-74 for emacs-devel@gnu.org; Sat, 20 May 2017 06:41:44 -0400 Original-Received: (qmail 83877 invoked by uid 3782); 20 May 2017 10:41:43 -0000 Original-Received: from acm.muc.de (p548C67C5.dip0.t-ipconnect.de [84.140.103.197]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 20 May 2017 12:41:42 +0200 Original-Received: (qmail 4685 invoked by uid 1000); 20 May 2017 10:40:47 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215011 Archived-At: Hello, Stefan. On Fri, May 19, 2017 at 22:58:00 -0400, Stefan Monnier wrote: > > (const :tag "\"%q\": Offsets of both top and bottom of window" > > (,(mode-line-%-propertize "%q")))) > [...] > >> Or am I missing something? > > purecopy is applied to the entire type: argument. > I see, the problem I was missing is that the :type part contains values > rather than expressions. > BTW, another option is to use the (:propertize ...) mode-line element. > It could be placed in mode-line-format around the use of > mode-line-percent-position, so that mode-line-percent-position can just > be a non-propertized string. Thank you indeed. That is what I have now done. > Stefan -- Alan Mackenzie (Nuremberg, Germany).