branch: externals/consult
commit 42aaed5cc85dfc21c9c31a43ccbf3db5b347e593
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    No need to use hashed symbol as argument for derived-mode-p
---
 consult.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/consult.el b/consult.el
index 1e69e5c9a5..eaee956777 100644
--- a/consult.el
+++ b/consult.el
@@ -1424,7 +1424,7 @@ ORIG is the original function, HOOKS the arguments."
 (defun consult--invisible-open-permanently ()
   "Open overlays which hide the current line.
 See `isearch-open-necessary-overlays' and `isearch-open-overlay-temporary'."
-  (if (and (derived-mode-p #'org-mode) (fboundp 'org-fold-show-set-visibility))
+  (if (and (derived-mode-p 'org-mode) (fboundp 'org-fold-show-set-visibility))
       ;; New Org 9.6 fold-core API
       (let ((inhibit-redisplay t)) ;; HACK: Prevent flicker due to premature 
redisplay
         (org-fold-show-set-visibility 'canonical))
@@ -1436,7 +1436,7 @@ See `isearch-open-necessary-overlays' and 
`isearch-open-overlay-temporary'."
 (defun consult--invisible-open-temporarily ()
   "Temporarily open overlays which hide the current line.
 See `isearch-open-necessary-overlays' and `isearch-open-overlay-temporary'."
-  (if (and (derived-mode-p #'org-mode)
+  (if (and (derived-mode-p 'org-mode)
            (fboundp 'org-fold-show-set-visibility)
            (fboundp 'org-fold-core-get-regions)
            (fboundp 'org-fold-core-region))

Reply via email to