mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-26 07:33:39 +00:00
Merge branch 'maint'
This commit is contained in:
commit
23ca3fa100
@ -2018,7 +2018,7 @@ fontified, and then returned."
|
||||
(org-mode)
|
||||
(org-create-dblock props)
|
||||
(org-update-dblock)
|
||||
(font-lock-ensure)
|
||||
(org-font-lock-ensure)
|
||||
(forward-line 2)
|
||||
(buffer-substring (point) (progn
|
||||
(re-search-forward "^[ \t]*#\\+END" nil t)
|
||||
|
@ -409,8 +409,10 @@ Pass BUFFER to the XEmacs version of `move-to-column'."
|
||||
(defalias 'format-message 'format))
|
||||
|
||||
;; `font-lock-ensure' is only available from 24.4.50 on
|
||||
(unless (fboundp 'font-lock-ensure)
|
||||
(defalias 'font-lock-ensure 'font-lock-fontify-buffer))
|
||||
(defalias 'org-font-lock-ensure
|
||||
(if (fboundp 'font-lock-ensure)
|
||||
#'font-lock-ensure
|
||||
(lambda (&optional _beg _end) (font-lock-fontify-buffer))))
|
||||
|
||||
(defmacro org-no-popups (&rest body)
|
||||
"Suppress popup windows.
|
||||
|
@ -502,9 +502,7 @@ as `org-src-fontify-natively' is non-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))
|
||||
;; Avoid `font-lock-ensure', which does not display fonts in
|
||||
;; source block.
|
||||
(font-lock-fontify-buffer)
|
||||
(org-font-lock-ensure)
|
||||
(setq pos (point-min))
|
||||
(while (setq next (next-single-property-change pos 'face))
|
||||
(put-text-property
|
||||
|
@ -6449,7 +6449,7 @@ needs to be inserted at a specific position in the font-lock sequence.")
|
||||
(insert s)
|
||||
(let ((org-odd-levels-only odd-levels))
|
||||
(org-mode)
|
||||
(font-lock-ensure)
|
||||
(org-font-lock-ensure)
|
||||
(buffer-string))))
|
||||
|
||||
(defvar org-m nil)
|
||||
|
@ -2050,7 +2050,7 @@ is the language used for CODE, as a string, or nil."
|
||||
(funcall lang-mode)
|
||||
(insert code)
|
||||
;; Fontify buffer.
|
||||
(font-lock-ensure)
|
||||
(org-font-lock-ensure)
|
||||
;; Remove formatting on newline characters.
|
||||
(save-excursion
|
||||
(let ((beg (point-min))
|
||||
|
@ -3122,7 +3122,7 @@ and prefix with \"OrgSrc\". For example,
|
||||
(with-temp-buffer
|
||||
(insert code)
|
||||
(funcall lang-mode)
|
||||
(font-lock-ensure)
|
||||
(org-font-lock-ensure)
|
||||
(buffer-string))))
|
||||
(fontifier (if use-htmlfontify-p 'org-odt-htmlfontify-string
|
||||
'org-odt--encode-plain-text))
|
||||
|
@ -298,7 +298,7 @@ Return output file name."
|
||||
(work-buffer (or visitingp (find-file-noselect filename)))
|
||||
newbuf)
|
||||
(with-current-buffer work-buffer
|
||||
(font-lock-ensure)
|
||||
(org-font-lock-ensure)
|
||||
(outline-show-all)
|
||||
(org-show-block-all)
|
||||
(setq newbuf (htmlize-buffer)))
|
||||
|
Loading…
Reference in New Issue
Block a user