From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?S=C3=A9bastien?= Chapuis Newsgroups: gmane.emacs.bugs Subject: bug#37986: emacsclient doesn't open a frame when waiting for input in the minibuffer Date: Wed, 30 Oct 2019 17:00:00 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d1643205961cf5e4" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="38140"; mail-complaints-to="usenet@blaine.gmane.org" To: 37986@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 30 10:01:30 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPjr6-0009Sq-72 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 10:01:28 +0100 Original-Received: from localhost ([::1]:38012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPjr4-0004MW-NH for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2019 05:01:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49787) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPjqp-0004L8-QN for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 05:01:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPjqi-0001fa-Gs for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 05:01:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPjqg-0001bG-QQ for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 05:01:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iPjqg-0003KH-K2 for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 05:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?S=C3=A9bastien?= Chapuis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Oct 2019 09:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37986 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157242602412723 (code B ref -1); Wed, 30 Oct 2019 09:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Oct 2019 09:00:24 +0000 Original-Received: from localhost ([127.0.0.1]:49210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPjq3-0003J8-Si for submit@debbugs.gnu.org; Wed, 30 Oct 2019 05:00:24 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:43651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPjpz-0003Iy-4l for submit@debbugs.gnu.org; Wed, 30 Oct 2019 05:00:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49628) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPjpw-0003jO-9Y for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 05:00:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPjpt-0006kS-LU for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 05:00:15 -0400 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:43310) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPjpt-0006c7-7n for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2019 05:00:13 -0400 Original-Received: by mail-wr1-x429.google.com with SMTP id n1so1315837wra.10 for ; Wed, 30 Oct 2019 02:00:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chapu-is.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=SBc1m9QG1zqM2e3PdbwFPiITUoLGkL4K7r08ljcuXBc=; b=MV3J8QqbPzvXi2esMZuL6FEkV7Nc9wKAd7WblV94jSTIcV2zvwizBzNw1DNFxP5whM v4p5s1j/PkJ3sUkfqv662HOViKD/9ch6ME/DNJM7QsIHT+tX8vPOKEOCQZOkxxnKHdVA 6SVQ4XvUoQg3HpV2wGhTy8VtqS0RKxUHR0AhnLVPA67AOtz0ZiNZZoPjfeoqRZWQmsAi zEQdwYxUWGc1DU5jOUSgBjmwZ4UzViXMQWZt4VxM/uZ8YKYs5xINfXzZ050YJaBNxjyC I7pOoi0zFdgSkviJAef3IK3bVmMT9XNozLglG+e5erdZZBQ6OPgcbRqInuqRWPIfCebh 7vYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=SBc1m9QG1zqM2e3PdbwFPiITUoLGkL4K7r08ljcuXBc=; b=NTX81DGyl/67ZsxGDcMG5/raR6RNrK1czWOmdj+eJtkiGkjI2WTFlU+SrUH6xrD/zb PPPjBa9xLnE7mVXMS0HfoeHe7NWTEHthcNL7JrXfsmgm/7LRWWOBMwV97KCLQT4M3qZb pKNYGByiA+VCWqerrumUdieE7v7Mbk3mQ7UjZSXdNIDyVTqaygRahUMNur3v7mmADsH0 hnDOUNtsWSCCp/UP6I10VslswkL+z7ikuYo599H3aFteWiZegNMwA1Gp54VgbCL/ld4r FOG50h3p3ctSC6+VkbgCZh5uMt6LoeuhuyA/3Fy6GPs0D8fNBDDbaQLeiwKC6tOXarwo 4l4A== X-Gm-Message-State: APjAAAXQ4Dxmk/IlqQkotU/jH2TQx3mitjuNALUHjuqui3560j34fxjb nHJJWqDtLdTpKN4A+vE4vrdYosFBOova3fEWBFJlC+EAAeo= X-Google-Smtp-Source: APXvYqwtP1RM1rAXloed4LoDHKRoYFQojcnenzt5FjmwD308cCITnO/nXMXFs45EvTBnwtGYdQktYn00E1iJ74jM0lQ= X-Received: by 2002:a5d:6787:: with SMTP id v7mr105907wru.392.1572426010939; Wed, 30 Oct 2019 02:00:10 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170397 Archived-At: --000000000000d1643205961cf5e4 Content-Type: text/plain; charset="UTF-8" This bug occurs on emacs master branch but it doesn't with emacs 26.2 Steps to reproduce: terminal #1: $ git clone --recursive git://git.savannah.gnu.org/emacs.git $ cd emacs && ./autogen.sh $ mkdir build && cd build $ ../configure --prefix=/opt/emacs-git --with-modules --with-xwidgets --with-imagemagick $ make install $ /opt/emacs-git/bin/emacs --fg-daemon -Q Open another terminal (terminal #2): $ /opt/emacs-git/bin/emacsclient -n -c BIG_FILE.txt the command doesn't return and no frame is opened. On the terminal #1, there is this output: ``` Warning: due to a long standing Gtk+ bug https://gitlab.gnome.org/GNOME/gtk/issues/221 Emacs might crash when run in daemon mode and the X11 connection is unexpectedly lost. Using an Emacs configured with --with-x-toolkit=lucid does not have this problem. Starting Emacs daemon. File BIG_FILE.txt is large (11.9 MiB), really open? (y)es or (n)o or (l)iterally File BIG_FILE.txt is large (11.9 MiB), really open? (y)es or (n)o or (l)iterally ``` Open a 3rd terminal (terminal #3): $ /opt/emacs-git/bin/emacsclient -n -c A new frame is opened with this message in the minibuffer: `File BIG_FILE.txt is large (11.9 MiB), really open? (y)es or (n)o or (l)iterally` If I type `y`, a new frame is opened (from terminal #2) with the file BIG_FILE.txt in its buffer. Let me know if you need more details. Thanks, Sebastien Chapuis. --000000000000d1643205961cf5e4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This bug occurs on emacs master branch but it doesn&#= 39;t with emacs 26.2

Steps to reproduce:

=
terminal #1:
$ git clone --recursive git://git.savannah.gnu.org/emacs.git
$ cd emacs && ./autogen.sh
$ mkdir build && cd= build
$ ../configure --prefix=3D/opt/emacs-git --with-modules --= with-xwidgets --with-imagemagick
$ make install
$ /opt/= emacs-git/bin/emacs --fg-daemon -Q

Open another te= rminal (terminal #2):
$ /opt/emacs-git/bin/emacsclient -n -c BIG_= FILE.txt
the command doesn't return and no frame is opened.
On the terminal #1, there is this output:

```
Warning: due to a long standing Gtk+ bug
https://gitlab.gnome.org/GNOME/gt= k/issues/221
Emacs might crash when run in daemon mode and the X11 c= onnection is unexpectedly lost.
Using an Emacs configured with --with-x-= toolkit=3Dlucid does not have this problem.
Starting Emacs daemon.
Fi= le BIG_FILE.txt is large (11.9 MiB), really open? (y)es or (n)o or (l)itera= lly
File BIG_FILE.txt is large (11.9 MiB), really open? (y)es or (n)o o= r (l)iterally=C2=A0
```

Open a 3rd t= erminal (terminal #3):
$=C2=A0/opt/emacs-git/bin/emacsclient -n -= c
A new frame is opened with this message in the minibuffer:
`File BIG_FILE.txt is large (11.9 MiB), really open? (y)es or (n)o or= (l)iterally`
If I type `y`, a new frame is opened (from terminal= #2) with the file BIG_FILE.txt in its buffer.

Let me know if you need more details.

= Thanks,
Sebastien Chapuis.


--000000000000d1643205961cf5e4--