aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorLeo Liu2013-06-07 19:48:28 +0800
committerLeo Liu2013-06-07 19:48:28 +0800
commita175bf337ae1cb146bf01f69648cd5cbe35d4384 (patch)
treebbde4dca7baf42da9b709051f22726011fb1d41a /lisp/progmodes
parenta822acffe2a370ed1726db92aad64b5287582a73 (diff)
downloademacs-a175bf337ae1cb146bf01f69648cd5cbe35d4384.tar.gz
emacs-a175bf337ae1cb146bf01f69648cd5cbe35d4384.zip
* newcomment.el (comment-search-backward): Revert last change.
* emacs-lisp/smie.el (smie--matching-block-data): Minor simplification. * progmodes/octave.el (octave-mode): Set comment-use-global-state to t. (Bug#14303) Fixes: debbugs:14434 debbugs:14303
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/octave.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/progmodes/octave.el b/lisp/progmodes/octave.el
index efa735e99b9..14d04b0d03c 100644
--- a/lisp/progmodes/octave.el
+++ b/lisp/progmodes/octave.el
@@ -540,6 +540,7 @@ definitions can also be stored in files and used in batch mode."
540 ;; a ";" at those places where it's correct (i.e. outside of parens). 540 ;; a ";" at those places where it's correct (i.e. outside of parens).
541 (setq-local electric-layout-rules '((?\; . after))) 541 (setq-local electric-layout-rules '((?\; . after)))
542 542
543 (setq-local comment-use-global-state t)
543 (setq-local comment-start octave-comment-start) 544 (setq-local comment-start octave-comment-start)
544 (setq-local comment-end "") 545 (setq-local comment-end "")
545 (setq-local comment-start-skip octave-comment-start-skip) 546 (setq-local comment-start-skip octave-comment-start-skip)
@@ -664,6 +665,7 @@ in the Inferior Octave buffer.")
664 :abbrev-table octave-abbrev-table 665 :abbrev-table octave-abbrev-table
665 (setq comint-prompt-regexp inferior-octave-prompt) 666 (setq comint-prompt-regexp inferior-octave-prompt)
666 667
668 (setq-local comment-use-global-state t)
667 (setq-local comment-start octave-comment-start) 669 (setq-local comment-start octave-comment-start)
668 (setq-local comment-end "") 670 (setq-local comment-end "")
669 (setq comment-column 32) 671 (setq comment-column 32)