From unknown Sun Jun 22 17:14:03 2025 X-Loop: don@donarmstrong.com Subject: bug#1578: 23.0.60; [EmacsCarbon] emacsclient -c make emacs very slow (under Mac OSX) Reply-To: poppyer , 1578@debbugs.gnu.org Resent-From: poppyer Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 17 Dec 2008 06:33:16 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1578 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122922692114131 (code B ref -1); Wed, 17 Dec 2008 06:33:16 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 14 Dec 2008 03:55:21 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBE3tHQj014120 for ; Sat, 13 Dec 2008 19:55:18 -0800 Received: from mail.gnu.org ([199.232.76.166]:47304 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LBi3v-000715-To for emacs-pretest-bug@gnu.org; Sat, 13 Dec 2008 22:54:35 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LBi4Z-0007UA-De for emacs-pretest-bug@gnu.org; Sat, 13 Dec 2008 22:55:16 -0500 Received: from ti-out-0910.google.com ([209.85.142.187]:5020) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LBi4Y-0007Ts-QA for emacs-pretest-bug@gnu.org; Sat, 13 Dec 2008 22:55:15 -0500 Received: by ti-out-0910.google.com with SMTP id u5so1465732tia.10 for ; Sat, 13 Dec 2008 19:55:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:message-id:from:to :subject; bh=E2K/CH9ZwSDT5C4lgwwIJlJ+SZdyiFiVygUQvjxOL/c=; b=B2YlWcm8cZR5kq5AYFmM/GsNjHQMCDps9LX7ndd+cC+BnCu95RWdrxyYOOtLsFSYka 6hfGVZGnMiapt612tyHTPahl3hrMYL5W3D0GNp8tgHkn62gNAu28Jxh84flyTUUpDame 8zhqqUIpo47UnF/rxYxSQV8kFKpzrW7xsU+RM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:message-id:from:to:subject; b=c2jj2UHPqKgnHXctRTD+UNL3GwIIHmxLT/6DWELiKrvSlQNMeJ+teInvmzGPun1pxb kaQPgJ0OfYtxtE05SBaR34Dioz/fPFag6LuwmywEuqkbVm/FYz79hsBhUbWtXGlXtg/p 4xqXoxdqp7T5YelEFH6nVbX7pxYM022Bskpkk= Received: by 10.110.43.18 with SMTP id q18mr7883306tiq.14.1229226911196; Sat, 13 Dec 2008 19:55:11 -0800 (PST) Received: from nusnet-97-126.dynip.nus.edu.sg.yourcompany.com (nusnet-97-126.dynip.nus.edu.sg [137.132.97.126]) by mx.google.com with ESMTPS id y5sm6647757tia.1.2008.12.13.19.55.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 13 Dec 2008 19:55:10 -0800 (PST) Date: Sun, 14 Dec 2008 11:55:04 +0800 Message-Id: From: poppyer To: emacs-pretest-bug@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) First, I use emacs -nw to open a normal emacs in the terminal. Then I use emacsclient -c to open a carbon frame. Now the terminal emacs becomes very slow and unresponsive. (But the CPU is not running high). Even after the carbon frame is closed, it is still same slow. (and I have to close emacs and restart) In GNU Emacs 23.0.60.1 (i386-apple-darwin9.5.0, NS apple-appkit-949.35) of 2008-12-11 on neutron.local Windowing system distributor `Apple', version 97.112.112.108.101.45.97.112.112.107.105.116.45.57.52.57.46.51.53 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: zh_CN.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Summary Minor modes in effect: gnus-agent-mode: t erc-log-mode: t erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-networks-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t iswitchb-mode: t recentf-mode: t which-function-mode: t show-paren-mode: t mouse-sel-mode: t global-hl-line-mode: t pinbar-mode: t shell-dirtrack-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-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: RET ESC x n e w s C-p C-p RET q n n n n n p p RET SPC n SPC C-n SPC n q p p RET C-n C-n C-n C-n C-n C-p C-p C-p SPC SPC C-n SPC SPC C-n SPC c y p n n n n n n n n n n n n p p p p p p p p p n n n n n p p p p p n n n n n n p p p n n n p RET SPC q RET C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-p c y p p p p n RET SPC n n c y ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ B ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A ESC [ A p n RET SPC q p RET SPC q p RET SPC SPC C-n SPC SPC q C-c C-@ C-c C-@ C-c C-@ ESC 1 C-p C-p C-p C-p C-p C-p ESC g n RET SPC n C-x 1 ESC x b DEL s u b TAB ESC DEL ESC DEL e m TAB a TAB s u m i TAB TAB ESC DEL r e TAB ESC DEL ESC DEL r e p o TAB r TAB e DEL TAB RET Recent messages: Generating summary...done Reading active file from gmail via nnimap... nnimap: Checking mailboxes...done Reading active file from freenews.netfront.net via nntp... Checking new news...done Retrieving newsgroup: nntp+freenews.netfront.net:cn.bbs.comp.emacs... Fetching headers for nntp+freenews.netfront.net:cn.bbs.comp.emacs...done Scoring...done Generating summary...done Making completion list... [2 times] From rgm@gnu.org Wed Dec 17 10:42:27 2008 Received: (at control) by emacsbugs.donarmstrong.com; 17 Dec 2008 18:42:27 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.6 required=4.0 tests=FOURLA,MISSING_SUBJECT, NOSUBJECT,VALID_BTS_CONTROL,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBHIgOwK030943 for ; Wed, 17 Dec 2008 10:42:25 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LD1Ky-0000MP-R6; Wed, 17 Dec 2008 13:41:36 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18761.18400.773170.542342@fencepost.gnu.org> Date: Wed, 17 Dec 2008 13:41:36 -0500 From: Glenn Morris To: control X-Debbugs-No-Ack: yes reassign 1576 emacs,ns reassign 1578 emacs,ns reassign 1570 spam reassign 1572 spam reassign 1573 spam reassign 1577 spam reassign 1579 spam reassign 1584 spam reassign 1587 spam reassign 1588 spam reassign 1590 spam reassign 1592 spam reassign 1594 spam reassign 1595 spam reassign 1596 spam reassign 1597 spam reassign 1599 spam reassign 1600 spam reassign 1601 spam reassign 1602 spam reassign 1603 spam reassign 1604 spam reassign 1605 spam reassign 1606 spam reassign 1607 spam stop SPAM SPAM SPAM From unknown Sun Jun 22 17:14:03 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1578: emacsclient -c make emacs very slow (under Mac OSX) Reply-To: Adrian Robert , 1578@debbugs.gnu.org Resent-From: Adrian Robert Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org Resent-Date: Wed, 21 Jan 2009 23:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1578 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 1578-submit@emacsbugs.donarmstrong.com id=B1578.123257897630626 (code B ref 1578); Wed, 21 Jan 2009 23:10:03 +0000 Received: (at 1578) by emacsbugs.donarmstrong.com; 21 Jan 2009 23:02:56 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-ew0-f10.google.com (mail-ew0-f10.google.com [209.85.219.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0LN2qYs030620 for <1578@emacsbugs.donarmstrong.com>; Wed, 21 Jan 2009 15:02:54 -0800 Received: by ewy3 with SMTP id 3so3083128ewy.1 for <1578@emacsbugs.donarmstrong.com>; Wed, 21 Jan 2009 15:02:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version:content-type :message-id:cc:content-transfer-encoding:from:subject:date:to :x-mailer; bh=0/qJ9TIPJ3yAnxnHCG4vq/PLKhH8i+LMzYMKkTmirHw=; b=lWJgfT48MO8N2MyA/B2MkOd6SyjWWTenbG7InSxFgo9hNFFUfqw3fsSiha0KxViZLN +CRa18An6bmZNJCiEyuh9sDJ2JIGOIdzcgWAO75fCp/dPt2y35xOzXI0fxFz91Hg1viA AseKPaC5DE13WTkR8UxLEUcc5nsqHocSFrkb4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; b=EesvszVW5Q13N/gYf0f4Z/5Zsgjkac+Sx/J0wsdIjlevW5e/uK2wRtSbMn+wmLrr2r N7AQmMmuA9Uh7xS+Ezwp9JsipUm4ChC2uyz0CfdkxnOMNqBeZ8xDAKWVRL23R/2Kz78E PYjGGUVwNAxc0djKJ/Y7RajoMZRfcnZrv3HxQ= Received: by 10.210.105.20 with SMTP id d20mr1124706ebc.142.1232578966555; Wed, 21 Jan 2009 15:02:46 -0800 (PST) Received: from ?192.168.1.101? (h018098.gprs.dnafinland.fi [87.93.18.98]) by mx.google.com with ESMTPS id 24sm8857749eyx.45.2009.01.21.15.02.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 21 Jan 2009 15:02:45 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <9E938C18-A92A-40BF-8741-F3781414D5FB@gmail.com> Cc: poppyer Content-Transfer-Encoding: 7bit From: Adrian Robert Date: Thu, 22 Jan 2009 01:02:45 +0200 To: 1578@debbugs.gnu.org X-Mailer: Apple Mail (2.753.1) > First, I use emacs -nw to open a normal emacs in the terminal. Then I > use emacsclient -c to open a carbon frame. Now the terminal emacs > becomes very slow and unresponsive. (But the CPU is not running high). > Even after the carbon frame is closed, it is still same slow. (and I > have to close emacs and restart) This is because the events are being passed only after a full run through the NS event loop. See line 3194 in nsterm.m (the first one of ns_select()). Ideally this would drop down to the regular select () if the NS application ("carbon" frame) is not active. However, I haven't found a way to detect this without also causing the problem of failing to pick up the app becoming active again until after a long delay. I think the select() gets called with a long timeout and, no matter if cocoa-experimental-ctrl-g is set or not, no interruption of it happens. Since there is only one thread, an external call to, e.g. - applicationWillBecomeActive won't go through until after this select terminates. From unknown Sun Jun 22 17:14:03 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1578: emacsclient -c make emacs very slow (under Mac OSX) Reply-To: poppyer , 1578@debbugs.gnu.org Resent-From: poppyer Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org Resent-Date: Fri, 06 Feb 2009 18:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1578 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 1578-submit@emacsbugs.donarmstrong.com id=B1578.123394482615014 (code B ref 1578); Fri, 06 Feb 2009 18:35:02 +0000 Received: (at 1578) by emacsbugs.donarmstrong.com; 6 Feb 2009 18:27:06 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.0 required=4.0 tests=GMAIL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.190]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n16IQvKi015007 for <1578@emacsbugs.donarmstrong.com>; Fri, 6 Feb 2009 10:26:59 -0800 Received: by ti-out-0910.google.com with SMTP id 28so1131879tif.1 for <1578@emacsbugs.donarmstrong.com>; Fri, 06 Feb 2009 10:26:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=bGL5EIxdCZy2o4YyEYAOvHo52jRbvakTJVWHMY7yP3Y=; b=TaGINXRbQtKSh8O0cBX87aAZeFzE/z0vVihhF6ANcwSTw+Ij9MotJukGt0i71D2tBz Usjxu6xq9+WZOaRzYBytKzk3Zs20Y6Hgwez2dbiNROhTNmteO7cpoe2wgfm9f03HMSP/ J3lUw/Qns/yjD8aC4ZiwRa6JTSJRMKPSDxGTU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=s5yr8S7V64vYbkBwI029XrCQeeOjahVrzJ0qn0yGWrK3o6sf37Kb55a7AHL8i8liyA xT+Mzt6KOIubnZqzSN/q4Q5H3MfTXRcYWpaH14irxq4zRP5EWNB2L0WHOHUWY1RiTFy0 9d7ffd2NikNW+DWw3rjBJwVR1Wyke89GL2kkA= Received: by 10.110.40.8 with SMTP id n8mr3137737tin.28.1233944816605; Fri, 06 Feb 2009 10:26:56 -0800 (PST) Received: from nusnet-97-126.dynip.nus.edu.sg.yourcompany.com (nusnet-97-126.dynip.nus.edu.sg [137.132.97.126]) by mx.google.com with ESMTPS id a4sm945639tib.11.2009.02.06.10.26.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 06 Feb 2009 10:26:55 -0800 (PST) From: poppyer To: Adrian Robert Cc: 1578@debbugs.gnu.org References: <9E938C18-A92A-40BF-8741-F3781414D5FB@gmail.com> Date: Sat, 07 Feb 2009 02:26:50 +0800 In-Reply-To: <9E938C18-A92A-40BF-8741-F3781414D5FB@gmail.com> (Adrian Robert's message of "Thu, 22 Jan 2009 01:02:45 +0200") Message-ID: User-Agent: Emacs Gnus MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Adrian Robert writes: >> First, I use emacs -nw to open a normal emacs in the terminal. Then I >> use emacsclient -c to open a carbon frame. Now the terminal emacs >> becomes very slow and unresponsive. (But the CPU is not running high). >> Even after the carbon frame is closed, it is still same slow. (and I >> have to close emacs and restart) > > This is because the events are being passed only after a full run > through the NS event loop. See line 3194 in nsterm.m (the first one > of ns_select()). Ideally this would drop down to the regular select > () if the NS application ("carbon" frame) is not active. However, I > haven't found a way to detect this without also causing the problem > of failing to pick up the app becoming active again until after a > long delay. I think the select() gets called with a long timeout > and, no matter if cocoa-experimental-ctrl-g is set or not, no > interruption of it happens. > > Since there is only one thread, an external call to, e.g. - > applicationWillBecomeActive won't go through until after this select > terminates. I notice that if I start with "emacs -nw", there is no NSApp (no icon in the osx dock). When I use "emacsclient -c" to open a NS frame, the icon shows up. My idea here is, if I close every NS frame, can we destroy the NSApp and make it nil again (say by testing the frame count) ? If this is possible, it at least make emacsclient more usable; and I don't need to restart Emacs. Cheers, poppyer From unknown Sun Jun 22 17:14:03 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1578: emacsclient -c make emacs very slow (under Mac OSX) Reply-To: Adrian Robert , 1578@debbugs.gnu.org Resent-From: Adrian Robert Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org Resent-Date: Sat, 07 Feb 2009 10:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1578 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 1578-submit@emacsbugs.donarmstrong.com id=B1578.123400303130362 (code B ref 1578); Sat, 07 Feb 2009 10:45:02 +0000 Received: (at 1578) by emacsbugs.donarmstrong.com; 7 Feb 2009 10:37:11 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.5 required=4.0 tests=MDO_CABLE_TV3 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-fx0-f15.google.com (mail-fx0-f15.google.com [209.85.220.15]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n17Ab71Q030356 for <1578@emacsbugs.donarmstrong.com>; Sat, 7 Feb 2009 02:37:09 -0800 Received: by fxm8 with SMTP id 8so1879091fxm.1 for <1578@emacsbugs.donarmstrong.com>; Sat, 07 Feb 2009 02:37:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=ojlKNRf66qGDZ4SGg++f5wjC3J+Qcli+wsw9ytZ5wpM=; b=JlmbQhYbKyRuydnzzybrqKUcC4pdNyb3Sgt4cjb2GglZjf/O3oUW3yAhcWTC/fjdvq XJEA1EBG28W/i5eMBClBp/7mk99PFxkkHiE2XPLE/JTd7L3MiKNL5nG9VYa4q+nXm5Gv KOpByc85EvoAsgawO1OFGBEdVc4VG+UMAy8JM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=VNLsOmdKAB4X+0x5t3f34/8cpc6JGs0dFg1EZ+g6SixaWZOAMy3GCeXqNOJXnAOyoL fJFEljhHYQdMryjPptAQpbFA8JECi68M/DxsKiuuy6TU5OoNVQnxAmx44vE9OV4kQpg1 gZfBZPyM9gE5sATDEyta7nimTPuvlJMPuBtok= Received: by 10.223.126.145 with SMTP id c17mr2183360fas.102.1234003022125; Sat, 07 Feb 2009 02:37:02 -0800 (PST) Received: from ?192.168.255.4? (a91-155-44-133.elisa-laajakaista.fi [91.155.44.133]) by mx.google.com with ESMTPS id 12sm672305fks.5.2009.02.07.02.37.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 07 Feb 2009 02:37:01 -0800 (PST) In-Reply-To: References: <9E938C18-A92A-40BF-8741-F3781414D5FB@gmail.com> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: 1578@debbugs.gnu.org Content-Transfer-Encoding: 7bit From: Adrian Robert Date: Sat, 7 Feb 2009 12:37:19 +0200 To: poppyer X-Mailer: Apple Mail (2.753.1) On Feb 6, 2009, at 8:26 PM, poppyer wrote: > I notice that if I start with "emacs -nw", there is no NSApp (no > icon in > the osx dock). When I use "emacsclient -c" to open a NS frame, the > icon > shows up. My idea here is, if I close every NS frame, can we > destroy the > NSApp and make it nil again (say by testing the frame count) ? If this > is possible, it at least make emacsclient more usable; and I don't > need > to restart Emacs. This a good idea and would probably meet better with user expectations when the only frame is closed (get rid of the icon in the dock), also applicable when started with --daemon. I don't have time to work on it right now, so if someone else wants to take a crack.. it shouldn't be that hard (though there could be unexpected gotchas I guess)... From unknown Sun Jun 22 17:14:03 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1578: emacsclient -c make emacs very slow (under Mac OSX) Reply-To: Stefan Monnier , 1578@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs , owner@debbugs.gnu.org Resent-Date: Sat, 07 Feb 2009 15:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1578 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Received: via spool by 1578-submit@emacsbugs.donarmstrong.com id=B1578.12340203806845 (code B ref 1578); Sat, 07 Feb 2009 15:35:03 +0000 Received: (at 1578) by emacsbugs.donarmstrong.com; 7 Feb 2009 15:26:20 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=HAS_BUG_NUMBER,MDO_CABLE_TV3, XIRONPORT autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n17FQG9H006839 for <1578@emacsbugs.donarmstrong.com>; Sat, 7 Feb 2009 07:26:18 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtwFAGA2jUlFxIvi/2dsb2JhbACBbcwWhBoGgx0 X-IronPort-AV: E=Sophos;i="4.37,396,1231131600"; d="scan'208";a="33501613" Received: from 69-196-139-226.dsl.teksavvy.com (HELO pastel.home) ([69.196.139.226]) by ironport2-out.teksavvy.com with ESMTP; 07 Feb 2009 10:26:11 -0500 Received: by pastel.home (Postfix, from userid 20848) id 9756683D4; Sat, 7 Feb 2009 10:26:10 -0500 (EST) From: Stefan Monnier To: Adrian Robert Cc: 1578@debbugs.gnu.org, poppyer Message-ID: References: <9E938C18-A92A-40BF-8741-F3781414D5FB@gmail.com> Date: Sat, 07 Feb 2009 10:26:10 -0500 In-Reply-To: (Adrian Robert's message of "Sat, 7 Feb 2009 12:37:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> I notice that if I start with "emacs -nw", there is no NSApp (no icon in >> the osx dock). When I use "emacsclient -c" to open a NS frame, the icon >> shows up. My idea here is, if I close every NS frame, can we destroy the >> NSApp and make it nil again (say by testing the frame count) ? If this >> is possible, it at least make emacsclient more usable; and I don't need >> to restart Emacs. > This a good idea and would probably meet better with user expectations when > the only frame is closed (get rid of the icon in the dock), also applicable > when started with --daemon. > I don't have time to work on it right now, so if someone else wants to take > a crack.. it shouldn't be that hard (though there could be unexpected > gotchas I guess)... Odd: I'm not a regular Mac OS X user, but from the little bit of exposure I've had to this system, I would have expected the exact opposite: I'd have expected "emacs --daemon" to bring up the Emacs icon in the dock even before the first frame is opened, and would stay there until the daemon exits. Stefan From unknown Sun Jun 22 17:14:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1578: emacsclient -c make emacs very slow (under Mac OSX) References: In-Reply-To: Resent-From: Hagmonk Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Mar 2016 06:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1578 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 1578@debbugs.gnu.org Received: via spool by 1578-submit@debbugs.gnu.org id=B1578.14572464564816 (code B ref 1578); Sun, 06 Mar 2016 06:41:01 +0000 Received: (at 1578) by debbugs.gnu.org; 6 Mar 2016 06:40:56 +0000 Received: from localhost ([127.0.0.1]:36098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acSN5-0001Fb-FB for submit@debbugs.gnu.org; Sun, 06 Mar 2016 01:40:55 -0500 Received: from mr11p24im-asmtp003.me.com ([17.110.78.109]:45613) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1acPX8-0004uy-EE for 1578@debbugs.gnu.org; Sat, 05 Mar 2016 22:39:07 -0500 Received: from [172.20.10.14] (mobile-166-177-250-210.mycingular.net [166.177.250.210]) by mr11p24im-asmtp003.me.com (Oracle Communications Messaging Server 7.0.5.36.0 64bit (built Sep 8 2015)) with ESMTPSA id <0O3L00DQ9M4Z9930@mr11p24im-asmtp003.me.com> for 1578@debbugs.gnu.org; Sun, 06 Mar 2016 03:39:00 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-03-06_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1011 suspectscore=13 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1603060068 From: Hagmonk Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable Message-id: <52D17317-9C8D-42F2-A47F-39D34282A73C@icloud.com> Date: Sat, 05 Mar 2016 19:38:59 -0800 MIME-version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-Spam-Score: -0.7 (/) X-Mailman-Approved-At: Sun, 06 Mar 2016 01:40:54 -0500 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: -0.7 (/) I=E2=80=99m unable to reproduce this bug using Emacs 25.0.92.2 on OS X = 10.11.3. nsterm.m has been reworked somewhat over the past 6 years, including = ns_read_socket which I believe is the function in question based on the = conditional it used to have to check whether it was =E2=80=9CinNsSelect=E2= =80=9D. I=E2=80=99d suggest returning this to the reporter for verification. From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 20 11:43:41 2016 Received: (at control) by debbugs.gnu.org; 20 Mar 2016 15:43:41 +0000 Received: from localhost ([127.0.0.1]:55718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahfW1-00052a-BG for submit@debbugs.gnu.org; Sun, 20 Mar 2016 11:43:41 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:37449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahfVz-00052N-Q0 for control@debbugs.gnu.org; Sun, 20 Mar 2016 11:43:40 -0400 Received: by mail-wm0-f45.google.com with SMTP id p65so94850756wmp.0 for ; Sun, 20 Mar 2016 08:43:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:date:message-id:to:from:subject; bh=GCN3EeOX1UbwPAVVpIDw5OjmM1YjoCzL69tvchOpSvc=; b=iMXvgrwdLECBBPXq+kFkKCTVyL+EKWGxISIg7XSnqMW5Ic3i1Be1xmR7okUZ7smprN nDnJ5kK641mFpTqqhr8JpyzCHKYlrl0w+J68phvcK7KX+77rZQnrYvqzKiBj+ccTYTpp cZNwSrIefnLPtC0/HLFpV8+IcMdoqZwkDjcElVw653DjtZDvicoBs1ZEJRuNd8eZiaVK ovN9oPumICdRfneRiYysc+lJw5X0voEmlCygUHzX5myf7R8RPV4L2GA/p6AtN+PYL8/T SPsXTajxhqIzx80IfoGAQM/d+bjO77ZKzGBQZu4Diy4g508IKlqo0qmsJkVnw5n3WR0E maAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:message-id:to:from:subject; bh=GCN3EeOX1UbwPAVVpIDw5OjmM1YjoCzL69tvchOpSvc=; b=USOfvLUtwVxOIfgsvDK3+C1eV8+veVRh8IK0RuLzGk4w3ix28X0Pp0HF0rY8mQYt3Z zdMKI6aZGUa/VUrjD6/DCCQmS/WHQad1wLfSsGIpQfO1D8kXXAV6iR7yHe7fLzlieTeq VeGeT/Jn7ix37HUFrgwO+10e3+XbZ6txz00oMaQOEV8eAfSYVCj5zMc0QnQsUJh3PnVY pXu4vAsIOhe7KwTX4EUh5GMqPm8Vh76339M2e5un0Xj+Yqu61bL80D6HIG0TzY/2ELXc b2ffUaxnvOZnxUaV50Ep6Pr7YObug3O/At3x9V4HskeENC0+Md5ixdX7Uy/osOmcRgcI OMhw== X-Gm-Message-State: AD7BkJLnNRxpQVrxsYh33KVcsjgCygYx7wR/HTCeQDspqxG7mUvIOo53V3iEopT/KvVjQw== X-Received: by 10.194.77.193 with SMTP id u1mr25615717wjw.73.1458488614334; Sun, 20 Mar 2016 08:43:34 -0700 (PDT) Received: from galloway.idiocy.org (8.9.8.2.d.0.8.6.4.2.7.6.7.8.9.c.9.2.1.8.8.f.3.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:3f8:8129:c987:6724:680d:2898]) by smtp.gmail.com with ESMTPSA id da6sm21189111wjb.24.2016.03.20.08.43.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Mar 2016 08:43:33 -0700 (PDT) Date: Sun, 20 Mar 2016 15:43:32 +0000 Message-Id: To: control@debbugs.gnu.org From: Alan Third Subject: control message for bug #1578 X-Spam-Score: -0.5 (/) 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: -0.5 (/) tags 1578 unreproducible From unknown Sun Jun 22 17:14:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1578: emacsclient -c make emacs very slow (under Mac OSX) Resent-From: Andrew Hyatt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Mar 2016 02:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1578 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible To: Hagmonk Cc: 1578@debbugs.gnu.org Received: via spool by 1578-submit@debbugs.gnu.org id=B1578.14589595855399 (code B ref 1578); Sat, 26 Mar 2016 02:34:02 +0000 Received: (at 1578) by debbugs.gnu.org; 26 Mar 2016 02:33:05 +0000 Received: from localhost ([127.0.0.1]:38182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aje26-0001Oc-PL for submit@debbugs.gnu.org; Fri, 25 Mar 2016 22:33:05 -0400 Received: from mail-qg0-f44.google.com ([209.85.192.44]:32841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aje25-0001OQ-9D for 1578@debbugs.gnu.org; Fri, 25 Mar 2016 22:32:57 -0400 Received: by mail-qg0-f44.google.com with SMTP id j35so72339475qge.0 for <1578@debbugs.gnu.org>; Fri, 25 Mar 2016 19:32:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=49qHsK9adOvj4CNMfbIYmg/G4ZoKULdLtEv6XURs2Bk=; b=0V2M53fpMUa9V+6Ca7TQNPfBxr/1iwtSNsWK/uLVHN8CVDun8OyDR4ZV9Pt5rCZL8B OtESMBiGUMb+H2da9ZgO9y4l00AY4fPoqD7WWW63cSwb1nG6fw45v9m1ieMLa8izGc3J muJGn8HZnq54zbyxOmw4QjFu1aftmqatAlKJ7cPwBhJEt/iK26v9ygHM1Ap7sKqVWZza eM/fUGpgiNi8cX3lnAs0ix4ArjnLlL5BBG7ZEgmMoD1yKuj7I43JlD9PnjxK8gi1IwLd TM4CY6bKFZvpKBaqfwu/iAENGysvqsBN/AqRJY+2fdV6NUvasEJ1rI1s77h4MfJ9bAo1 nOYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=49qHsK9adOvj4CNMfbIYmg/G4ZoKULdLtEv6XURs2Bk=; b=J2F8B9wrm7Nmj69iejP1ytW0nWt+zDipxYQcnp0v3H+KaWRuGma71RRCSunT21F4R4 ISZLz3NamjrBRDTuWp7nHD7dkMRRHl9GokIBk77aXJQdRoCKSbFY042Pt4uOg0zslHrx 9TrqoAJgCqtLDlFQ1v0l8+R9P0UC8i3QTJQy2AC8jPnx/iq/0UsfVKyGk0YzF6YvzVLy Ns8bHMnSCx5mEtzF1RZDTpuagVOmxvjptKiAGI/aChOjUFxD5BtUgzPgWcLgwcdMkRAf 0XKARdt6lIukbgVRj+izY64mG7JvyMuDYO/tc2oVbtD8c0BuM+QMgXG0jWGycbcrh0o7 fqFw== X-Gm-Message-State: AD7BkJKStHAEjbcgUe+TJIwnuuO9ciVMN4Pn+ZlI4tkBEFgCLUcslDxOcrRipM2LJST2yA== X-Received: by 10.140.37.113 with SMTP id q104mr20494140qgq.104.1458959571851; Fri, 25 Mar 2016 19:32:51 -0700 (PDT) Received: from Andrews-MacBook-Pro.local.ahyatt-laptop (cpe-74-73-128-199.nyc.res.rr.com. [74.73.128.199]) by smtp.gmail.com with ESMTPSA id h9sm6692285qhh.29.2016.03.25.19.32.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Mar 2016 19:32:49 -0700 (PDT) From: Andrew Hyatt References: <52D17317-9C8D-42F2-A47F-39D34282A73C@icloud.com> Date: Fri, 25 Mar 2016 22:32:48 -0400 In-Reply-To: <52D17317-9C8D-42F2-A47F-39D34282A73C@icloud.com> (hagmonk@icloud.com's message of "Sat, 05 Mar 2016 19:38:59 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) 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: -0.7 (/) Seeing how this was marked unreproducible for a few weeks now, I'm going to close this out. Someone can re-open if it still can reproduce on Emacs 25. Hagmonk writes: > I=E2=80=99m unable to reproduce this bug using Emacs 25.0.92.2 on OS X 10= .11.3. > > nsterm.m has been reworked somewhat over the past 6 years, including > ns_read_socket which I believe is the function in question based on the > conditional it used to have to check whether it was =E2=80=9CinNsSelect= =E2=80=9D. > > I=E2=80=99d suggest returning this to the reporter for verification. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 25 22:33:18 2016 Received: (at control) by debbugs.gnu.org; 26 Mar 2016 02:33:18 +0000 Received: from localhost ([127.0.0.1]:38185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aje2Q-0001PU-AK for submit@debbugs.gnu.org; Fri, 25 Mar 2016 22:33:18 -0400 Received: from mail-qk0-f181.google.com ([209.85.220.181]:36257) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aje2P-0001PG-ES for control@debbugs.gnu.org; Fri, 25 Mar 2016 22:33:17 -0400 Received: by mail-qk0-f181.google.com with SMTP id i4so7879133qkc.3 for ; Fri, 25 Mar 2016 19:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:to:from:subject; bh=EntNaRJtwblzXrsx8ZdBURBMN+NLhOriBdt4xRzbYgc=; b=emZymaShGcBCX/6xAj6QY6sZQaT+dDtbJuwF4M//gWGrqlGXdJkLphM8YXir43mp2/ oLzTZ+wSQhLzNmOXVLUKncCI2+Z6G2IQQuJtvJ1pu264QAo2vhPi/ChClFUPTPCRO1u5 sdmGHIzhUOTHv8MBapVgjfxyU7Ow5RUuwrTPofrehUdIjrraBOGKulcxvYrJrV0xsTzx 3bBbw8Ngv1O3k7C26raM3Yh2sC1WocWUjb71Y69n7lSldYTJL8xRIWs+Y1E5JkyjZcAo GaFaZU0DHcA87rzRLKiEQND9l8K8f8pa4sCjHC1yPCK0r1jkYS1xvrdZktF/oysQ7NwP vIIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:message-id:to:from:subject; bh=EntNaRJtwblzXrsx8ZdBURBMN+NLhOriBdt4xRzbYgc=; b=P10xxfcpV3zX2Qe6giYUmH9nXHa4Jz3517DR8WrPhSPNwT0tncEbSsY3l78Y73gt3O H7xe+FbMqIjk9bJLLxdL0LHO93arm9mO1ChPFpMMji3fC1ocsEmvx8YUHcMlHcuK89cS vkFnuFOZPSufPf4kYGI/4J8OJVubco5CnqVrSjw9jvwwSQs4bbRIs/HRYpYtWjyrP9JG GjZid4WxmRLUsu2HBmgXn0Y0u0m9HqRYP3HPwaInfZWJLa5J7/12IMxouaCXP9Tu4li2 t3fGJ1ST/+bQb4s8RPWGFeVmQLETyJ0eox+2+ym4dTHizpYo2yWkpOMuukPH6+q4K1UH h0yQ== X-Gm-Message-State: AD7BkJLt80OYRfV7MgMLlbvM7bGRE9qkwrQsziQVNZSRjjW8tHtKkixcEx2d3SuFm3TLfA== X-Received: by 10.55.77.216 with SMTP id a207mr20826908qkb.80.1458959591978; Fri, 25 Mar 2016 19:33:11 -0700 (PDT) Received: from Andrews-MacBook-Pro.local.ahyatt-laptop (cpe-74-73-128-199.nyc.res.rr.com. [74.73.128.199]) by smtp.gmail.com with ESMTPSA id 139sm6708878qho.2.2016.03.25.19.33.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Mar 2016 19:33:11 -0700 (PDT) Date: Fri, 25 Mar 2016 22:33:10 -0400 Message-Id: To: control@debbugs.gnu.org From: Andrew Hyatt Subject: control message for bug #1578 X-Spam-Score: -0.7 (/) 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: -0.7 (/) tags 1578 unreproducible close 1578