diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2010-08-12 12:46:44 +0200 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2010-08-12 12:46:44 +0200 |
commit | dc94fc858f547a4f78b04c17c4a4dec8c0d55fe1 (patch) | |
tree | 0810390b14f6b8972381f0732d4354e1961a189c /lisp/progmodes/octave-mod.el | |
parent | b695bedabef0c0ca6b092319a83d90d4698324aa (diff) | |
download | emacs-dc94fc858f547a4f78b04c17c4a4dec8c0d55fe1.tar.gz |
* lisp/progmodes/octave-mod.el (octave-mode-map): Use comment-dwim.
(octave-mode): Set comment-add.
Fixes: debbugs:6829
Diffstat (limited to 'lisp/progmodes/octave-mod.el')
-rw-r--r-- | lisp/progmodes/octave-mod.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/octave-mod.el b/lisp/progmodes/octave-mod.el index 12f561c6814..4951ac153d9 100644 --- a/lisp/progmodes/octave-mod.el +++ b/lisp/progmodes/octave-mod.el @@ -194,7 +194,6 @@ parenthetical grouping.") (define-key map ";" 'octave-electric-semi) (define-key map " " 'octave-electric-space) (define-key map "\n" 'octave-reindent-then-newline-and-indent) - (define-key map "\e;" 'octave-indent-for-comment) (define-key map "\e\n" 'octave-indent-new-comment-line) (define-key map "\e\t" 'octave-complete-symbol) (define-key map "\M-\C-a" 'octave-beginning-of-defun) @@ -507,6 +506,7 @@ including a reproducible test case and send the message." (setq comment-start-skip "\\s<+\\s-*") (make-local-variable 'comment-indent-function) (setq comment-indent-function 'octave-comment-indent) + (set (make-local-variable 'comment-add) 1) (make-local-variable 'parse-sexp-ignore-comments) (setq parse-sexp-ignore-comments t) |