From unknown Wed Jun 18 23:01:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#8885 <8885@debbugs.gnu.org> To: bug#8885 <8885@debbugs.gnu.org> Subject: Status: 24.0.50; Temporary failure with `select-frame-by-name' on Windows Reply-To: bug#8885 <8885@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:01:09 +0000 retitle 8885 24.0.50; Temporary failure with `select-frame-by-name' on Wind= ows reassign 8885 emacs,w32 submitter 8885 nyc4bos@aol.com severity 8885 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 17 14:22:23 2011 Received: (at submit) by debbugs.gnu.org; 17 Jun 2011 18:22:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXdgV-0003WX-7s for submit@debbugs.gnu.org; Fri, 17 Jun 2011 14:22:23 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXdgS-0003WK-MH for submit@debbugs.gnu.org; Fri, 17 Jun 2011 14:22:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXdgL-0001XD-9m for submit@debbugs.gnu.org; Fri, 17 Jun 2011 14:22:15 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RFC_ABUSE_POST, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:51829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXdgK-0001Wf-1C for submit@debbugs.gnu.org; Fri, 17 Jun 2011 14:22:12 -0400 Received: from eggs.gnu.org ([140.186.70.92]:60456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXdgH-0001W7-Na for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2011 14:22:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXdgF-0001Ue-Rq for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2011 14:22:09 -0400 Received: from imr-mb01.mx.aol.com ([64.12.207.164]:45448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXdgF-0001U5-GO for bug-gnu-emacs@gnu.org; Fri, 17 Jun 2011 14:22:07 -0400 Received: from mtaout-mb01.r1000.mx.aol.com (mtaout-mb01.r1000.mx.aol.com [172.29.41.65]) by imr-mb01.mx.aol.com (8.14.1/8.14.1) with ESMTP id p5HILxXD028051 for ; Fri, 17 Jun 2011 14:21:59 -0400 Received: from RPLPUBBAS07 (unknown [63.117.244.126]) by mtaout-mb01.r1000.mx.aol.com (MUA/Third Party Client Interface) with ESMTPA id 12C62E0000E8 for ; Fri, 17 Jun 2011 14:21:58 -0400 (EDT) From: nyc4bos@aol.com To: bug-gnu-emacs@gnu.org Subject: 24.0.50; Temporary failure with `select-frame-by-name' on Windows Date: Fri, 17 Jun 2011 14:18:39 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain x-aol-global-disposition: G X-AOL-SCOLL-SCORE: 0:2:422908896:93952408 X-AOL-SCOLL-URL_COUNT: 0 x-aol-sid: 3039ac1d29414dfb9b46299f X-AOL-IP: 63.117.244.126 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -5.9 (-----) On Windows, sometimes when executing: emacsclient -n --eval "(select-frame-by-name \"emacs@HOSTNAME\")" I get the error: C:\emacs-24.0.50\bin\emacsclient.exe: connected to remote socket at XX.XX.X.XXX AllowSetForegroundWindow failed with w32 error 5: Access is denied. This error appears to occur when Emacs is "busy" (for example when in the middle of loading a large .el file, etc) and executing the emacsclient `--eval' command from a Windows command prompt. A subsequent invocation of that same emacsclient command will work just fine (presumably Emacs is now no longer "busy") and bring the specified Emacs frame to the forefront. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2011-06-13 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.5) --no-opt --cflags -Ic:/build/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: jabber-activity-mode: t show-paren-mode: t tooltip-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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: x l o a d SPC f SPC d e b g . C-y SPC Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug offlineimap google-weather url-cache google-maps google-maps-static google-maps-geocode google-maps-base json pcmpl-ssh executable pcomplete jabber jabber-libnotify dbus jabber-awesome jabber-osd jabber-wmii jabber-xmessage jabber-festival jabber-sawfish jabber-ratpoison jabber-screen jabber-socks5 jabber-ft-server jabber-si-server jabber-ft-client jabber-ft-common jabber-si-client jabber-si-common jabber-feature-neg jabber-truncate jabber-time jabber-autoaway jabber-vcard-avatars jabber-chatstates jabber-events jabber-vcard jabber-avatar jabber-activity jabber-watch jabber-modeline jabber-ahc-presence jabber-ahc jabber-version jabber-ourversion jabber-muc-nick-completion hippie-exp comint ring jabber-browse jabber-search jabber-register jabber-roster jabber-presence jabber-muc jabber-muc-nick-coloring hexrgb jabber-newdisco jabber-widget jabber-disco jabber-chat jabber-history jabber-chatbuffer jabber-alert jabber-iq jabber-core jabber-console sgml-mode ewoc jabber-keymap jabber-sasl sasl sasl-anonymous sasl-login sasl-plain fsm jabber-logon jabber-conn srv dns starttls tls jabber-xml xml jabber-menu jabber-autoloads jabber-util epa-file epa derived epg epg-config sieve sieve-mode sieve-manage nnir gnus-sum gnus-group mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc password-cache url-vars mailcap gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnoo nnheader gnus-util time-date mm-util mail-prsvr mail-utils pcase advice advice-preload pager w3m-search w3m help-fns browse-url doc-view easymenu jka-compr dired regexp-opt image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util wid-edit w3m-wget server easy-mmode cl edmacro kmacro paren tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe 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 button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 17 17:57:51 2011 Received: (at 8885) by debbugs.gnu.org; 17 Jun 2011 21:57:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXh31-00015R-3P for submit@debbugs.gnu.org; Fri, 17 Jun 2011 17:57:51 -0400 Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QXh2z-00015F-CU for 8885@debbugs.gnu.org; Fri, 17 Jun 2011 17:57:50 -0400 Received: by pvh18 with SMTP id 18so2221141pvh.3 for <8885@debbugs.gnu.org>; Fri, 17 Jun 2011 14:57:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=cPk7ZIrhfX0tsThe5X10dlQ3ABGPTuWOZFWi/UN7y6c=; b=GkIxyF0Hp60gMfL93FZ3GxkFhWmG1sp2BYklzjaxYQ6DH0PrcFuZAXO8PXAf84yQjN ImABmsDpddkmgQZ5rSRzvX8+Sor97m6C6KiesALYEKjUA0wY2KuuCJhp+AgAxDYCDP5g FRNsTRw3PY4PluM5VxrRcTy6QWiRk7c/y7z2s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=hRYpMU/6bu4gvXiazXp6U9PW2IJIg8WI7Vopb29ZX6UDD+ZnTzWxZg946A5pqnJqlW F474dRMjZ6ujyp8Mw499otKAZO0Fdna4oW4CEmGsvgl+qlbRVieUIb1FF3BngagrUvE6 48w5LoxdWoIDgNpxzmKbW/iLsCUm6KKf7FuWE= Received: by 10.142.166.19 with SMTP id o19mr411799wfe.436.1308347863163; Fri, 17 Jun 2011 14:57:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.134.11 with HTTP; Fri, 17 Jun 2011 14:57:03 -0700 (PDT) In-Reply-To: References: From: Juanma Barranquero Date: Fri, 17 Jun 2011 23:57:03 +0200 Message-ID: Subject: Re: bug#8885: 24.0.50; Temporary failure with `select-frame-by-name' on Windows To: nyc4bos@aol.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 8885 Cc: 8885@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -3.5 (---) > AllowSetForegroundWindow failed with w32 error 5: Access is denied. > > This error appears to occur when Emacs is "busy" (for example when in the > middle of loading a large .el file, etc) and executing the emacsclient > `--eval' command from a Windows command prompt. I cannot reproduce it, and currently the return value of AllowSetForegroundWindow is not checked. But, according to http://msdn.microsoft.com/en-us/library/ms632668(VS.85).aspx the function will fail if the calling process cannot set the foreground window. So it's possible that you're invoking emacsclient at at moment when it's unable to set the foreground window, for example if the foreground lock timeout has not expired. All in all, trying to make emacsclient give focus to emacs is never going to be 100% reliable. =C2=A0 =C2=A0 Juanma From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 27 18:50:51 2012 Received: (at control) by debbugs.gnu.org; 27 Mar 2012 22:50:51 +0000 Received: from localhost ([127.0.0.1]:41818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SCfE3-00057r-8G for submit@debbugs.gnu.org; Tue, 27 Mar 2012 18:50:51 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:33985) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SCfDj-00057Q-5l for control@debbugs.gnu.org; Tue, 27 Mar 2012 18:50:49 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SCejR-0005gJ-6q for control@debbugs.gnu.org; Tue, 27 Mar 2012 18:19:13 -0400 Date: Tue, 27 Mar 2012 18:19:13 -0400 Message-Id: Subject: control message for bug 7658 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control 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 (------) forcemerge 8885 7658 From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 27 02:04:56 2012 Received: (at control) by debbugs.gnu.org; 27 Aug 2012 06:04:56 +0000 Received: from localhost ([127.0.0.1]:51625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T5sRT-0004VL-Rc for submit@debbugs.gnu.org; Mon, 27 Aug 2012 02:04:56 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:41269) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T5sRR-0004VD-U4 for control@debbugs.gnu.org; Mon, 27 Aug 2012 02:04:54 -0400 Received: by pbbrr4 with SMTP id rr4so6775569pbb.3 for ; Sun, 26 Aug 2012 23:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=qj0tkBETZQsmz8DwkfimzazxLSKbNqBcr/BBzqajrX0=; b=Y1Z0OSEW/N/BrpB7gmE/EBRs04ozudS16cWHwUNvRlSsKK+5yiNoTNMMruIZHCX/Hg WBtUoaWycJMLWTAikr4mL7lBrTqzIncXcyRcUlygPDd9u5XoZpC4X2C2qiA/yodvz2/F JDzqpWQGt1UK0KhPxmJy9sUuCoF55iILofIMcwF7lT6hLq/6GmT4L64zsYfWH2SphGeb KB6FbTVtSihV4esUyFZr+dPEnW83y2QMIdG8jDkJ2RlCTQ28xC4bYdDJQUmAW4ki6510 EtOJhjM11CBrAXM6aEmZJnugdHPyeaIx3DLbYccqfh1EwwQ+k/A5GTOFezHDm8VnWx19 OOLg== Received: by 10.66.78.69 with SMTP id z5mr27815551paw.14.1346047442068; Sun, 26 Aug 2012 23:04:02 -0700 (PDT) Received: from ulysses ([155.69.16.255]) by mx.google.com with ESMTPS id to6sm14013711pbc.12.2012.08.26.23.03.59 (version=SSLv3 cipher=OTHER); Sun, 26 Aug 2012 23:04:01 -0700 (PDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 7658 Date: Mon, 27 Aug 2012 14:03:56 +0800 Message-ID: <873938q3ar.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control 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: -2.6 (--) close 7658 thanks From unknown Wed Jun 18 23:01:09 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, 24 Sep 2012 11:24:04 +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