update of packages
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
;;; org-compat.el --- Compatibility Code for Older Emacsen -*- lexical-binding: t; -*-
|
||||
|
||||
;; Copyright (C) 2004-2022 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 2004-2023 Free Software Foundation, Inc.
|
||||
|
||||
;; Author: Carsten Dominik <carsten.dominik@gmail.com>
|
||||
;; Keywords: outlines, hypermedia, calendar, wp
|
||||
@@ -196,11 +196,13 @@ removed."
|
||||
|
||||
;;; Emacs < 27.1 compatibility
|
||||
|
||||
(unless (fboundp 'combine-change-calls)
|
||||
;; A stub when `combine-change-calls' was not yet there.
|
||||
(defmacro combine-change-calls (_beg _end &rest body)
|
||||
(declare (debug (form form def-body)) (indent 2))
|
||||
`(progn ,@body)))
|
||||
(if (version< emacs-version "29")
|
||||
;; A stub when `combine-change-calls' was not yet there or had
|
||||
;; critical bugs (see Emacs bug#60467).
|
||||
(defmacro org-combine-change-calls (_beg _end &rest body)
|
||||
(declare (debug (form form def-body)) (indent 2))
|
||||
`(progn ,@body))
|
||||
(defalias 'org-combine-change-calls 'combine-change-calls))
|
||||
|
||||
(if (version< emacs-version "27.1")
|
||||
(defsubst org-replace-buffer-contents (source &optional _max-secs _max-costs)
|
||||
@@ -1543,7 +1545,7 @@ key."
|
||||
"Run `org-fold-region' when in org-mode."
|
||||
(if (derived-mode-p 'org-mode)
|
||||
(org-fold-region (max from (point-min)) (min to (point-max)) flag 'headline)
|
||||
;; Apply EXTRA to avoid breakages if adviced function definition
|
||||
;; Apply EXTRA to avoid breakages if advised function definition
|
||||
;; changes.
|
||||
(apply oldfun from to flag extra)))
|
||||
|
||||
@@ -1551,7 +1553,7 @@ key."
|
||||
"Run `org-next-visible-heading' when in org-mode."
|
||||
(if (derived-mode-p 'org-mode)
|
||||
(org-next-visible-heading arg)
|
||||
;; Apply EXTRA to avoid breakages if adviced function definition
|
||||
;; Apply EXTRA to avoid breakages if advised function definition
|
||||
;; changes.
|
||||
(apply oldfun arg extra)))
|
||||
|
||||
@@ -1571,7 +1573,7 @@ key."
|
||||
(point)))))
|
||||
(goto-char found)
|
||||
found)))
|
||||
;; Apply EXTRA to avoid breakages if adviced function definition
|
||||
;; Apply EXTRA to avoid breakages if advised function definition
|
||||
;; changes.
|
||||
(apply oldfun invisible-ok extra)))
|
||||
|
||||
@@ -1579,7 +1581,7 @@ key."
|
||||
"Run `org-at-heading-p' when in org-mode."
|
||||
(if (derived-mode-p 'org-mode)
|
||||
(org-at-heading-p (not invisible-ok))
|
||||
;; Apply EXTRA to avoid breakages if adviced function definition
|
||||
;; Apply EXTRA to avoid breakages if advised function definition
|
||||
;; changes.
|
||||
(apply oldfun invisible-ok extra)))
|
||||
|
||||
@@ -1587,7 +1589,7 @@ key."
|
||||
"Run `org-fold-hide-sublevels' when in org-mode."
|
||||
(if (derived-mode-p 'org-mode)
|
||||
(org-fold-hide-sublevels levels)
|
||||
;; Apply EXTRA to avoid breakages if adviced function definition
|
||||
;; Apply EXTRA to avoid breakages if advised function definition
|
||||
;; changes.
|
||||
(apply oldfun levels extra)))
|
||||
|
||||
@@ -1600,7 +1602,7 @@ key."
|
||||
(org-fold-hide-subtree)
|
||||
(org-fold-show-children)
|
||||
(org-fold-show-entry 'hide-drawers)))
|
||||
;; Apply EXTRA to avoid breakages if adviced function definition
|
||||
;; Apply EXTRA to avoid breakages if advised function definition
|
||||
;; changes.
|
||||
(apply oldfun extra)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user