+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.
(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))
;;; 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