From: Jan Nieuwenhuizen <janneke@gnu.org>
Date: Fri, 17 Jun 2005 08:14:00 +0000 (+0000)
Subject: (editor-command-template-alist): Use char iso
X-Git-Tag: release/2.6.0~39
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a2aa743cd6f39f0d50dd8562ce8600fca4a51483;p=lilypond.git

(editor-command-template-alist): Use char iso
column, except for Emacs.
(get-editor-command): Substitute char too (Bert).
---

diff --git a/ChangeLog b/ChangeLog
index f35db8fa00..745aef39b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-17  Jan Nieuwenhuizen  <janneke@gnu.org>
+
+	* scm/editor.scm (editor-command-template-alist): Use char iso
+	column, except for Emacs.
+	(get-editor-command): Substitute char too (Bert).
+
 2005-06-16  Jan Nieuwenhuizen  <janneke@gnu.org>
 
 	* scm/ps-to-png.scm (make-ps-images): Use ~S instead of single
diff --git a/scm/editor.scm b/scm/editor.scm
index af62e7c3b3..989eb2a10a 100644
--- a/scm/editor.scm
+++ b/scm/editor.scm
@@ -31,13 +31,13 @@
 
 (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%(column)s")
+    ("gvim" . "gvim --remote +:%(line)s:norm%(char)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 %(column)s %(file)s")
-    ("lilypad" . "lilypad +%(line)s:%(column)s %(file)s")))
+    ("syn" . "syn -line %(line)s -col %(char)s %(file)s")
+    ("lilypad" . "lilypad +%(line)s:%(char)s %(file)s")))
 
 (define (get-command-template alist editor)
   (define (get-command-template-helper)
@@ -66,6 +66,8 @@
 	 (command
 	  (re-sub "%\\(file\\)s" (format #f "~S" file-name)
 		  (re-sub "%\\(line\\)s" (format #f "~a" line)
-			  (re-sub "%\\(column\\)s" (format #f "~a" column)
-				  (slashify template))))))
+			  (re-sub "%\\(char\\)s" (format #f "~a" char)
+				  (re-sub
+				   "%\\(column\\)s" (format #f "~a" column)
+				   (slashify template)))))))
     command))