From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#24949: Command-line argument parsing: named daemons Date: Sun, 07 Jan 2018 22:44:26 +0000 Message-ID: References: <05vavopehh.fsf@fencepost.gnu.org> <8337isgkkh.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114fdb381d698f0562376d51" X-Trace: blaine.gmane.org 1515365006 13023 195.159.176.226 (7 Jan 2018 22:43:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 Jan 2018 22:43:26 +0000 (UTC) Cc: 24949@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 07 23:43:22 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1eYJep-0002VM-CE for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Jan 2018 23:43:11 +0100 Original-Received: from localhost ([::1]:46526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYJgo-0002Zk-Rs for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Jan 2018 17:45:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYJgg-0002Yr-P8 for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2018 17:45:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYJgc-00073d-Nl for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2018 17:45:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59503) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYJgc-00073R-Jk for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2018 17:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eYJgc-0005LJ-9q for bug-gnu-emacs@gnu.org; Sun, 07 Jan 2018 17:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Jan 2018 22:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24949 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24949-submit@debbugs.gnu.org id=B24949.151536508420497 (code B ref 24949); Sun, 07 Jan 2018 22:45:02 +0000 Original-Received: (at 24949) by debbugs.gnu.org; 7 Jan 2018 22:44:44 +0000 Original-Received: from localhost ([127.0.0.1]:39951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYJgK-0005KW-0Y for submit@debbugs.gnu.org; Sun, 07 Jan 2018 17:44:44 -0500 Original-Received: from mail-qk0-f173.google.com ([209.85.220.173]:45601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYJgI-0005KH-Hj for 24949@debbugs.gnu.org; Sun, 07 Jan 2018 17:44:42 -0500 Original-Received: by mail-qk0-f173.google.com with SMTP id o126so12148666qke.12 for <24949@debbugs.gnu.org>; Sun, 07 Jan 2018 14:44:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K6LZG4QNtabeQHGD0sQ2rumYXcB9Qn5AtKSwzu+6v3k=; b=dEmYO/ECOv+qLVrJwuz3ATaBLR4lzkX//EY6A+BQrSEH1mUkYz5KIMGmexS0Q0BYp5 SHRbDjBIt4EJObSfDulWlgGhS0iIhQ1XeqTMP0QSEW7A8tP8VKwG1ULiCSoKti7MSr9D 5JL0s337PX9L0DenfgaF/gAF2LWSfl5OUuy4KIEC1owbjHClVVy+7lC/1kPXxVcBQKvT YnLzCQ+M7giREdxrOV9Zl11c7ewypvzEXclVxovLbJVv3CwzlvwYVugtdN3kkWFErt10 q4IS95SRUMpyI5VWRUx06+v84pByGQrt/+qeNwz7KHQaeM6jK18bkCHemMqFGAuMKQPW 7Sdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K6LZG4QNtabeQHGD0sQ2rumYXcB9Qn5AtKSwzu+6v3k=; b=LYMe6sijRxog3sB31wMXbuyQia4wxygLiarBGDFZKEQZRc8psiao0KExpvUH5VNQUh euuh+HD/lSVXSIRoENGwi29vqB5VjqqsVaKCEgczehmcSF7+RyXDnLuOCm+DQHHufu0M 7QG5IGxK2br1R3N92xZCZQHwWKDiaOL5G5NH7ObulVBAlwQMeV2e3AqDNCSdYZI6izRR WxMwqf5ZPfHqvdmiUqZ0GhVQpErFn3zTQ9ZKywun/DkixNHgv9C7b0pUJ4e4TrzkY5Kg nZXMw1f0GaokLlPOn5yARKEFvjqVA7xbKtak+oLOOWiV4Qf67AMeoUtKNFoLKMjTAmhc yoPg== X-Gm-Message-State: AKwxytdVaYvM1eA8WJXd5FiLKHJ1qXxBWf3HLyu9Zfq+TFZat3ejAK6b r+5mOMN9iBEDuGEBHvBM4rtm0v0qA6OA8RK/0Ww= X-Google-Smtp-Source: ACJfBouXSSgWaPEmC0LWP/WLxM/V/VqGKTw2J/drrO9pBfkbdZwhE28N/kBKXJrLVR93QCEctUvPd1AFttA81aGRS5M= X-Received: by 10.55.115.194 with SMTP id o185mr12539143qkc.143.1515365076919; Sun, 07 Jan 2018 14:44:36 -0800 (PST) In-Reply-To: <8337isgkkh.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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" Xref: news.gmane.org gmane.emacs.bugs:141885 Archived-At: --001a114fdb381d698f0562376d51 Content-Type: text/plain; charset="UTF-8" Eli Zaretskii schrieb am Mi., 16. Nov. 2016 um 04:40 Uhr: > > From: Glenn Morris > > Date: Tue, 15 Nov 2016 17:25:46 -0500 > > > > Package: emacs > > Severity: minor > > I think it should be wishlist. > > > This starts a daemon with a server named "FOO": > > emacs -Q --daemon=FOO > > > > (This usage is documented in the "Initial Options" appendix of the > > manual, but not mentioned in --help, or the man page.) > > > > > > But this very similar form does not work (it starts an un-named daemon > and > > visits file "FOO"): > > emacs -Q --daemon FOO > > > > Compare with something like "--chdir /tmp", where both forms (with and > > without "=") work. > > I wouldn't expect it to work, since long options are documented to > need the equals sign. > I've just re-checked this. The manual states: "When a long option takes an argument, you can use either a space or an equal sign to separate the option name and the argument. Thus, you can write either @samp{--display sugar-bombs:0.0} or @samp{--display=sugar-bombs:0.0}. " So it's even documented that both forms should work. We could either fix the "daemon" arg to match the documentation, or slightly change the manual to state that the space variant is only possible if the argument is mandatory (e.g. replace "takes" with "requires"). --001a114fdb381d698f0562376d51 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Eli Za= retskii <eliz@gnu.org> schrieb am= Mi., 16. Nov. 2016 um 04:40=C2=A0Uhr:
> From: Glenn Morris <rgm@gnu.org>
> Date: Tue, 15 Nov 2016 17:25:46 -0500
>
> Package: emacs
> Severity: minor

I think it should be wishlist.

> This starts a daemon with a server named "FOO":
>=C2=A0 =C2=A0 emacs -Q --daemon=3DFOO
>
> (This usage is documented in the "Initial Options" appendix = of the
> manual, but not mentioned in --help, or the man page.)
>
>
> But this very similar form does not work (it starts an un-named daemon= and
> visits file "FOO"):
>=C2=A0 =C2=A0 emacs -Q --daemon FOO
>
> Compare with something like "--chdir /tmp", where both forms= (with and
> without "=3D") work.

I wouldn't expect it to work, since long options are documented to
need the equals sign.

I've just re-checked this. The manual = states: "When a long option takes an
argument, you can use e= ither a space or an equal sign to separate the
option name and th= e argument.=C2=A0 Thus, you can write either
@samp{--display suga= r-bombs:0.0} or @samp{--display=3Dsugar-bombs:0.0}.=C2=A0"
<= br>
So it's even documented that both forms should work.
We could either fix the "daemon" arg to match the documenta= tion, or slightly change the manual to state that the space variant is only= possible if the argument is mandatory (e.g. replace "takes" with= "requires").
--001a114fdb381d698f0562376d51--