[gnome-builder] emacs: "save all" command
- From: Roberto Majadas <telemaco src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] emacs: "save all" command
- Date: Fri, 13 Feb 2015 23:41:23 +0000 (UTC)
commit 879eef32d27477ff16a18573ced4aef5679f907f
Author: Roberto Majadas <roberto majadas openshine com>
Date: Sun Feb 8 19:33:30 2015 +0100
emacs: "save all" command
src/emacs/gb-source-emacs.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/emacs/gb-source-emacs.c b/src/emacs/gb-source-emacs.c
index f1cc111..d28bfa4 100644
--- a/src/emacs/gb-source-emacs.c
+++ b/src/emacs/gb-source-emacs.c
@@ -226,6 +226,18 @@ gb_source_emacs_cmd_save_file_as (GbSourceEmacs *emacs,
}
static void
+gb_source_emacs_cmd_save_all (GbSourceEmacs *emacs,
+ GRegex *matcher,
+ GbSourceEmacsCommandFlags flags)
+{
+ GbSourceEmacsPrivate *priv = GB_SOURCE_EMACS (emacs)->priv;
+
+ gb_widget_activate_action (GTK_WIDGET (priv->text_view), "win", "save-all", NULL);
+
+ return;
+}
+
+static void
gb_source_emacs_cmd_undo (GbSourceEmacs *emacs,
GRegex *matcher,
GbSourceEmacsCommandFlags flags)
@@ -893,6 +905,10 @@ gb_source_emacs_class_init (GbSourceEmacsClass *klass)
g_regex_new("^C-x C-s$", 0, 0, NULL),
GB_SOURCE_EMACS_COMMAND_FLAG_NONE,
gb_source_emacs_cmd_save_file);
+ gb_source_emacs_class_register_command (klass,
+ g_regex_new("^C-x s$", 0, 0, NULL),
+ GB_SOURCE_EMACS_COMMAND_FLAG_NONE,
+ gb_source_emacs_cmd_save_all);
gb_source_emacs_class_register_command (klass,
g_regex_new("^C-x C-w$", 0, 0, NULL),
GB_SOURCE_EMACS_COMMAND_FLAG_NONE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]