all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: emacs-devel@gnu.org
Subject: Re: strange font information in local abbrev table
Date: Sun, 26 Oct 2014 12:54:48 -0400	[thread overview]
Message-ID: <jwvtx2qn5bm.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87wq7nc4dh.fsf@mat.ucm.es> (Uwe Brauer's message of "Sun, 26 Oct 2014 15:06:18 +0100")

> 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



  reply	other threads:[~2014-10-26 16:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-26 14:06 strange font information in local abbrev table Uwe Brauer
2014-10-26 16:54 ` Stefan Monnier [this message]
2014-10-26 18:25   ` Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvtx2qn5bm.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.