all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Chong Yidong <cyd@gnu.org>
Cc: Wolfgang Jenkner <wjenkner@inode.at>, emacs devel <emacs-devel@gnu.org>
Subject: Re: `add-face'
Date: Wed, 24 Oct 2012 20:54:36 +0200	[thread overview]
Message-ID: <m3sj938zv7.fsf@stories.gnus.org> (raw)
In-Reply-To: <87zk4y379i.fsf@gnu.org> (Chong Yidong's message of "Mon, 10 Sep 2012 11:07:37 +0800")

Chong Yidong <cyd@gnu.org> writes:

>> + If NOREPLACE, add the text properties instead of replacing any
>> + existing ones.  This is mainly useful for faces.

[...]

> This is too vague.  What does "add the text properties" mean?  If the
> current value of a property is nil, and the argument to
> add-text-properties specifies a value `foo', does the new value become
> `foo' or `(foo)'?

The former, but it probably doesn't matter?

> If the current value is `1', does the new value become `(foo 1)' or
> something else?

`(foo 1)' is, I think, the only reasonable way to interpret "add".

> And, specifically for face properties, what if the current value is a
> list specifying an anonymous face, like `(:foreground "black")'?

Oh, it doesn't.  Hm.  That's a problem...  is there any reliable way to
distinguish `(:foreground "black")' from `(bold italic)'?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



  parent reply	other threads:[~2012-10-24 18:54 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-06 15:51 `add-face' Lars Ingebrigtsen
2012-09-07  4:17 ` `add-face' Chong Yidong
2012-09-07 12:41   ` `add-face' Lars Ingebrigtsen
2012-09-07 13:31     ` `add-face' Chong Yidong
2012-09-07 13:46       ` `add-face' Lars Ingebrigtsen
2012-09-07 14:13         ` `add-face' Lars Ingebrigtsen
2012-09-09  6:47         ` `add-face' Chong Yidong
2012-09-09 17:31           ` `add-face' Lars Ingebrigtsen
2012-09-10  3:07             ` `add-face' Chong Yidong
2012-09-10 12:57               ` `add-face' Stefan Monnier
2012-10-24 18:56                 ` `add-face' Lars Magne Ingebrigtsen
2013-06-17  7:54                 ` `add-face' Lars Magne Ingebrigtsen
2013-06-17  9:12                   ` `add-face' Lars Magne Ingebrigtsen
2013-06-17  9:51                     ` `add-face' Lars Magne Ingebrigtsen
2013-06-17 14:43                       ` `add-face' Stefan Monnier
2013-06-17 15:29                         ` `add-face' Lars Magne Ingebrigtsen
2012-10-24 18:54               ` Lars Magne Ingebrigtsen [this message]
2012-09-07 20:10   ` `add-face' Johan Bockgård

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=m3sj938zv7.fsf@stories.gnus.org \
    --to=larsi@gnus.org \
    --cc=cyd@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=wjenkner@inode.at \
    /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.