From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: enami tsugutomo Newsgroups: gmane.emacs.bugs Subject: bug#5652: 23.1.92; Info-index puts cursor at wrong position Date: Fri, 26 Feb 2010 10:26:06 +0900 (JST) Message-ID: <201002260126.o1Q1Q6uq008127@memory-leak.sm.sony.co.jp> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1267156522 19028 80.91.229.12 (26 Feb 2010 03:55:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Feb 2010 03:55:22 +0000 (UTC) To: 5652@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 26 04:55:16 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NkrIJ-00060i-Hf for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Feb 2010 04:55:15 +0100 Original-Received: from localhost ([127.0.0.1]:57056 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkrIJ-0005NE-2y for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2010 22:55:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkpON-0005H1-0b for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2010 20:53:23 -0500 Original-Received: from [140.186.70.92] (port=49765 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkpOL-0005Gk-23 for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2010 20:53:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NkpOK-0002dc-Bm for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2010 20:53:20 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40947) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkpOK-0002dX-8k for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2010 20:53:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nkp6c-0004SH-B6; Thu, 25 Feb 2010 20:35:02 -0500 X-Loop: bug-gnu-emacs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.126714809917115 (code B ref -1); Fri, 26 Feb 2010 01:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Feb 2010 01:34:59 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) Original-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) Original-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) Original-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) Original-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) Original-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) X-Authentication-Warning: memory-leak.sm.sony.co.jp: enami set sender to tsugutomo.enami@jp.sony.com using -f 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-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 Resent-Date: Thu, 25 Feb 2010 20:35:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Thu, 25 Feb 2010 22:55:11 -0500 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35322 Archived-At: 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)