comparison lisp/faces.el @ 90519:138ce2701550

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 320-342) - Update from CVS - Merge from gnus--rel--5.10 - lisp/play/cookie1.el (cookie): Work properly when there's only one entry - Add note about "link" button-class to etc/TODO * gnus--rel--5.10 (patch 108-112) - Merge from emacs--devo--0 - Clean up merge mistakes - Update from CVS - Update from CVS: texi/gnus.texi (Summary Buffer Lines): Fix typo. Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-86
author Miles Bader <miles@gnu.org>
date Thu, 06 Jul 2006 08:59:39 +0000
parents 6f039e9c742f defa6bf31164
children 7f3f771c85fa
comparison
equal deleted inserted replaced
90518:64c755511769 90519:138ce2701550
914 ;;; Interactively modifying faces. 914 ;;; Interactively modifying faces.
915 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 915 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
916 916
917 (defun read-face-name (prompt &optional string-describing-default multiple) 917 (defun read-face-name (prompt &optional string-describing-default multiple)
918 "Read a face, defaulting to the face or faces on the char after point. 918 "Read a face, defaulting to the face or faces on the char after point.
919 If it has a `read-face-name' property, that overrides the `face' property. 919 If it has the property `read-face-name', that overrides the `face' property.
920 PROMPT describes what you will do with the face (don't end in a space). 920 PROMPT should be a string that describes what the caller will do with the face;
921 STRING-DESCRIBING-DEFAULT describes what default you will use 921 it should not end in a space.
922 if this function returns nil. 922 STRING-DESCRIBING-DEFAULT should describe what default the caller will use if
923 the user just types RET; you can omit it.
923 If MULTIPLE is non-nil, return a list of faces (possibly only one). 924 If MULTIPLE is non-nil, return a list of faces (possibly only one).
924 Otherwise, return a single face." 925 Otherwise, return a single face."
925 (let ((faceprop (or (get-char-property (point) 'read-face-name) 926 (let ((faceprop (or (get-char-property (point) 'read-face-name)
926 (get-char-property (point) 'face))) 927 (get-char-property (point) 'face)))
927 (aliasfaces nil) 928 (aliasfaces nil)