diff options
| author | Glenn Morris | 2018-07-13 09:28:15 -0700 |
|---|---|---|
| committer | Glenn Morris | 2018-07-13 09:28:15 -0700 |
| commit | cda7e1850f2f19a5025fd163ff2c6c6cba275acf (patch) | |
| tree | 1fdb0014a632e936da813128ead6353051436cbd /src | |
| parent | 1013e0392b78ee0e2199fb51859dc9e939315f9b (diff) | |
| parent | 17ebb6e5ae9cdd2586d1b4d6f2347ae09c6f653f (diff) | |
| download | emacs-cda7e1850f2f19a5025fd163ff2c6c6cba275acf.tar.gz emacs-cda7e1850f2f19a5025fd163ff2c6c6cba275acf.zip | |
Merge from origin/emacs-26
17ebb6e (origin/emacs-26) Use consistent function names in thread-tes...
1c86229 Fix format error in Faccept_process_output
b38b91a Lessen stack consumption in recursive read1
3eb4603 Match w32 paths in grep sans --null hits (Bug#32051)
5cc7c4b Fix previous make-network-process change
d6a1b69 Another documentation improvement in flyspell.el
9b49a8e Improve documentation of Flyspell
3744fda Provide feature 'threads
ef9025f Save the server alias on reconnect (Bug#29657)
db3874b Refer to "proper lists" instead of "true lists"
35e0305 Avoid turning on the global-minor-mode recursively
51bf4e4 Fix Bug#32085
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 2 | ||||
| -rw-r--r-- | src/process.c | 13 | ||||
| -rw-r--r-- | src/thread.c | 2 |
3 files changed, 9 insertions, 8 deletions
diff --git a/src/lread.c b/src/lread.c index d4e5be21b4b..4ce6a442c36 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -2715,7 +2715,7 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 2715 | int c; | 2715 | int c; |
| 2716 | bool uninterned_symbol = false; | 2716 | bool uninterned_symbol = false; |
| 2717 | bool multibyte; | 2717 | bool multibyte; |
| 2718 | char stackbuf[MAX_ALLOCA]; | 2718 | char stackbuf[128]; /* Small, as read1 is recursive (Bug#31995). */ |
| 2719 | current_thread->stack_top = stackbuf; | 2719 | current_thread->stack_top = stackbuf; |
| 2720 | 2720 | ||
| 2721 | *pch = 0; | 2721 | *pch = 0; |
diff --git a/src/process.c b/src/process.c index 5bd8c255a26..3fccd962da6 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -3905,7 +3905,7 @@ usage: (make-network-process &rest ARGS) */) | |||
| 3905 | CHECK_STRING (name); | 3905 | CHECK_STRING (name); |
| 3906 | 3906 | ||
| 3907 | /* :local ADDRESS or :remote ADDRESS */ | 3907 | /* :local ADDRESS or :remote ADDRESS */ |
| 3908 | if (!NILP (server)) | 3908 | if (NILP (server)) |
| 3909 | address = Fplist_get (contact, QCremote); | 3909 | address = Fplist_get (contact, QCremote); |
| 3910 | else | 3910 | else |
| 3911 | address = Fplist_get (contact, QClocal); | 3911 | address = Fplist_get (contact, QClocal); |
| @@ -4612,12 +4612,11 @@ is nil, from any process) before the timeout expired. */) | |||
| 4612 | { | 4612 | { |
| 4613 | Lisp_Object proc_thread_name = XTHREAD (proc->thread)->name; | 4613 | Lisp_Object proc_thread_name = XTHREAD (proc->thread)->name; |
| 4614 | 4614 | ||
| 4615 | if (STRINGP (proc_thread_name)) | 4615 | error ("Attempt to accept output from process %s locked to thread %s", |
| 4616 | error ("Attempt to accept output from process %s locked to thread %s", | 4616 | SDATA (proc->name), |
| 4617 | SDATA (proc->name), SDATA (proc_thread_name)); | 4617 | STRINGP (proc_thread_name) |
| 4618 | else | 4618 | ? SDATA (proc_thread_name) |
| 4619 | error ("Attempt to accept output from process %s locked to thread %p", | 4619 | : SDATA (Fprin1_to_string (proc->thread, Qt))); |
| 4620 | SDATA (proc->name), XTHREAD (proc->thread)); | ||
| 4621 | } | 4620 | } |
| 4622 | } | 4621 | } |
| 4623 | else | 4622 | else |
diff --git a/src/thread.c b/src/thread.c index f11e3e5addb..3eba25b7b43 100644 --- a/src/thread.c +++ b/src/thread.c | |||
| @@ -1076,6 +1076,8 @@ syms_of_threads (void) | |||
| 1076 | 1076 | ||
| 1077 | staticpro (&last_thread_error); | 1077 | staticpro (&last_thread_error); |
| 1078 | last_thread_error = Qnil; | 1078 | last_thread_error = Qnil; |
| 1079 | |||
| 1080 | Fprovide (intern_c_string ("threads"), Qnil); | ||
| 1079 | } | 1081 | } |
| 1080 | 1082 | ||
| 1081 | DEFSYM (Qthreadp, "threadp"); | 1083 | DEFSYM (Qthreadp, "threadp"); |