]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/ruby-mode.el (ruby-mode-menu): Use proper
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 25 Oct 2013 04:35:56 +0000 (08:35 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 25 Oct 2013 04:35:56 +0000 (08:35 +0400)
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 `{'.

lisp/ChangeLog
lisp/progmodes/ruby-mode.el

index 5bd6b2b9d1bcd16f884aceeb5e10e195d91fe793..07de60c735d59c4d38be269bb2058e746e3abe9e 100644 (file)
@@ -1,3 +1,11 @@
+2013-10-25  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * 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  <john@jo.hnanthony.com>
 
        * progmodes/ruby-mode.el (ruby-mode-menu): Add a menu.  (Bug#15600)
index 1ea6c3c7c991bae7eca2f428af276ba6132ce8eb..dbca0d4dd26ed086c6a47c9f8f84a638ba93af06 100644 (file)
@@ -165,16 +165,22 @@ This should only be called after matching against `ruby-here-doc-beg-re'."
   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 @@ See `add-log-current-defun-function'."
       (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))