[OS X Emacs] Re: reftex configuration problem?

Thomas S. Dye tsd at tsdye.com
Tue Jul 21 11:21:51 EDT 2009


In the example, reftex is supposed to take the string "text" from the  
*.rip file and replace all instances of the string in a document's  
*.tex file(s) with some sort of indexing markup, indicated by the  
possibilities listed at the top of the *.rip file and indexed by the  
letter at the start of the line that contains "text" in the *.rip  
file.  Reftex summarizes what it intends to do when given the Ctrl-x,  
Ctrl-i command; in this example it says it will replace one instance  
of "text" with "\index{text}text".  What happens, only in Aquamacs and  
not in Carbon Emacs on the Mac or in emacs running on Gnu/Linux, is  
that more than one "replacement" is made, with the additional,  
spurious "replacements" made near the top of the file.  In the  
instance I reported below, there is one spurious replacement; this  
number is variable, however, and I have had up to three or four  
spurious replacements in Aquamacs, one following the other near the  
top of the file, as in the example below.

If this is not some kind of configuration problem (I agree with you  
that it probably is not), then the mechanism that reftex uses to keep  
track of replacement targets either relies on emacs behavior that  
Aquamacs changes, or the mechanism itself, perhaps a list of file  
names and offsets, gets hosed somewhere between reporting what it is  
going to do and actually doing it.  If this is what happens, then my  
tests and Ralf Angeli's report indicate that it is Aquamacs doing the  
hosing, rather than the underlying emacs.

I'm afraid I can't suggest anything in the way of a fix.  I read a  
couple of Paul Graham's Lisp books shortly after they were published  
when I was programming in a dialect, now defunct, called Lisp-Stat,  
but my efforts there were fairly crude, far short of the skill level  
needed to contribute to efforts along the lines of emacs, reftex, and  
Aquamacs, which are all terrific (and complex) pieces of software.

All the best,
Tom

Thomas S. Dye, Ph.D.
T. S. Dye & Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.com


On Jul 20, 2009, at 8:05 PM, David Reitter wrote:

> I don't use reftex much and can't tell from your message what the  
> desired result would be, i.e. what the bug is.  All you are saying  
> is "Note the "replacement" in the top line of the file.".
>
> I don't think there is much in the way of configuration for reftex  
> that Aquamacs provides.  What kind of configuration do you suggest?
>
>
> --
> http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
> http://aquamacs.org/donate -- Could we help you? Return the favor  
> and support the Aquamacs Project!
>
>
> On Jul 21, 2009, at 3:31 AM, Thomas S. Dye wrote:
>
>> Aloha all,
>>
>> I installed Carbon Emacs and verified that the reftex behavior I  
>> reported below does not occur there.
>> It appears to be related to Aquamacs.
>>
>> All the best
>>
>> Tom
>>
>> Thomas S. Dye, Ph.D.
>> T. S. Dye & Colleagues, Archaeologists, Inc.
>> Phone: (808) 529-0866 Fax: (808) 529-0884
>> http://www.tsdye.com
>>
>>
>> Begin forwarded message:
>>
>>> From: "Thomas S. Dye" <tsd at tsdye.com>
>>> Date: July 19, 2009 10:21:20 AM HST
>>> To: Emacs on Mac OS X Mailing List <macosx-emacs at email.esm.psu.edu>
>>> Subject: reftex configuration problem?
>>>
>>> Aloha all,
>>>
>>> reftex index phrases doesn't behave as I expect.
>>>
>>> \documentclass{article}
>>>
>>> \begin{document}
>>> Some text.
>>> \end{document}
>>>
>>> Ctrl-C \ on "text."  Mark entry as i.
>>>
>>> % -*- mode: reftex-index-phrases; TeX-master: "test_reftex.tex" -*-
>>> %                              Key      Macro Format             
>>> Repeat
>>> %---------------------------------------------------------------------
>>> INDEX_MACRO_DEFINITION:	i	\index{%s}          	t
>>> INDEX_MACRO_DEFINITION:	g	\glossary{%s}       	t
>>> %---------------------------------------------------------------------
>>>
>>>
>>> i	text
>>>
>>> Ctrl-C Ctrl-i indicates one match in one file.
>>> Ctrl-C Ctrl-a ! replaces two occurrences
>>>
>>> \documentc\index{text}text{article}
>>>
>>> \begin{document}
>>> Some \index{text}text.
>>> \end{document}
>>>
>>> Note the "replacement" in the top line of the file.
>>>
>>> I posted this message to gnu.emacs.help and Ralf Angeli responded:
>>>
>>> I cannot reproduce this issue with Emacs on GNU/Linux.  Does it  
>>> work in
>>> your case if you use Emacs (perhaps started with -Q) instead of
>>> Aquamacs?
>>>
>>> I launched Aquamacs like this:
>>>
>>> "/Applications/Aquamacs Emacs.app/Contents/MacOS/Aquamacs Emacs" -q
>>>
>>> and got the same results.
>>>
>>> Perhaps reftex isn't configured properly in Aquamacs?
>>>
>>> All the best,
>>> Tom
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20090721/d23e5075/attachment.html>


More information about the MacOSX-Emacs mailing list