* lisp/bookmark.el (bookmark-completing-read): Set the completion category
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 26 Oct 2012 17:20:54 +0000 (13:20 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 26 Oct 2012 17:20:54 +0000 (13:20 -0400)
to `bookmark'.

Fixes: debbugs:11131

lisp/ChangeLog
lisp/bookmark.el

index bda9ac0..c43b0c1 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-26  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * bookmark.el (bookmark-completing-read): Set the completion category
+       to `bookmark' (bug#11131).
+
 2012-10-26  Bastien  <bzg@altern.org>
             Stefan Monnier  <monnier@iro.umontreal.ca>
 
index 838e5a5..78ca6f2 100644 (file)
@@ -433,7 +433,11 @@ the empty string."
                                     ": ")))
           (str
            (completing-read prompt
-                            bookmark-alist
+                            (lambda (string pred action)
+                               (if (eq action 'metadata)
+                                   '(metadata (category . bookmark))
+                                 (complete-with-action
+                                  action bookmark-alist string pred)))
                             nil
                             0
                             nil