LYEDITOR setting, partial XEDITOR setting.
2005-05-13 Jan Nieuwenhuizen <janneke@gnu.org>
+ * scm/editor.scm (get-editor-command): Bugfix: allow full
+ LYEDITOR setting, partial XEDITOR setting.
+
* Documentation/pictures/lilypond-48.xpm: New file.
* flower/file-path.cc (to_string): Bugfix: use PATHSEP.
(define-public (get-editor-command file-name line column)
(define (get-command-template alist editor)
(if (null? alist)
- #f
+ (if (string-match "%\\(file\\)s" file-name)
+ (file-name)
+ (string-append file-name " %(file)s"))
(if (string-match (caar alist) editor)
(cdar alist)
(get-command-template (cdr alist) editor))))