aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/org
diff options
context:
space:
mode:
authorPaul Eggert2017-03-19 12:29:06 -0700
committerPaul Eggert2017-03-19 12:29:06 -0700
commite6fd84d2d5ca256797ff210c915a2fa773d4d742 (patch)
treeba2ba64a65705a3259a0ecb66098f834e741fb4b /lisp/org
parentd86bcedd880b3cb6383641082d406075aa6e70e2 (diff)
parentab0a60a1b334fafc7d805eb44e6069ea314ad486 (diff)
downloademacs-e6fd84d2d5ca256797ff210c915a2fa773d4d742.tar.gz
emacs-e6fd84d2d5ca256797ff210c915a2fa773d4d742.zip
Merge from origin/emacs-25
ab0a60a ; * CONTRIBUTE (Generating ChangeLog entries): Drop duplicate... 7e02a47 Index byte-compile-debug 7c1e598 Document `byte-compile-debug' in the ELisp manual 4d81eb4 Document variable `byte-compile-debug' 72ef710 Fix call to debugger on assertion failure ae8264c Call modification hooks in org-src fontify buffers b3139da ; Fix last change in doc/lispref/strings.texi c331f39 Improve documentation of 'format' conversions 9f52f67 Remove stale functions from ert manual c416b14 Fix a typo in Eshell manual 06695a0 ; Fix a typo in ediff-merg.el 954e9e9 Improve documentation of hooks related to saving buffers 9fcab85 Improve documentation of auto-save-visited-file-name 2236c53 fix typo in mailcap-mime-extensions 85a3e4e Fix typos in flymake.el a1ef10e More NEWS checking for admin.el's set-version # Conflicts: # lisp/emacs-lisp/bytecomp.el
Diffstat (limited to 'lisp/org')
-rw-r--r--lisp/org/org-src.el24
1 files changed, 14 insertions, 10 deletions
diff --git a/lisp/org/org-src.el b/lisp/org/org-src.el
index 0e82cfda7b8..caa6526435b 100644
--- a/lisp/org/org-src.el
+++ b/lisp/org/org-src.el
@@ -914,16 +914,20 @@ fontification of code blocks see `org-src-fontify-block' and
914 (with-current-buffer 914 (with-current-buffer
915 (get-buffer-create 915 (get-buffer-create
916 (concat " org-src-fontification:" (symbol-name lang-mode))) 916 (concat " org-src-fontification:" (symbol-name lang-mode)))
917 (delete-region (point-min) (point-max)) 917 ;; Make sure that modification hooks are not inhibited in
918 (insert string " ") ;; so there's a final property change 918 ;; the org-src-fontification buffer in case we're called
919 (unless (eq major-mode lang-mode) (funcall lang-mode)) 919 ;; from `jit-lock-function' (Bug#25132).
920 (org-font-lock-ensure) 920 (let ((inhibit-modification-hooks nil))
921 (setq pos (point-min)) 921 (delete-region (point-min) (point-max))
922 (while (setq next (next-single-property-change pos 'face)) 922 (insert string " ") ;; so there's a final property change
923 (put-text-property 923 (unless (eq major-mode lang-mode) (funcall lang-mode))
924 (+ start (1- pos)) (1- (+ start next)) 'face 924 (org-font-lock-ensure)
925 (get-text-property pos 'face) org-buffer) 925 (setq pos (point-min))
926 (setq pos next))) 926 (while (setq next (next-single-property-change pos 'face))
927 (put-text-property
928 (+ start (1- pos)) (1- (+ start next)) 'face
929 (get-text-property pos 'face) org-buffer)
930 (setq pos next))))
927 (add-text-properties 931 (add-text-properties
928 start end 932 start end
929 '(font-lock-fontified t fontified t font-lock-multiline t)) 933 '(font-lock-fontified t fontified t font-lock-multiline t))