lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: point-and-click


From: David Bobroff
Subject: Re: point-and-click
Date: 26 Oct 2004 18:43:53 +0000

Ok, it's working.  I think what happened was that, once I had actually
gotten the correct files (~/.emacs and ~/.bashrc) edited correctly I had
not had emacs open with the working file.  Before trying running
'emacsclient' from the command line I opened a *.ly file, opened the
corresponding DVI Crlt-clicked and it went straight to the line in
question.

Still puzzling:

Point-and-click only takes me to the line now.  When I had: 

export XEDITOR="emacs +%l:%c %f"

in my .bashrc file and

#(ly:set-point-and-click 'line-column)

at the top of my *.ly, point-and-click would take me to the line AND
column (opening a new instance of emacs each time, of course).  Now that
it "works" as advertised I get only the correct line.  I have Emacs
v21.2.1.  The docs say that for 21.2 and earlier a patch is required. 
Does that means any version <21.3?

-David

On Tue, 2004-10-26 at 15:20, Mats Bengtsson wrote:
> Have you tried running the emacsclient command manually from the
> command line? Try first with just
> emacsclient somefile
> which should open the the file in the running emacs. Type
> CTRL-X # to end the emacslient session (this is not necessary
> when you use emacsclient --no-wait). If it doesn't work, try to
> just restart the emacs server (M-x server-start).
> Once you get it up and running from the command line, it should
> work also from xdvi.
> 
>     /Mats
> 
> David Bobroff wrote:
> > On Mon, 2004-10-25 at 11:04, Mats Bengtsson wrote:
> > 
> >>The point of using emacsclient is exactly that you open the file
> >>in the emacs process that is already up and running.
> > 
> > 
> > That's what I thought should happen.
> > 
> > 
> >>However, what you maybe missed is that you need to start the
> >>corresponding server in emacs.
> >>I have the following in my .emacs file:
> >>
> >>;;
> >>;; Start the emacs server, so we can use emacsclient
> >>;;
> >>(server-start)
> >>
> > 
> > 
> > No, I have that line in my ~/.emacs file.
> > 
> > -David
> > 
> > 
> >>    /Mats
> >>
> >>David Bobroff wrote:
> >>
> >>>I finally decided to see if I could get point-and-click really working.
> >>>After reading the instructions in Appendix D I discovered that I did not
> >>>fully understand them:
> >>>
> >>>Make sure that the environment variable XEDITOR is set to
> >>>
> >>>emacsclient --no-wait +%l %f
> >>>
> >>>I did not fully understand this at first.  A friend who understands
> >>>Linux better than I helped me out with this one.  This needed to be in
> >>>my ~/.bashrc file.
> >>>
> >>>But I was getting errors.  If I have this 'emacsclient' line in my
> >>>~/.bashrc file I get:
> >>>
> >>>Xdvi Error
> >>>Error executing:
> >>>emacsclient --no-wait %l %f (I get real line numbers, of course)
> >>>/path/to/file.ly
> >>>
> >>>If, however,  I use this line instead:
> >>>
> >>>export XEDITOR="emacs  +%l %f" 
> >>>
> >>>...it works.  I can even use
> >>>
> >>>export XEDITOR="emacs  +%l:%c %f" 
> >>>
> >>>...and get the cursor to land in the correct column (Emacs 21.2.1).
> >>>
> >>>But, each time I do point-and-click I get a new instance of Emacs.  Is
> >>>this correct?  If so, it seems a bit awkward.
> >>>
> >>>Any clarifications welcome.
> >>>
> >>>-David
> >>>
> >>>
> >>>
> >>>_______________________________________________
> >>>lilypond-user mailing list
> >>>address@hidden
> >>>http://lists.gnu.org/mailman/listinfo/lilypond-user
> > 
> > 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]