From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: `add-face' Date: Mon, 10 Sep 2012 11:07:37 +0800 Message-ID: <87zk4y379i.fsf@gnu.org> References: <87harbgnez.fsf@gnus.org> <87wr06tqj9.fsf@gnu.org> <87wr06gg30.fsf@gnus.org> <87pq5yq7sb.fsf@gnu.org> <87r4qegd3w.fsf@gnus.org> <87pq5vvgjj.fsf@gnu.org> <87bohf14s2.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347246476 12633 80.91.229.3 (10 Sep 2012 03:07:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2012 03:07:56 +0000 (UTC) Cc: Wolfgang Jenkner , emacs devel To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 10 05:07:59 2012 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 1TAuLu-0000Dd-Rc for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2012 05:07:58 +0200 Original-Received: from localhost ([::1]:60785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAuLr-00020G-Dq for ged-emacs-devel@m.gmane.org; Sun, 09 Sep 2012 23:07:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAuLl-000208-E8 for emacs-devel@gnu.org; Sun, 09 Sep 2012 23:07:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAuLg-0003YB-Pn for emacs-devel@gnu.org; Sun, 09 Sep 2012 23:07:49 -0400 Original-Received: from mail-ie0-f169.google.com ([209.85.223.169]:49287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAuLg-0003Y3-LQ for emacs-devel@gnu.org; Sun, 09 Sep 2012 23:07:44 -0400 Original-Received: by iec9 with SMTP id 9so2493641iec.0 for ; Sun, 09 Sep 2012 20:07:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=mZUUKbIwfq4RICmfY0TSx8gwrijJz5ojfzNA/0h9Fjo=; b=JLjqg21/gRsjdiiiPZwyRP0p9d4UOE/jb1iCanvQX6oKDWzmdKQVe7rM7SA7jDruaG TfRdz4FP+YsdZa1rZ6owkWaR6ZPkpcmGqUKndeMD3VQ/LuXMl3AkuMLmWwgxnrBAQC6r hBa5D+grTYEcEmD8KUf+MOJjpJZD0EFQBueljttQtESSJJL5DX6zlJB2mjAhcoG/K/a1 JC5XT4Ug3eWw9g2ZNSf5HaC3p7CotWYVvI1Lf21M55BbwLPdGLsDXHMoDZxLrb63JZ9F XvZ1Rju6C62vOFnRX7y5EkkLFhhgeLtlc3G2D/lHL1Akq6AzDcs/KMaGTX7l/QRlQv6h tNWg== Original-Received: by 10.50.209.8 with SMTP id mi8mr9001440igc.63.1347246463550; Sun, 09 Sep 2012 20:07:43 -0700 (PDT) Original-Received: from ulysses ([155.69.19.156]) by mx.google.com with ESMTPS id in10sm17338439igc.14.2012.09.09.20.07.40 (version=SSLv3 cipher=OTHER); Sun, 09 Sep 2012 20:07:41 -0700 (PDT) In-Reply-To: <87bohf14s2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 09 Sep 2012 19:31:57 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.223.169 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:153208 Archived-At: Lars Ingebrigtsen writes: > DEFUN ("add-text-properties", Fadd_text_properties, > ! Sadd_text_properties, 3, 5, 0, > doc: /* Add properties to the text from START to END. > The third argument PROPERTIES is a property list > specifying the property values to add. If the optional fourth argument > OBJECT is a buffer (or nil, which means the current buffer), > START and END are buffer positions (integers or markers). > If OBJECT is a string, START and END are 0-based indices into it. > + If NOREPLACE, add the text properties instead of replacing any > + existing ones. This is mainly useful for faces. > Return t if any property value actually changed, nil otherwise. */) > ! (Lisp_Object start, Lisp_Object end, Lisp_Object properties, > ! Lisp_Object object, Lisp_Object noreplace) 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)'? If the current value is `1', does the new value become `(foo 1)' or something else? And, specifically for face properties, what if the current value is a list specifying an anonymous face, like `(:foreground "black")'?