aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorStefan Kangas2022-08-19 17:17:41 +0200
committerStefan Kangas2022-08-19 17:57:42 +0200
commit043ae1f53a29d69f2573356715861ec54d626b56 (patch)
tree4b443cafad4a398124931f745558861e2064bf2f /src/process.c
parentd0bb333efc0faf4c8ee78db5bd9c99819ad2053b (diff)
downloademacs-043ae1f53a29d69f2573356715861ec54d626b56.tar.gz
emacs-043ae1f53a29d69f2573356715861ec54d626b56.zip
Delete two functions obsolete since Emacs 23
These were announced as removed in Emacs 28.1 NEWS, but apparently never actually deleted: only their obsoletion warning was removed. So the warnings were reintroduced in Emacs 28.2, and we now actually delete them here instead. * src/process.c (Fset_process_filter_multibyte) (Fprocess_filter_multibyte_p): Delete functions obsolete since Emacs 23. (syms_of_process): Delete corresponding defsubrs. * lisp/subr.el (process-filter-multibyte-p) (set-process-filter-multibyte): Delete obsoletion. * lisp/erc/erc-dcc.el (erc-dcc-server): Don't use obsolete functions.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/process.c b/src/process.c
index 697249a461b..7a133cda00f 100644
--- a/src/process.c
+++ b/src/process.c
@@ -7773,46 +7773,6 @@ DEFUN ("process-coding-system",
7773 XPROCESS (process)->encode_coding_system); 7773 XPROCESS (process)->encode_coding_system);
7774} 7774}
7775 7775
7776DEFUN ("set-process-filter-multibyte", Fset_process_filter_multibyte,
7777 Sset_process_filter_multibyte, 2, 2, 0,
7778 doc: /* Set multibyteness of the strings given to PROCESS's filter.
7779If FLAG is non-nil, the filter is given multibyte strings.
7780If FLAG is nil, the filter is given unibyte strings. In this case,
7781all character code conversion except for end-of-line conversion is
7782suppressed. */)
7783 (Lisp_Object process, Lisp_Object flag)
7784{
7785 CHECK_PROCESS (process);
7786
7787 struct Lisp_Process *p = XPROCESS (process);
7788 if (NILP (flag))
7789 pset_decode_coding_system
7790 (p, raw_text_coding_system (p->decode_coding_system));
7791
7792 /* If the sockets haven't been set up yet, the final setup part of
7793 this will be called asynchronously. */
7794 if (p->infd < 0 || p->outfd < 0)
7795 return Qnil;
7796
7797 setup_process_coding_systems (process);
7798
7799 return Qnil;
7800}
7801
7802DEFUN ("process-filter-multibyte-p", Fprocess_filter_multibyte_p,
7803 Sprocess_filter_multibyte_p, 1, 1, 0,
7804 doc: /* Return t if a multibyte string is given to PROCESS's filter.*/)
7805 (Lisp_Object process)
7806{
7807 CHECK_PROCESS (process);
7808 struct Lisp_Process *p = XPROCESS (process);
7809 if (p->infd < 0)
7810 return Qnil;
7811 eassert (p->infd < FD_SETSIZE);
7812 struct coding_system *coding = proc_decode_coding_system[p->infd];
7813 return (CODING_FOR_UNIBYTE (coding) ? Qnil : Qt);
7814}
7815
7816 7776
7817 7777
7818 7778
@@ -8808,8 +8768,6 @@ sentinel or a process filter function has an error. */);
8808 defsubr (&Sinternal_default_process_filter); 8768 defsubr (&Sinternal_default_process_filter);
8809 defsubr (&Sset_process_coding_system); 8769 defsubr (&Sset_process_coding_system);
8810 defsubr (&Sprocess_coding_system); 8770 defsubr (&Sprocess_coding_system);
8811 defsubr (&Sset_process_filter_multibyte);
8812 defsubr (&Sprocess_filter_multibyte_p);
8813 8771
8814 { 8772 {
8815 Lisp_Object subfeatures = Qnil; 8773 Lisp_Object subfeatures = Qnil;