GNU bug report logs - #15600
24.3; ruby-mode lacks a menu

Previous Next

Package: emacs;

Reported by: John Anthony <john <at> jo.hnanthony.com>

Date: Sat, 12 Oct 2013 18:11:01 UTC

Severity: wishlist

Tags: patch

Merged with 15595

Found in version 24.3

Fixed in version 24.4.

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: John Anthony <john <at> jo.hnanthony.com>
Subject: bug#15600: closed (Re: bug#15600: 24.3; ruby-mode lacks a menu)
Date: Fri, 25 Oct 2013 02:40:05 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#15600: 24.3; ruby-mode lacks a menu

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 15600 <at> debbugs.gnu.org.

-- 
15600: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15600
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 15600-done <at> debbugs.gnu.org
Subject: Re: bug#15600: 24.3; ruby-mode lacks a menu
Date: Thu, 24 Oct 2013 22:39:13 -0400
Version: 24.4.

Applied.

[Message part 3 (message/rfc822, inline)]
From: John Anthony <john <at> jo.hnanthony.com>
To: bozhidar.batsov <at> gmail.com
Cc: bug-gnu-emacs <at> gnu.org
Subject: RE: 24.3; ruby-mode lacks a menu
Date: Sat, 12 Oct 2013 19:07:53 +0100
Here's a menu that just covers the basic commands from
lisp/progmodes/ruby.el

diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 2f92216..07ca58b 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -158,6 +158,22 @@ This should only be called after matching against `ruby-here-doc-beg-re'."
     map)
   "Keymap used in Ruby mode.")
 
+(easy-menu-define
+  ruby-mode-menu
+  ruby-mode-map
+  "Ruby Mode Menu"
+  '("Ruby"
+    ["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)]
+    ["Forward Sexp" ruby-forward-sexp
+     :active (not ruby-use-smie)]
+    ["Indent Sexp" ruby-indent-sexp
+     :active (not ruby-use-smie)]))
+
 (defvar ruby-mode-syntax-table
   (let ((table (make-syntax-table)))
     (modify-syntax-entry ?\' "\"" table)

-- 
John Anthony



This bug report was last modified 11 years and 273 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.