Article View: gnu.emacs.bug
Article #100024Two bugs (?) related to revert-buffer function (final version)
From: Shinichirou Sugou
Date: Fri, 09 Mar 1990 13:32
Date: Fri, 09 Mar 1990 13:32
30 lines
1692 bytes
1692 bytes
I'm sorry for disturbing you so much, but I've found the solution about that
problem.
goto-char function was not wrong. There was no bug in it at all. It updates
the point of buffer well as EmacsLisp manual says.
Well, what was wrong?
What decides the cursor position of Emacs window is NOT the point of buffer
but the point of window! And, I didn't update the point of window.
The following program runs well without problem.
(defun test ()
(set-buffer (get-buffer "bottom"))
(goto-char (point-max))
(if (get-buffer-window (get-buffer "bottom")) ; "bottom" is displayed now
(set-window-point (get-buffer "bottom") (point))))
This program updates 'window point' too if necessary.
CAUTION: (1) Reply-command in the mail system may NOT generate my address
correctly. Please use the following address instead.
shin%sgtp.apple.juice.or.jp@uunet.uu.net
(2) I have no relation to Apple Computer Inc. :-)
---
S.Sugou
Technical Details
Message-ID:
<9003091332.AA14635@sgtp.apple.juice.or.jp>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!tut.cis.ohio-state.edu!sgtp.apple.juice.or.jp!shinShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,5633eb7ac1d67904,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-03-09 05:32:22 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!tut.cis.ohio-state.edu!sgtp.apple.juice.or.jp!shin From: shin@sgtp.apple.juice.or.jp (Shinichirou Sugou) Newsgroups: gnu.emacs.bug Subject: Two bugs (?) related to revert-buffer function (final version) Message-ID: <9003091332.AA14635@sgtp.apple.juice.or.jp> Date: 9 Mar 90 13:32:22 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 30 Posted: Fri Mar 9 14:32:22 1990