From 38637ccae650eefa403717a9cafe78a0b1923042 Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Fri, 22 Nov 2013 01:33:30 +0800 Subject: [PATCH] * progmodes/octave.el (octave-mode, inferior-octave-mode): Fix obsolete variable comment-use-global-state. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/octave.el | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 014dbea7b51..12085f38e5f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-11-21 Leo Liu + + * progmodes/octave.el (octave-mode, inferior-octave-mode): Fix + obsolete variable comment-use-global-state. + 2013-11-21 Rüdiger Sonderfeld * progmodes/octave.el (octave-mode-map, octave-mode-menu): Add diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el index c09dea59c27..540bd93517d 100644 --- a/lisp/progmodes/octave.el +++ b/lisp/progmodes/octave.el @@ -547,7 +547,7 @@ definitions can also be stored in files and used in batch mode." ;; a ";" at those places where it's correct (i.e. outside of parens). (setq-local electric-layout-rules '((?\; . after))) - (setq-local comment-use-global-state t) + (setq-local comment-use-syntax t) (setq-local comment-start octave-comment-start) (setq-local comment-end "") (setq-local comment-start-skip octave-comment-start-skip) @@ -703,7 +703,7 @@ in the Inferior Octave buffer.") :abbrev-table octave-abbrev-table (setq comint-prompt-regexp inferior-octave-prompt) - (setq-local comment-use-global-state t) + (setq-local comment-use-syntax t) (setq-local comment-start octave-comment-start) (setq-local comment-end "") (setq comment-column 32) -- 2.39.2