From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Gustaf Waldemarson Newsgroups: gmane.emacs.bugs Subject: bug#38067: Command Popup Hangs Emacsclient During Startup Date: Tue, 5 Nov 2019 10:31:10 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="39579"; mail-complaints-to="usenet@blaine.gmane.org" To: 38067@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 05 10:32:25 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 1iRvCJ-000A93-Eh for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Nov 2019 10:32:23 +0100 Original-Received: from localhost ([::1]:42104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRvCH-0001QO-Sp for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Nov 2019 04:32:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47254) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRvC0-0001Pw-5V for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2019 04:32:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRvBy-0004as-Kf for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2019 04:32:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57286) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRvBy-0004Zi-Gw for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2019 04:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iRvBy-0001sv-8g for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2019 04:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gustaf Waldemarson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Nov 2019 09:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38067 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.15729462877191 (code B ref -1); Tue, 05 Nov 2019 09:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Nov 2019 09:31:27 +0000 Original-Received: from localhost ([127.0.0.1]:37874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRvBP-0001rv-CJ for submit@debbugs.gnu.org; Tue, 05 Nov 2019 04:31:27 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:51281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRvBO-0001rm-3o for submit@debbugs.gnu.org; Tue, 05 Nov 2019 04:31:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47113) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRvBM-00019n-KE for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2019 04:31:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRvBL-0003u0-69 for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2019 04:31:24 -0500 Original-Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]:32979) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRvBK-0003sV-VH for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2019 04:31:23 -0500 Original-Received: by mail-ot1-x329.google.com with SMTP id u13so17079592ote.0 for ; Tue, 05 Nov 2019 01:31:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=tbwP29h+VBFBwCKqLY8X6lDaot/DBr314OlRlla83ug=; b=E3LCH+UYdt9HlF5MgDJuBNdbiIsfuj+PQKTitZLcwwfHK33stLCBoYFgwvn0Aev2EY vVS9eLxXKIIuhh3PUvFhKa8xis/1w/qirN5//EJNC21z+PwkBCI0yFnnMJbTp0PoRKv8 +2w/RfOi3FfTgAVEeTPQMbg3Th2B9HJ6XCdmtkLuA6UKCVMcJeQo0ej0SrpRW8HGF1vI xEoXqRNEzCoacEQmHote236sfV2gAn1oCrncCNmFMc/QPOV1zE3fPMWKdq/or0knvWIC OPvUmbRWzttHpQGGRcf6e4Cu950LohAxtvLDaHdSNe/J9lITcn/kUTxxv9Jzy1LFzPfR KYmA== 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=tbwP29h+VBFBwCKqLY8X6lDaot/DBr314OlRlla83ug=; b=kAv4AkCvQ9gNBVmho8E7gp4jmNoACh6l9XpnCp5oKtOh/O+a5xkaOdr94rbsmmwYHU DpNyp2FhN60TFd52TWG4rMwUTdJxq9lLpdd3joSa810rxJA2+vVsqjyo9Injvb1AqRNF r4liZqT2x0ogkk51rkzBTM3PLb8DdN9hLSa5SoG6B26PnIrIaqjDF2Avv90tmpo5xgVL nC90SNGo60prgmGGdSsyHKwGqngET4Grvl3WBeZI9gF5Er59N6A89JbrNpAR7HNJBw8+ 7yCLdN30XEZ523EI5/njviCAcot+xoGTDGK7jhqtrenPMZ2WZ7HBWDJZWrgAdKenUfvz IYVA== X-Gm-Message-State: APjAAAX4PGF8Pc40kXpebhtCx2ri0hTTZLXdppSJ72gfYdM2dU0+Vw3j xxEsfCG9tpLmimj2ldNj5/qkaMmY/DWnDD7uZLGI4Qre X-Google-Smtp-Source: APXvYqyeeZt7AETMU4WGcUJ3t7ezCyqPWumSs63Nq5aqBBdpbkSnN4ukZv1WR/HDqwovNbiqkVyWvIwz5Imyq5tVmEk= X-Received: by 2002:a9d:4d04:: with SMTP id n4mr14043162otf.35.1572946281339; Tue, 05 Nov 2019 01:31:21 -0800 (PST) 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:170971 Archived-At: Hello, 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' Truth be told I'm not sure if this is the intended behavior or not, but I personally find it a bit annoying to have the client hang on me when I'm not opening the files in the right way. Interestingly, cancelling the command with C-c and executing it again opens the window normally, but without issuing the command prompt. (Also, If it is actually intended behavior, is there an idiomatic way to rewrite the hook such that it will still be called during startup, but prevent the hanging?) In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2019-11-05 built on E105888 Repository revision: 91c732f687a61ba130acf38d5142bec6369ebd68 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 16.04.6 LTS Recent messages: Starting Emacs daemon. Back to top level Making completion list... delete-backward-char: Text is read-only [24 times] Configured using: 'configure --prefix=/home/guswal01/.local '--program-transform-name=s/^ctags$/ctags.emacs/'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY GNUTLS LIBXML2 FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS PDUMPER LCMS2 GMP Important settings: value of $LC_MONETARY: sv_SE.UTF-8 value of $LC_NUMERIC: sv_SE.UTF-8 value of $LC_TIME: sv_SE.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: C++//l Minor modes in effect: tooltip-mode: t global-eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs 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 sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib server tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type 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 elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 68540 8695) (symbols 48 8557 1) (strings 32 22083 1694) (string-bytes 1 831101) (vectors 16 12975) (vector-slots 8 167883 5844) (floats 8 25 40) (intervals 56 384 0) (buffers 1000 14) (heap 1024 13969 1032))