From a1d3a2a18c9287fa2c2edc4fcb3a9666125462c8 Mon Sep 17 00:00:00 2001
From: Albert Graef <aggraef@gmail.com>
Date: Wed, 29 Jun 2016 20:48:59 +0200
Subject: [PATCH] Revert f9cb777.

---
 pd/nw/pdgui.js   | 2 +-
 pd/src/s_inter.c | 5 +----
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index 242c64b23..80664e7af 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -347,7 +347,7 @@ function gui_post_error(objectid, loglevel, errormsg) {
 }
 
 function gui_legacy_tcl_command(file, line_number, text) {
-    post("legacy tcl command at " + line_number + " of " + file);
+    post("legacy tcl command at " + line_number + " of " + file + ": " + text);
 }
 
 function clear_console() {
diff --git a/pd/src/s_inter.c b/pd/src/s_inter.c
index 88fb1974a..b6e4d129f 100644
--- a/pd/src/s_inter.c
+++ b/pd/src/s_inter.c
@@ -951,11 +951,8 @@ void sys_vguid(const char *file, int line, const char *fmt, ...)
             strncat(bufp, "...", MAXPDSTRING);
         }
     }
-    /* For now, we're sending a dummy string instead of bufp to the GUI.
-       Unlike Pd messages, old tcl commands can contain stray backslashes
-       that can mess up the double quote delimiters for strings in gui_vmess.*/
     gui_vmess("gui_legacy_tcl_command", "sis",
-        file, line, "dummy");
+        file, line, bufp);
     //sys_vvguid(file,line,fmt,ap);
 }
 
-- 
GitLab