On 8 Apr 2008, at 2:18 PM, Roussanka Loukanova wrote: > On Tue, 8 Apr 2008, Ivan Werning wrote: > >> >> On Apr 8, 2008, at 7:37 AM, Christiaan Hofman wrote: >>> >>> Though I'd like to be completely clear about what exactly is now >>> implemented. Is it forward-search (Emacs -> Skim) or just the auto- >>> raising in backward-search (Skim -> Emacs)? IOW, are the lines >>> involving the displayline script (or any lines) still necessary >>> in .emacs (for forward-search)? >>> >>> BTW, everybody is free to modify the Wiki (that's why it's a Wiki). >>> You just need a password, which is only done to prevent spam. >>> >>> Christiaan >> >> In my aquamacs both directions work without any code added to the >> associated emac preference files. >> >> -ivan > > I have the following questions: > > 1. Skim -> Emacs > > If Aquamacs is not started up, but Skim is opened with a file.pdf, > does > Shift + Cmd + Click over a point in Skim starts up Emacs, and also > loading > the file.tex over the corresponding line? > > With my download of the latest Spring Carbon Emacs, if Emacs hasn't > been > started, nothing happens. If Emacs is opened, and running, not > necessary > with file.tex, then Shift + Cmd + Click, loads file.tex over the > corresponding line. >
No, it doesn't, AFAIK. This is a limitation of the setup in (Carbon) Emacs, because it communicates through a server, but for the server to run you first need to launch Emacs. IMHO that's a bit stupid. To work around that, you could write your own script that makes sure Emacs runs and then calls the server (emacsclient). You could then set that as the script in the Skim preferences instead of directly calling emacsclient. I think something like the script below may work (save it to file, make it executable, and call it with arguments '%line "%file"'). #\!/bin/bash line=$1 file="$2" osascript -e "tell application \"Emacs\" to activate" /Applications/Emacs.app/Contents/MacOS/bin/emacsclient --no-wait + $line "$file" > 2. Do you need to have the line "(server-start)" in .emacs? Without > it, > neither PDFView, nor Skim is the default pdfviewer in carbon Emacs. > In my > opinion this is good, because it leaves up to the user the decision > of using Skim (PDFView). > > Roussanka This line has no relation whatsoever to the PDF viewer used by Emacs. It is only relevant to make backward search work, not for forward search. I have updated the Wiki, also making the distinction between forward/ backward search clearer and what is required for which action. Christiaan ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Skim-app-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-users
