From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.devel Subject: How to debug a transient (message) bug Date: Thu, 25 May 2023 23:43:42 -0700 Message-ID: <87a5xrh8no.fsf@secretsauce.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31183"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.10; emacs 30.0.50 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 26 09:09:27 2023 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 1q2RZl-0007uU-CR for ged-emacs-devel@m.gmane-mx.org; Fri, 26 May 2023 09:09:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2RZ1-0003QO-AD; Fri, 26 May 2023 03:08:39 -0400 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 1q2RYz-0003Pk-C1 for emacs-devel@gnu.org; Fri, 26 May 2023 03:08:37 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2RYx-0000E6-He for emacs-devel@gnu.org; Fri, 26 May 2023 03:08:37 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 6709232008FC for ; Fri, 26 May 2023 03:08:31 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 26 May 2023 03:08:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t=1685084911; x=1685171311; bh=WlYTJddAMGLDXWwosxyvrvoW+ gLxh+EXJ9CSysCyF2E=; b=cxcgx3clQMRwMIIHjZLcbH+EvgDTQ1c5M1GJFJqBE trJEhP4vozL3OOFonl+G3gqu2LOsfP6wtdGjGp+YH0hxWjhpsGRyxeJwBanKr/hv 1lSwUtmOohd9lHjSXxqY70o2/c+oSkXJY9qZyD5hpp2eGumlzcIliEp8nKlV9atc cBLjUfE//3qCMShadmn+Xmic6HaBlxwNYTofaSLLpYCC4kpZk0zBv0XVjDEAmmQG Kj/r3fuk3LRycXXQ4CMXZHHOsLn61KXilXU2fMq6GLO8vjFGh7m7Uu/nJRZ0koFm gHTi1czjC/NXXJho53o2PX3Jk1A+lpEC9z/Z3ZvvCdyTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1685084911; x=1685171311; bh=WlYTJddAMGLDXWwosxyvrvoW+gLxh+EXJ9C SysCyF2E=; b=Q8s78YWvU4hu9C7eIMWNXdlTnX6kjJ2qgVWAlVWKYadptC1Mnhg wc0oyGy3BiYcGRxw2qWzR/s3s2+P1Jv9t5zTE81A2PpxphTtNSg3Mn9cwOnGtHYn JuA53gUjAtV6EE+JZgUtQXm6OG+9We7UmyAdxqj3Jtk1hCKW0bRjZ6jNAE+o9c/z PrFF47IEm7U6+EREv1mEuisK1dFpN0cru4/vTh3XXjvLj6hpuFmDdkuDo8jq+E93 iQOhCoYwqJjd81J2a8XKPFl94a7o8sbqWjJRAZEzpEu5C3C23yK0jM3XwPZq3OyQ VLdFgZ4zfmwiaOsTwPSl1cOnupzJY4NMICQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejkedgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfgfhvffufffkgggtsehttdertd dtredtnecuhfhrohhmpeffihhmrgcumfhoghgrnhcuoegvmhgrtghsseguihhmrgdrshgv tghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrthhtvghrnhepveekfeehgfdvlefggf ekhfefjeeijefhkeeugffgvefgfeehtddvtdduveeitdeinecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepvghmrggtshesughimhgrrdhsvggtrh gvthhsrghutggvrdhnvght X-ME-Proxy: Feedback-ID: i3e8042a0:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 26 May 2023 03:08:30 -0400 (EDT) Received-SPF: none client-ip=64.147.123.21; envelope-from=emacs@dima.secretsauce.net; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NONE=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:306346 Archived-At: Hi. I'm running a bleeding-edge build of emacs from git. Using X11 and GTK. Starting a month or two ago I'm observing a bug that's really annoying, but I can't figure out how to reproduce it from an 'emacs -Q', or how to debug it myself. Suggestions requested. >From any emacs buffer I interactively hit M-! (shell-command), and interactively give it a command that will produce some output; for instance "seq 5". The expected output is =========== 1 2 3 4 5 =========== This produces the expected output in the *Shell Command Output* buffer, and also pops up at the bottom of the frame because (display-message-or-buffer) is called, which calls (message). Usually I see this correct behavior. However, in my long-running emacs sessions I reliably do NOT see this behavior if I M-! from a buffer visiting a remote file via TRAMP. In this case, the output ends up in *Shell Command Output* as it should and (message) is called as it should. The (message) output does show up at the bottom of the frame, but only instantaneously: as soon as it comes up, it goes away immediately. I cannot figure out why, and I don't know how to debug it. I'd like to trace some sort of message-transient-buffer-go-away event, but I don't know what that is. This is 100% reproducible and 100% annoying, so I'd like to fix it. Any debugging suggestions? Thanks