From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Johan_Bockg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: Re: `add-face' Date: Fri, 07 Sep 2012 22:10:23 +0200 Message-ID: <87ehmd7fww.fsf@gnu.org> References: <87harbgnez.fsf@gnus.org> <87wr06tqj9.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347048634 16456 80.91.229.3 (7 Sep 2012 20:10:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2012 20:10:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 07 22:10:35 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 1TA4ss-0007AN-R5 for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2012 22:10:34 +0200 Original-Received: from localhost ([::1]:56306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TA4sp-0007DN-Ej for ged-emacs-devel@m.gmane.org; Fri, 07 Sep 2012 16:10:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TA4sm-0007D5-Oh for emacs-devel@gnu.org; Fri, 07 Sep 2012 16:10:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TA4sl-0000ca-QP for emacs-devel@gnu.org; Fri, 07 Sep 2012 16:10:28 -0400 Original-Received: from smtprelay-b22.telenor.se ([195.54.99.213]:45437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TA4sl-0000cH-KX for emacs-devel@gnu.org; Fri, 07 Sep 2012 16:10:27 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id 9700E142C0 for ; Fri, 7 Sep 2012 22:10:26 +0200 (CEST) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.229.4.140] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnFUADlUSlBV5QSMPGdsb2JhbABFhR4iAYUAsQMZAQEBATc0giABAQQBVigLCyElDwEEGAEMCi2ICgq7OY4ngx8DqF8 X-IronPort-AV: E=Sophos;i="4.80,388,1344204000"; d="scan'208";a="408285074" Original-Received: from c-8c04e555.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.229.4.140]) by ipb1.telenor.se with ESMTP; 07 Sep 2012 22:10:25 +0200 Original-Received: by muon.localdomain (Postfix, from userid 1000) id 2C6C44841D9; Fri, 7 Sep 2012 22:10:23 +0200 (CEST) Mail-Copies-To: never In-Reply-To: <87wr06tqj9.fsf@gnu.org> (Chong Yidong's message of "Fri, 07 Sep 2012 12:17:46 +0800") 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: 195.54.99.213 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:153168 Archived-At: Chong Yidong writes: > As for the idea, it sounds good in principle. I think either > `add-face-text-property' or `face-add-text-property' would be a better > name. BTW, there is already similar functionality in font-lock.el: ;;; Additional text property functions. ;; The following text property functions should be builtins. This means they ;; should be written in C and put with all the other text property functions. ;; In the meantime, those that are used by font-lock.el are defined in Lisp ;; below and given a `font-lock-' prefix. Those that are not used are defined ;; in Lisp below and commented out. sm. (defun font-lock-prepend-text-property (start end prop value &optional object) [...] (defun font-lock-append-text-property (start end prop value &optional object) [...] (defun font-lock-fillin-text-property (start end prop value &optional object) [...]