From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Newsgroups: gmane.emacs.help Subject: Re: Disappointed by texinfo @anchor construct Date: Sun, 23 Nov 2014 05:43:22 -0800 (PST) Message-ID: <401166ed-de5c-4c4a-9b1b-1bcfa4be2be1@googlegroups.com> References: <4fa0393b-2e0b-461b-a31c-48b99bfee272@googlegroups.com> (message from Alan on Fri, 21 Nov 2014 03:39:37 -0800 (PST))> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1416750325 14487 80.91.229.3 (23 Nov 2014 13:45:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Nov 2014 13:45:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 23 14:45:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XsXTa-0002iU-Uh for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Nov 2014 14:45:19 +0100 Original-Received: from localhost ([::1]:48720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsXTa-0004vs-JP for geh-help-gnu-emacs@m.gmane.org; Sun, 23 Nov 2014 08:45:18 -0500 X-Received: by 10.68.228.164 with SMTP id sj4mr5345712pbc.8.1416750203225; Sun, 23 Nov 2014 05:43:23 -0800 (PST) X-Received: by 10.182.105.197 with SMTP id go5mr90854obb.1.1416750202917; Sun, 23 Nov 2014 05:43:22 -0800 (PST) Original-Path: usenet.stanford.edu!h15no6170606igd.0!news-out.google.com!c9ni19757igv.0!nntp.google.com!uq10no3083737igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=173.150.199.227; posting-account=czAMxQoAAAAUEojshw4CrIvcwSdulymE Original-NNTP-Posting-Host: 173.150.199.227 User-Agent: G2/1.0 Injection-Date: Sun, 23 Nov 2014 13:43:23 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:208846 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101126 Archived-At: On Saturday, November 22, 2014 5:19:28 PM UTC-6, Robert Thorpe wrote: > Alan writes: >=20 > > If I start up Emacs with no initialization file then reference > > to an anchor works properly--i.e. as described in the texinfo > > Info file. So, the problem is something that needs fixing in > > my initialization file. >=20 > You probably have some code that switches buffers in a careless way. > Something that is called frequently as a background task is setting the > current buffer to fundamental-mode then exiting without switching it > back. >=20 > You could bisect your init file. >=20 > BR, > Robert Thorpe The problem arose when I was using "man2texi" to create Perl texinfo files = from Perl man pages (I wasn't aware of "perldoc-all" at the time--see my in= itial posting). I decided to try to keep the bolding and italics seen in t= he man pages, in the info file. I implemented this by bracketing such text= with special characters, in the texinfo file. Then, in the generated info= file--when used--I had lisp code create extents and eliminate the special = characters. I did this by advising function "Info-find-node" so that my li= sp code ran after it did. I neglected to put 'save-excursion in my lisp co= de; that didn't seem to matter until I started using the @anchor construct.= Adding 'save-excursion to my lisp function solved my problem.