mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 05:17:35 +00:00
* lisp/textmodes/rst.el (rst-mode): Don't touch global hook
(rst-re): η-reduce.
This commit is contained in:
parent
c9b37634b1
commit
03808272ee
1 changed files with 3 additions and 4 deletions
|
|
@ -568,9 +568,7 @@ After interpretation of ARGS the results are concatenated as for
|
|||
(regexp-quote (char-to-string re)))
|
||||
((listp re)
|
||||
(let ((nested
|
||||
(mapcar (lambda (elt)
|
||||
(rst-re elt))
|
||||
(cdr re))))
|
||||
(mapcar #'rst-re (cdr re))))
|
||||
(cond
|
||||
((eq (car re) :seq)
|
||||
(mapconcat #'identity nested ""))
|
||||
|
|
@ -1398,7 +1396,8 @@ highlighting.
|
|||
t nil nil nil
|
||||
(font-lock-multiline . t)
|
||||
(font-lock-mark-block-function . mark-paragraph)))
|
||||
(add-hook 'font-lock-extend-region-functions #'rst-font-lock-extend-region t)
|
||||
(add-hook 'font-lock-extend-region-functions
|
||||
#'rst-font-lock-extend-region nil t)
|
||||
|
||||
;; Text after a changed line may need new fontification.
|
||||
(setq-local jit-lock-contextually t)
|
||||
|
|
|
|||
Loading…
Reference in a new issue