aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-01 17:06:34 +0000
committerRichard M. Stallman1994-07-01 17:06:34 +0000
commit23b04eac8c6916d8fd1e2c67810faef6dba1dbb5 (patch)
tree05151cc12e9d98a922af022fa954f10f57b3730c
parent07ac942ac659063e3d95e2079e4d677b8474377e (diff)
downloademacs-23b04eac8c6916d8fd1e2c67810faef6dba1dbb5.tar.gz
emacs-23b04eac8c6916d8fd1e2c67810faef6dba1dbb5.zip
(list-faces-display): Line up multiple lines in sample.
-rw-r--r--lisp/faces.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index ff208f8352f..a387a2222e4 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -729,7 +729,13 @@ selected frame."
729 (let ((beg (point))) 729 (let ((beg (point)))
730 (insert list-faces-sample-text) 730 (insert list-faces-sample-text)
731 (insert "\n") 731 (insert "\n")
732 (put-text-property beg (1- (point)) 'face face))) 732 (put-text-property beg (1- (point)) 'face face)
733 ;; If the sample text has multiple lines, line up all of them.
734 (goto-char beg)
735 (forward-line 1)
736 (while (not (eobp))
737 (insert " ")
738 (forward-line 1))))
733 (goto-char (point-min)))) 739 (goto-char (point-min))))
734 ;; If the *Faces* buffer appears in a different frame, 740 ;; If the *Faces* buffer appears in a different frame,
735 ;; copy all the face definitions from FRAME, 741 ;; copy all the face definitions from FRAME,