GNU bug report logs - #13441
24.3.50; doc of `goto-char'

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Mon, 14 Jan 2013 22:24:01 UTC

Severity: minor

Found in version 24.3.50

Done: "Drew Adams" <drew.adams <at> oracle.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13441 in the body.
You can then email your comments to 13441 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13441; Package emacs. (Mon, 14 Jan 2013 22:24:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 14 Jan 2013 22:24:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.3.50; doc of `goto-char'
Date: Mon, 14 Jan 2013 14:23:09 -0800
I don't see where it does this in the code, but it sure seems like
`goto-char' recenters the window around the target position.  This is
part of what the command does, and should be mentioned in its doc.  It
is not mentioned in either the doc string or the Elisp manual.
 
E.g. In a large buffer with many occurrences of some word (e.g. "the"),
move down a few screenfuls from bob and then position a line with the
word near the top of the window.  Remember the position of the first
char of the word.
 
Now page down a few screenfuls, then use `goto-char' to move back to the
remembered position.  Although it was previously near the window top it
will now be in the middle of the window.
 
Or do this: C-s the C-s C-s ...
 
to visit other "the" occurrences, then quit Isearch with C-g.  That
takes you back to the starting position, but it is now recentered in the
window, instead of being near the top, as it was.
 
 
 
In GNU Emacs 24.3.50.1 (i386-mingw-nt5.1.2600)
 of 2012-12-31 on ODIEONE
Bzr revision: 111388 rudalics <at> gmx.at-20121231113513-subz2dazg6yjukzh
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.7) --no-opt --enable-checking --cflags
 -IC:/Devel/emacs/build/include --ldflags -LC:/Devel/emacs/build/lib'
 





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13441; Package emacs. (Tue, 15 Jan 2013 03:49:01 GMT) Full text and rfc822 format available.

Message #8 received at 13441 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 13441 <at> debbugs.gnu.org
Subject: Re: bug#13441: 24.3.50; doc of `goto-char'
Date: Tue, 15 Jan 2013 05:47:49 +0200
> From: "Drew Adams" <drew.adams <at> oracle.com>
> Date: Mon, 14 Jan 2013 14:23:09 -0800
> 
> I don't see where it does this in the code, but it sure seems like
> `goto-char' recenters the window around the target position.  This is
> part of what the command does, and should be mentioned in its doc.  It
> is not mentioned in either the doc string or the Elisp manual.

It is not part of what the command does.  It is part of normal Emacs
display, whereby, if point moves outside the displayed portion of the
buffer, Emacs brings point into view by (by default) centering point
in the window.  Here "by default" means "unless you customized one of
the scroll-* variables".

The window centering is described in "Textual Scrolling" and in the
Emacs manual under "Auto Scrolling".




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13441; Package emacs. (Tue, 15 Jan 2013 15:12:02 GMT) Full text and rfc822 format available.

Message #11 received at 13441 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Eli Zaretskii'" <eliz <at> gnu.org>
Cc: 13441 <at> debbugs.gnu.org
Subject: RE: bug#13441: 24.3.50; doc of `goto-char'
Date: Tue, 15 Jan 2013 07:10:34 -0800
> It is not part of what the command does.  It is part of normal Emacs
> display, whereby, if point moves outside the displayed portion of the
> buffer, Emacs brings point into view by (by default) centering point
> in the window.

Right, forgot.  Thanks, I closed the bug.





bug closed, send any further explanations to 13441 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com> Request was from "Drew Adams" <drew.adams <at> oracle.com> to control <at> debbugs.gnu.org. (Tue, 15 Jan 2013 15:12:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 13 Feb 2013 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 181 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.