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: strange font information in local abbrev table Date: Sun, 26 Oct 2014 12:54:48 -0400 Message-ID: References: <87wq7nc4dh.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414342525 30366 80.91.229.3 (26 Oct 2014 16:55:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Oct 2014 16:55:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 26 17:55:18 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XiR65-0006Vc-UZ for ged-emacs-devel@m.gmane.org; Sun, 26 Oct 2014 17:55:18 +0100 Original-Received: from localhost ([::1]:57422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiR65-0003Lj-Jq for ged-emacs-devel@m.gmane.org; Sun, 26 Oct 2014 12:55:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiR5n-0003Ir-5Q for emacs-devel@gnu.org; Sun, 26 Oct 2014 12:55:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiR5f-0007Yd-K9 for emacs-devel@gnu.org; Sun, 26 Oct 2014 12:54:59 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:39196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiR5f-0007YT-H1 for emacs-devel@gnu.org; Sun, 26 Oct 2014 12:54:51 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s9QGsnJk015949; Sun, 26 Oct 2014 12:54:49 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id D5856AE312; Sun, 26 Oct 2014 12:54:48 -0400 (EDT) In-Reply-To: <87wq7nc4dh.fsf@mat.ucm.es> (Uwe Brauer's message of "Sun, 26 Oct 2014 15:06:18 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5106=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5106> : inlines <1435> : streams <1326955> : uri <1829067> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:175865 Archived-At: > Which come in handy for example to define abbrevs when ediff was called, > but could be used in other circumstances. Now while this works in Xemacs > and GNU emacs, I just recently discovered that in GNU emacs there is > some additional font information, whose origin and purpose I don't > understand: > example: copy-to-register copies the text, including its text-properties. > #("hallllo" 0 7 (fontified t)) 0 "hallo" This is a string that has a `fontified' text-property applied to it. This property is normally applied to the buffer text by `jit-lock' to keep track of which part of the buffer has been font-locked and which part hasn't. You can ignore this property: it should be harmless. But if it bothers you (e.g. for aesthetic reasons) you can strip it by calling (set-text-properties 0 (length name) nil name). Notice that the other string doesn't have this property, because `downcase' does not preserve text-properties (tho it probably should, ideally, on the part of the string which is not modified). Stefan