mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Merge from origin/emacs-25
ab0a60a; * CONTRIBUTE (Generating ChangeLog entries): Drop duplicate...7e02a47Index byte-compile-debug7c1e598Document `byte-compile-debug' in the ELisp manual4d81eb4Document variable `byte-compile-debug'72ef710Fix call to debugger on assertion failureae8264cCall modification hooks in org-src fontify buffersb3139da; Fix last change in doc/lispref/strings.texic331f39Improve documentation of 'format' conversions9f52f67Remove stale functions from ert manualc416b14Fix a typo in Eshell manual06695a0; Fix a typo in ediff-merg.el954e9e9Improve documentation of hooks related to saving buffers9fcab85Improve documentation of auto-save-visited-file-name2236c53fix typo in mailcap-mime-extensions85a3e4eFix typos in flymake.ela1ef10eMore NEWS checking for admin.el's set-version # Conflicts: # lisp/emacs-lisp/bytecomp.el
This commit is contained in:
commit
e6fd84d2d5
17 changed files with 102 additions and 54 deletions
|
|
@ -914,16 +914,20 @@ fontification of code blocks see `org-src-fontify-block' and
|
|||
(with-current-buffer
|
||||
(get-buffer-create
|
||||
(concat " org-src-fontification:" (symbol-name lang-mode)))
|
||||
(delete-region (point-min) (point-max))
|
||||
(insert string " ") ;; so there's a final property change
|
||||
(unless (eq major-mode lang-mode) (funcall lang-mode))
|
||||
(org-font-lock-ensure)
|
||||
(setq pos (point-min))
|
||||
(while (setq next (next-single-property-change pos 'face))
|
||||
(put-text-property
|
||||
(+ start (1- pos)) (1- (+ start next)) 'face
|
||||
(get-text-property pos 'face) org-buffer)
|
||||
(setq pos next)))
|
||||
;; Make sure that modification hooks are not inhibited in
|
||||
;; the org-src-fontification buffer in case we're called
|
||||
;; from `jit-lock-function' (Bug#25132).
|
||||
(let ((inhibit-modification-hooks nil))
|
||||
(delete-region (point-min) (point-max))
|
||||
(insert string " ") ;; so there's a final property change
|
||||
(unless (eq major-mode lang-mode) (funcall lang-mode))
|
||||
(org-font-lock-ensure)
|
||||
(setq pos (point-min))
|
||||
(while (setq next (next-single-property-change pos 'face))
|
||||
(put-text-property
|
||||
(+ start (1- pos)) (1- (+ start next)) 'face
|
||||
(get-text-property pos 'face) org-buffer)
|
||||
(setq pos next))))
|
||||
(add-text-properties
|
||||
start end
|
||||
'(font-lock-fontified t fontified t font-lock-multiline t))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue