summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bookmark-conf.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/bookmark-conf.el b/bookmark-conf.el
index 4e3aa5a..f2a36b2 100644
--- a/bookmark-conf.el
+++ b/bookmark-conf.el
@@ -110,8 +110,12 @@
handler-name
(replace-regexp-in-string
"^durand-" ""
- (replace-regexp-in-string
- "-bookmark$" "" (match-string 1 handler-name))))))
+ (match-string 1 handler-name)))))
+ (setq handler-name
+ (and (stringp handler-name)
+ (replace-regexp-in-string
+ (rx "-bookmark" (zero-or-one "-handler") eos)
+ "" handler-name)))
;; Tramp bookmarks
(cond
((and (stringp location)