aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2007-11-10 09:57:18 +0000
committerMartin Rudalics2007-11-10 09:57:18 +0000
commitb766be6a9b66f23f096d4149f43baeb231195545 (patch)
treec9989c8d02358520c7def6b77fc9460580b204d8
parente3d6825752eb63129b71bf4cc143af59f5cd28f3 (diff)
downloademacs-b766be6a9b66f23f096d4149f43baeb231195545.tar.gz
emacs-b766be6a9b66f23f096d4149f43baeb231195545.zip
(list-faces-display, describe-face):
Use with-help-window instead of with-output-to-temp-buffer.
-rw-r--r--lisp/faces.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index a859c2658a4..5c51f7ba823 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1194,7 +1194,7 @@ arg, prompt for a regular expression."
1194 (error "No faces matching \"%s\"" regexp)) 1194 (error "No faces matching \"%s\"" regexp))
1195 (setq max-length (1+ max-length) 1195 (setq max-length (1+ max-length)
1196 line-format (format "%%-%ds" max-length)) 1196 line-format (format "%%-%ds" max-length))
1197 (with-output-to-temp-buffer "*Faces*" 1197 (with-help-window "*Faces*"
1198 (save-excursion 1198 (save-excursion
1199 (set-buffer standard-output) 1199 (set-buffer standard-output)
1200 (setq truncate-lines t) 1200 (setq truncate-lines t)
@@ -1235,8 +1235,7 @@ arg, prompt for a regular expression."
1235 (while (not (eobp)) 1235 (while (not (eobp))
1236 (insert-char ?\s max-length) 1236 (insert-char ?\s max-length)
1237 (forward-line 1)))) 1237 (forward-line 1))))
1238 (goto-char (point-min))) 1238 (goto-char (point-min))))
1239 (print-help-return-message))
1240 ;; If the *Faces* buffer appears in a different frame, 1239 ;; If the *Faces* buffer appears in a different frame,
1241 ;; copy all the face definitions from FRAME, 1240 ;; copy all the face definitions from FRAME,
1242 ;; so that the display will reflect the frame that was selected. 1241 ;; so that the display will reflect the frame that was selected.
@@ -1281,7 +1280,7 @@ If FRAME is omitted or nil, use the selected frame."
1281 (setq face 'default)) 1280 (setq face 'default))
1282 (if (not (listp face)) 1281 (if (not (listp face))
1283 (setq face (list face))) 1282 (setq face (list face)))
1284 (with-output-to-temp-buffer (help-buffer) 1283 (with-help-window (help-buffer)
1285 (save-excursion 1284 (save-excursion
1286 (set-buffer standard-output) 1285 (set-buffer standard-output)
1287 (dolist (f face) 1286 (dolist (f face)
@@ -1328,8 +1327,7 @@ If FRAME is omitted or nil, use the selected frame."
1328 (re-search-backward ": \\([^:]+\\)" nil t) 1327 (re-search-backward ": \\([^:]+\\)" nil t)
1329 (help-xref-button 1 'help-face attr))) 1328 (help-xref-button 1 'help-face attr)))
1330 (insert "\n"))))) 1329 (insert "\n")))))
1331 (terpri))) 1330 (terpri))))))
1332 (print-help-return-message))))
1333 1331
1334 1332
1335;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1333;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;