From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#12253: Restore window start position Date: Wed, 22 Aug 2012 01:17:05 +0300 Organization: JURTA Message-ID: <878vd7vqji.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1345587771 2882 80.91.229.3 (21 Aug 2012 22:22:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2012 22:22:51 +0000 (UTC) To: 12253@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 22 00:22:51 2012 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 1T3wqZ-0006dF-JN for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Aug 2012 00:22:51 +0200 Original-Received: from localhost ([::1]:39844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3wqY-0006H2-27 for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Aug 2012 18:22:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3wqQ-0006Gs-D0 for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 18:22:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3wqP-0003Ct-DN for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 18:22:42 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3wqP-0003Cj-AN for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 18:22:41 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T3wqk-0008VP-3a for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 18:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Aug 2012 22:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12253 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134558775632663 (code B ref -1); Tue, 21 Aug 2012 22:23:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Aug 2012 22:22:36 +0000 Original-Received: from localhost ([127.0.0.1]:42088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3wqK-0008Um-IA for submit@debbugs.gnu.org; Tue, 21 Aug 2012 18:22:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47183) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3wqH-0008Ud-RZ for submit@debbugs.gnu.org; Tue, 21 Aug 2012 18:22:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3wpv-00036n-Sz for submit@debbugs.gnu.org; Tue, 21 Aug 2012 18:22:12 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:48447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3wpv-00036i-Pi for submit@debbugs.gnu.org; Tue, 21 Aug 2012 18:22:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3wpu-0005l7-MX for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 18:22:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3wpt-00036B-R4 for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 18:22:10 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:35875 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3wpt-000360-LJ for bug-gnu-emacs@gnu.org; Tue, 21 Aug 2012 18:22:09 -0400 Original-Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id C7A20451CBF8 for ; Tue, 21 Aug 2012 15:22:07 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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 (newer, 2) 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:63358 Archived-At: This is a request for improvement initiated in bug#12230 and continued here in a new report. The request is to restore the original window start position when returning back to the previous node. Martin writes in bug#12230: >> + (set-window-start (selected-window) (nth 3 hist)))))) > [...] >> + (set-window-start (selected-window) ostart))) > [...] >> + (set-window-start (selected-window) ostart))) > > Are you sure you want to force start positions here? The first change in `Info-find-node-2' is needed to avoid recentering when the target Info node does not exist and the reader stays in the same node when the error message is reported in the echo area as "No such node or anchor". (What is interesting here is that this change is needed only when the link leads to another Info file. But when the link leads to another node of the same Info manual, this change is not needed, because the window position stays the same.) The second change in `Info-history-back' and in `Info-history-forward' is to keep the original window positions while navigating through the Info history backward and forward. I think this has the same importance as keeping the original window positions while navigating buffers with `next-buffer' and `previous-buffer'.