changeset 81490:802dc93432c1

(help-make-xrefs): Adjust position of new forward button.
author Martin Rudalics <rudalics@gmx.at>
date Wed, 20 Jun 2007 07:58:30 +0000
parents 713aece810cd
children daa81e1a5cde
files lisp/help-mode.el
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help-mode.el	Wed Jun 20 07:55:41 2007 +0000
+++ b/lisp/help-mode.el	Wed Jun 20 07:58:30 2007 +0000
@@ -500,16 +500,19 @@
 	(while (and (not (bobp)) (bolp))
 	  (delete-char -1))
         (insert "\n")
+	(when (or help-xref-stack help-xref-forward-stack)
+          (insert "\n"))
         ;; Make a back-reference in this buffer if appropriate.
         (when help-xref-stack
-	  (insert "\n")
 	  (help-insert-xref-button help-back-label 'help-back
-				   (current-buffer))
-          (insert "\t"))
+				   (current-buffer)))
         ;; Make a forward-reference in this buffer if appropriate.
         (when help-xref-forward-stack
+	  (when help-xref-stack
+	    (insert "\t"))
 	  (help-insert-xref-button help-forward-label 'help-forward
-				   (current-buffer))
+				   (current-buffer)))
+	(when (or help-xref-stack help-xref-forward-stack)
           (insert "\n")))
       ;; View mode steals RET from us.
       (set (make-local-variable 'minor-mode-overriding-map-alist)