branch: elpa/helm
commit 9dee8f7bd1d02bc8d848597e2478e63bf0f090f5
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Avoid having org bookmarks both in files and org
---
 helm-bookmark.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/helm-bookmark.el b/helm-bookmark.el
index e65862ab72..15865977da 100644
--- a/helm-bookmark.el
+++ b/helm-bookmark.el
@@ -307,7 +307,10 @@ BOOKMARK is a bookmark name or a bookmark record.
 This excludes bookmarks of a more specific kind (Info, Gnus, and W3m)."
   (let* ((filename   (bookmark-get-filename bookmark))
          (isnonfile  (equal filename helm-bookmark--non-file-filename)))
-    (and filename (not isnonfile) (not (bookmark-get-handler bookmark)))))
+    (and filename
+         (not isnonfile)
+         (not (helm-bookmark-org-file-p bookmark))
+         (not (bookmark-get-handler bookmark)))))
 
 (defun helm-bookmark-org-file-p (bookmark)
   (let* ((filename (bookmark-get-filename bookmark)))

Reply via email to