[gnome-builder] emacs: add debug functions
- From: Roberto Majadas <telemaco src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] emacs: add debug functions
- Date: Fri, 13 Feb 2015 23:41:53 +0000 (UTC)
commit 0ba8735ef3d6a9c428ce356d1b97e1de890df239
Author: Roberto Majadas <roberto majadas openshine com>
Date: Sun Feb 8 20:29:59 2015 +0100
emacs: add debug functions
src/emacs/gb-source-emacs.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/emacs/gb-source-emacs.c b/src/emacs/gb-source-emacs.c
index 49cae4b..93f1059 100644
--- a/src/emacs/gb-source-emacs.c
+++ b/src/emacs/gb-source-emacs.c
@@ -560,6 +560,7 @@ gb_source_emacs_eval_cmd (GbSourceEmacs *emacs)
if (g_match_info_matches(match_info))
{
cmd->func (emacs, cmd->matcher, cmd->flags);
+ g_message("evaluate command: %s", priv->cmd->str);
g_match_info_free (match_info);
if (priv->cmd != NULL)
g_string_free(priv->cmd, TRUE);
@@ -568,8 +569,6 @@ gb_source_emacs_eval_cmd (GbSourceEmacs *emacs)
}
g_match_info_free (match_info);
}
-
- g_print(">>> %s\n", priv->cmd->str);
return TRUE;
}
@@ -644,7 +643,10 @@ gb_source_emacs_key_press_event_cb (GtkTextView *text_view,
}
if (eval_cmd)
- return gb_source_emacs_eval_cmd(emacs);
+ {
+ g_message ("cmd line: %s", priv->cmd->str);
+ return gb_source_emacs_eval_cmd(emacs);
+ }
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]