diff options
| author | Stefan Monnier | 2012-10-26 13:20:54 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-10-26 13:20:54 -0400 |
| commit | 372212dff2e3d84c676dc78ff27d7a0b5ec710de (patch) | |
| tree | 7b21bbc0fead975533b54fc4b0386e267a1ac788 | |
| parent | c577256946cde9d0558a4395cc15cf6a0119adce (diff) | |
| download | emacs-372212dff2e3d84c676dc78ff27d7a0b5ec710de.tar.gz emacs-372212dff2e3d84c676dc78ff27d7a0b5ec710de.zip | |
* lisp/bookmark.el (bookmark-completing-read): Set the completion category
to `bookmark'.
Fixes: debbugs:11131
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/bookmark.el | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bda9ac0d4aa..c43b0c136e3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-10-26 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * bookmark.el (bookmark-completing-read): Set the completion category | ||
| 4 | to `bookmark' (bug#11131). | ||
| 5 | |||
| 1 | 2012-10-26 Bastien <bzg@altern.org> | 6 | 2012-10-26 Bastien <bzg@altern.org> |
| 2 | Stefan Monnier <monnier@iro.umontreal.ca> | 7 | Stefan Monnier <monnier@iro.umontreal.ca> |
| 3 | 8 | ||
diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 838e5a5ec00..78ca6f22c8e 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el | |||
| @@ -433,7 +433,11 @@ the empty string." | |||
| 433 | ": "))) | 433 | ": "))) |
| 434 | (str | 434 | (str |
| 435 | (completing-read prompt | 435 | (completing-read prompt |
| 436 | bookmark-alist | 436 | (lambda (string pred action) |
| 437 | (if (eq action 'metadata) | ||
| 438 | '(metadata (category . bookmark)) | ||
| 439 | (complete-with-action | ||
| 440 | action bookmark-alist string pred))) | ||
| 437 | nil | 441 | nil |
| 438 | 0 | 442 | 0 |
| 439 | nil | 443 | nil |