From unknown Sun Aug 10 16:50:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5652: 23.1.92; Info-index puts cursor at wrong position Resent-From: enami tsugutomo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Feb 2010 01:35:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5652 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: To: 5652@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.126714809917115 (code B ref -1); Fri, 26 Feb 2010 01:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Feb 2010 01:34:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nkp6Y-0004Ry-KM for submit@debbugs.gnu.org; Thu, 25 Feb 2010 20:34:59 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkoyM-0004Js-CT for submit@debbugs.gnu.org; Thu, 25 Feb 2010 20:26:36 -0500 Received: from mx10.gnu.org ([199.232.76.166]:55314) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkoyI-0002k5-Pk for submit@debbugs.gnu.org; Thu, 25 Feb 2010 20:26:26 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NkoyF-0000mN-ML for submit@debbugs.gnu.org; Thu, 25 Feb 2010 20:26:26 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY autolearn=ham version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:37210) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NkoyF-0000mJ-Cb for submit@debbugs.gnu.org; Thu, 25 Feb 2010 20:26:23 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkoyE-0001Qn-OI for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2010 20:26:22 -0500 Received: from [140.186.70.92] (port=47160 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkoyC-0001Qf-IL for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2010 20:26:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NkoyB-00089o-1h for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2010 20:26:20 -0500 Received: from ms4.sony.co.jp ([211.125.136.198]:40085) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkoyA-00089E-Jh for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2010 20:26:19 -0500 Received: from mta8.sony.co.jp (mta8.Sony.CO.JP [137.153.71.15]) by ms4.sony.co.jp (R8/Sony) with ESMTP id o1Q1Q7Ei003237 for ; Fri, 26 Feb 2010 10:26:07 +0900 (JST) Received: from mta8.sony.co.jp (localhost [127.0.0.1]) by mta8.sony.co.jp (R8/Sony) with ESMTP id o1Q1Q7GW007283 for ; Fri, 26 Feb 2010 10:26:07 +0900 (JST) Received: from smail3.sm.sony.co.jp (smail3.sm.sony.co.jp [43.15.151.2]) by mta8.sony.co.jp (R8/Sony) with ESMTP id o1Q1Q6LK007279 for ; Fri, 26 Feb 2010 10:26:07 +0900 (JST) Received: from email.sm.sony.co.jp (email.sm.sony.co.jp [43.15.151.3]) by smail3.sm.sony.co.jp (8.11.6p3/8.11.6) with ESMTP id o1Q1rFk17221 for ; Fri, 26 Feb 2010 10:53:15 +0900 (JST) Received: from memory-leak.sm.sony.co.jp (memory-leak.sm.sony.co.jp [43.15.152.83]) by email.sm.sony.co.jp (8.13.3/8.13.3) with ESMTP id o1Q1Q72C025720 for ; Fri, 26 Feb 2010 10:26:07 +0900 (JST) Received: from memory-leak.sm.sony.co.jp (localhost [127.0.0.1]) by memory-leak.sm.sony.co.jp (8.13.5.20060614/8.13.3) with ESMTP id o1Q1Q69Z009572 for ; Fri, 26 Feb 2010 10:26:06 +0900 (JST) Received: (from enami@localhost) by memory-leak.sm.sony.co.jp (8.13.5.20060614/8.13.3) id o1Q1Q6uq008127; Fri, 26 Feb 2010 10:26:06 +0900 (JST) Date: Fri, 26 Feb 2010 10:26:06 +0900 (JST) Message-Id: <201002260126.o1Q1Q6uq008127@memory-leak.sm.sony.co.jp> X-Authentication-Warning: memory-leak.sm.sony.co.jp: enami set sender to tsugutomo.enami@jp.sony.com using -f From: enami tsugutomo X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Thu, 25 Feb 2010 20:34:57 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Info-index puts cursor at wrong position. The key sequence in `Recent input' below is the example when `save-excursion' is searched on emacs lisp refernec manual. Ideally (and acutually at least emacs 20.7 does) it puts cursor at the line here: -- Special Form: save-excursion body... .. but instead it puts 2 lines below. I guess Info-index-next should be changed as follows: === modified file 'lisp/info.el' *** lisp/info.el 2010-02-10 20:04:51 +0000 --- lisp/info.el 2010-02-26 00:46:14 +0000 *************** *** 3062,3068 **** num (1- num))) (Info-goto-node (nth 1 (car Info-index-alternatives))) (if (> (nth 3 (car Info-index-alternatives)) 0) ! (forward-line (1- (nth 3 (car Info-index-alternatives)))) (forward-line 3) ; don't search in headers (let ((name (car (car Info-index-alternatives)))) (Info-find-index-name name))) --- 3062,3069 ---- num (1- num))) (Info-goto-node (nth 1 (car Info-index-alternatives))) (if (> (nth 3 (car Info-index-alternatives)) 0) ! (forward-line (- (nth 3 (car Info-index-alternatives)) ! (line-number-at-pos))) (forward-line 3) ; don't search in headers (let ((name (car (car Info-index-alternatives)))) (Info-find-index-name name))) ... when following change was done. ------------------------------------------------------------ revno: 91515 committer: Juri Linkov timestamp: Sat 2008-10-18 23:04:38 +0000 message: (Info-find-node-2): Put initial point below the header line and breadcrumbs line. ------------------------------------------------------------ enami. In GNU Emacs 23.1.92.1 (x86_64--netbsd) of 2010-02-24 on rplaca.sm.sony.co.jp configured using `configure 'x86_64--netbsd' '--with-x=no' 'build_alias=x86_64--netbsd' 'host_alias=x86_64--netbsd' 'target_alias=x86_64--netbsd'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Info Minor modes in effect: menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC x i n f o RET C-s e l i s p C-a m RET i s a v e - e x c u r s i o n RET ESC x r e p o r TAB RET Recent messages: ("emacs") For information about GNU Emacs and the GNU system, type C-h C-a. Source file `/home/enami/src/emacs/lisp/info.el' newer than byte-compiled file Composing main Info directory...done Mark saved where search started Found `save-excursion' in Index. (Only match) Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug multi-isearch info tool-bar easymenu ediff-hook vc-hooks lisp-float-type lisp-mode register page menu-bar rfn-eshadow timer jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From unknown Sun Aug 10 16:50:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5652: 23.1.92; Info-index puts cursor at wrong position Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Feb 2010 09:21:03 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5652 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: To: enami tsugutomo Cc: 5652@debbugs.gnu.org Received: via spool by 5652-submit@debbugs.gnu.org id=B5652.12671760387528 (code B ref 5652); Fri, 26 Feb 2010 09:21:03 +0000 Received: (at 5652) by debbugs.gnu.org; 26 Feb 2010 09:20:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkwNC-0001xL-Bd for submit@debbugs.gnu.org; Fri, 26 Feb 2010 04:20:38 -0500 Received: from smtp-out4.starman.ee ([85.253.0.6] helo=mx2.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkwMx-0001wk-GC for 5652@debbugs.gnu.org; Fri, 26 Feb 2010 04:20:27 -0500 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (82.131.30.33.cable.starman.ee [82.131.30.33]) by mx2.starman.ee (Postfix) with ESMTP id 636DA3F405B; Fri, 26 Feb 2010 11:20:13 +0200 (EET) From: Juri Linkov Organization: JURTA References: <201002260126.o1Q1Q6uq008127@memory-leak.sm.sony.co.jp> Date: Fri, 26 Feb 2010 11:08:27 +0200 In-Reply-To: <201002260126.o1Q1Q6uq008127@memory-leak.sm.sony.co.jp> (enami tsugutomo's message of "Fri, 26 Feb 2010 10:26:06 +0900 (JST)") Message-ID: <871vg89yve.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) > Info-index puts cursor at wrong position. The key sequence in `Recent > input' below is the example when `save-excursion' is searched on emacs > lisp refernec manual. Ideally (and acutually at least emacs 20.7 does) > it puts cursor at the line here: > > -- Special Form: save-excursion body... > > .. but instead it puts 2 lines below. > > I guess Info-index-next should be changed as follows: Thanks for the bug report. I think your patch is not right. When you look at the raw Info file in info/elisp-11, you can see: * save-excursion: Excursions. (line 20) ======== When you turn breadcrumbs off e.g. by (setq Info-breadcrumbs-depth 0), visit (info "(elisp) Excursions") and go to the line 20, you can see that it is the following line: The `save-excursion' special form saves the identity of the current So currently the incorrect offset is not 2 lines, but only 1 line. When you see that the line 20 is "-- Special Form: save-excursion body..." it is only when breadcrumbs insert a line directly to the Info buffer and thus breaks line numbers. We have more troubles with breadcrumbs and hope to fix them by displaying breadcrumbs in the header window. Now it seems the right fix is to just decrement this offset by 1: === modified file 'lisp/info.el' --- lisp/info.el 2010-02-11 20:57:10 +0000 +++ lisp/info.el 2010-02-26 09:07:27 +0000 @@ -3090,7 +3090,7 @@ (defun Info-index-next (num) num (1- num))) (Info-goto-node (nth 1 (car Info-index-alternatives))) (if (> (nth 3 (car Info-index-alternatives)) 0) - (forward-line (1- (nth 3 (car Info-index-alternatives)))) + (forward-line (- (nth 3 (car Info-index-alternatives)) 2)) (forward-line 3) ; don't search in headers (let ((name (car (car Info-index-alternatives)))) (Info-find-index-name name))) BTW, the brz history seems corrupted. Trying to see the reason why this line in `Info-index-next' was changed last time: (forward-line (1- (nth 3 (car Info-index-alternatives)))) I typed `C-x v g' (vc-annotate) in info.el, and it displays: 49780.1.32 henrik. | (forward-line (1- (nth 3 (car Info-index-alternatives)))) Typing `l' on this line displays the *vc-change-log* buffer: ------------------------------------------------------------ revno: 49780.1.32 committer: Henrik Enberg timestamp: Mon 2006-01-16 00:03:54 +0000 message: sync with trunk Does anyone know is it possible to see the original log instead of this merge commit? -- Juri Linkov http://www.jurta.org/emacs/ From unknown Sun Aug 10 16:50:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5652: 23.1.92; Info-index puts cursor at wrong position Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Feb 2010 09:57:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5652 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: To: Juri Linkov Cc: enami tsugutomo , 5652@debbugs.gnu.org Received: via spool by 5652-submit@debbugs.gnu.org id=B5652.12671781929464 (code B ref 5652); Fri, 26 Feb 2010 09:57:01 +0000 Received: (at 5652) by debbugs.gnu.org; 26 Feb 2010 09:56:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nkwvv-0002Sb-Nt for submit@debbugs.gnu.org; Fri, 26 Feb 2010 04:56:31 -0500 Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nkwvt-0002SR-TT for 5652@debbugs.gnu.org; Fri, 26 Feb 2010 04:56:30 -0500 Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 1552F1C00476; Fri, 26 Feb 2010 10:56:25 +0100 (CET) Received: from localhost (dynscan2.mnet-online.de [192.168.6.166]) by mail.m-online.net (Postfix) with ESMTP id CDFC0902D2; Fri, 26 Feb 2010 10:56:25 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan2.mnet-online.de [192.168.6.166]) (amavisd-new, port 10024) with ESMTP id CArO7BDLclV8; Fri, 26 Feb 2010 10:56:24 +0100 (CET) Received: from igel.home (DSL01.83.171.147.89.ip-pool.NEFkom.net [83.171.147.89]) by mail.mnet-online.de (Postfix) with ESMTP; Fri, 26 Feb 2010 10:56:24 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id 305FECA29C; Fri, 26 Feb 2010 10:56:24 +0100 (CET) From: Andreas Schwab References: <201002260126.o1Q1Q6uq008127@memory-leak.sm.sony.co.jp> <871vg89yve.fsf@mail.jurta.org> X-Yow: Yow! I just went below the poverty line! Date: Fri, 26 Feb 2010 10:56:23 +0100 In-Reply-To: <871vg89yve.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 26 Feb 2010 11:08:27 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.0 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) Juri Linkov writes: > Trying to see the reason why this line in `Info-index-next' > was changed last time: > > (forward-line (1- (nth 3 (car Info-index-alternatives)))) > > I typed `C-x v g' (vc-annotate) in info.el, and it displays: > > 49780.1.32 henrik. | (forward-line (1- (nth 3 (car Info-index-alternatives)))) Looks like a bug in bzr. With git blame it points to f4ed1f85: commit f4ed1f852b3fb7650178446ac53db773d9fd25d6 Author: Juri Linkov Date: Tue Apr 27 06:39:46 2004 +0000 Add *info*<[0-9]+> to same-window-regexps instead of same-window-buffer-names. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From unknown Sun Aug 10 16:50:55 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5652: broken bzr history Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Feb 2010 10:12:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5652 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: To: Andreas Schwab Cc: enami tsugutomo , 5652@debbugs.gnu.org Received: via spool by 5652-submit@debbugs.gnu.org id=B5652.126717908710274 (code B ref 5652); Fri, 26 Feb 2010 10:12:02 +0000 Received: (at 5652) by debbugs.gnu.org; 26 Feb 2010 10:11:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkxAM-0002ff-Eq for submit@debbugs.gnu.org; Fri, 26 Feb 2010 05:11:26 -0500 Received: from smtp-out4.starman.ee ([85.253.0.6] helo=mx2.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkxA8-0002fM-TL for 5652@debbugs.gnu.org; Fri, 26 Feb 2010 05:11:25 -0500 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (82.131.30.33.cable.starman.ee [82.131.30.33]) by mx2.starman.ee (Postfix) with ESMTP id B25123F40AF; Fri, 26 Feb 2010 12:11:02 +0200 (EET) From: Juri Linkov Organization: JURTA References: <201002260126.o1Q1Q6uq008127@memory-leak.sm.sony.co.jp> <871vg89yve.fsf@mail.jurta.org> Date: Fri, 26 Feb 2010 12:09:03 +0200 In-Reply-To: (Andreas Schwab's message of "Fri, 26 Feb 2010 10:56:23 +0100") Message-ID: <87y6ig5mww.fsf_-_@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) >> Trying to see the reason why this line in `Info-index-next' >> was changed last time: >> >> (forward-line (1- (nth 3 (car Info-index-alternatives)))) >> >> I typed `C-x v g' (vc-annotate) in info.el, and it displays: >> >> 49780.1.32 henrik. | (forward-line (1- (nth 3 (car Info-index-alternatives)))) > > Looks like a bug in bzr. With git blame it points to f4ed1f85: > > commit f4ed1f852b3fb7650178446ac53db773d9fd25d6 > Author: Juri Linkov > Date: Tue Apr 27 06:39:46 2004 +0000 Yes, I can confirm this is the correct commit. In read-only CVS I see: revision 1.393 date: 2004-04-27 09:39:46 +0300; author: jurta; state: Exp; lines: +80 -42; [...] (Info-index-next): Decrement line number. -- Juri Linkov http://www.jurta.org/emacs/ From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 26 16:35:48 2010 Received: (at control) by debbugs.gnu.org; 26 Feb 2010 21:35:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nl7qd-0004vI-3C for submit@debbugs.gnu.org; Fri, 26 Feb 2010 16:35:47 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nl7qc-0004vC-3z for control@debbugs.gnu.org; Fri, 26 Feb 2010 16:35:46 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nl7qY-0002wc-21; Fri, 26 Feb 2010 16:35:42 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19336.16045.978209.791115@fencepost.gnu.org> Date: Fri, 26 Feb 2010 16:35:41 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: yellow X-Ran: q./e{;-#Rm]R?ckWh$-:(KcPF/M)Zq}$0]pEL-?F{j67_6SEB~z,6Wu List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) close 1030 severity 5651 minor tags 5651 patch reassign 5650 emacs,erc tags 5652 patch reassign 5637 emacs,cygwin From unknown Sun Aug 10 16:50:55 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: bug-gnu-emacs@gnu.org From: bug-gnu-emacs@gnu.org (Emacs bug Tracking System) To: enami tsugutomo Subject: bug#5652 closed by Juri Linkov (bug#5652: 23.1.92; Info-index puts cursor at wrong position) Message-ID: References: <874oky4e1o.fsf_-_@mail.jurta.org> <201002260126.o1Q1Q6uq008127@memory-leak.sm.sony.co.jp> X-Emacs-PR-Message: they-closed 5652 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: patch Reply-To: 5652@debbugs.gnu.org Date: Tue, 02 Mar 2010 21:28:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1267565282-5281-1" This is a multi-part message in MIME format... ------------=_1267565282-5281-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #5652: 23.1.92; Info-index puts cursor at wrong position It has been closed by Juri Linkov . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Juri Linkov by replying to this email. --=20 5652: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5652 Emacs Bug Tracking System Contact bug-gnu-emacs@gnu.org with problems ------------=_1267565282-5281-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 5652-done) by debbugs.gnu.org; 2 Mar 2010 21:27:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmZdF-0001Me-MT for submit@debbugs.gnu.org; Tue, 02 Mar 2010 16:27:57 -0500 Received: from smtp-out3.starman.ee ([85.253.0.5] helo=mx1.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmZd1-0001M6-9q for 5652-done@debbugs.gnu.org; Tue, 02 Mar 2010 16:27:56 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (62.65.209.49.cable.starman.ee [62.65.209.49]) by mx1.starman.ee (Postfix) with ESMTP id 9159D3F4125; Tue, 2 Mar 2010 23:27:33 +0200 (EET) From: Juri Linkov To: enami tsugutomo Subject: bug#5652: 23.1.92; Info-index puts cursor at wrong position Organization: JURTA References: <201002260126.o1Q1Q6uq008127@memory-leak.sm.sony.co.jp> <871vg89yve.fsf@mail.jurta.org> <87y6ig5mww.fsf_-_@mail.jurta.org> Date: Tue, 02 Mar 2010 23:19:31 +0200 In-Reply-To: <87y6ig5mww.fsf_-_@mail.jurta.org> (Juri Linkov's message of "Fri, 26 Feb 2010 12:09:03 +0200") Message-ID: <874oky4e1o.fsf_-_@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.93 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 5652-done Cc: 5652-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) > revision 1.393 > date: 2004-04-27 09:39:46 +0300; author: jurta; state: Exp; lines: +80 -42; > [...] > (Info-index-next): Decrement line number. This log shows that my last patch is correct. The 2004-04-27 change decremented line number by 1 to put point to the same line as designated by the index line numbers. And after the 2008-10-18 change that moves point one line down, it's necessary to compensate this and to decrement by 2. Patch installed. -- Juri Linkov http://www.jurta.org/emacs/ ------------=_1267565282-5281-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Feb 2010 01:34:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nkp6Y-0004Ry-KM for submit@debbugs.gnu.org; Thu, 25 Feb 2010 20:34:59 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkoyM-0004Js-CT for submit@debbugs.gnu.org; Thu, 25 Feb 2010 20:26:36 -0500 Received: from mx10.gnu.org ([199.232.76.166]:55314) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkoyI-0002k5-Pk for submit@debbugs.gnu.org; Thu, 25 Feb 2010 20:26:26 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NkoyF-0000mN-ML for submit@debbugs.gnu.org; Thu, 25 Feb 2010 20:26:26 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY autolearn=ham version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:37210) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NkoyF-0000mJ-Cb for submit@debbugs.gnu.org; Thu, 25 Feb 2010 20:26:23 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkoyE-0001Qn-OI for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2010 20:26:22 -0500 Received: from [140.186.70.92] (port=47160 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkoyC-0001Qf-IL for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2010 20:26:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NkoyB-00089o-1h for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2010 20:26:20 -0500 Received: from ms4.sony.co.jp ([211.125.136.198]:40085) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkoyA-00089E-Jh for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2010 20:26:19 -0500 Received: from mta8.sony.co.jp (mta8.Sony.CO.JP [137.153.71.15]) by ms4.sony.co.jp (R8/Sony) with ESMTP id o1Q1Q7Ei003237 for ; Fri, 26 Feb 2010 10:26:07 +0900 (JST) Received: from mta8.sony.co.jp (localhost [127.0.0.1]) by mta8.sony.co.jp (R8/Sony) with ESMTP id o1Q1Q7GW007283 for ; Fri, 26 Feb 2010 10:26:07 +0900 (JST) Received: from smail3.sm.sony.co.jp (smail3.sm.sony.co.jp [43.15.151.2]) by mta8.sony.co.jp (R8/Sony) with ESMTP id o1Q1Q6LK007279 for ; Fri, 26 Feb 2010 10:26:07 +0900 (JST) Received: from email.sm.sony.co.jp (email.sm.sony.co.jp [43.15.151.3]) by smail3.sm.sony.co.jp (8.11.6p3/8.11.6) with ESMTP id o1Q1rFk17221 for ; Fri, 26 Feb 2010 10:53:15 +0900 (JST) Received: from memory-leak.sm.sony.co.jp (memory-leak.sm.sony.co.jp [43.15.152.83]) by email.sm.sony.co.jp (8.13.3/8.13.3) with ESMTP id o1Q1Q72C025720 for ; Fri, 26 Feb 2010 10:26:07 +0900 (JST) Received: from memory-leak.sm.sony.co.jp (localhost [127.0.0.1]) by memory-leak.sm.sony.co.jp (8.13.5.20060614/8.13.3) with ESMTP id o1Q1Q69Z009572 for ; Fri, 26 Feb 2010 10:26:06 +0900 (JST) Received: (from enami@localhost) by memory-leak.sm.sony.co.jp (8.13.5.20060614/8.13.3) id o1Q1Q6uq008127; Fri, 26 Feb 2010 10:26:06 +0900 (JST) Date: Fri, 26 Feb 2010 10:26:06 +0900 (JST) Message-Id: <201002260126.o1Q1Q6uq008127@memory-leak.sm.sony.co.jp> X-Authentication-Warning: memory-leak.sm.sony.co.jp: enami set sender to tsugutomo.enami@jp.sony.com using -f From: enami tsugutomo To: bug-gnu-emacs@gnu.org Subject: 23.1.92; Info-index puts cursor at wrong position X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 25 Feb 2010 20:34:57 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Info-index puts cursor at wrong position. The key sequence in `Recent input' below is the example when `save-excursion' is searched on emacs lisp refernec manual. Ideally (and acutually at least emacs 20.7 does) it puts cursor at the line here: -- Special Form: save-excursion body... .. but instead it puts 2 lines below. I guess Info-index-next should be changed as follows: === modified file 'lisp/info.el' *** lisp/info.el 2010-02-10 20:04:51 +0000 --- lisp/info.el 2010-02-26 00:46:14 +0000 *************** *** 3062,3068 **** num (1- num))) (Info-goto-node (nth 1 (car Info-index-alternatives))) (if (> (nth 3 (car Info-index-alternatives)) 0) ! (forward-line (1- (nth 3 (car Info-index-alternatives)))) (forward-line 3) ; don't search in headers (let ((name (car (car Info-index-alternatives)))) (Info-find-index-name name))) --- 3062,3069 ---- num (1- num))) (Info-goto-node (nth 1 (car Info-index-alternatives))) (if (> (nth 3 (car Info-index-alternatives)) 0) ! (forward-line (- (nth 3 (car Info-index-alternatives)) ! (line-number-at-pos))) (forward-line 3) ; don't search in headers (let ((name (car (car Info-index-alternatives)))) (Info-find-index-name name))) ... when following change was done. ------------------------------------------------------------ revno: 91515 committer: Juri Linkov timestamp: Sat 2008-10-18 23:04:38 +0000 message: (Info-find-node-2): Put initial point below the header line and breadcrumbs line. ------------------------------------------------------------ enami. In GNU Emacs 23.1.92.1 (x86_64--netbsd) of 2010-02-24 on rplaca.sm.sony.co.jp configured using `configure 'x86_64--netbsd' '--with-x=no' 'build_alias=x86_64--netbsd' 'host_alias=x86_64--netbsd' 'target_alias=x86_64--netbsd'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Info Minor modes in effect: menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC x i n f o RET C-s e l i s p C-a m RET i s a v e - e x c u r s i o n RET ESC x r e p o r TAB RET Recent messages: ("emacs") For information about GNU Emacs and the GNU system, type C-h C-a. Source file `/home/enami/src/emacs/lisp/info.el' newer than byte-compiled file Composing main Info directory...done Mark saved where search started Found `save-excursion' in Index. (Only match) Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug multi-isearch info tool-bar easymenu ediff-hook vc-hooks lisp-float-type lisp-mode register page menu-bar rfn-eshadow timer jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) ------------=_1267565282-5281-1--