[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/faces.el,v
From: |
Juri Linkov |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/faces.el,v |
Date: |
Mon, 30 Jun 2008 19:35:59 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Juri Linkov <jurta> 08/06/30 19:35:59
Index: faces.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/faces.el,v
retrieving revision 1.416
retrieving revision 1.417
diff -u -b -r1.416 -r1.417
--- faces.el 28 Jun 2008 15:53:07 -0000 1.416
+++ faces.el 30 Jun 2008 19:35:59 -0000 1.417
@@ -32,6 +32,12 @@
(defvar help-xref-stack-item)
+(defvar face-name-history nil
+ "History list for some commands that read face names.
+Maximum length of the history list is determined by the value
+of `history-length', which see.")
+
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Font selection.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -123,7 +129,8 @@
variants of FACE from X resources. (X resources recognized are found
in the global variable `face-x-resources'.) If FACE is already known
as a face, leave it unmodified. Value is FACE."
- (interactive "SMake face: ")
+ (interactive (list (read-from-minibuffer
+ "Make face: " nil nil t 'face-name-history)))
(unless (facep face)
;; Make frame-local faces (this also makes the global one).
(dolist (frame (frame-list))
@@ -140,7 +147,8 @@
(defun make-empty-face (face)
"Define a new, empty face with name FACE.
If the face already exists, it is left unmodified. Value is FACE."
- (interactive "SMake empty face: ")
+ (interactive (list (read-from-minibuffer
+ "Make empty face: " nil nil t 'face-name-history)))
(make-face face 'no-init-from-resources))
@@ -940,7 +948,7 @@
string-describing-default))
(format "%s: " prompt))
(completion-table-in-turn nonaliasfaces aliasfaces)
- nil t nil nil
+ nil t nil 'face-name-history
(if faces (mapconcat 'symbol-name faces ","))))
;; Canonicalize the output.
(output
@@ -1227,7 +1235,7 @@
this regular expression. When called interactively with a prefix
arg, prompt for a regular expression."
(interactive (list (and current-prefix-arg
- (read-string "List faces matching regexp: "))))
+ (read-regexp "List faces matching regexp"))))
(let ((all-faces (zerop (length regexp)))
(frame (selected-frame))
(max-length 0)
- [Emacs-diffs] Changes to emacs/lisp/faces.el,v, (continued)
- [Emacs-diffs] Changes to emacs/lisp/faces.el,v, Kenichi Handa, 2008/06/12
- [Emacs-diffs] Changes to emacs/lisp/faces.el,v, Kenichi Handa, 2008/06/12
- [Emacs-diffs] Changes to emacs/lisp/faces.el,v, Kenichi Handa, 2008/06/12
- [Emacs-diffs] Changes to emacs/lisp/faces.el,v, Stefan Monnier, 2008/06/18
- [Emacs-diffs] Changes to emacs/lisp/faces.el,v, Stefan Monnier, 2008/06/18
- [Emacs-diffs] Changes to emacs/lisp/faces.el,v, Chong Yidong, 2008/06/21
- [Emacs-diffs] Changes to emacs/lisp/faces.el,v, Chong Yidong, 2008/06/24
- [Emacs-diffs] Changes to emacs/lisp/faces.el,v, Andreas Schwab, 2008/06/24
- [Emacs-diffs] Changes to emacs/lisp/faces.el,v, Chong Yidong, 2008/06/25
- [Emacs-diffs] Changes to emacs/lisp/faces.el,v, Chong Yidong, 2008/06/28
- [Emacs-diffs] Changes to emacs/lisp/faces.el,v,
Juri Linkov <=