emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r114795: * lisp/progmodes/ruby-mode.el (ruby-mode-me


From: Dmitry Gutov
Subject: [Emacs-diffs] trunk r114795: * lisp/progmodes/ruby-mode.el (ruby-mode-menu): Use proper
Date: Fri, 25 Oct 2013 04:36:01 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 114795
revision-id: address@hidden
parent: address@hidden
committer: Dmitry Gutov <address@hidden>
branch nick: trunk
timestamp: Fri 2013-10-25 08:35:56 +0400
message:
  * lisp/progmodes/ruby-mode.el (ruby-mode-menu): Use proper
  capitalization.  Use :visible instead of :active.  Fix
  `ruby-indent-exp' reference.  Add menu items for the generic
  commands that are used with SMIE.
  (ruby-do-end-to-brace): Insert space after `{'.
modified:
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/progmodes/ruby-mode.el    
rubymode.el-20091113204419-o5vbwnq5f7feedwu-8804
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-10-25 02:38:39 +0000
+++ b/lisp/ChangeLog    2013-10-25 04:35:56 +0000
@@ -1,3 +1,11 @@
+2013-10-25  Dmitry Gutov  <address@hidden>
+
+       * progmodes/ruby-mode.el (ruby-mode-menu): Use proper
+       capitalization.  Use :visible instead of :active.  Fix
+       `ruby-indent-exp' reference.  Add menu items for the generic
+       commands that are used with SMIE.
+       (ruby-do-end-to-brace): Insert space after `{'.
+
 2013-10-25  John Anthony  <address@hidden>
 
        * progmodes/ruby-mode.el (ruby-mode-menu): Add a menu.  (Bug#15600)

=== modified file 'lisp/progmodes/ruby-mode.el'
--- a/lisp/progmodes/ruby-mode.el       2013-10-25 02:38:39 +0000
+++ b/lisp/progmodes/ruby-mode.el       2013-10-25 04:35:56 +0000
@@ -165,16 +165,22 @@
   ruby-mode-map
   "Ruby Mode Menu"
   '("Ruby"
-    ["Beginning Of Block" ruby-beginning-of-block t]
-    ["End Of Block" ruby-end-of-block t]
+    ["Beginning of Block" ruby-beginning-of-block t]
+    ["End of Block" ruby-end-of-block t]
     ["Toggle Block" ruby-toggle-block t]
     "--"
     ["Backward Sexp" ruby-backward-sexp
-     :active (not ruby-use-smie)]
+     :visible (not ruby-use-smie)]
+    ["Backward Sexp" backward-sexp
+     :visible ruby-use-smie]
     ["Forward Sexp" ruby-forward-sexp
-     :active (not ruby-use-smie)]
-    ["Indent Sexp" ruby-indent-sexp
-     :active (not ruby-use-smie)]))
+     :visible (not ruby-use-smie)]
+    ["Forward Sexp" forward-sexp
+     :visible ruby-use-smie]
+    ["Indent Sexp" ruby-indent-exp
+     :visible (not ruby-use-smie)]
+    ["Indent Sexp" prog-indent-sexp
+     :visible ruby-use-smie]))
 
 (defvar ruby-mode-syntax-table
   (let ((table (make-syntax-table)))
@@ -1461,7 +1467,8 @@
       (insert "}")
       (goto-char orig)
       (delete-char 2)
-      (insert "{")
+      ;; Maybe this should be customizable, let's see if anyone asks.
+      (insert "{ ")
       (setq beg-marker (point-marker))
       (when (looking-at "\\s +|")
         (delete-char (- (match-end 0) (match-beginning 0) 1))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]