From 222e51d853cb3616d1938af3243df4fdb6f7b123 Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Tue, 9 Sep 2014 16:04:19 -0400
Subject: [PATCH] *provided preliminary solution for parsing $0 inside messages
 (first need to check if this will cause regressions)

---
 pd/src/g_text.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pd/src/g_text.c b/pd/src/g_text.c
index 408588aec..03830c6ff 100644
--- a/pd/src/g_text.c
+++ b/pd/src/g_text.c
@@ -601,7 +601,12 @@ static void message_blob(t_message *x, t_blob *st)
 
 static void message_list(t_message *x, t_symbol *s, int argc, t_atom *argv)
 {
+    // TODO: here and elsewhere in the message, do we want $0 to be parsed
+    // into canvas instance? Makes sense since there is no such argument,
+    // but will this break anything?
+    //canvas_setcurrent(x->m_glist);
     binbuf_eval(x->m_text.te_binbuf, &x->m_messresponder.mr_pd, argc, argv);
+    //canvas_unsetcurrent(x->m_glist);
 }
 
 static void message_set(t_message *x, t_symbol *s, int argc, t_atom *argv)
-- 
GitLab