Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 890-898) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 122-128) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 257-258) - Merge from emacs--rel--22 - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-270
This commit is contained in:
commit
9c8020a8df
92 changed files with 1841 additions and 1010 deletions
12
src/coding.c
12
src/coding.c
|
@ -329,6 +329,8 @@ Lisp_Object Qtarget_idx;
|
|||
Lisp_Object Qinsufficient_source, Qinconsistent_eol, Qinvalid_source;
|
||||
Lisp_Object Qinterrupted, Qinsufficient_memory;
|
||||
|
||||
extern Lisp_Object Qcompletion_ignore_case;
|
||||
|
||||
/* If a symbol has this property, evaluate the value to define the
|
||||
symbol as a coding system. */
|
||||
static Lisp_Object Qcoding_system_define_form;
|
||||
|
@ -7194,16 +7196,22 @@ DEFUN ("read-non-nil-coding-system", Fread_non_nil_coding_system,
|
|||
|
||||
DEFUN ("read-coding-system", Fread_coding_system, Sread_coding_system, 1, 2, 0,
|
||||
doc: /* Read a coding system from the minibuffer, prompting with string PROMPT.
|
||||
If the user enters null input, return second argument DEFAULT-CODING-SYSTEM. */)
|
||||
If the user enters null input, return second argument DEFAULT-CODING-SYSTEM.
|
||||
Ignores case when completing coding systems (all Emacs coding systems
|
||||
are lower-case). */)
|
||||
(prompt, default_coding_system)
|
||||
Lisp_Object prompt, default_coding_system;
|
||||
{
|
||||
Lisp_Object val;
|
||||
int count = SPECPDL_INDEX ();
|
||||
|
||||
if (SYMBOLP (default_coding_system))
|
||||
XSETSTRING (default_coding_system, XPNTR (SYMBOL_NAME (default_coding_system)));
|
||||
default_coding_system = SYMBOL_NAME (default_coding_system);
|
||||
specbind (Qcompletion_ignore_case, Qt);
|
||||
val = Fcompleting_read (prompt, Vcoding_system_alist, Qnil,
|
||||
Qt, Qnil, Qcoding_system_history,
|
||||
default_coding_system, Qnil);
|
||||
unbind_to (count, Qnil);
|
||||
return (SCHARS (val) == 0 ? Qnil : Fintern (val, Qnil));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue