From 0e52beeacead956cdaa7921e911afc2fd29aea61 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 30 Apr 2023 19:36:21 -0400 Subject: [PATCH] Update to Org 9.6.5-3-g2993f4 --- etc/refcards/orgcard.tex | 2 +- lisp/org/ob-core.el | 3 ++- lisp/org/org-version.el | 4 ++-- lisp/org/org.el | 6 +++++- lisp/org/ox-odt.el | 37 +++++++++++++++++++------------------ 5 files changed, 29 insertions(+), 23 deletions(-) diff --git a/etc/refcards/orgcard.tex b/etc/refcards/orgcard.tex index c5d112dba72..6ee77758e06 100644 --- a/etc/refcards/orgcard.tex +++ b/etc/refcards/orgcard.tex @@ -1,5 +1,5 @@ % Reference Card for Org Mode -\def\orgversionnumber{9.6.4} +\def\orgversionnumber{9.6.5} \def\versionyear{2023} % latest update \input emacsver.tex diff --git a/lisp/org/ob-core.el b/lisp/org/ob-core.el index 3f6696fce77..e69ce4f1d12 100644 --- a/lisp/org/ob-core.el +++ b/lisp/org/ob-core.el @@ -2426,7 +2426,8 @@ INFO may provide the values of these header arguments (in the (delete-region (point) (org-babel-result-end))) ((member "append" result-params) (goto-char (org-babel-result-end)) (setq beg (point-marker))) - ((member "prepend" result-params))) ; already there + ;; ((member "prepend" result-params)) ; already there + ) (setq results-switches (if results-switches (concat " " results-switches) "")) (let ((wrap diff --git a/lisp/org/org-version.el b/lisp/org/org-version.el index b82e915ecd1..ef61dc9cbd6 100644 --- a/lisp/org/org-version.el +++ b/lisp/org/org-version.el @@ -5,13 +5,13 @@ (defun org-release () "The release version of Org. Inserted by installing Org mode or when a release is made." - (let ((org-release "9.6.4")) + (let ((org-release "9.6.5")) org-release)) ;;;###autoload (defun org-git-version () "The Git version of Org mode. Inserted by installing Org or when a release is made." - (let ((org-git-version "release_9.6.4-9-g8eb209")) + (let ((org-git-version "release_9.6.5-3-g2993f4")) org-git-version)) (provide 'org-version) diff --git a/lisp/org/org.el b/lisp/org/org.el index 61862b3d63b..f4aa28cc486 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el @@ -9,7 +9,7 @@ ;; URL: https://orgmode.org ;; Package-Requires: ((emacs "26.1")) -;; Version: 9.6.4 +;; Version: 9.6.5 ;; This file is part of GNU Emacs. ;; @@ -18602,6 +18602,10 @@ block from point." (throw 'exit n))))) nil))) +;; Defined in org-agenda.el +(defvar org-agenda-restrict) +(defvar org-agenda-restrict-begin) +(defvar org-agenda-restrict-end) (defun org-occur-in-agenda-files (regexp &optional _nlines) "Call `multi-occur' with buffers for all agenda files." (interactive "sOrg-files matching: ") diff --git a/lisp/org/ox-odt.el b/lisp/org/ox-odt.el index 03c909f78ed..dd96ed8e064 100644 --- a/lisp/org/ox-odt.el +++ b/lisp/org/ox-odt.el @@ -2926,24 +2926,25 @@ contextual information." ;; FIXME: The unnecessary spacing may still remain when a newline ;; is at a boundary between Org objects (e.g. italics markup ;; followed by newline). - (setq output - (with-temp-buffer - (save-match-data - (let ((leading (and (string-match (rx bos (1+ blank)) output) - (match-string 0 output))) - (trailing (and (string-match (rx (1+ blank) eos) output) - (match-string 0 output)))) - (insert - (substring - output - (length leading) - (pcase (length trailing) - (0 nil) - (n (- n))))) - ;; Unfill, retaining leading/trailing space. - (let ((fill-column most-positive-fixnum)) - (fill-region (point-min) (point-max))) - (concat leading (buffer-string) trailing)))))) + (when (org-string-nw-p output) ; blank string needs not to be re-filled + (setq output + (with-temp-buffer + (save-match-data + (let ((leading (and (string-match (rx bos (1+ blank)) output) + (match-string 0 output))) + (trailing (and (string-match (rx (1+ blank) eos) output) + (match-string 0 output)))) + (insert + (substring + output + (length leading) + (pcase (length trailing) + (0 nil) + (n (- n))))) + ;; Unfill, retaining leading/trailing space. + (let ((fill-column most-positive-fixnum)) + (fill-region (point-min) (point-max))) + (concat leading (buffer-string) trailing))))))) ;; Return value. output)) -- 2.39.2