unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Gustaf Waldemarson <gustaf.waldemarson@gmail.com>
Cc: 38067@debbugs.gnu.org
Subject: bug#38067: Command Popup Hangs Emacsclient During Startup
Date: Sat, 16 Nov 2019 14:44:45 +0200	[thread overview]
Message-ID: <83d0ds6ldu.fsf@gnu.org> (raw)
In-Reply-To: <CABehr5fSmW+7fzyc9m-ozjOTioYpzYeVBXHsSzjfbJm3jFL_eQ@mail.gmail.com> (message from Gustaf Waldemarson on Tue, 5 Nov 2019 10:31:10 +0100)

> From: Gustaf Waldemarson <gustaf.waldemarson@gmail.com>
> Date: Tue, 5 Nov 2019 10:31:10 +0100
> 
> I've run into a slightly annoying issue with the emacsclient hanging
> during startup due to it being unable to display a command prompt. To
> recreate the behavior:
> 
> 1. create a file with the contents (e.g., init.el):
> 
> ,----
>  (defun my-hang-client ()
>    "This is a test function."
>    (condition-case nil
>        (let* ((choices (list
>                        "This function seems to hang Emacsclient."))
>               (result (completing-read "This is a hang test:" choices nil t))
>               (index (cl-position choices :test 'equal))))
>      ('quit)))
> 
>  (add-hook 'c-mode-hook      #'my-hang-client)
>  (add-hook 'c++-mode-hook    #'my-hang-client)
> `----
> 
> 1. Start a new Emacs server: `emacs --load init.el -Q --daemon=hangtest'
> 
> 2. Open a new C/C++ file from the terminal (doesn't need to exist):
>    `emacsclient -nc -s hangtest main.cpp'

Can you try this with the latest master branch?  I think the cause of
this was lately fixed.

Thanks.





  reply	other threads:[~2019-11-16 12:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-05  9:31 bug#38067: Command Popup Hangs Emacsclient During Startup Gustaf Waldemarson
2019-11-16 12:44 ` Eli Zaretskii [this message]
2019-11-20 10:23   ` Gustaf Waldemarson
2019-11-20 16:21     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83d0ds6ldu.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=38067@debbugs.gnu.org \
    --cc=gustaf.waldemarson@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).