From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Buchs, Kevin" Newsgroups: gmane.emacs.help Subject: Re: Best practices for launching Emacs on Windows 7/8 Date: Tue, 19 Feb 2013 11:36:14 -0600 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CE0EC7.9DA87C51" X-Trace: ger.gmane.org 1361295401 27532 80.91.229.3 (19 Feb 2013 17:36:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Feb 2013 17:36:41 +0000 (UTC) To: , "Ludwig, Mark" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 19 18:37:03 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U7r7n-0002DR-72 for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Feb 2013 18:37:03 +0100 Original-Received: from localhost ([::1]:60542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7r7T-0003If-4r for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Feb 2013 12:36:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7r7E-0003Gj-O7 for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 12:36:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7r73-0006KN-K8 for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 12:36:28 -0500 Original-Received: from mail10.mayo.edu ([129.176.212.47]:9076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7r73-0006K6-Dm for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 12:36:17 -0500 Original-Received: from roedlp005a.mayo.edu (HELO mail10.mayo.edu) ([129.176.158.0]) by ironport10-dlp.mayo.edu with ESMTP; 19 Feb 2013 11:36:15 -0600 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhAFAIS3I1GBsNQ1/2dsb2JhbABBA4JDgTG8SIEMFnOCIQUcEQNbAQgiBhgHSAEOAQQTCIgKB581kROHEIkOjl0hKIJOYQOIZo1Fi0aFEoMm Original-Received: from mhro1a.mayo.edu ([129.176.212.53]) by ironport10.mayo.edu with ESMTP; 19 Feb 2013 11:36:14 -0600 Original-Received: from smtprelay-older.mayo.edu (smtprelay-older.mayo.edu [129.176.212.187]) by mhro1a.mayo.edu with ESMTP id BT-MMP-1165008 for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 11:36:14 -0600 X-IronPort-AV: E=Sophos;i="4.84,696,1355119200"; d="scan'208,217";a="6413564" Original-Received: from essexhb.mayo.edu (HELO MACE.mayo.edu) ([172.31.128.12]) by smtprelay3.mayo.edu with ESMTP; 19 Feb 2013 11:36:14 -0600 Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: Best practices for launching Emacs on Windows 7/8 Thread-Index: Ac4OxsRS+NYclUpMSNOLb3k1pBgKMA== X-CFilter-Loop: Reflected X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 129.176.212.47 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89165 Archived-At: This is a multi-part message in MIME format. ------_=_NextPart_001_01CE0EC7.9DA87C51 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Mark, =20 I use a .BAT file for the file association. However, a large percentage of the time I use that, the client starts up and does not find the already running server and it will try to start another server (in my .emacs). So, I end up not using the association. Most often I drag and drop files into the always open emacs window. =20 It is possible to make the file association have arguments (emacsclient -alter...), but I've only found this can be done by editing the registry via regedit.=20 =20 What are the problems you see with having a .BAT file?=20 =20 I know there are some nice tools out there that are windows programs that can launch other windows programs with arguments. Maybe that would make you feel better. =20 Kevin Buchs | Senior Engineer | SPPDG | 507-538-5459 | buchs.kevin@mayo.edu Mayo Clinic | 200 First Street SW | Rochester, MN 55905 | http://www.mayo.edu =20 =20 =20 ------------------------- What are the best practices for using/launching Emacs as Server on Windows 7/8? =20 For example, on Windows Vista, I used to be able to make a file association with .TXT files that invoked emacsclient with the --alternate-editor=3Drunemacs option so that if Emacs wasn't running, it would be launched. =20 In Windows 7 and 8, the GUI simply does not allow any options. I am not sure if I could hack the registry directly to stuff the options in there, but since the GUI no longer supports it, I fear the underlying support might not be there either. I have considered trying to associate .TXT with something like a Emacs.BAT/Emacs.CMD file that could invoke emacsclient with options, but this has its own problems, and seems like a bad idea for ultimately launching a "windows mode" program Emacs.exe (which is not a "command line mode" program). =20 ------_=_NextPart_001_01CE0EC7.9DA87C51 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Mark,

 

I use = a .BAT file for the file association. However, a large percentage of the = time I use that, the client starts up and does not find the already = running server and it will try to start another server (in my .emacs). = So, I end up not using the association. Most often I drag and drop files = into the always open emacs window.

 

It is = possible to make the file association have arguments (emacsclient = –alter...), but I've only found this can be done by editing the = registry via regedit.

 

What = are the problems you see with having a .BAT file?

 

I know = there are some nice tools out there that are windows programs that can = launch other windows programs with arguments. Maybe that would make you = feel better.

 

Kevin Buchs | = Senior Engineer | SPPDG | 507-538-5459 | buchs.kevin@mayo.edu<= /span>

Mayo Clinic | = 200 First Street SW | Rochester, MN 55905 | http://www.mayo.edu

 

 

-------------------------

What are the best practices for using/launching = Emacs as Server on Windows 7/8?

 

For = example, on Windows Vista, I used to be able to make a file association = with .TXT files that invoked emacsclient with the = --alternate-editor=3Drunemacs option so that if Emacs wasn't running, it = would be launched.

 

In = Windows 7 and 8, the GUI simply does not allow any options.  I am = not sure if I could hack the registry directly to stuff the options in = there, but since the GUI no longer supports it, I fear the underlying = support might not be there either.  I have considered trying to = associate .TXT with something like a Emacs.BAT/Emacs.CMD file that could = invoke emacsclient with options, but this has its own problems, and = seems like a bad idea for ultimately launching a "windows = mode" program Emacs.exe (which is not a "command line = mode" program).

 

------_=_NextPart_001_01CE0EC7.9DA87C51--