all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "İ. Göktuğ Kayaalp" <self@gkayaalp.com>
Cc: 33629@debbugs.gnu.org
Subject: bug#33629: 27.0.50; Emacs built --without-threads signals (void-function thread-name) when `save-buffers-kill-terminal'
Date: Wed, 05 Dec 2018 20:21:35 +0200	[thread overview]
Message-ID: <837egn96mo.fsf@gnu.org> (raw)
In-Reply-To: <ygmzhtkhtmx.fsf@gkayaalp.com> (self@gkayaalp.com)

> From: İ. Göktuğ Kayaalp
> 	<self@gkayaalp.com>
> Date: Wed, 05 Dec 2018 18:37:26 +0300
> 
> 
> Reproduce w/ emacs -Q
> 
> M-x shell
> M-x toggle-debug-on-error (optionally)
> C-x C-c
> 
> The stack trace:
> 
> Debugger entered--Lisp error: (void-function thread-name)
>   (thread-name #<thread 0xc453a0>)
>   (list-processes--refresh)
>   (list-processes t)

Does the patch below fix the problem?

diff --git a/lisp/simple.el b/lisp/simple.el
index e192238..db59b9f 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4006,7 +4006,9 @@ list-processes--refresh
 		  (tty (or (process-tty-name p) "--"))
 		  (thread
                    (cond
-                    ((null (process-thread p)) "--")
+                    ((or
+                      (null (process-thread p))
+                      (not (fboundp 'thread-name))) "--")
                     ((eq (process-thread p) main-thread) "Main")
                     ((thread-name (process-thread p)))))
 		  (cmd





  reply	other threads:[~2018-12-05 18:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-05 15:37 bug#33629: 27.0.50; Emacs built --without-threads signals (void-function thread-name) when `save-buffers-kill-terminal' İ. Göktuğ Kayaalp
2018-12-05 18:21 ` Eli Zaretskii [this message]
2018-12-06 13:57   ` Göktuğ Kayaalp
2018-12-06 17:37     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837egn96mo.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=33629@debbugs.gnu.org \
    --cc=self@gkayaalp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.