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?=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?= 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: Thu, 20 Jan 2022 14:19:00 +0000 Message-ID: References: <87a6fqzea4.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b91db905d6042fee" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14676"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53391@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 20 21:08:49 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 1nAdjl-0003gw-4d for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Jan 2022 21:08:49 +0100 Original-Received: from localhost ([::1]:54518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAdjk-0003gM-6a for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Jan 2022 15:08:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAYIF-0004nY-6B for bug-gnu-emacs@gnu.org; Thu, 20 Jan 2022 09:20:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nAYIE-00023u-Rw for bug-gnu-emacs@gnu.org; Thu, 20 Jan 2022 09:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nAYIE-0007PM-KL for bug-gnu-emacs@gnu.org; Thu, 20 Jan 2022 09:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-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?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Jan 2022 14:20: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.164268836128416 (code B ref 53391); Thu, 20 Jan 2022 14:20:02 +0000 Original-Received: (at 53391) by debbugs.gnu.org; 20 Jan 2022 14:19:21 +0000 Original-Received: from localhost ([127.0.0.1]:56953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAYHY-0007OF-Om for submit@debbugs.gnu.org; Thu, 20 Jan 2022 09:19:21 -0500 Original-Received: from mail-yb1-f173.google.com ([209.85.219.173]:46012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAYHW-0007O2-5w for 53391@debbugs.gnu.org; Thu, 20 Jan 2022 09:19:20 -0500 Original-Received: by mail-yb1-f173.google.com with SMTP id h14so18119633ybe.12 for <53391@debbugs.gnu.org>; Thu, 20 Jan 2022 06:19:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rTmn1oPihNpUWQVTY12LbD7/M2TrzIdhWJsTRM1gm1I=; b=JGcjRP3G6TJyIVPsNY1E2v4TiyN3nISKu/N6hRB2JqpIZ1plnb1uQQ/yY2pdgLC/BE ivF3u6P2aGcb/MXDzSX3cTTayYEtbzlpQPy27iyP3xx78DXKCiiOjRSelmr0+qJ8eQeK xF3gvdJoUrA8pwhcAS7jQwdtrkGrJweTpiyrq6TofTwpkE1cdJk7agp/wCbi+SlVn/qV exv1oJvXVvmAa/Zod9Pm6ggQh6ZdWgkwqXNArt1zMLtHi+cp9a/wwNBGLxT+i2gQjV/2 QEh5kmBEuyaf95BHEd/BvfiV9PIiHYOsitrGzBTUT8mej/H3x2cKDRKSaff8qGjXYyvt 9iaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rTmn1oPihNpUWQVTY12LbD7/M2TrzIdhWJsTRM1gm1I=; b=yxVQDXzPu9fKotOZu0WXOS+5zp15dGUyFEYVc9QBgKZf9LPtLv0Th6AMz0UKqObzyn lNNDq++0Spk/BHuvumQT7s36BsSZhjcyfmhn2PUdji0PdC8ghF6hXiYn+6mqIRGvfbbq 5I6rcYe/VGaPA9Z5Y3mSyzo5QLMOLSlJ/0uS1b2hRRnqTq/8dLX8TZpbfldqC6Cx0Mpp xCMIwgcZOk/URvJCtP3sDl3qeKMrS/iDnIbdGFoT4wwjrXiv5rL9za1xx2ogKtS5mahE 4QcEO/b3v8SMrvBGzbqgFgy8e53bbEBC1sOmTKeNPoRwG1JWe58E1UpyLI1xx98dzfTB /wCQ== X-Gm-Message-State: AOAM533KNa2pjHq16YzuTq4jG+VEQZHA2zXdmGdpIiRJihCZ0rq/Ucky OC5+EEBxg4KNkaJTtjz9DpD5bYihROYXiRztKM4X+T+c X-Google-Smtp-Source: ABdhPJwVxRvydW7JiLjXkC/V/KIn3BvavyGFdDVR/pyV4ppUSdK9DFMO/vgHaqlAU66XjMXYbrYIFwgl/LThLvvC0TE= X-Received: by 2002:a25:38c6:: with SMTP id f189mr43833769yba.35.1642688352426; Thu, 20 Jan 2022 06:19:12 -0800 (PST) In-Reply-To: <87a6fqzea4.fsf@gnus.org> 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:224691 Archived-At: --000000000000b91db905d6042fee Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable In GNU Emacs 28.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0) Repository revision: emacs-28.0.91 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: NixOS 21.11 (Porcupine) Configured using: 'configure --prefix=3D/nix/store/1a8vlvdff3s7a9ymx38yg9vrg3w6gmxs-emacs-gcc-28.0.91 --disable-build-details --with-modules --with-x-toolkit=3Dgtk3 --with-xft --with-cairo --with-native-compilation' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $EMACSLOADPATH: /nix/store/dywjh8zmfvyxsppx613yh8zyfcxmcxqr-emacs-packages-deps/share/emacs= /site-lisp: value of $EMACSNATIVELOADPATH: /nix/store/dywjh8zmfvyxsppx613yh8zyfcxmcxqr-emacs-packages-deps/share/emacs= /native-lisp:: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Messages Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: /nix/store/dywjh8zmfvyxsppx613yh8zyfcxmcxqr-emacs-packages-deps/share/emacs= /site-lisp/elpa/transient-20220117.1122/transient hides /nix/store/1a8vlvdff3s7a9ymx38yg9vrg3w6gmxs-emacs-gcc-28.0.91/share/emacs/2= 8.0.91/lisp/transient /nix/store/dywjh8zmfvyxsppx613yh8zyfcxmcxqr-emacs-packages-deps/share/emacs= /site-lisp/elpa/let-alist-1.0.6/let-alist hides /nix/store/1a8vlvdff3s7a9ymx38yg9vrg3w6gmxs-emacs-gcc-28.0.91/share/emacs/2= 8.0.91/lisp/emacs-lisp/let-alist Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 70501 6217) (symbols 48 6638 0) (strings 32 19836 2949) (string-bytes 1 766284) (vectors 16 14132) (vector-slots 8 299534 10510) (floats 8 23 29) (intervals 56 225 0) (buffers 992 10)) On Thu, Jan 20, 2022 at 2:13 PM Lars Ingebrigtsen wrote: > =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=9A=D1=83=D1=80=D0=BD=D0=B5= =D0=B2=D1=81=D0=BA=D0=B8=D0=B9 writes: > > > I have encountered a problem with emacs 28 - sometimes it skips the > > first button press in a very specific case. To reproduce write the > > following as a config file: > > > > (kill-buffer "*scratch*") > > > > Start emacs daemon with: emacs -Q -l this_init_file.el --daemon > > Launch emacs client with: emacsclient -nw some_file.txt > > Try to type some key, like 'x', and you will see 'x is undefined' > > I'm unable to reproduce this in Emacs 28 on Debian/bookworm. Can you > include the information that `M-x report-emacs-bug' outputs? > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > --=20 =D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC, =D0=9A=D1=83= =D1=80=D0=BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9 =D0=95=D0=B2=D0=B3=D0=B5= =D0=BD=D0=B8=D0=B9. --000000000000b91db905d6042fee Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In GNU Emacs 28.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ V= ersion 3.24.30, cairo version 1.16.0)
Repository revision: emacs-28.0.91=
Repository branch: master
Windowing system distributor 'The X.Or= g Foundation', version 11.0.12101003
System Description: NixOS 21.11= (Porcupine)

Configured using:
=C2=A0'configure
=C2=A0--pr= efix=3D/nix/store/1a8vlvdff3s7a9ymx38yg9vrg3w6gmxs-emacs-gcc-28.0.91
=C2= =A0--disable-build-details --with-modules --with-x-toolkit=3Dgtk3 --with-xf= t
=C2=A0--with-cairo --with-native-compilation'

Configured fe= atures:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG = JSON
LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP N= OTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL= _BARS
X11 XDBE XIM XPM GTK3 ZLIB

Important settings:
=C2=A0 va= lue of $EMACSLOADPATH: /nix/store/dywjh8zmfvyxsppx613yh8zyfcxmcxqr-emacs-pa= ckages-deps/share/emacs/site-lisp:
=C2=A0 value of $EMACSNATIVELOADPATH:= /nix/store/dywjh8zmfvyxsppx613yh8zyfcxmcxqr-emacs-packages-deps/share/emac= s/native-lisp::
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-codi= ng-system: utf-8-unix

Major mode: Messages

Minor modes in eff= ect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 sho= w-paren-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mod= e: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-n= ame-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-m= ode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2= =A0 buffer-read-only: t
=C2=A0 line-number-mode: t
=C2=A0 indent-tabs= -mode: t
=C2=A0 transient-mark-mode: t

Load-path shadows:
/nix= /store/dywjh8zmfvyxsppx613yh8zyfcxmcxqr-emacs-packages-deps/share/emacs/sit= e-lisp/elpa/transient-20220117.1122/transient hides /nix/store/1a8vlvdff3s7= a9ymx38yg9vrg3w6gmxs-emacs-gcc-28.0.91/share/emacs/28.0.91/lisp/transient/nix/store/dywjh8zmfvyxsppx613yh8zyfcxmcxqr-emacs-packages-deps/share/ema= cs/site-lisp/elpa/let-alist-1.0.6/let-alist hides /nix/store/1a8vlvdff3s7a9= ymx38yg9vrg3w6gmxs-emacs-gcc-28.0.91/share/emacs/28.0.91/lisp/emacs-lisp/le= t-alist

Features:
(shadow sort mail-extr emacsbug message rmc pun= y dired dired-loaddefs
rfc822 mml mml-sec epa derived epg rfc6068 epg-co= nfig gnus-util rmail
rmail-loaddefs auth-source cl-seq eieio eieio-core = cl-macs
eieio-loaddefs password-cache json map text-property-search time= -date
subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bo= dies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loa= ddefs
cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail= -utils
iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-ho= oks
lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x= -dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace=
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar=
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
= font-lock syntax font-core term/tty-colors frame minibuffer cl-generic
c= ham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
k= orean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
europ= ean ethiopic indian cyrillic chinese composite emoji-zwj charscript
char= prop case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-pre= loaded nadvice button loaddefs faces cus-face macroexp files
window text= -properties overlay sha1 md5 base64 format env code-pages
mule custom wi= dget hashtable-print-readable backquote threads dbusbind
inotify dynamic= -setting system-font-setting font-render-setting cairo
move-toolbar gtk = x-toolkit x multi-tty make-network-process
native-compile emacs)

= Memory information:
((conses 16 70501 6217)
=C2=A0(symbols 48 6638 0)=
=C2=A0(strings 32 19836 2949)
=C2=A0(string-bytes 1 766284)
=C2= =A0(vectors 16 14132)
=C2=A0(vector-slots 8 299534 10510)
=C2=A0(floa= ts 8 23 29)
=C2=A0(intervals 56 225 0)
=C2=A0(buffers 992 10))

On Thu, Jan 20, 2022 at 2:13 PM Lars Ingebrigtsen <larsi@gnus.org> wrote:
=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0= =9A=D1=83=D1=80=D0=BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9 <kurnevsky@gmail.com> wri= tes:

> I have encountered a problem with emacs 28 - sometimes it skips the > first button press in a very specific case. To reproduce write the
> following as a config file:
>
> (kill-buffer "*scratch*")
>
> Start emacs daemon with: emacs -Q -l this_init_file.el --daemon
> Launch emacs client with: emacsclient -nw some_file.txt
> Try to type some key, like 'x', and you will see 'x is und= efined'

I'm unable to reproduce this in Emacs 28 on Debian/bookworm.=C2=A0 Can = you
include the information that `M-x report-emacs-bug' outputs?

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no


--
=D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0= =BC, =D0=9A=D1=83=D1=80=D0=BD=D0=B5=D0=B2=D1=81=D0=BA=D0=B8=D0=B9 =D0=95=D0= =B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9.
--000000000000b91db905d6042fee--