From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#53391: First keypress doesn't work when scratch buffer is killed in emacs 28, emacs daemon + emacs client is used Date: Fri, 21 Jan 2022 14:57:30 +0200 Message-ID: <83pmolnt51.fsf@gnu.org> References: <87a6fqzea4.fsf@gnus.org> <83k0eup2pw.fsf@gnu.org> <87v8ydwiyr.fsf@gnus.org> <878rv9wicd.fsf@gnus.org> <83zgnpnw0w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27762"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 53391@debbugs.gnu.org To: =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=9A=D1=83=D1=80=D0=BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 21 14:34:29 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nAu3h-00072t-8c for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Jan 2022 14:34:29 +0100 Original-Received: from localhost ([::1]:59056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAu3g-0005Y5-7N for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Jan 2022 08:34:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAtUU-0007UC-1O for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2022 07:58:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39438) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nAtUQ-0007qc-8B for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2022 07:58:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nAtUQ-0004Ph-49 for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2022 07:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Jan 2022 12:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53391 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 53391-submit@debbugs.gnu.org id=B53391.164276985916935 (code B ref 53391); Fri, 21 Jan 2022 12:58:02 +0000 Original-Received: (at 53391) by debbugs.gnu.org; 21 Jan 2022 12:57:39 +0000 Original-Received: from localhost ([127.0.0.1]:60574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAtU3-0004P5-Cm for submit@debbugs.gnu.org; Fri, 21 Jan 2022 07:57:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAtU1-0004Or-Ft for 53391@debbugs.gnu.org; Fri, 21 Jan 2022 07:57:37 -0500 Original-Received: from [2001:470:142:3::e] (port=58548 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAtTv-0007nc-7G; Fri, 21 Jan 2022 07:57:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=1XMIf/N/5SDgUYgsMU1G3SJspvNqPcu+oYdbibgjx4E=; b=S3e2llNpT47m4NIS1LML lB1XtNAXxDnrKcFRR7W6XsTS8gNtjo5O4za+tkDbPLsmdJqIkSCueJNtq6DhFpSWI6IPs9e/N0WLL /gOZ3i0zF4nfyGvZpFVoMrTdXg4P6VDgxY06e3gWLBrn/+RSimMJA+K12HOYhccV9RvCTivVaU1ut QLQKQDBQAHI/fykUFzefdTH8YYgdIsUayPPMyr72xDGtsL29xVGx2HCk0WpWF6ApVuD8qPpIN1qOY J4jEmpJILg6Rmq1RhPiWVgWkEp8kupen39msBA4DTD5TbSD1lDbQA3qkxODeuf2bXptrrfBuuEuHE RteuJsFKZN+/pQ==; Original-Received: from [87.69.77.57] (port=3872 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAtTt-0001lh-4y; Fri, 21 Jan 2022 07:57:30 -0500 In-Reply-To: (message from =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=9A=D1=83=D1=80=D0=BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= on Fri, 21 Jan 2022 12:10:42 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:224766 Archived-At: > From: Евгений Курневский > Date: Fri, 21 Jan 2022 12:10:42 +0000 > Cc: Lars Ingebrigtsen , 53391@debbugs.gnu.org > > > Does this mean you see the problem in stock Emacs 28 built from the > > emacs-28 branch of the upstream Emacs repository on Savannah? > > Not exactly, it fetches https://git.savannah.gnu.org/cgit/emacs.git/snapshot/emacs-28.0.91.tar.gz and builds > it. > But it doesn't apply any custom changes, and to build emacs manually I'd anyway have to get the same > environment where it's built and do almost the same things - nixos is a bit more complex system than usual > linux. > > > Can you type C-g and show the backtrace? > > Tried to do it with (toggle-debug-on-quit), but just got 'Debugger entered--Lisp error: (quit)' I think I've succeeded in reproducing this. However, given that it only happens if the init file deletes the *scratch* buffer (which is the current buffer available to the daemon initially), I wonder whether it's important to solve this corner case. I'm guessing that this has something to do with the fact that the daemon performs some initial processing of the client commands in the original buffer. Why is it important to delete the *scratch* buffer in your case?