* `save-excursion' apparently fails when wrapped-around `Info-goto-node'
@ 2004-12-10 21:16 Jonathan LF King
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan LF King @ 2004-12-10 21:16 UTC (permalink / raw)
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
<squash@math.ufl.edu>, <http://www.math.ufl.edu/~squash/>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: `save-excursion' apparently fails when wrapped-around `Info-goto-node'
[not found] <mailman.5067.1102714014.27204.bug-gnu-emacs@gnu.org>
@ 2004-12-10 22:43 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2004-12-10 22:43 UTC (permalink / raw)
Jonathan LF King wrote:
> When executed from some buffer "B", the form
>
> (save-excursion (Info-goto-node "(texinfo)"))
>
> does not leave you in "B".
It works if you also use save-window-excursion.
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-10 22:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-10 21:16 `save-excursion' apparently fails when wrapped-around `Info-goto-node' Jonathan LF King
[not found] <mailman.5067.1102714014.27204.bug-gnu-emacs@gnu.org>
2004-12-10 22:43 ` Kevin Rodgers
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).