aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-07-16 22:56:42 +0000
committerJim Blandy1992-07-16 22:56:42 +0000
commitebb9e16f9893959a7a8036ed62b41e0667320874 (patch)
tree63510f8bbf802ed09d39ab550f954521fbe01929 /src
parente516799970be4553edae8ca46d5f64852befec77 (diff)
downloademacs-ebb9e16f9893959a7a8036ed62b41e0667320874.tar.gz
emacs-ebb9e16f9893959a7a8036ed62b41e0667320874.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/dired.c9
-rw-r--r--src/process.c24
-rw-r--r--src/search.c3
3 files changed, 25 insertions, 11 deletions
diff --git a/src/dired.c b/src/dired.c
index f04ed255883..a3b02f089ff 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -82,12 +82,15 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.\n\
82 if (!NILP (match)) 82 if (!NILP (match))
83 { 83 {
84 CHECK_STRING (match, 3); 84 CHECK_STRING (match, 3);
85 /* Compile it now so we don't get an error after opendir */ 85
86 /* MATCH might be a flawed regular expression. Rather than
87 catching and signalling our own errors, we just call
88 compile_pattern to do the work for us. */
86#ifdef VMS 89#ifdef VMS
87 compile_pattern (match, &searchbuf, 90 compile_pattern (match, &searchbuf, 0
88 buffer_defaults.downcase_table->contents); 91 buffer_defaults.downcase_table->contents);
89#else 92#else
90 compile_pattern (match, &searchbuf, 0); 93 compile_pattern (match, &searchbuf, 0, 0);
91#endif 94#endif
92 } 95 }
93 96
diff --git a/src/process.c b/src/process.c
index e950a7b4395..fd0ba22cd9a 100644
--- a/src/process.c
+++ b/src/process.c
@@ -579,7 +579,10 @@ BUFFER may be a buffer or the name of one.")
579 return Qnil; 579 return Qnil;
580} 580}
581 581
582/* This is how commands for the user decode process arguments */ 582/* This is how commands for the user decode process arguments. It
583 accepts a process, a process name, a buffer, a buffer name, or nil.
584 Buffers denote the first process in the buffer, and nil denotes the
585 current buffer. */
583 586
584Lisp_Object 587Lisp_Object
585get_process (name) 588get_process (name)
@@ -607,7 +610,8 @@ get_process (name)
607 610
608DEFUN ("delete-process", Fdelete_process, Sdelete_process, 1, 1, 0, 611DEFUN ("delete-process", Fdelete_process, Sdelete_process, 1, 1, 0,
609 "Delete PROCESS: kill it and forget about it immediately.\n\ 612 "Delete PROCESS: kill it and forget about it immediately.\n\
610PROCESS may be a process or the name of one, or a buffer name.") 613PROCESS may be a process, a buffer, the name of a process or buffer, or\n\
614nil, indicating the current buffer's process.")
611 (proc) 615 (proc)
612 register Lisp_Object proc; 616 register Lisp_Object proc;
613{ 617{
@@ -640,7 +644,9 @@ exit -- for a process that has exited.\n\
640signal -- for a process that has got a fatal signal.\n\ 644signal -- for a process that has got a fatal signal.\n\
641open -- for a network stream connection that is open.\n\ 645open -- for a network stream connection that is open.\n\
642closed -- for a network stream connection that is closed.\n\ 646closed -- for a network stream connection that is closed.\n\
643nil -- if arg is a process name and no such process exists.") 647nil -- if arg is a process name and no such process exists.\n\
648PROCESS may be a process, a buffer, the name of a process or buffer, or\n\
649nil, indicating the current buffer's process.")
644/* command -- for a command channel opened to Emacs by another process.\n\ 650/* command -- for a command channel opened to Emacs by another process.\n\
645 external -- for an i/o channel opened to Emacs by another process.\n\ */ 651 external -- for an i/o channel opened to Emacs by another process.\n\ */
646 (proc) 652 (proc)
@@ -648,7 +654,7 @@ nil -- if arg is a process name and no such process exists.")
648{ 654{
649 register struct Lisp_Process *p; 655 register struct Lisp_Process *p;
650 register Lisp_Object status; 656 register Lisp_Object status;
651 proc = Fget_process (proc); 657 proc = get_process (proc);
652 if (NILP (proc)) 658 if (NILP (proc))
653 return proc; 659 return proc;
654 p = XPROCESS (proc); 660 p = XPROCESS (proc);
@@ -2164,7 +2170,8 @@ send_process (proc, buf, len)
2164DEFUN ("process-send-region", Fprocess_send_region, Sprocess_send_region, 2170DEFUN ("process-send-region", Fprocess_send_region, Sprocess_send_region,
2165 3, 3, 0, 2171 3, 3, 0,
2166 "Send current contents of region as input to PROCESS.\n\ 2172 "Send current contents of region as input to PROCESS.\n\
2167PROCESS may be a process name or an actual process.\n\ 2173PROCESS may be a process, a buffer, the name of a process or buffer, or\n\
2174nil, indicating the current buffer's process.\n\
2168Called from program, takes three arguments, PROCESS, START and END.\n\ 2175Called from program, takes three arguments, PROCESS, START and END.\n\
2169If the region is more than 500 characters long,\n\ 2176If the region is more than 500 characters long,\n\
2170it is sent in several bunches. This may happen even for shorter regions.\n\ 2177it is sent in several bunches. This may happen even for shorter regions.\n\
@@ -2190,7 +2197,8 @@ Output from processes can arrive in between bunches.")
2190DEFUN ("process-send-string", Fprocess_send_string, Sprocess_send_string, 2197DEFUN ("process-send-string", Fprocess_send_string, Sprocess_send_string,
2191 2, 2, 0, 2198 2, 2, 0,
2192 "Send PROCESS the contents of STRING as input.\n\ 2199 "Send PROCESS the contents of STRING as input.\n\
2193PROCESS may be a process name or an actual process.\n\ 2200PROCESS may be a process, a buffer, the name of a process or buffer, or\n\
2201nil, indicating the current buffer's process.\n\
2194If STRING is more than 500 characters long,\n\ 2202If STRING is more than 500 characters long,\n\
2195it is sent in several bunches. This may happen even for shorter strings.\n\ 2203it is sent in several bunches. This may happen even for shorter strings.\n\
2196Output from processes can arrive in between bunches.") 2204Output from processes can arrive in between bunches.")
@@ -2373,6 +2381,7 @@ process_send_signal (process, signo, current_group, nomsg)
2373 2381
2374DEFUN ("interrupt-process", Finterrupt_process, Sinterrupt_process, 0, 2, 0, 2382DEFUN ("interrupt-process", Finterrupt_process, Sinterrupt_process, 0, 2, 0,
2375 "Interrupt process PROCESS. May be process or name of one.\n\ 2383 "Interrupt process PROCESS. May be process or name of one.\n\
2384PROCESS may be a process, a buffer, or the name of a process or buffer.\n\
2376Nil or no arg means current buffer's process.\n\ 2385Nil or no arg means current buffer's process.\n\
2377Second arg CURRENT-GROUP non-nil means send signal to\n\ 2386Second arg CURRENT-GROUP non-nil means send signal to\n\
2378the current process-group of the process's controlling terminal\n\ 2387the current process-group of the process's controlling terminal\n\
@@ -2449,7 +2458,8 @@ Both PID and CODE are integers.")
2449DEFUN ("process-send-eof", Fprocess_send_eof, Sprocess_send_eof, 0, 1, 0, 2458DEFUN ("process-send-eof", Fprocess_send_eof, Sprocess_send_eof, 0, 1, 0,
2450 "Make PROCESS see end-of-file in its input.\n\ 2459 "Make PROCESS see end-of-file in its input.\n\
2451Eof comes after any text already sent to it.\n\ 2460Eof comes after any text already sent to it.\n\
2452nil or no arg means current buffer's process.") 2461PROCESS may be a process, a buffer, the name of a process or buffer, or\n\
2462nil, indicating the current buffer's process.")
2453 (process) 2463 (process)
2454 Lisp_Object process; 2464 Lisp_Object process;
2455{ 2465{
diff --git a/src/search.c b/src/search.c
index 5e2a96c87fa..f0ee12f4119 100644
--- a/src/search.c
+++ b/src/search.c
@@ -111,7 +111,8 @@ compile_pattern (pattern, bufp, regp, translate)
111 111
112 /* Advise the searching functions about the space we have allocated 112 /* Advise the searching functions about the space we have allocated
113 for register data. */ 113 for register data. */
114 re_set_registers (bufp, regp, regp->num_regs, regp->start, regp->end); 114 if (regp)
115 re_set_registers (bufp, regp, regp->num_regs, regp->start, regp->end);
115 116
116 return; 117 return;
117} 118}