changeset 109842:ecdbd21826de

* lisp/progmodes/octave-mod.el (octave-mode-menu): Make toggle buttons.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 18 Aug 2010 15:12:34 +0200
parents 3a11454ef7ca
children 1ada063020ba
files lisp/ChangeLog lisp/progmodes/octave-mod.el
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Aug 18 14:10:30 2010 +0200
+++ b/lisp/ChangeLog	Wed Aug 18 15:12:34 2010 +0200
@@ -1,5 +1,7 @@
 2010-08-18  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* progmodes/octave-mod.el (octave-mode-menu): Make toggle buttons.
+
 	* progmodes/prolog.el (smie): Require.
 
 	* emacs-lisp/smie.el (smie-default-backward-token)
--- a/lisp/progmodes/octave-mod.el	Wed Aug 18 14:10:30 2010 +0200
+++ b/lisp/progmodes/octave-mod.el	Wed Aug 18 15:12:34 2010 +0200
@@ -283,9 +283,10 @@
     ["Indent Line"		indent-according-to-mode t]
     ["Complete Symbol"		completion-at-point t]
     "-"
-    ;; FIXME: Make them toggle-buttons.
-    ["Toggle Abbrev Mode"	abbrev-mode t]
-    ["Toggle Auto-Fill Mode"	auto-fill-mode t]
+    ["Toggle Abbrev Mode"	abbrev-mode
+     :style toggle :selected abbrev-mode]
+    ["Toggle Auto-Fill Mode"	auto-fill-mode
+     :style toggle :selected auto-fill-function]
     "-"
     ["Submit Bug Report"	octave-submit-bug-report t]
     "-"