diff --git a/lisp/org.el b/lisp/org.el index 2e91dd508..0ca0d2f7d 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -10922,6 +10922,9 @@ D Show deadlines and scheduled items between a date range." ((?p ?P) (let* ((kwd (completing-read "Property: " (mapcar #'list (org-buffer-property-keys)))) + (kwd + ;; Escape "-" in property names. + (replace-regexp-in-string "-" "\\\\-" kwd)) (value (completing-read "Value: " (mapcar #'list (org-property-values kwd))))) (unless (string-match "\\`{.*}\\'" value)