Update to Org 9.8.2

This commit is contained in:
Kyle Meyer
2026-04-12 16:44:03 -04:00
parent d835775d9b
commit ca33663e50
5 changed files with 14 additions and 12 deletions

View File

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

View File

@@ -183,7 +183,7 @@ Drawer's name is located in match group 1.")
(defconst org-element-dynamic-block-open-re
(rx line-start (0+ (any ?\s ?\t))
"#+BEGIN:" (0+ (any ?\s ?\t))
(group (1+ word))
(group (1+ (not space)))
(opt
(1+ (any ?\s ?\t))
(group (1+ nonl))))
@@ -193,7 +193,7 @@ Parameters are in match group 2.")
(defconst org-element-dynamic-block-open-re-nogroup
(rx line-start (0+ (any ?\s ?\t))
"#+BEGIN:" (0+ (any ?\s ?\t)) word)
"#+BEGIN:" (0+ (any ?\s ?\t)) (not space))
"Regexp matching the opening line of a dynamic block.")
(defconst org-element-headline-re

View File

@@ -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.8.1"))
(let ((org-release "9.8.2"))
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.8.1"))
(let ((org-git-version "release_9.8.2"))
org-git-version))
(provide 'org-version)

View File

@@ -9,7 +9,7 @@
;; URL: https://orgmode.org
;; Package-Requires: ((emacs "28.2"))
;; Version: 9.8.1
;; Version: 9.8.2
;; This file is part of GNU Emacs.
;;

View File

@@ -573,12 +573,14 @@ Trim string and collapse multiple whitespace characters as they
are not significant. Replace leading left parenthesis, when
followed by a right parenthesis, with a square bracket. Remove
periods, commas and colons."
(org-trim
(replace-regexp-in-string
"[ \t]+" " "
(replace-regexp-in-string
"[:,.]" ""
(replace-regexp-in-string "\\`(\\(.*?)\\)" "[\\1" title)))))
(thread-last
title
(replace-regexp-in-string "\\`(\\(.*?)\\)" "[\\1")
;; See https://lists.gnu.org/archive/html/bug-texinfo/2026-03/msg00000.html
(replace-regexp-in-string (rx "@comma" (optional "{}")) "")
(replace-regexp-in-string "[:,.]" "")
(replace-regexp-in-string "[ \t]+" " ")
org-trim))
(defun org-texinfo--sanitize-title (title info)
"Make TITLE suitable as a section name.