From: "Drew Adams" <drew.adams@oracle.com>
To: 13441@debbugs.gnu.org
Subject: bug#13441: 24.3.50; doc of `goto-char'
Date: Mon, 14 Jan 2013 14:23:09 -0800 [thread overview]
Message-ID: <6D342738E4964535BBDF4B379109AFE2@us.oracle.com> (raw)
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@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'
next reply other threads:[~2013-01-14 22:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-14 22:23 Drew Adams [this message]
2013-01-15 3:47 ` bug#13441: 24.3.50; doc of `goto-char' Eli Zaretskii
2013-01-15 15:10 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6D342738E4964535BBDF4B379109AFE2@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=13441@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.