Article View: gnu.emacs.bug
Article #100023Two bugs (?) related to revert-buffer function (2nd version)
From: Shinichirou Sugou
Date: Fri, 09 Mar 1990 07:57
Date: Fri, 09 Mar 1990 07:57
45 lines
2010 bytes
2010 bytes
There was inadequate example in the mail which I posted yesterday, sorry.
I re-explain the second problem again.
I found that the problem exists not in the revert-function but in the
goto-char function.
First, set Emacs to display two windows, say 'top' and 'bottom'. 'top' and
'bottom' window must be different each other. 'bottom' window must have some
characters in it.
Define the following program. Of course, replace "bottom" within get-buffer
function with the actual buffer name.
(defun test ()
(set-buffer (get-buffer "bottom"))
(goto-char (point-max)))
Move the cursor to the beginning of the 'bottom' window, then move it to the
'top' window.
In the 'top' window, execute (test).
After execution, move the cursor to the 'bottom' window to examine its
position.
The cursor should have moved to the end of the buffer (I think so), but it
still stays at the beginning.
Is it Emacs feature?
Is there anyway to control the cursor position of the buffer while another
buffer being 'current buffer'.
Thanks.
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:
<9003090757.AA26451@sgtp.apple.juice.or.jp>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!uupsi!njin!rutgers!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,6f6c20644c36272d,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-03-08 23:57:43 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!uupsi!njin!rutgers!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 (2nd version) Message-ID: <9003090757.AA26451@sgtp.apple.juice.or.jp> Date: 9 Mar 90 07:57:43 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 45 Posted: Fri Mar 9 08:57:43 1990