Update to Org 9.6.3-2-gf2949d

This commit is contained in:
Kyle Meyer 2023-04-02 23:03:32 -04:00
parent 5a1c9aace7
commit 479626dbac
4 changed files with 36 additions and 42 deletions

View file

@ -1,5 +1,5 @@
% Reference Card for Org Mode % Reference Card for Org Mode
\def\orgversionnumber{9.6.2} \def\orgversionnumber{9.6.3}
\def\versionyear{2023} % latest update \def\versionyear{2023} % latest update
\input emacsver.tex \input emacsver.tex

View file

@ -81,19 +81,7 @@ or user `keyboard-quit' during execution of body."
(let* ((string-buffer "") (let* ((string-buffer "")
(comint-output-filter-functions (comint-output-filter-functions
(cons (lambda (text) (cons (lambda (text)
(setq string-buffer (setq string-buffer (concat string-buffer text)))
(concat
string-buffer
;; Upon concatenation, the prompt may no
;; longer match `comint-prompt-regexp'.
;; In particular, when the regexp has ^
;; and the output does not contain
;; trailing newline. Use more reliable
;; match to split the output later.
(replace-regexp-in-string
comint-prompt-regexp
,org-babel-comint-prompt-separator
text))))
comint-output-filter-functions)) comint-output-filter-functions))
dangling-text) dangling-text)
;; got located, and save dangling text ;; got located, and save dangling text
@ -117,12 +105,19 @@ or user `keyboard-quit' during execution of body."
(goto-char (process-mark (get-buffer-process (current-buffer)))) (goto-char (process-mark (get-buffer-process (current-buffer))))
(insert dangling-text) (insert dangling-text)
;; Replace partially supplied input lines. ;; Filter out prompts.
;; This is needed when output filter spits partial lines that
;; do not include a full prompt at a time.
(setq string-buffer (setq string-buffer
(replace-regexp-in-string (replace-regexp-in-string
comint-prompt-regexp ;; Sometimes, we get multiple agglomerated
;; prompts together in a single output:
;; "prompt prompt prompt output"
;; Remove them progressively, so that
;; possible "^" in the prompt regexp gets to
;; work as we remove the heading prompt
;; instance.
(if (string-prefix-p "^" comint-prompt-regexp)
(format "^\\(%s\\)+" (substring comint-prompt-regexp 1))
comint-prompt-regexp)
,org-babel-comint-prompt-separator ,org-babel-comint-prompt-separator
string-buffer)) string-buffer))
;; remove echo'd FULL-BODY from input ;; remove echo'd FULL-BODY from input

View file

@ -5,13 +5,13 @@
(defun org-release () (defun org-release ()
"The release version of Org. "The release version of Org.
Inserted by installing Org mode or when a release is made." Inserted by installing Org mode or when a release is made."
(let ((org-release "9.6.2")) (let ((org-release "9.6.3"))
org-release)) org-release))
;;;###autoload ;;;###autoload
(defun org-git-version () (defun org-git-version ()
"The Git version of Org mode. "The Git version of Org mode.
Inserted by installing Org or when a release is made." Inserted by installing Org or when a release is made."
(let ((org-git-version "release_9.6.2")) (let ((org-git-version "release_9.6.3-2-gf2949d"))
org-git-version)) org-git-version))
(provide 'org-version) (provide 'org-version)

View file

@ -9,7 +9,7 @@
;; URL: https://orgmode.org ;; URL: https://orgmode.org
;; Package-Requires: ((emacs "26.1")) ;; Package-Requires: ((emacs "26.1"))
;; Version: 9.6.2 ;; Version: 9.6.3
;; This file is part of GNU Emacs. ;; This file is part of GNU Emacs.
;; ;;
@ -3600,13 +3600,13 @@ following symbols:
(const :tag "Entities" entities)))) (const :tag "Entities" entities))))
(defcustom org-hide-emphasis-markers nil (defcustom org-hide-emphasis-markers nil
"Non-nil mean font-lock should hide the emphasis marker characters." "Non-nil means font-lock should hide the emphasis marker characters."
:group 'org-appearance :group 'org-appearance
:type 'boolean :type 'boolean
:safe #'booleanp) :safe #'booleanp)
(defcustom org-hide-macro-markers nil (defcustom org-hide-macro-markers nil
"Non-nil mean font-lock should hide the brackets marking macro calls." "Non-nil means font-lock should hide the brackets marking macro calls."
:group 'org-appearance :group 'org-appearance
:type 'boolean) :type 'boolean)
@ -3618,7 +3618,7 @@ When nil, the \\name form remains in the buffer."
:type 'boolean) :type 'boolean)
(defcustom org-pretty-entities-include-sub-superscripts t (defcustom org-pretty-entities-include-sub-superscripts t
"Non-nil means, pretty entity display includes formatting sub/superscripts." "Non-nil means pretty entity display includes formatting sub/superscripts."
:group 'org-appearance :group 'org-appearance
:version "24.1" :version "24.1"
:type 'boolean) :type 'boolean)
@ -10215,7 +10215,7 @@ nil."
(replace-match "") (replace-match "")
(if (and (string-match "\\S-" (buffer-substring (line-beginning-position) (point))) (if (and (string-match "\\S-" (buffer-substring (line-beginning-position) (point)))
(equal (char-before) ?\ )) (equal (char-before) ?\ ))
(backward-delete-char 1) (delete-char -1)
(when (string-match "^[ \t]*$" (buffer-substring (when (string-match "^[ \t]*$" (buffer-substring
(line-beginning-position) (line-end-position))) (line-beginning-position) (line-end-position)))
(delete-region (line-beginning-position) (delete-region (line-beginning-position)
@ -12006,7 +12006,6 @@ Returns the new tags string, or nil to not change the current settings."
(setq current nil) (setq current nil)
(when exit-after-next (setq exit-after-next 'now))) (when exit-after-next (setq exit-after-next 'now)))
((= c ?\t) ((= c ?\t)
(condition-case nil
(unless tab-tags (unless tab-tags
(setq tab-tags (setq tab-tags
(delq nil (delq nil
@ -12017,7 +12016,7 @@ Returns the new tags string, or nil to not change the current settings."
(org--tag-add-to-alist (org--tag-add-to-alist
(with-current-buffer buf (with-current-buffer buf
(org-get-buffer-tags)) (org-get-buffer-tags))
table)))))) table)))))
(setq tg (completing-read "Tag: " tab-tags)) (setq tg (completing-read "Tag: " tab-tags))
(when (string-match "\\S-" tg) (when (string-match "\\S-" tg)
(cl-pushnew (list tg) tab-tags :test #'equal) (cl-pushnew (list tg) tab-tags :test #'equal)
@ -16532,7 +16531,7 @@ because, in this case the deletion might narrow the column."
(looking-at-p ".*?|") (looking-at-p ".*?|")
(org-at-table-p)) (org-at-table-p))
(progn (forward-char -1) (org-delete-char 1)) (progn (forward-char -1) (org-delete-char 1))
(backward-delete-char N) (funcall-interactively #'backward-delete-char N)
(org-fix-tags-on-the-fly)))) (org-fix-tags-on-the-fly))))
(defun org-delete-char (N) (defun org-delete-char (N)