aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/loadhist.el12
-rw-r--r--src/ChangeLog5
-rw-r--r--src/minibuf.c12
4 files changed, 16 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1be44bceff9..e3eb6da2f71 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12013-11-15 Leo Liu <sdl.web@gmail.com>
2
3 * loadhist.el (read-feature): Get rid of fake feature nil. (Bug#15889)
4
12013-11-14 Stefan Monnier <monnier@iro.umontreal.ca> 52013-11-14 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * progmodes/gud.el (ctl-x-map): 7 * progmodes/gud.el (ctl-x-map):
diff --git a/lisp/loadhist.el b/lisp/loadhist.el
index 620344734b3..b8433e1cbaa 100644
--- a/lisp/loadhist.el
+++ b/lisp/loadhist.el
@@ -101,14 +101,10 @@ A library name is equivalent to the file name that `load-library' would load."
101 "Read feature name from the minibuffer, prompting with string PROMPT. 101 "Read feature name from the minibuffer, prompting with string PROMPT.
102If optional second arg LOADED-P is non-nil, the feature must be loaded 102If optional second arg LOADED-P is non-nil, the feature must be loaded
103from a file." 103from a file."
104 (intern 104 (intern (completing-read prompt
105 (completing-read prompt 105 features
106 (cons nil features) 106 (and loaded-p #'feature-file)
107 (and loaded-p 107 loaded-p)))
108 #'(lambda (f)
109 (and f ; ignore nil
110 (feature-file f))))
111 loaded-p)))
112 108
113(defvaralias 'loadhist-hook-functions 'unload-feature-special-hooks) 109(defvaralias 'loadhist-hook-functions 'unload-feature-special-hooks)
114(defvar unload-feature-special-hooks 110(defvar unload-feature-special-hooks
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))