branch: externals/org
commit ee12059f78697d6d28ec3c98f4b4e092fbe8929f
Merge: af1478121f eb8c1fff8f
Author: Ihor Radchenko <[email protected]>
Commit: Ihor Radchenko <[email protected]>

    Merge branch 'bugfix'
---
 lisp/ol-man.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/ol-man.el b/lisp/ol-man.el
index 2511d8166e..fc504149a7 100644
--- a/lisp/ol-man.el
+++ b/lisp/ol-man.el
@@ -51,7 +51,8 @@ If PATH contains extra ::STRING which will use `occur' to 
search
 matched strings in man buffer."
   (require 'man) ; For `Man-translate-references'
   (string-match "\\(.*?\\)\\(?:::\\(.*\\)\\)?$" path)
-  (let* ((command (match-string 1 path))
+  (let* ((search (match-string 2 path))
+         (command (match-string 1 path))
          ;; FIXME: Remove after we drop Emacs 29 support.
          ;; Working around security bug #66390.
          (command (if (not (equal (Man-translate-references ";id") ";id"))
@@ -64,7 +65,6 @@ matched strings in man buffer."
                                (mapcar #'shell-quote-argument
                                        (split-string command "\\s-+"))
                                " ")))
-         (search (match-string 2 path))
          (buffer (funcall org-man-command command)))
     (when search
       (with-current-buffer buffer

Reply via email to