From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= Newsgroups: gmane.emacs.devel Subject: Re: Insight into the mystery hangs Date: Tue, 13 Feb 2024 08:52:06 +0100 Message-ID: <871q9gg5sp.fsf@gmail.com> References: <20240211213737.3A38C18A1647@snark.thyrsus.com> <868r3psv2s.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15926"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "Eric S. Raymond" , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Feb 13 08:53:02 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rZnbB-0003z2-Tt for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Feb 2024 08:53:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZnaP-0000qf-AE; Tue, 13 Feb 2024 02:52:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZnaO-0000qT-5k for emacs-devel@gnu.org; Tue, 13 Feb 2024 02:52:12 -0500 Original-Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rZnaM-0005Q6-KO; Tue, 13 Feb 2024 02:52:11 -0500 Original-Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4114e0a2978so9332465e9.3; Mon, 12 Feb 2024 23:52:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707810728; x=1708415528; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=o16mGOhKCEX6//KLiZgpH1I2c5TOZyLVmoNBNqbJmfE=; b=UpdSBi3QgNUU450X95hdgg3mApRO0W6A/n6v5Wnh3fOlZD5/+BimPyMPvdW0qsf3QM lg6fdfrmLJMYj0QMeKbN1TOk+hgifTdFihFH/8U+h28VLOaANOy1TfrlNEcQEQcmzZ3U oJNbwPE5NC0YZ2PttaiDFoX9Vakfugw9glNyGFuC/uiE2D833Io8tGnMABXktqGXI02u lrKC9ourwcjSxbUQKJSqKXDugdscHxUm8zJ7zYjFX6LU8J9p/dEWRYO4hjgTyACJxWKP m7lIoZDl7K/EXcTtzc7w9F5vi+8qBkXhyGrwJOZegf8A1tbDPwaD+Z2/BmnQDi2yOvrI SYGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707810728; x=1708415528; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=o16mGOhKCEX6//KLiZgpH1I2c5TOZyLVmoNBNqbJmfE=; b=lwcQBhmeZZACyMrbti47ej4Xq/vCa4fOfPxm/mLacgj4US4/wcaJkdj5+YcLdjanDj lC853xPRUwf/c8WHyMhRZQQLDNTZLjd1JVFCjjiVAjSi2VK2SllLWIrI1pmGxDzYf4dk 7E21ShP08HbO74RIpb10PYOGap+Im6k9CV4WRhCZQma5KG7wNDbjahSQr5m16Q7mxTqS 5NVxjQ4eAPv06x1mMYIZv2Xo+A6DHz5usMh4ENnaPSjz4BGxnnQUxBx4NYlFiPbWljgx L94I3dKAUhMsMO/4H7RArfO0b9b5aHKwD/c6rtuJ2ptAcXpFKBiQtaBUEX/R8Dq84yFI uxaQ== X-Forwarded-Encrypted: i=1; AJvYcCUkBnk1VAUlxHuphhExLbNbTxvF8WmqXvafMtQ/TGTY3J72UNctHYQQHyaPs+pGZOprqL+vw3hzdPJZuBoQTbHRtafT X-Gm-Message-State: AOJu0YzMmfoHzaIQVnIZNCuREghMlwcZmq0oNB76kXOEkQrD3qE9cP9y K/Zi9J9Kyky8mXuSDH1A2cl05ArEspxX71F53FSQPppTmR72C08bmuMHi6ma X-Google-Smtp-Source: AGHT+IFvyOYlIT0qT5aJDx7AjtoAs80HZWEA0E8OBslfoDZDejv4HevgWpGa4DT+Sx115b8PIL/Kgg== X-Received: by 2002:a05:600c:444f:b0:410:c791:2c64 with SMTP id v15-20020a05600c444f00b00410c7912c64mr4410975wmn.15.1707810727737; Mon, 12 Feb 2024 23:52:07 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCU4bUtZnuJxzHiaWUqZu7qTXhMHyPph+ivlwHo6t9ScrWRwjrxTSgcsPWApupE71tyDG3T4xCp+9+ml65OqmwJfY08r Original-Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id fc9-20020a05600c524900b00410727c315fsm10799766wmb.16.2024.02.12.23.52.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 23:52:07 -0800 (PST) In-Reply-To: <868r3psv2s.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 12 Feb 2024 14:52:59 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=kevin.legouguec@gmail.com; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:316165 Archived-At: Eli Zaretskii writes: >> From: "Eric S. Raymond" >> Date: Sun, 11 Feb 2024 16:37:37 -0500 (EST) >>=20 >> However. Emacs is not entirely off the hook here. When I'm not under >> deadline pressure I will file a bug with a title something like >> "With debug-on-quit enabled, Emacs does not reliably raise a debug >> trace on interrupt of call-process" > > Isn't that call issued from the mode-line display? If so, that is > done from redisplay, and redisplay cannot enter debugger, so it > catches all errors. If you want to produce Lisp backtraces from Lisp > code called by redisplay, you need to use the facilities documented in > the node "Debugging Redisplay" in the ELisp Reference manual. Tangential, not so much about debugging errors during redisplay, than merely noticing them: I do periodically forget that these errors are caught, so every couple of months I find myself frowning at code (font-locking, usually) that misbehaves yet fails to throw an error for about five minutes, before remembering to check *Messages* for any "Error during redisplay". Couple of questions: 1. "For Science", I just did=E2=80=A6 (setq mode-line-format '(:eval (error "argh"))) =E2=80=A6 and I am surprised that this *Messages* diagnostic=E2=80=A6 > Error during redisplay: (eval (error "argh") t) signaled (error "argh= ") =E2=80=A6 never seems to make its way to the echo area? It's a small th= ing (I'll probably have *Messages* open when debugging so I'll notice eventually) but it is somewhat surprising that these warnings can pile up in *Messages* yet the echo area remains blank. 2. It's neat that=E2=80=A6 (setq mode-line-format '("foo " (:eval (error "argh")) " bar")) =E2=80=A6 will be "robust" enough to display "foo bar" in the mode-line; combined with the lack of echo-area reporting it does make it hard to ever know something went wrong though. Might it make sense to (have an option to) substitute a signaling :eval form with some "[redisplay error]" placeholder?