emacs-devel
[Top][All Lists]
Advanced

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

Re: Jumping to C source from *Help*


From: Juri Linkov
Subject: Re: Jumping to C source from *Help*
Date: Thu, 08 Apr 2004 09:19:57 +0300
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:
> Thanks.  I've installed my patch (with slight modifications)
> and it now deals with the above (though in elisp rather than in C).
>
> Please try it,

This is a very good thing!  (and I like to repeat it :-)

But it reminded me another problem with the *Help* buffer: it doesn't
have a final newline.  This is especially annoying when a large *Help*
buffer with a long last line is scrolled horizontally to the left when
point reaches the end of the buffer.  For example, this problem can be
observed in the *Faces* buffer (invoked by the `list-faces-display').
Adding a final newline solves this problem.

diff -u -r1.24 help-mode.el
--- emacs/lisp/help-mode.el     7 Apr 2004 19:35:05 -0000       1.24
+++ emacs/lisp/help-mode.el     8 Apr 2004 05:41:35 -0000
@@ -432,11 +434,13 @@
        (goto-char (point-max))
        (while (and (not (bobp)) (bolp))
          (delete-char -1))
+        (insert "\n")
         ;; Make a back-reference in this buffer if appropriate.
         (when help-xref-stack
-         (insert "\n\n")
+         (insert "\n")
          (help-insert-xref-button help-back-label 'help-back
-                                  (current-buffer))))
+                                  (current-buffer))
+          (insert "\n")))
       ;; View mode steals RET from us.
       (set (make-local-variable 'minor-mode-overriding-map-alist)
            (list (cons 'view-mode help-xref-override-view-map)))

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

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