Hello,

I've been struggling to get back into a good mindset to think deeply
about programming so here's an easy one while I build up to it.

Tests pass on emacs 30.2, 29, and 28.
Tests pass with TZ set to UTC, Europe/Istanbul, and America/New_York.

>From c2283b9fffab2e3c5689568d0ccd185ae660280c Mon Sep 17 00:00:00 2001
From: Morgan Smith <[email protected]>
Date: Sun, 11 Jan 2026 14:18:14 -0500
Subject: [PATCH] Replace references to obsolete variables and functions

* doc/org-guide.org (Visibility Cycling):
* doc/org-manual.org (Global and local cycling, Internal archiving)
(Filtering in the agenda):
* lisp/ob-ref.el (org-babel-ref-index-list):
* lisp/ol.el (org-link-email-description-format):
* lisp/org-capture.el (org-capture-put-target-region-and-position):
* lisp/org-compat.el (org-show-block-all, org-flag-drawer)
(org-hide-block-toggle-maybe):
* lisp/org-mouse.el (org-mouse-popup-global-menu):
* lisp/org.el (org-properties-postprocess-alist, org-org-menu):
* lisp/ox-latex.el (org-latex-src-block-backend):
Replace references to obsolete functions and variables with their new alias.
---
 doc/org-guide.org   |  2 +-
 doc/org-manual.org  | 11 +++++++----
 lisp/ob-ref.el      |  2 +-
 lisp/ol.el          |  2 +-
 lisp/org-capture.el |  2 +-
 lisp/org-compat.el  |  8 ++++----
 lisp/org-mouse.el   |  2 +-
 lisp/org.el         |  6 +++---
 lisp/ox-latex.el    |  2 +-
 9 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/doc/org-guide.org b/doc/org-guide.org
index d10f4f51c..ae8fe602d 100644
--- a/doc/org-guide.org
+++ b/doc/org-guide.org
@@ -162,7 +162,7 @@ ** Visibility Cycling
   : ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
   : '--------------------------------------'
 
-- {{{kbd(C-u C-u C-u TAB)}}} (~org-show-all~) ::
+- {{{kbd(C-u C-u C-u TAB)}}} (~org-fold-show-all~) ::
 
   Show all, including drawers.
 
diff --git a/doc/org-manual.org b/doc/org-manual.org
index fe2cd171e..78826df6f 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -615,11 +615,12 @@ *** Global and local cycling
   Switch back to the startup visibility of the buffer (see [[*Initial
   visibility]]).
 
-- {{{kbd(C-u C-u C-u TAB)}}} (~org-show-all~) ::
+- {{{kbd(C-u C-u C-u TAB)}}} (~org-fold-show-all~) ::
 
   #+cindex: show all, command
   #+kindex: C-u C-u C-u TAB
   #+findex: org-show-all
+  #+findex: org-fold-show-all
   Show all, including drawers.
 
 - {{{kbd(C-c C-r)}}} (~org-reveal~) ::
@@ -642,11 +643,12 @@ *** Global and local cycling
   #+findex: org-show-branches
   Expose all the headings of the subtree, but not their bodies.
 
-- {{{kbd(C-c TAB)}}} (~org-show-children~) ::
+- {{{kbd(C-c TAB)}}} (~org-fold-show-children~) ::
 
   #+cindex: show children, command
   #+kindex: C-c TAB
   #+findex: org-show-children
+  #+findex: org-fold-show-children
   Expose all direct children of the subtree.  With a numeric prefix
   argument {{{var(N)}}}, expose all children down to level
   {{{var(N)}}}.
@@ -7806,7 +7808,7 @@ *** Internal archiving
   command (see [[*Visibility Cycling]]).  You can force cycling archived
   subtrees with {{{kbd(C-c C-TAB)}}}, or by setting the option
   ~org-cycle-open-archived-trees~.  Also, normal outline commands, like
-  ~org-show-all~, open archived subtrees.
+  ~org-fold-show-all~, open archived subtrees.
 
 -
   #+vindex: org-sparse-tree-open-archived-trees
@@ -9887,6 +9889,7 @@ **** Filtering in the agenda
         '(("Effort_ALL". "0 0:10 0:30 1:00 2:00 3:00 4:00")))
   #+end_src
 
+  #+vindex: org-agenda-sort-noeffort-is-high
   #+vindex: org-sort-agenda-noeffort-is-high
   You can then filter for an effort by first typing an operator, one
   of {{{kbd(<)}}}, {{{kbd(>)}}} and {{{kbd(=)}}}, and then the
@@ -9895,7 +9898,7 @@ **** Filtering in the agenda
   restricts to entries with effort smaller-or-equal, equal, or
   larger-or-equal than the selected value.  For application of the
   operator, entries without a defined effort are treated according to
-  the value of ~org-sort-agenda-noeffort-is-high~.  To clear the
+  the value of ~org-agenda-sort-noeffort-is-high~.  To clear the
   filter, press {{{kbd(_)}}} twice (once to call the command again,
   and once at the first prompt).
 
diff --git a/lisp/ob-ref.el b/lisp/ob-ref.el
index 6a76edaa7..14c5ce4a9 100644
--- a/lisp/ob-ref.el
+++ b/lisp/ob-ref.el
@@ -236,7 +236,7 @@ org-babel-ref-index-list
 	  (if (or (= 0 (length portion)) (string-match ind-re portion))
 	      (mapcar
 	       (lambda (n) (nth n lis))
-	       (apply 'org-number-sequence
+	       (apply #'number-sequence
 		      (if (and (> (length portion) 0) (match-string 2 portion))
 			  (list
 			   (funcall wrap (string-to-number (match-string 2 portion)))
diff --git a/lisp/ol.el b/lisp/ol.el
index 4f29beb64..a903870fb 100644
--- a/lisp/ol.el
+++ b/lisp/ol.el
@@ -496,7 +496,7 @@ org-link-email-description-format
 %T   full \"To\" field
 %t   first name in \"To\" field, address if no name
 %c   correspondent.  Usually \"from NAME\", but if you sent it yourself, it
-     will be \"to NAME\".  See also the variable `org-from-is-user-regexp'.
+     will be \"to NAME\".  See also the variable `org-link-from-user-regexp'.
 %s   subject
 %d   date
 %m   message-id.
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index cde9d991e..f170212be 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1044,7 +1044,7 @@ org-capture-put-target-region-and-position
   (org-capture-put
    :initial-target-region
    ;; Check if the buffer is currently narrowed
-   (when (org-buffer-narrowed-p)
+   (when (buffer-narrowed-p)
      (cons (point-min) (point-max))))
   ;; store the current point
   (org-capture-put :initial-target-position (point)))
diff --git a/lisp/org-compat.el b/lisp/org-compat.el
index 7ca0a9481..973f862e2 100644
--- a/lisp/org-compat.el
+++ b/lisp/org-compat.el
@@ -1253,7 +1253,7 @@ org-show-block-all
   (org-fold-show-all '(blocks)))
 
 (make-obsolete 'org-show-block-all
-	       "use `org-show-all' instead."
+	       "use `org-fold-show-all' instead."
 	       "9.2")
 
 (define-obsolete-function-alias 'org-get-tags-at 'org-get-tags "9.2")
@@ -1292,7 +1292,7 @@ org-flag-drawer
 
 When buffer positions BEG and END are provided, hide or show that
 region as a drawer without further ado."
-  (declare (obsolete "use `org-hide-drawer-toggle' instead." "9.4"))
+  (declare (obsolete "use `org-fold-hide-drawer-toggle' instead." "9.4"))
   (if (and beg end) (org-fold-region beg end flag 'drawer)
     (let ((drawer
 	   (or element
@@ -1315,9 +1315,9 @@ org-flag-drawer
 
 (defun org-hide-block-toggle-maybe ()
   "Toggle visibility of block at point.
-Unlike to `org-hide-block-toggle', this function does not throw
+Unlike to `org-fold-hide-block-toggle', this function does not throw
 an error.  Return a non-nil value when toggling is successful."
-  (declare (obsolete "use `org-hide-block-toggle' instead." "9.4"))
+  (declare (obsolete "use `org-fold-hide-block-toggle' instead." "9.4"))
   (interactive)
   (org-fold-hide-block-toggle nil t))
 
diff --git a/lisp/org-mouse.el b/lisp/org-mouse.el
index d965b8ed5..cf303ee96 100644
--- a/lisp/org-mouse.el
+++ b/lisp/org-mouse.el
@@ -491,7 +491,7 @@ org-mouse-popup-global-menu
    `("Main Menu"
      ["Show Overview" org-mouse-show-overview t]
      ["Show Headlines" org-mouse-show-headlines t]
-     ["Show All" org-show-all t]
+     ["Show All" org-fold-show-all t]
      ["Remove Highlights" org-remove-occur-highlights
       :visible org-occur-highlights]
      "--"
diff --git a/lisp/org.el b/lisp/org.el
index b859a0879..e3d0073c2 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -3081,7 +3081,7 @@ org-properties-postprocess-alist
                    (let ((clocksum (org-clock-sum-current-item))
                          (effort (org-duration-to-minutes
                                    (org-entry-get (point) \"Effort\"))))
-                     (org-minutes-to-clocksum-string (- effort clocksum))))))"
+                     (org-duration-from-minutes (- effort clocksum))))))"
   :group 'org-properties
   :version "24.1"
   :type '(alist :key-type (string     :tag "Property")
@@ -18683,12 +18683,12 @@ org-org-menu
      ["Descriptive Links"
       org-toggle-link-display
       :style radio
-      :selected org-descriptive-links
+      :selected org-link-descriptive
       ]
      ["Literal Links"
       org-toggle-link-display
       :style radio
-      :selected (not org-descriptive-links)])
+      :selected (not org-link-descriptive)])
     "--"
     ("TODO Lists"
      ["TODO/DONE/-" org-todo t]
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 22123fd33..a63013adf 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -988,7 +988,7 @@ org-latex-src-block-backend
 passed to pdflatex.
 
 The minted choice has possible repercussions on the preview of
-latex fragments (see `org-preview-latex-fragment').  If you run
+latex fragments (see `org-latex-preview').  If you run
 into previewing problems, please consult
 URL `https://orgmode.org/worg/org-tutorials/org-latex-preview.html'.
 

base-commit: 24b7fde23d8aede01a1157121064e84c449345ed
-- 
2.52.0

Reply via email to