From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jens Schmidt Newsgroups: gmane.emacs.devel Subject: Re: How to debug a transient (message) bug Date: Fri, 26 May 2023 21:05:21 +0200 Message-ID: <5b8d7d9d-ae58-626d-05be-51e1329b5b57@vodafonemail.de> References: <87a5xrh8no.fsf@secretsauce.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26264"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 To: Dima Kogan , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 26 21:06:40 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 1q2clr-0006cq-Ds for ged-emacs-devel@m.gmane-mx.org; Fri, 26 May 2023 21:06:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2clA-0005Yx-Hq; Fri, 26 May 2023 15:05:56 -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 1q2cl6-0005Vu-21 for emacs-devel@gnu.org; Fri, 26 May 2023 15:05:52 -0400 Original-Received: from mr4.vodafonemail.de ([145.253.228.164]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2cl4-0005Ry-5Q for emacs-devel@gnu.org; Fri, 26 May 2023 15:05:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-mb-mr2-21dec; t=1685127937; bh=qDBvlFjq826pKBZwCryqvbdIsqprYlA6qQtG1e/Toqg=; h=Message-ID:Date:User-Agent:Subject:Content-Language:To:References: From:In-Reply-To:Content-Type:From; b=NLMpauW5FnwuR8mo/dKbJEfdeuL215eGeDu20fBEcpeuL8/6AvtjZSA9D+Lcme0Pg +cRDZ14Jk6Qsdr+NArHKaYQFYJOrn+KLgY2zzJ9IXupgpkXF4fvwMyNsvzDWDRliDj We/4BZF4eANmRFhgS4zreLewJItJFDOMA9yxIZao= Original-Received: from smtp.vodafone.de (unknown [10.0.0.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mr4.vodafonemail.de (Postfix) with ESMTPS id 4QSZBT2gXPz1xwt; Fri, 26 May 2023 19:05:37 +0000 (UTC) Original-Received: from [192.168.178.42] (port-92-194-143-96.dynamic.as20676.net [92.194.143.96]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 4QSZBK51Kjz9s45; Fri, 26 May 2023 19:05:26 +0000 (UTC) Content-Language: de-DE-frami, en-US In-Reply-To: <87a5xrh8no.fsf@secretsauce.net> X-purgate-type: clean X-purgate: clean X-purgate-size: 1073 X-purgate-ID: 155817::1685127932-C9FFA4F8-C2FDB0CE/0/0 Received-SPF: pass client-ip=145.253.228.164; envelope-from=jschmidt4gnu@vodafonemail.de; helo=mr4.vodafonemail.de X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 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, NICE_REPLY_A=-0.092, RCVD_IN_DNSWL_LOW=-0.7, 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:306351 Archived-At: On 2023-05-26 08:43, Dima Kogan wrote: > 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? Messages go away when other messages are written - probably tramp interferes with the results you expect by overwriting them with empty or temporary text. So a rather cheap (but uncertain) approach would be to trace function `message' with M-x trace-function message RET. In buffer *trace-output* you should see the call for the message written by M-! and (probably) follow-up calls. Switch off tracing with M-x untrace-all RET. (Having said that I do not quite understand why the following example (defun message-test () (interactive) (message "bar") (with-temp-message (message "foo"))) in emacs/master -Q leaves "foo" in the message area and not "bar", but I'm kind of too lazy to follow up on that.) HTH