off the highlight first.
* lisp/progmodes/octave.el (octave-indent-comment): Tweak regexps.
(octave-help): Small simplification.
* test/indent/octave.m: Tweak.
+2013-05-29 Leo Liu <sdl.web@gmail.com>
+
+ * progmodes/octave.el (octave-indent-comment): Tweak regexps.
+ (octave-help): Small simplification.
+
+ * emacs-lisp/smie.el (smie-highlight-matching-block): Always turn
+ off the highlight first.
+
2013-05-29 Glenn Morris <rgm@gnu.org>
* progmodes/idlwave.el (idlwave-scan-user-lib-files)
beg end (current-buffer))
(overlay-put smie--highlight-matching-block-overlay
'face 'smie-matching-block-highlight))))
- (save-excursion
- (condition-case nil
- (if (nth 8 (syntax-ppss))
- (overlay-put smie--highlight-matching-block-overlay 'face nil)
+ (overlay-put smie--highlight-matching-block-overlay 'face nil)
+ (unless (nth 8 (syntax-ppss))
+ (save-excursion
+ (condition-case nil
(let ((token
(or (funcall beg-of-tok)
(funcall beg-of-tok
(let ((beg (point))
(opener (funcall smie-forward-token-function)))
(when (assoc opener smie-closer-alist)
- (funcall highlight beg (point)))))
- (t (overlay-put smie--highlight-matching-block-overlay
- 'face nil)))))
- (scan-error
- (overlay-put smie--highlight-matching-block-overlay 'face nil)))))))
+ (funcall highlight beg (point)))))))
+ (scan-error)))))))
(defvar smie--highlight-matching-block-timer nil)
(back-to-indentation)
(cond
((octave-in-string-or-comment-p) nil)
- ((looking-at-p "\\s<\\{3,\\}")
+ ((looking-at-p "\\(\\s<\\)\\1\\{2,\\}")
0)
;; Exclude %{, %} and %!.
((and (looking-at-p "\\s<\\(?:[^{}!]\\|$\\)")
- (not (looking-at-p "\\s<\\s<")))
+ (not (looking-at-p "\\(\\s<\\)\\1")))
(comment-choose-indent)))))
\f
;; Make 'See also' clickable
(with-syntax-table octave-mode-syntax-table
(when (re-search-forward "^\\s-*See also:" nil t)
- (let ((end (or (save-excursion (re-search-forward "^\\s-*$" nil t))
- (point-max))))
+ (let ((end (save-excursion (re-search-forward "^\\s-*$" nil t))))
(while (re-search-forward "\\_<\\(?:\\sw\\|\\s_\\)+\\_>" end t)
(make-text-button (match-beginning 0)
;; If the match ends with . exclude it.
+2013-05-29 Leo Liu <sdl.web@gmail.com>
+
+ * indent/octave.m: Tweak.
+
2013-05-26 Aidan Gauland <aidalgol@amuri.net>
* tests/eshell.el: Rewrite tests using ERT.
ext(end) = [];
else
isglob = false; # I am a test
- # me too
+ #%% me too
### I shall align to column 0
endif
pos = findstr (nm, ext);