aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeo Liu2013-11-15 14:52:40 +0800
committerLeo Liu2013-11-15 14:52:40 +0800
commita1f03e8916caa24f1abc2aa14f98a79303017698 (patch)
tree44f4654406788beadcee133feb5557743d136044 /src
parent1a191e5c73cdae3d3b34f5fc3501bfd2ddf50ec8 (diff)
downloademacs-a1f03e8916caa24f1abc2aa14f98a79303017698.tar.gz
emacs-a1f03e8916caa24f1abc2aa14f98a79303017698.zip
* lisp/loadhist.el (read-feature): Get rid of fake feature nil.
* src/minibuf.c (Ftry_completion, Fall_completions) (Ftest_completion): Use FUNCTIONP. (Bug#15889)
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/minibuf.c12
2 files changed, 8 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8131c7b7355..92174beb27b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12013-11-15 Leo Liu <sdl.web@gmail.com>
2
3 * minibuf.c (Ftry_completion, Fall_completions)
4 (Ftest_completion): Use FUNCTIONP. (Bug#15889)
5
12013-11-15 Paul Eggert <eggert@cs.ucla.edu> 62013-11-15 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 * lisp.h (DEFINE_GDB_SYMBOL_BEGIN, DEFINE_GDB_SYMBOL_END): 8 * lisp.h (DEFINE_GDB_SYMBOL_BEGIN, DEFINE_GDB_SYMBOL_END):
diff --git a/src/minibuf.c b/src/minibuf.c
index 7ca4dae089b..8eb1a2890e0 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1199,9 +1199,7 @@ is used to further constrain the set of candidates. */)
1199 type = (HASH_TABLE_P (collection) ? hash_table 1199 type = (HASH_TABLE_P (collection) ? hash_table
1200 : VECTORP (collection) ? obarray_table 1200 : VECTORP (collection) ? obarray_table
1201 : ((NILP (collection) 1201 : ((NILP (collection)
1202 || (CONSP (collection) 1202 || (CONSP (collection) && !FUNCTIONP (collection)))
1203 && (!SYMBOLP (XCAR (collection))
1204 || NILP (XCAR (collection)))))
1205 ? list_table : function_table)); 1203 ? list_table : function_table));
1206 ptrdiff_t idx = 0, obsize = 0; 1204 ptrdiff_t idx = 0, obsize = 0;
1207 int matchcount = 0; 1205 int matchcount = 0;
@@ -1460,9 +1458,7 @@ with a space are ignored unless STRING itself starts with a space. */)
1460 Lisp_Object allmatches; 1458 Lisp_Object allmatches;
1461 int type = HASH_TABLE_P (collection) ? 3 1459 int type = HASH_TABLE_P (collection) ? 3
1462 : VECTORP (collection) ? 2 1460 : VECTORP (collection) ? 2
1463 : NILP (collection) || (CONSP (collection) 1461 : NILP (collection) || (CONSP (collection) && !FUNCTIONP (collection));
1464 && (!SYMBOLP (XCAR (collection))
1465 || NILP (XCAR (collection))));
1466 ptrdiff_t idx = 0, obsize = 0; 1462 ptrdiff_t idx = 0, obsize = 0;
1467 ptrdiff_t bindcount = -1; 1463 ptrdiff_t bindcount = -1;
1468 Lisp_Object bucket, tem, zero; 1464 Lisp_Object bucket, tem, zero;
@@ -1691,9 +1687,7 @@ the values STRING, PREDICATE and `lambda'. */)
1691 1687
1692 CHECK_STRING (string); 1688 CHECK_STRING (string);
1693 1689
1694 if ((CONSP (collection) 1690 if (NILP (collection) || (CONSP (collection) && !FUNCTIONP (collection)))
1695 && (!SYMBOLP (XCAR (collection)) || NILP (XCAR (collection))))
1696 || NILP (collection))
1697 { 1691 {
1698 tem = Fassoc_string (string, collection, completion_ignore_case ? Qt : Qnil); 1692 tem = Fassoc_string (string, collection, completion_ignore_case ? Qt : Qnil);
1699 if (NILP (tem)) 1693 if (NILP (tem))