emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `add-face'


From: Johan Bockgård
Subject: Re: `add-face'
Date: Fri, 07 Sep 2012 22:10:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Chong Yidong <address@hidden> 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)
[...]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]