From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Lewis Newsgroups: gmane.emacs.bugs Subject: bug#8783: 24.0.50; emacsclientw.exe behaviour in win32 not the same as in linux Date: Thu, 02 Jun 2011 14:35:47 +1000 Message-ID: <4DE71323.60409@dickson.st> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1306993307 27793 80.91.229.12 (2 Jun 2011 05:41:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2011 05:41:47 +0000 (UTC) To: 8783@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 02 07:41:42 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QS0f7-0003Ww-7i for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jun 2011 07:41:41 +0200 Original-Received: from localhost ([::1]:38559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS0f5-0007b3-Fl for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jun 2011 01:41:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS0ae-0007IB-EF for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2011 01:37:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QS0ad-0002gG-6s for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2011 01:37:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS0ad-0002g9-3R for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2011 01:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QS0ac-0002bb-Fo; Thu, 02 Jun 2011 01:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jason Lewis Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jun 2011 05:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8783 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13069929929975 (code B ref -1); Thu, 02 Jun 2011 05:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Jun 2011 05:36:32 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QS0a7-0002ap-9I for submit@debbugs.gnu.org; Thu, 02 Jun 2011 01:36:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QRzdZ-00016e-Mn for submit@debbugs.gnu.org; Thu, 02 Jun 2011 00:36:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRzdT-0002By-7S for submit@debbugs.gnu.org; Thu, 02 Jun 2011 00:35:56 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:46000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRzdT-0002Bu-60 for submit@debbugs.gnu.org; Thu, 02 Jun 2011 00:35:55 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:32941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRzdR-0001g2-Lm for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2011 00:35:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRzdQ-0002Bi-BM for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2011 00:35:53 -0400 Original-Received: from ipmail05.adl6.internode.on.net ([150.101.137.143]:62323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRzdP-0002BX-DC for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2011 00:35:52 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap0EAMsQ5007p/21/2dsb2JhbABQA6cnp3ifB4M3gmkElRkdil4 Original-Received: from ppp167-253-181.static.internode.on.net (HELO debian.organictrader.com.au) ([59.167.253.181]) by ipmail05.adl6.internode.on.net with ESMTP; 02 Jun 2011 14:05:41 +0930 Original-Received: by debian.organictrader.com.au (Postfix, from userid 5001) id A395182CF1F9; Thu, 2 Jun 2011 14:35:38 +1000 (EST) Original-Received: from [10.0.2.51] (unknown [10.0.2.51]) by debian.organictrader.com.au (Postfix) with ESMTPSA id A484082CF1F6 for ; Thu, 2 Jun 2011 14:35:37 +1000 (EST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.23) Gecko/20090812 Lightning/0.9 Thunderbird/2.0.0.23 Mnenhy/0.7.5.0 X-Enigmail-Version: 1.1.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Thu, 02 Jun 2011 01:36:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 02 Jun 2011 01:37:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Thu, 02 Jun 2011 01:41:21 -0400 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46878 Archived-At: Hi, When I try to launch emacs in win32 using emacsclientw.exe it does not seem to work as expected. on my linux box if I start emacs with either: emacsclient -c -a "" emacsclient -c -a "" somefile.txt it will start emacs in daemon mode or start a client as necessary however on windows with the slightly different version: C:\Users\jason\AppData\Roaming>"c:\Program Files (x86)\Emacs\emacs\bin\emacsclientw.exe" -c --alternate-editor="c:\Program Files (x86)\Emacs\emacs\bin\runemacs.exe" test.txt it will open a new emacs instance editing text.txt but then if you run: C:\Users\jason\AppData\Roaming>"c:\Program Files (x86)\Emacs\emacs\bin\emacsclientw.exe" -c --alternate-editor="c:\Program Files (x86)\Emacs\emacs\bin\runemacs.exe" someotherfile.txt it fails to open someotherfile.txt in the existing frame (and does not create a new frame either) further more, while emacs is already running if you run: C:\Users\jason\AppData\Roaming>"c:\Program Files (x86)\Emacs\emacs\bin\emacsclientw.exe" --alternate-editor="c:\Program Files (x86)\Emacs\emacs\bin\runemacs.exe" test.txt (no -c option) emacs will correctly open the desired file however: C:\Users\jason\AppData\Roaming>"c:\Program Files (x86)\Emacs\emacs\bin\emacsclientw.exe" --alternate-editor="c:\Program Files (x86)\Emacs\emacs\bin\runemacs.exe" (no -c option and no file name to open) emacs gives the error: file name or argument required, in a window and then aborts and does not either open emacs, nor go to the emacs frame if it is already running. This does not seem to be the desired behaviour overall. it makes it difficult to make 1 command to either launch emacs or open an existing instance of emacs with a new file. Jason If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file c:/Program Files (x86)/Emacs/emacs/etc/DEBUG. In GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2011-05-17 on 3249CTO Windowing system distributor `Microsoft Corp.', version 6.1.7600 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: ENA value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Text Minor modes in effect: flyspell-mode: t show-paren-mode: t shell-dirtrack-mode: t recentf-mode: t mouse-wheel-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 Recent input: w M-x r e p o r Recent messages: Loading c:/Users/jason/AppData/Roaming/.emacs.d/jason.el (source)... `epa-file' already enabled Loading c:/Users/jason/AppData/Roaming/.emacs.d/jason.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. (New file) Starting new Ispell process [default] ... When done with a buffer, type C-x # Mark set Auto-saving...done Making completion list... Load-path shadows: c:/Users/jason/AppData/Roaming/.emacs.d/elpa/zenburn-1.8/zenburn hides c:/Users/jason/AppData/Roaming/.emacs.d//elpa-to-submit/zenburn c:/Users/jason/AppData/Roaming/.emacs.d/elpa/color-theme-6.6.1/color-theme hides c:/Users/jason/AppData/Roaming/.emacs.d//elpa-to-submit/color-theme c:/Users/jason/AppData/Roaming/.emacs.d/loaddefs hides c:/Program Files (x86)/Emacs/emacs/lisp/loaddefs c:/Program Files (x86)/Emacs/EmacsW32/nxhtml/util/htmlfontify hides c:/Program Files (x86)/Emacs/emacs/lisp/htmlfontify c:/Users/jason/AppData/Roaming/.emacs.d/custom hides c:/Program Files (x86)/Emacs/emacs/lisp/custom c:/Users/jason/AppData/Roaming/.emacs.d/package hides c:/Program Files (x86)/Emacs/emacs/lisp/emacs-lisp/package c:/Program Files (x86)/Emacs/EmacsW32/nxhtml/util/chart hides c:/Program Files (x86)/Emacs/emacs/lisp/emacs-lisp/chart c:/Program Files (x86)/Emacs/EmacsW32/nxhtml/util/org-freemind hides c:/Program Files (x86)/Emacs/emacs/lisp/org/org-freemind c:/Users/jason/AppData/Roaming/.emacs.d/elpa/ruby-mode-1.1/ruby-mode hides c:/Program Files (x86)/Emacs/emacs/lisp/progmodes/ruby-mode c:/Users/jason/AppData/Roaming/.emacs.d//elpa-to-submit/cperl-mode hides c:/Program Files (x86)/Emacs/emacs/lisp/progmodes/cperl-mode Features: (shadow sort mail-extr message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader emacsbug url-util url-parse url-vars help-mode view flyspell ispell eldoc paredit hl-line idle-highlight color-theme reporter server cygwin-mount ange-ftp epa-file epa derived epg epg-config erc-highlight-nicknames easy-mmode erc-button erc-fill erc-stamp erc-goodies erc erc-backend erc-compat pp loaddefs starter-kit-js starter-kit-ruby starter-kit-perl starter-kit-lisp starter-kit-eshell starter-kit-registers starter-kit-misc ido paren tramp-cache tramp-sh shell tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util time-date mm-util mail-prsvr password-cache format-spec tramp-loaddefs starter-kit-bindings windmove edmacro kmacro starter-kit-defuns imenu thingatpt dominating-file recentf tree-widget wid-edit easymenu ansi-color uniquify advice help-fns advice-preload ffap saveplace starter-kit-elpa anything-autoloads anything-complete-autoloads anything-config-autoloads color-theme-complexity-autoloads color-theme-emacs-revert-theme-autoloads color-theme-solarized-autoloads color-theme-twilight-autoloads color-theme-vim-insert-mode-autoloads color-theme-zenburn-autoloads color-theme-autoloads cygwin-mount-autoloads dired-single-autoloads find-file-in-project-autoloads gist-autoloads idle-highlight-autoloads inf-ruby-autoloads magit-autoloads php-completion-autoloads php-mode-autoloads rainbow-delimiters-autoloads rainbow-mode-autoloads ruby-mode-autoloads yaml-mode-autoloads zenburn-autoloads znc-autoloads finder-inf package emacsw32 find-func w32-integ w32shell w32-grep cl grep compile comint regexp-opt ring noprint nxhtml-loader emacsw32-eol preview-latex tex-site auto-loads 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 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs)