[Top][All Lists]
[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/
- Jumping to C source from *Help*, Stefan Monnier, 2004/04/06
- Re: Jumping to C source from *Help*, Juanma Barranquero, 2004/04/06
- Re: Jumping to C source from *Help*, Stefan Monnier, 2004/04/08
- switch-buffer to use other window if dedicated window (was: Jumping to C source from *Help*), Drew Adams, 2004/04/08
- Re: Jumping to C source from *Help*, Richard Stallman, 2004/04/09
- Re: Jumping to C source from *Help*, Kim F. Storm, 2004/04/10
- Re: Jumping to C source from *Help*, Stefan Monnier, 2004/04/11