emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master dd902c43f3: Fix spacing in *Help* buttons


From: Lars Ingebrigtsen
Subject: master dd902c43f3: Fix spacing in *Help* buttons
Date: Fri, 22 Jul 2022 16:56:44 -0400 (EDT)

branch: master
commit dd902c43f3a30baf614986b8126eb30f1e8c6163
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix spacing in *Help* buttons
    
    * lisp/help-mode.el (help-xref--navigation-buttons): Fix spacing
    before single [forward] button.
---
 lisp/help-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index d8d76114f5..f49d20270c 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -678,9 +678,10 @@ that."
 
 (defun help-xref--navigation-buttons ()
   (let ((inhibit-read-only t))
+    (when (or help-xref-stack help-xref-forward-stack)
+      (ensure-empty-lines 1))
     ;; Make a back-reference in this buffer if appropriate.
     (when help-xref-stack
-      (ensure-empty-lines 1)
       (help-insert-xref-button help-back-label 'help-back
                                (current-buffer)))
     ;; Make a forward-reference in this buffer if appropriate.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]