[OS X Emacs] Aquamacs 1.5 and SyncTeX

Jeremy Van Cleve vancleve at stanford.edu
Sun Sep 21 18:35:00 EDT 2008


Thanks for the quick reply David,

(file-line-number) returns the correct line number even when the 
mode-line shows (??). 

Generally, I use soft wrap, but not longlines-mode.  I tried opening a 
new buffer and pasting my whole document with both soft and hard wrap 
and found that after scrolling about 140 lines into the document, the 
mode-line starts displaying (??) and won't return the line number even 
after deleting all the text.  Up to line 140, the text is about 18700 
characters.  The whole file is 128478 characters.  The point at which 
the mode-line begins displaying (??) isn't in the middle of a 
particularly long line (previous lines whose numbers displayed were over 
1500 characters long), so maybe its the total buffer length, but I 
checked 'line-number-display-limit', which has a 'nil' value.  
'line-number-display-limit-width' is 200.

best,

jeremy

David Reitter wrote:
> OK, you can see in auctex-config.el how we're getting at the line number.
> What does `file-line-number' return in your case? (i.e., do M-: 
> (file-line-number) RET)  Is this correct?
>
> Do you have longlines-mode on, or soft wrap (Option menu)?
>
> Is it a really large file that you're editing?
> I'm adding, below, the documentation string for `line-number-mode'.
>
>
> -- 
> 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!
>
>
> line-number-mode is an interactive compiled Lisp function in `simple.el'.
> It is bound to <menu-bar> <options> <showhide> <line-number-mode>.
> (line-number-mode &optional arg)
>
> Toggle Line Number mode.
> With arg, turn Line Number mode on if arg is positive, otherwise
> turn it off.  When Line Number mode is enabled, the line number
> appears in the mode line.
>
> Line numbers do not appear for very large buffers and buffers
> with very long lines; see variables `line-number-display-limit'
> and `line-number-display-limit-width'.
>
> [back]
>
>
>
>
> On 21 Sep 2008, at 15:38, Jeremy Van Cleve wrote:
>
>> Thank you much to all who responded!
>>
>> I have been able to modify the TeX-command-list to use the 
>> "-synctex=1" option and produce a .synctex.gz file, but I have had 
>> trouble getting the synchronization to work properly.  I can get 
>> Aquamacs to bring the window focus to Skim but the location in the 
>> pdf is far from the location in the source; likewise, when I try to 
>> move from the Skim to the source, the line number that Aquamacs moves 
>> to is incorrect.  Since support for synchronization using SyncTeX in 
>> AUCTeX was in the AUCTeX CVS, I downloaded the file that included the 
>> new "tex-source-correlate-mode" (tex.el), byte compiled it, and stuck 
>> it in the "Aquamacs 
>> Emacs.app/Contents/Resources/site-lisp/edit-modes/auctex" directory.  
>> However, after turning on the mode, it didn't correct synchronization 
>> with Skim.  One thing I have noticed since upgrading to Aquamacs 
>> 1.5rc3 is that when I'm editing a LaTeX document in LaTeX-mode, line 
>> numbers do not show up at the bottom of the buffer; rather Aquamacs 
>> shows (??,col#).  Maybe this is part of the problem if Aquamacs is 
>> having trouble determining the line number in the source.  I have 
>> noticed that the line number shows up properly in other modes (e.g. 
>> MATLAB).
>>
>> Thank again,
>>
>> Jeremy
>>
>
> ------------------------------------------------------------------------
>
> _____________________________________________________________
> 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
>   


-- 
Jeremy Van Cleve

Graduate Student
Department of Biology
Stanford University
Fax: 650-725-7745
E-mail: vancleve at stanford.edu
Webpage: http://charles.stanford.edu/~vancleve/




More information about the MacOSX-Emacs mailing list