]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/framework-gnome.scm
(setcolor): implement (re)setcolor with <g>
[lilypond.git] / scm / framework-gnome.scm
index fb492474b8630cab67b93fd158f9c7330f2fc36d..d8a9699c36987071bba072f6ff4b6d093f15ae73 100644 (file)
        (add (scrolled go) (canvas go))
        (show (canvas go)))))
 
-(define x-editor #f)
-(define (get-x-editor)
-  (if (not x-editor)
-      (set! x-editor (getenv "XEDITOR")))
-  x-editor)
-
 (define ifs #f)
 (define (get-ifs)
   (if (not ifs)
   (let* ((file-name (car location))
         (line (cadr location))
         (column (caddr location))
-        (template (substring (get-x-editor) 0))
-        
-        ;; Adhere to %l %c %f?
-        (command
-         (regexp-substitute/global
-          #f "%l" (regexp-substitute/global
-                   #f "%c"
-                   (regexp-substitute/global
-                    #f "%f" template 'pre file-name 'post)
-                   'pre (number->string column)
-                   'post)
-          'pre (number->string line) 'post)))
-    
+        (command (get-editor-command file line column)))
     (debugf "spawning: ~s\n" command)
     (if (= (primitive-fork) 0)
        (let ((command-list (string-split command #\ )));; (get-ifs))))