diff options
| author | Eli Zaretskii | 2017-12-22 15:49:57 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-12-22 15:49:57 +0200 |
| commit | ebe91f6026edf54d5de936d3d6b696d5c76ef705 (patch) | |
| tree | defaba0ecd843660f1bc2c0ad347d9c3dd319c27 | |
| parent | 3521efce1a9c3094e9911445a7db23f87cd3e5f4 (diff) | |
| parent | b5a5790d2075a6cfcca32c7ad0809c76582e40ff (diff) | |
| download | emacs-ebe91f6026edf54d5de936d3d6b696d5c76ef705.tar.gz emacs-ebe91f6026edf54d5de936d3d6b696d5c76ef705.zip | |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
| -rw-r--r-- | lisp/registry.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/registry.el b/lisp/registry.el index 17dc23d68e8..3d0502a8f42 100644 --- a/lisp/registry.el +++ b/lisp/registry.el | |||
| @@ -358,11 +358,12 @@ return LIMIT such candidates. If SORTFUNC is provided, sort | |||
| 358 | entries first and return candidates from beginning of list." | 358 | entries first and return candidates from beginning of list." |
| 359 | (let* ((precious (oref db precious)) | 359 | (let* ((precious (oref db precious)) |
| 360 | (precious-p (lambda (entry-key) | 360 | (precious-p (lambda (entry-key) |
| 361 | (cdr (memq (car entry-key) precious)))) | 361 | (cdr (memq (car-safe entry-key) precious)))) |
| 362 | (data (oref db data)) | 362 | (data (oref db data)) |
| 363 | (candidates (cl-loop for k being the hash-keys of data | 363 | (candidates (cl-loop for k being the hash-keys of data |
| 364 | using (hash-values v) | 364 | using (hash-values v) |
| 365 | when (cl-notany precious-p v) | 365 | when (and (listp v) |
| 366 | (cl-notany precious-p v)) | ||
| 366 | collect (cons k v)))) | 367 | collect (cons k v)))) |
| 367 | ;; We want the full entries for sorting, but should only return a | 368 | ;; We want the full entries for sorting, but should only return a |
| 368 | ;; list of entry keys. | 369 | ;; list of entry keys. |