fix(org-noter): compat shim for dired-read-dir-and-switches on Emacs 31

This commit is contained in:
2026-02-23 21:02:44 +01:00
parent c2264c7811
commit 55861e9381

View File

@@ -1230,6 +1230,11 @@ Otherwise: runs interactive ement-connect, then opens rooms after sync."
;;; ORG-NOTER — PDF annotations ;;; ORG-NOTER — PDF annotations
;;; ============================================================ ;;; ============================================================
;; Emacs 31 may not autoload dired-read-dir-and-switches early enough,
;; causing "Symbol's function definition is void" when org-noter starts.
;; Ensure dired is loaded so all its internal functions are available.
(require 'dired)
(use-package! org-noter (use-package! org-noter
:after (:any org pdf-view) :after (:any org pdf-view)
:config :config