From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org (W. Greenhouse) Newsgroups: gmane.emacs.help Subject: Re: Best practices for launching Emacs on Windows 7/8 Date: Thu, 21 Feb 2013 15:37:47 +0000 Message-ID: <87k3q1znhw.fsf@riseup.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1361461141 10712 80.91.229.3 (21 Feb 2013 15:39:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Feb 2013 15:39:01 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Thu Feb 21 16:39:23 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 1U8YEx-0004Qd-29 for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Feb 2013 16:39:19 +0100 Original-Received: from localhost ([::1]:37271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8YEc-0000Yk-Lv for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Feb 2013 10:38:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8YEP-0000Xt-DS for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 21 Feb 2013 10:38:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8YED-0007al-RF for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 21 Feb 2013 10:38:45 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:34700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8YED-0007aL-Go for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 21 Feb 2013 10:38:33 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U8YEV-00041F-GQ for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 21 Feb 2013 16:38:51 +0100 Original-Received: from bouazizi.torservers.net ([74.120.13.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Feb 2013 16:38:51 +0100 Original-Received: from wgreenhouse by bouazizi.torservers.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Feb 2013 16:38:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 93 Original-X-Complaints-To: usenet-dbVV3NMTNubNLxjTenLetw@public.gmane.org X-Gmane-NNTP-Posting-Host: bouazizi.torservers.net X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:eHV8H8oisJo19fVbDj9psgmXUBA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:89214 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Mark, "Ludwig, Mark" writes: > In reviewing the documentation in > http://www.gnu.org/software/emacs/manual/html_node/emacs/emacsclient-Opti= ons.html, > it incorrectly claims: > > '-a command' > '--alternate-editor=3Dcommand' > Specify a command to run if emacsclient fails to contact Emacs. This i= s useful when running emacsclient in a script.=20 > As a special exception, if command is the empty string, then > emacsclient starts Emacs in daemon mode (as emacs --daemon) and then > tries connecting again. > > Instead with an empty string, emacsclient/emacsclientw 24.2 complain: > > --alternate-editor argument or ALTERNATE_EDITOR variable cannot be > an empty string > > Is this a documentation problem or is the code incorrect? That is, > which way should I report the bug? Sounds like a documentation bug. The Info node/online manual entry for Emacsclient is correct with respect to Emacs on UNIX-like systems, where launching emacsclient with ALTERNATE_EDITOR set to the empty string does launch an emacs daemon and then immediately attach a client to it. emacsclientw is subtly different from emacsclient, and this is one of the ways. > Side-question: I have (server-start) in my init (which is fairly > complicated), so I use runemacs and never use emacs --daemon, but I > wonder if there's any effective difference. Is there anything really > special about emacs --daemon that I might be missing by using > (server-start) myself? The initialization and behavior of a normal, interactive Emacs with (server-start) vs. an Emacs invoked with emacs --daemon is subtly different. This is because the "normal" Emacs has a GUI window or a terminal as its "initial frame," whereas the "initial frame" of an emacs =2D-daemon instance is not displayed to the user at all. This matters for things like what happens if you kill the sole GUI window/emacs frame displayed on the system (for a "normal" Emacs, this will kill Emacs, but for emacs --daemon it keeps running backgrounded), and for some initialization issues like font selection and detection of whether Emacs is running under a window system or not (operations on the "initial frame" of an Emacs daemon that are supposed to detect the windowing environment or set fonts won't do anything, because they're operating on that backgrounded not-a-frame-at-all daemon frame; you should use variables such as default-frame-alist or after-make-frame-functions instead). As far as the server/emacsclient functionality they're the same, though. > Cheers, > Mark > > P.S. I am not subscribed to gnu.emacs.help, so cannot post there. Can > someone else forward this or is there a gateway from help-gnu-emacs? It's a gateway to help-gnu-emacs. =2D- Regards, WGG --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJRJj9LAAoJEC6LG3QNLT+eW7wP/jAEn9L0WMBS4QP+YC7StuIF YcSB9tsb5TwiaRv0ZxJuqMLa3LZ/55toHh2pvk3kzXUk8Ymi0/z+tYjBTOdQsGpW Yi24II5v5Rk0HOJ/ON4+eakXK4Te1ylNwDoHdEbK/O0a5is+E0HPB1hJPqG0Phxo 5SORhN2JTM34IXepjnc0g1MK+fp7iHeXRpm2op6NY8bfKTaNsJ6LS5ZS8n5b8nQb /quuscPseb2PFM8RoaPDUbTko4SNwsMWItn7VtscKUgeeLNHAZbYAQ0STQyHJvlH NvVfLmd1IFfzuzHhuv6ED4XR7AO2t47f70bpRW7MuS86wOpPXx/dCA1GbuDKh7CU CyCpUjID7ukl0ReAGZBdw65qvacNFJuBfXbnPoGQT24agxVQgD3yTli3Ln6lKzQr yFed+FppKMu89XUAcmqDKm+5iNCR350OZnGD2uMRSeWeTgHSJQDHEFzD8BhWxkuY +tQrWfuFMD0HZnu5VJoQtheQ6+iyTuh13ecOyahmUCPJag6+qX/8f3VQtLHqhBfe CdX3JlmVL4xcbF97Apb3TP+wy/zOk+344zziDFskA2AqKSNwGQKlnXQyCwlr52UY AMndI7+KoINK/ixKFglUZg7/VtK1W1ynbMgCWZjLR9b9yBl0avxD3kSb99PBPoTL SMTHHVxxs6mzQmPY7hJ+ =Nkph -----END PGP SIGNATURE----- --=-=-=--