mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
* lisp/loadhist.el (read-feature): Get rid of fake feature nil.
* src/minibuf.c (Ftry_completion, Fall_completions) (Ftest_completion): Use FUNCTIONP. (Bug#15889)
This commit is contained in:
parent
1a191e5c73
commit
a1f03e8916
4 changed files with 16 additions and 17 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2013-11-15 Leo Liu <sdl.web@gmail.com>
|
||||
|
||||
* loadhist.el (read-feature): Get rid of fake feature nil. (Bug#15889)
|
||||
|
||||
2013-11-14 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* progmodes/gud.el (ctl-x-map):
|
||||
|
|
|
|||
|
|
@ -101,14 +101,10 @@ A library name is equivalent to the file name that `load-library' would load."
|
|||
"Read feature name from the minibuffer, prompting with string PROMPT.
|
||||
If optional second arg LOADED-P is non-nil, the feature must be loaded
|
||||
from a file."
|
||||
(intern
|
||||
(completing-read prompt
|
||||
(cons nil features)
|
||||
(and loaded-p
|
||||
#'(lambda (f)
|
||||
(and f ; ignore nil
|
||||
(feature-file f))))
|
||||
loaded-p)))
|
||||
(intern (completing-read prompt
|
||||
features
|
||||
(and loaded-p #'feature-file)
|
||||
loaded-p)))
|
||||
|
||||
(defvaralias 'loadhist-hook-functions 'unload-feature-special-hooks)
|
||||
(defvar unload-feature-special-hooks
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
2013-11-15 Leo Liu <sdl.web@gmail.com>
|
||||
|
||||
* minibuf.c (Ftry_completion, Fall_completions)
|
||||
(Ftest_completion): Use FUNCTIONP. (Bug#15889)
|
||||
|
||||
2013-11-15 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* lisp.h (DEFINE_GDB_SYMBOL_BEGIN, DEFINE_GDB_SYMBOL_END):
|
||||
|
|
|
|||
|
|
@ -1199,9 +1199,7 @@ is used to further constrain the set of candidates. */)
|
|||
type = (HASH_TABLE_P (collection) ? hash_table
|
||||
: VECTORP (collection) ? obarray_table
|
||||
: ((NILP (collection)
|
||||
|| (CONSP (collection)
|
||||
&& (!SYMBOLP (XCAR (collection))
|
||||
|| NILP (XCAR (collection)))))
|
||||
|| (CONSP (collection) && !FUNCTIONP (collection)))
|
||||
? list_table : function_table));
|
||||
ptrdiff_t idx = 0, obsize = 0;
|
||||
int matchcount = 0;
|
||||
|
|
@ -1460,9 +1458,7 @@ with a space are ignored unless STRING itself starts with a space. */)
|
|||
Lisp_Object allmatches;
|
||||
int type = HASH_TABLE_P (collection) ? 3
|
||||
: VECTORP (collection) ? 2
|
||||
: NILP (collection) || (CONSP (collection)
|
||||
&& (!SYMBOLP (XCAR (collection))
|
||||
|| NILP (XCAR (collection))));
|
||||
: NILP (collection) || (CONSP (collection) && !FUNCTIONP (collection));
|
||||
ptrdiff_t idx = 0, obsize = 0;
|
||||
ptrdiff_t bindcount = -1;
|
||||
Lisp_Object bucket, tem, zero;
|
||||
|
|
@ -1691,9 +1687,7 @@ the values STRING, PREDICATE and `lambda'. */)
|
|||
|
||||
CHECK_STRING (string);
|
||||
|
||||
if ((CONSP (collection)
|
||||
&& (!SYMBOLP (XCAR (collection)) || NILP (XCAR (collection))))
|
||||
|| NILP (collection))
|
||||
if (NILP (collection) || (CONSP (collection) && !FUNCTIONP (collection)))
|
||||
{
|
||||
tem = Fassoc_string (string, collection, completion_ignore_case ? Qt : Qnil);
|
||||
if (NILP (tem))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue