From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 30 12:27:20 2013 Received: (at submit) by debbugs.gnu.org; 30 Apr 2013 16:27:20 +0000 Received: from localhost ([127.0.0.1]:52492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXDOg-0006O4-Kh for submit@debbugs.gnu.org; Tue, 30 Apr 2013 12:27:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58309) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UXDOc-0006Nv-Ld for submit@debbugs.gnu.org; Tue, 30 Apr 2013 12:27:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXDO6-0007Vl-Nt for submit@debbugs.gnu.org; Tue, 30 Apr 2013 12:26:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:34184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXDO6-0007Vb-Jl for submit@debbugs.gnu.org; Tue, 30 Apr 2013 12:26:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXDO1-00039d-Ga for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2013 12:26:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXDNv-0007Te-G1 for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2013 12:26:37 -0400 Received: from e.thregr.org ([80.68.88.20]:34102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXCnQ-0003bI-CC for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2013 11:48:48 -0400 Received: from [193.106.183.18] (helo=[10.60.220.19]) by e.thregr.org with esmtpsa (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1UXCj8-0006DS-PQ for bug-gnu-emacs@gnu.org; Tue, 30 Apr 2013 17:44:22 +0200 Message-ID: <517FE7CE.1060408@thregr.org> Date: Tue, 30 Apr 2013 17:48:30 +0200 From: Yuri D'Elia User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.3; emacsclient -c behavior regression Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) I think this is a regression in emacs24 (lucid), because this used to work under emacs23: If you start emacs --daemon and you have the following: (add-hook 'after-make-frame-functions (lambda (frame) (print (display-graphic-p)))) and you create a new frame via: emacsclient -c you will notice that the result is always 'f'. Not only that, but any frame manipulation will cause the daemon to crash. emacsclient -e '(make-frame)' does the same(!). Yet, if you create a new frame from *that* newly created frame via M-x (make-frame), the second new frame is indeed graphic. This gave me all sorts of headache with the color-theme package actually crashing emacs, only in daemon mode, and only when creating a new frame via emacsclient. If you set a hook in server-visit-hook though, the (selected-frame) is graphic. What's happening? I'm using emacs24-lucid from debian. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2013-04-13 on trouble, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11204000 System Description: Debian GNU/Linux 7.0 (wheezy) Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=lucid' '--with-toolkit-scroll-bars' '--without-gconf' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_COLLATE: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: window-numbering-mode: t xterm-mouse-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-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 column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o s r t - e m Recent messages: Done (Total of 0 files compiled, 9 skipped) Warning: defvar ignored because generated-autoload-file is let-bound Saving file /home/ydelia/.emacs.d/site-lisp/loaddefs.el... Wrote /home/ydelia/.emacs.d/site-lisp/loaddefs.el Loading /home/ydelia/.emacs.d/site-lisp/loaddefs.el (source)...done Loading /home/ydelia/.emacs.d/custom...done Loading /usr/share/emacs24/site-lisp/emacs-goodies-el/color-theme-library.el (source)...done Loading /usr/share/emacs24/site-lisp/emacs-goodies-el/color-theme-library.elc...done Loading slime-autoloads...done For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /usr/share/emacs24/site-lisp/flim/md4 hides /usr/share/emacs/24.3/lisp/md4 /usr/share/emacs24/site-lisp/flim/hex-util hides /usr/share/emacs/24.3/lisp/hex-util ~/.emacs.d/site-lisp/loaddefs hides /usr/share/emacs/24.3/lisp/loaddefs /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.3/lisp/textmodes/flyspell /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.3/lisp/textmodes/ispell /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.3/lisp/textmodes/rst /usr/share/emacs24/site-lisp/flim/sasl hides /usr/share/emacs/24.3/lisp/net/sasl /usr/share/emacs24/site-lisp/flim/ntlm hides /usr/share/emacs/24.3/lisp/net/ntlm /usr/share/emacs24/site-lisp/flim/hmac-md5 hides /usr/share/emacs/24.3/lisp/net/hmac-md5 /usr/share/emacs24/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/24.3/lisp/net/sasl-ntlm /usr/share/emacs24/site-lisp/flim/hmac-def hides /usr/share/emacs/24.3/lisp/net/hmac-def /usr/share/emacs24/site-lisp/flim/sasl-cram hides /usr/share/emacs/24.3/lisp/net/sasl-cram /usr/share/emacs24/site-lisp/flim/sasl-digest hides /usr/share/emacs/24.3/lisp/net/sasl-digest /usr/share/emacs24/site-lisp/auctex/tex hides /usr/share/emacs/site-lisp/auctex/tex /usr/share/emacs24/site-lisp/auctex/font-latex hides /usr/share/emacs/site-lisp/auctex/font-latex /usr/share/emacs24/site-lisp/auctex/tex-buf hides /usr/share/emacs/site-lisp/auctex/tex-buf /usr/share/emacs24/site-lisp/auctex/tex-info hides /usr/share/emacs/site-lisp/auctex/tex-info /usr/share/emacs24/site-lisp/auctex/toolbar-x hides /usr/share/emacs/site-lisp/auctex/toolbar-x /usr/share/emacs24/site-lisp/auctex/tex-bar hides /usr/share/emacs/site-lisp/auctex/tex-bar /usr/share/emacs24/site-lisp/auctex/tex-font hides /usr/share/emacs/site-lisp/auctex/tex-font /usr/share/emacs24/site-lisp/auctex/tex-jp hides /usr/share/emacs/site-lisp/auctex/tex-jp /usr/share/emacs24/site-lisp/auctex/tex-style hides /usr/share/emacs/site-lisp/auctex/tex-style /usr/share/emacs24/site-lisp/auctex/prv-emacs hides /usr/share/emacs/site-lisp/auctex/prv-emacs /usr/share/emacs24/site-lisp/auctex/context hides /usr/share/emacs/site-lisp/auctex/context /usr/share/emacs24/site-lisp/auctex/context-en hides /usr/share/emacs/site-lisp/auctex/context-en /usr/share/emacs24/site-lisp/auctex/bib-cite hides /usr/share/emacs/site-lisp/auctex/bib-cite /usr/share/emacs24/site-lisp/auctex/texmathp hides /usr/share/emacs/site-lisp/auctex/texmathp /usr/share/emacs24/site-lisp/auctex/tex-mik hides /usr/share/emacs/site-lisp/auctex/tex-mik /usr/share/emacs24/site-lisp/auctex/plain-tex hides /usr/share/emacs/site-lisp/auctex/plain-tex /usr/share/emacs24/site-lisp/auctex/multi-prompt hides /usr/share/emacs/site-lisp/auctex/multi-prompt /usr/share/emacs24/site-lisp/auctex/context-nl hides /usr/share/emacs/site-lisp/auctex/context-nl /usr/share/emacs24/site-lisp/auctex/latex hides /usr/share/emacs/site-lisp/auctex/latex /usr/share/emacs24/site-lisp/auctex/preview hides /usr/share/emacs/site-lisp/auctex/preview /usr/share/emacs24/site-lisp/auctex/tex-fold hides /usr/share/emacs/site-lisp/auctex/tex-fold Features: (shadow sort flyspell ispell gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils html-php multi-mode imenu pure-mode thingatpt dired-x dired uniquify byte-opt warnings advice advice-preload color-theme-solarized solarized-definitions info color-theme easymenu wid-edit modeline-posn window-numbering xt-mouse paren edmacro kmacro ace-jump-mode-autoloads doc-mode-autoloads expand-region-autoloads modeline-posn-autoloads multiple-cursors-autoloads pretty-symbols-mode-autoloads rainbow-mode-autoloads shen-mode-autoloads vline-autoloads package simple-wiki derived cl-macs gv autoload help-fns compile comint ansi-color ring bytecomp byte-compile cconv debian-el debian-el-loaddefs w3m-load slime-autoloads mmm-auto mmm-vars mmm-compat cl cl-lib emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode preview-latex tex-site auto-loads time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 06 10:55:47 2020 Received: (at 14322) by debbugs.gnu.org; 6 Dec 2020 15:55:47 +0000 Received: from localhost ([127.0.0.1]:50851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klwO3-0001B3-B1 for submit@debbugs.gnu.org; Sun, 06 Dec 2020 10:55:47 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klwO0-0001Aj-NC for 14322@debbugs.gnu.org; Sun, 06 Dec 2020 10:55:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Etr5nw7Z33VGQ65nYFAOuvcv32O4ZCtxQynbsF2a+ag=; b=IMKeOfP7z41x2gK2D0YSuSVcvJ OPc6rQCSszEyk6gijfSMQRskiN1dfaPj3Eoi6j1TBFvzV5KWmdBOuYiwU/XDaVqUYd++b+KggWnMI F9AEEGx/8UfEcAfe0GB0HGaaAC95UIgNEpcXZCOj7nGy0JCDqD9HyXfOsTwtLkDqJJIY=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klwNr-0005jk-KN; Sun, 06 Dec 2020 16:55:38 +0100 From: Lars Ingebrigtsen To: Yuri D'Elia Subject: Re: bug#14322: 24.3; emacsclient -c behavior regression References: <517FE7CE.1060408@thregr.org> X-Now-Playing: Magnus Granberg & Skogen's _Let Pass My Weary Guiltless Ghost_: "Let Pass My Weary Guiltless Ghost" Date: Sun, 06 Dec 2020 16:55:34 +0100 In-Reply-To: <517FE7CE.1060408@thregr.org> (Yuri D'Elia's message of "Tue, 30 Apr 2013 17:48:30 +0200") Message-ID: <87eek37wuh.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Yuri D'Elia writes: > I think this is a regression in emacs24 (lucid), because this used to > work under emacs23: > > If you start emacs --daemon > > and you have the following: > > (add-hook 'after-make-frame-functions [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14322 Cc: 14322@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Yuri D'Elia writes: > I think this is a regression in emacs24 (lucid), because this used to > work under emacs23: > > If you start emacs --daemon > > and you have the following: > > (add-hook 'after-make-frame-functions > (lambda (frame) > (print (display-graphic-p)))) > > and you create a new frame via: > > emacsclient -c > > you will notice that the result is always 'f'. (This bug report unfortunately got no response at the time.) The result is always nil, yes -- but if you use the frame as a parameter to that function, you get the correct results: (setq after-make-frame-functions (list (lambda (frame) (message "frame: %s %s" frame (display-graphic-p frame))))) ./lib-src/emacsclient -c frame: # t > Not only that, but any frame manipulation will cause the daemon to crash. > > emacsclient -e '(make-frame)' This seems to be fixed, though. It now just reports an error: *ERROR*: Unknown terminal type So I think everything here works as designed, and I'm closing this bug report. If there's more to be done here, please respond to the debbugs address and we'll reopen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 06 10:55:52 2020 Received: (at control) by debbugs.gnu.org; 6 Dec 2020 15:55:52 +0000 Received: from localhost ([127.0.0.1]:50854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klwO7-0001BJ-Ii for submit@debbugs.gnu.org; Sun, 06 Dec 2020 10:55:51 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klwO6-0001Az-TL for control@debbugs.gnu.org; Sun, 06 Dec 2020 10:55:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=p7B+SVqJw8Tks0KEFJEB8aVxJbdCQlgSirtbBjSonqY=; b=s7sdACJsAQP9HxuK+qRhfq+tIl pWzag9M5K54hc0lcYFF3a/rjX842yTrdJE4MGUGxbk/aY/xUt8VMwiZ9/oiVy+JlhhWMbUld+XRzy 6yfi/W1bd2hyjeGtmnlygNdC46IYYFT4QNkKVru//byD643k0rikf3PhfDypmC/gC3sw=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klwNz-0005jr-46 for control@debbugs.gnu.org; Sun, 06 Dec 2020 16:55:45 +0100 Date: Sun, 06 Dec 2020 16:55:42 +0100 Message-Id: <87czzn7wu9.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #14322 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 14322 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 14322 quit From unknown Fri Jun 20 07:25:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 04 Jan 2021 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator