summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-07-19 16:13:57 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-07-19 16:13:57 +0200
commit6336c18e5c9270d745e42b516c35ef0816f67f9b (patch)
treeb7b27f45ee09ecba1024cf7c8808cb3c6d310237 /lisp/emacs-lisp
parent620e35f09fd5c2cc08792bb88de57047e29620ad (diff)
downloademacs-6336c18e5c9270d745e42b516c35ef0816f67f9b.tar.gz
emacs-6336c18e5c9270d745e42b516c35ef0816f67f9b.tar.bz2
emacs-6336c18e5c9270d745e42b516c35ef0816f67f9b.zip
Use make-separator-line in shortdoc
* lisp/simple.el (separator-line): Tweak definition to not be so overwhelming. * lisp/emacs-lisp/shortdoc.el (shortdoc-separator): Removed. (shortdoc-display-group): Use make-separator-line.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/shortdoc.el10
1 files changed, 1 insertions, 9 deletions
diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el
index 4beba1dbed1..22439f4c36c 100644
--- a/lisp/emacs-lisp/shortdoc.el
+++ b/lisp/emacs-lisp/shortdoc.el
@@ -32,14 +32,6 @@
"Short documentation."
:group 'lisp)
-(defface shortdoc-separator
- '((((class color) (background dark))
- :height 0.1 :background "#505050" :extend t)
- (((class color) (background light))
- :height 0.1 :background "#a0a0a0" :extend t)
- (t :height 0.1 :inverse-video t :extend t))
- "Face used to separate sections.")
-
(defface shortdoc-heading
'((t :inherit variable-pitch :height 1.3 :weight bold))
"Face used for a heading."
@@ -1174,7 +1166,7 @@ If FUNCTION is non-nil, place point on the entry for FUNCTION (if any)."
;; There may be functions not yet defined in the data.
((fboundp (car data))
(when prev
- (insert (propertize "\n" 'face 'shortdoc-separator)))
+ (insert (make-separator-line)))
(setq prev t)
(shortdoc--display-function data))))
(cdr (assq group shortdoc--groups))))