From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#13441: 24.3.50; doc of `goto-char' Date: Mon, 14 Jan 2013 14:23:09 -0800 Message-ID: <6D342738E4964535BBDF4B379109AFE2@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358202220 12786 80.91.229.3 (14 Jan 2013 22:23:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2013 22:23:40 +0000 (UTC) To: 13441@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 14 23:23:58 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TusRh-0000ly-KB for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jan 2013 23:23:57 +0100 Original-Received: from localhost ([::1]:50958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TusRR-0006dn-Bh for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Jan 2013 17:23:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TusRO-0006dY-FJ for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2013 17:23:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TusRM-00016F-5p for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2013 17:23:38 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TusRM-00016B-2U for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2013 17:23:36 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TusRl-00076x-RM for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2013 17:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Jan 2013 22:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13441 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.135820222527310 (code B ref -1); Mon, 14 Jan 2013 22:24:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jan 2013 22:23:45 +0000 Original-Received: from localhost ([127.0.0.1]:60389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TusRV-00076Q-1f for submit@debbugs.gnu.org; Mon, 14 Jan 2013 17:23:45 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34168) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TusRS-00076J-Pi for submit@debbugs.gnu.org; Mon, 14 Jan 2013 17:23:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TusR1-00013y-Lw for submit@debbugs.gnu.org; Mon, 14 Jan 2013 17:23:16 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:60534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TusR1-00013u-Iq for submit@debbugs.gnu.org; Mon, 14 Jan 2013 17:23:15 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TusR0-0006bf-Lr for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2013 17:23:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TusQz-00013e-JM for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2013 17:23:14 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:45402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TusQz-00013T-D5 for bug-gnu-emacs@gnu.org; Mon, 14 Jan 2013 17:23:13 -0500 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id r0EMNBDm002146 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 14 Jan 2013 22:23:12 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r0EMNAcG000734 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 14 Jan 2013 22:23:11 GMT Original-Received: from abhmt110.oracle.com (abhmt110.oracle.com [141.146.116.62]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r0EMNAiZ022399 for ; Mon, 14 Jan 2013 16:23:10 -0600 Original-Received: from dradamslap1 (/130.35.178.8) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 14 Jan 2013 14:23:10 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac3ypbtsvHW3YCLlR/SCcQ0iNKFmqQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69775 Archived-At: 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'