bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

`save-excursion' apparently fails when wrapped-around `Info-goto-node'


From: Jonathan LF King
Subject: `save-excursion' apparently fails when wrapped-around `Info-goto-node'
Date: Fri, 10 Dec 2004 16:16:02 -0500 (EST)

This bug report will be sent to the Free Software Foundation,
...
Your bug report will be posted to the address@hidden
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
<address@hidden>,           <http://www.math.ufl.edu/~squash/>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]