Il giorno gio 14 giu 2018 alle 6:52, Federico Bruni
<f...@inventati.org> ha scritto:
2. Configure other editors
IIUC, lilypond-invoke editors is set up to work well with emacs, gvim
and nedit, in that I can simply write:
LYEDITOR=emacsclient
and this will be translated to:
emacsclient --no-wait +%(line)s:%(column)s %(file)s
Now what if I want to use a different editor?
I did it in the past with Frescobaldi (to get point-and-clcik from an
external PDF), but I cannot remember how.
I'm now trying gedit, which does support opening a file in a certain
point.
I've tried the following but none works:
LYEDITOR=gedit # this will open gedit but not in the desired
line:column
LYEDITOR=`gedit +%(line)s:%(column)s %(file)s` # this is not correct
syntax, as 'source ~/.bashrc' complains
I've now found this in scm/editor.scm
(define editor-command-template-alist
'(("emacs" . "emacsclient --no-wait +%(line)s:%(column)s %(file)s ||
(emacs +%(line)s:%(column)s %(file)s&)")
("gvim" . "gvim --remote +:%(line)s:norm%(column)s %(file)s")
("uedit32" . "uedit32 %(file)s -l%(line)s -c%(char)s")
("nedit" . "nc -noask +%(line)s %(file)s")
("gedit" . "gedit +%(line)s %(file)s")
("jedit" . "jedit -reuseview %(file)s +line:%(line)s")
("syn" . "syn -line %(line)s -col %(char)s %(file)s")
("lilypad" . "lilypad +%(line)s:%(char)s %(file)s")))
So this should be sufficient:
LYEDITOR=gedit
But it doesn't work, as it always jump to the first line of music, no
matter what you click on PDF. And it launches a new gedit window every
time you click on the PDF.
Also, it should be rewritten to specify the column as well:
("gedit" . "gedit +%(line)s:%(column)s %(file)s")
If I want to use another editor it should be added in that file?
Or can I set the LYEDITOR variable somehow?
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond