From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: squash@math.ufl.edu (Jonathan LF King) Newsgroups: gmane.emacs.bugs Subject: `save-excursion' apparently fails when wrapped-around `Info-goto-node' Date: Fri, 10 Dec 2004 16:16:02 -0500 (EST) Message-ID: <200412102116.iBALG2G00429@creek.math.ufl.edu> Reply-To: "Prof. Jonathan LF King" NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1102713405 11893 80.91.229.6 (10 Dec 2004 21:16:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2004 21:16:45 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 22:16:39 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ccs7z-0005No-00 for ; Fri, 10 Dec 2004 22:16:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CcsHw-0001Jc-QW for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Dec 2004 16:26:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CcsHr-0001I1-92 for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2004 16:26:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CcsHq-0001He-E4 for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2004 16:26:50 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CcsHq-0001HJ-7a for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2004 16:26:50 -0500 Original-Received: from [128.227.168.254] (helo=math.ufl.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ccs7Q-0005XW-QS for bug-gnu-emacs@gnu.org; Fri, 10 Dec 2004 16:16:05 -0500 X-Envelope-From: squash@creek.math.ufl.edu X-Envelope-To: Original-Received: from creek.math.ufl.edu (creek.math.ufl.edu [128.227.168.252]) by math.ufl.edu (8.11.7p1+Sun/8.11.7/clas1.22) with ESMTP id iBALG3r01289 for ; Fri, 10 Dec 2004 16:16:03 -0500 (EST) Original-Received: (from squash@localhost) by creek.math.ufl.edu (8.11.7p1+Sun/8.11.7/clas1.10) id iBALG2G00429; Fri, 10 Dec 2004 16:16:02 -0500 (EST) Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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: main.gmane.org gmane.emacs.bugs:10015 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:10015 This bug report will be sent to the Free Software Foundation, ... Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.3.1 (i686-pc-Linux-gnu, Motif Version 2.1.30) of 2004-12-06 on pan configured using `configure --prefix=/usr --host=i686-pc-Linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-x --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-x-toolkit=motif' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C 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 locale-coding-system: nil default-enable-multibyte-characters: nil Please describe exactly what actions triggered the bug and the precise symptoms of the bug: /-------------------------------------------------------------\ When executed from some buffer "B", the form (save-excursion (Info-goto-node "(texinfo)")) does not leave you in "B". ==== BTWay, I use this form to detect the existence of a node: (defun* find-in-info-string (infonode &optional (str "")) "jk:10Dec2004:: In INFONODE, finds string STR. Usage: (fiis \"(texinfo)Node Line Requirements\" \"Unfor\") STR defaults to the empty string, which finds the top of the file. This does NOT take a regexp." (if (save-excursion (ignore-errors (Info-goto-node infonode))) (progn (Info-goto-node infonode) (goto-char (point-min)) (search-forward str nil t) (recenter 1) ) ;;ELSE (beep) (message "jk: Can't find Info node `%s'" infonode) ) ) ;; (defaliasq fiis 'find-in-info-string) \_____________________________________________________________/ -- Prof. Jonathan LF King Mathematics dept, Univ. of Florida ,