From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 36b9955: Add --new-daemon, which runs in the foreground and does not fork Date: Fri, 18 Nov 2016 01:56:47 -0500 Message-ID: <5a37ipi8cw.fsf@fencepost.gnu.org> References: <20161116072925.16550.32364@vcs.savannah.gnu.org> <20161116072926.098DB220167@vcs.savannah.gnu.org> <87polvz9b6.fsf@udel.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1479452227 26193 195.159.176.226 (18 Nov 2016 06:57:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 Nov 2016 06:57:07 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: Mark Oteiza , Stefan Monnier , Emacs Development To: Evgeny Roubinchtein Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 18 07:57:01 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7d6b-0005YD-0z for ged-emacs-devel@m.gmane.org; Fri, 18 Nov 2016 07:57:01 +0100 Original-Received: from localhost ([::1]:34888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7d6c-0007dQ-Re for ged-emacs-devel@m.gmane.org; Fri, 18 Nov 2016 01:57:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7d6W-0007dA-LK for emacs-devel@gnu.org; Fri, 18 Nov 2016 01:56:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7d6V-0006ox-TK for emacs-devel@gnu.org; Fri, 18 Nov 2016 01:56:56 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7d6P-0006no-Kc; Fri, 18 Nov 2016 01:56:49 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1c7d6N-0006EU-H5; Fri, 18 Nov 2016 01:56:47 -0500 X-Spook: SHA freedom World Trade Center FARC Zachawi AVIP CESID X-Ran: o(,lnsPuhVR%ZE@uV8P0(I7(|@O8V_)]Cz,!$?"gteUdywPQ\zOiHq#oiY\3'/qI^RgI1D X-Hue: brightmagenta X-Attribution: GM In-Reply-To: (Evgeny Roubinchtein's message of "Wed, 16 Nov 2016 11:24:34 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:209471 Archived-At: I'm not attached to the old- and new- names. Anyone should feel free to change them. I used "new" because https://www.freedesktop.org/software/systemd/man/daemon.html distinguishes between "sysV" and " new-style" daemons. I actually started with "--daemon-fg" and "--daemon-bg", but the Emacs argument parsing code can't handle one argument (ie "--daemon") being a prefix of another. If someone fixes argmatch to prefer an exact match to a prefix match, those would work. "--fg-daemon" and "--bg-daemon" sound fine to me. Switches --foreground (I don't think it's worth a short option like -F) and --background sound fine too. PS: emacs_devel.txt: seven years for a feature to get implemented, then overnight 4 people suggest different names for the option. ;)