* progmodes/octave.el (octave-mode): Backward compatibility fix.
This commit is contained in:
parent
21e3f963e7
commit
62efb35e42
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-06-21 Leo Liu <sdl.web@gmail.com>
|
||||
|
||||
* progmodes/octave.el (octave-mode): Backward compatibility fix.
|
||||
|
||||
2013-06-21 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* font-lock.el (lisp-font-lock-keywords-2): Add with-eval-after-load.
|
||||
|
|
|
@ -554,8 +554,13 @@ definitions can also be stored in files and used in batch mode."
|
|||
|
||||
(setq-local fill-nobreak-predicate
|
||||
(lambda () (eq (octave-in-string-p) ?')))
|
||||
(add-function :around (local 'comment-line-break-function)
|
||||
#'octave--indent-new-comment-line)
|
||||
(with-no-warnings
|
||||
(if (fboundp 'add-function) ; new in 24.4
|
||||
(add-function :around (local 'comment-line-break-function)
|
||||
#'octave--indent-new-comment-line)
|
||||
(setq-local comment-line-break-function
|
||||
(apply-partially #'octave--indent-new-comment-line
|
||||
#'comment-indent-new-line))))
|
||||
|
||||
(setq font-lock-defaults '(octave-font-lock-keywords))
|
||||
|
||||
|
@ -1151,8 +1156,6 @@ q: Don't fix\n" func file))
|
|||
;;; Indentation
|
||||
|
||||
(defun octave-indent-new-comment-line (&optional soft)
|
||||
;; FIXME: C-M-j should probably be bound globally to a function like
|
||||
;; this one.
|
||||
"Break Octave line at point, continuing comment if within one.
|
||||
Insert `octave-continuation-string' before breaking the line
|
||||
unless inside a list. Signal an error if within a single-quoted
|
||||
|
|
Loading…
Reference in a new issue