From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: James Nguyen Newsgroups: gmane.emacs.bugs Subject: bug#27511: 26.0.50; emacsclient requires file argument Date: Thu, 29 Jun 2017 09:48:44 -0700 Message-ID: <2DC16056-CE99-48EA-BBCE-046F349A4483@fastmail.com> References: <5db096c1-40c7-6841-f451-a4e8e682484d@cornell.edu> <85C06120-9160-4BC3-8B34-F1A48CFD0057@fastmail.com> <8913FF59-70FA-4A7F-9C2D-CDE862ED8441@fastmail.com> <87injfmw8e.fsf@users.sourceforge.net> <5F318FAC-AA27-4F51-BB51-D41AF464D5AB@fastmail.com> <87bmp7m0sv.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1498754953 5741 195.159.176.226 (29 Jun 2017 16:49:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Jun 2017 16:49:13 +0000 (UTC) Cc: npostavs@users.sourceforge.net, 27511@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 29 18:49:08 2017 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 1dQcct-0001CC-Oe for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Jun 2017 18:49:08 +0200 Original-Received: from localhost ([::1]:40423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQccz-0001UG-49 for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Jun 2017 12:49:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQccs-0001UB-Vs for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2017 12:49:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQcco-0002KM-W3 for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2017 12:49:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42219) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQcco-0002J6-M6 for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2017 12:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dQcco-0002ph-CO for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2017 12:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: James Nguyen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Jun 2017 16:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27511 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 27511-submit@debbugs.gnu.org id=B27511.149875492810869 (code B ref 27511); Thu, 29 Jun 2017 16:49:02 +0000 Original-Received: (at 27511) by debbugs.gnu.org; 29 Jun 2017 16:48:48 +0000 Original-Received: from localhost ([127.0.0.1]:44895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQccZ-0002pE-WE for submit@debbugs.gnu.org; Thu, 29 Jun 2017 12:48:48 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:45605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQccY-0002p6-34 for 27511@debbugs.gnu.org; Thu, 29 Jun 2017 12:48:46 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 842B720BA1; Thu, 29 Jun 2017 12:48:45 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 29 Jun 2017 12:48:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=bXN2oPeGt4wmhFepgO woq1pQymO3NCMbjeoievtjJ54=; b=A/k6xMdpzElY9zoPnEVJfpTPbsKijbrBtt jYZF480vZjyXk7/ZHimBqwR0hCBGCyciMf5iF4YxPtol9SmmKNvLG3wNEhOxQ1Li p93d0Kw3XdrPb0qJ3cIzqoRXBj1EEoFg26XOuwF72JvYqvjsLWFE1hX9sGMi1vhS ML6cZ7zS+sxvPSSzjkKpm505MJz/8BzsC/OWD3b9+Gycj1tQUhjE2RGaNk6Y0Rvd FztqS8kTyVLMYKQ0mayH46WgyBqohJNdFIF+RpPSgFew5s64OakeYsdRuLEydPlE HR1Pq3bi8pkOXs+IxgO9Rbftni5yXZOhCBge5bL04kmhj8y9aEJA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=bXN2oPeGt4wmhFepgOwoq1pQymO3NCMbjeoievtjJ54=; b=ksV1rFsq z4MT12ODxQ9Eaev2Qj/Y+GWHbFIz1sFeuEM4b9hmcAH3o/WE8azk+fNV6sd5V8CO 8cO+WZOYgUy9NEls0aRuBBxdQk9CWRQTtlbxUgv3sFSjLr/ObkvHKw/kBptPA4E1 wfthZOGc8rd4ycziuuo/CYHJoJMfx40hF0I4QFAtLoGZjq7drmtqXWJbZKNj8jQc Z/8WdGeAgwck3Zb+tAv3bkEEL6Bg1jaXZIe9qrweNpPjF+ez1j/Hav2ObbMun0uf cIGE7+uNrJ6njKr5nTk07ssuO6E7UPQuc53LH5UY9cqwMzgqwdC1dq9ENeP6V5Yn 21wPmcgrPaVq7Q== X-ME-Sender: X-Sasl-enc: xezcD/atbZN4zPKiilbbruDXSbzGjkpyJQN6ZwuD/6KI 1498754925 Original-Received: from [10.0.1.47] (c-73-231-191-86.hsd1.ca.comcast.net [73.231.191.86]) by mail.messagingengine.com (Postfix) with ESMTPA id EE24224788; Thu, 29 Jun 2017 12:48:44 -0400 (EDT) In-Reply-To: X-Mailer: Apple Mail (2.3273) 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:134035 Archived-At: @Noam I=E2=80=99d like it to switch to the scratch buffer if anything and to = create a new one if it doesn=E2=80=99t exist. I should be able to jigger = something up with the =E2=80=94eval option on emacsclient though. Thanks. @Ken Why would you find it surprising? Personally, I like the DWIM style of = many emacs commands. If I ever type =E2=80=98emacsclient=E2=80=99 and = press , DWIM suggests I=E2=80=99m trying to connect to an instance = of an Emacs server. I don=E2=80=99t think I=E2=80=99d ever expect an error message to show = up in that case. Imagine typing =E2=80=98vim=E2=80=99 and being forced = to specify a file. (It=E2=80=99s not lost on my you=E2=80=99ve indicated = they have separate purposes.) At the very least, connecting to the server and doing nothing (similar = to what Noam posted a few messages back) should be similar in spirit to = what you=E2=80=99ve just said. > On Jun 29, 2017, at 7:11 AM, Ken Brown wrote: >=20 > On 6/29/2017 8:32 AM, npostavs@users.sourceforge.net wrote> James = Nguyen writes: >>> That snip you sent doesn=E2=80=99t work the way I want. It just = opens the Gui >>> Emacs up without opening a new scratch buffer. >> Oh you want a *new* scratch buffer? As in, you end up with multiple >> scratch buffers if you run emacsclient several times? >>> At this point, my takeaway is that we think this is 1. not a bug and >>> 2. unlikely to have the default change (emacsclient behaving = similarly >>> in spirit to emacs) >>>=20 >>> I will just have to write a bash function that wraps emacsclient and >>> check for the file arg (or lackof) myself. >> Yeah, changing the defaults is tricky because you have to get a lot = of >> people to agree on what the new default should be. Although it seems = to >> me that the current default of just printing an error message is not >> especially useful for anyone... >=20 > The purpose of emacsclient is to contact an emacs server and give it = some action to perform (visit a file, open a new frame, evaluate some = lisp, ...). If you run emacsclient with no arguments, you're not = specifying any action. I can think of two possibilities for what = emacsclient should do in that case: (a) Silently do nothing. (b) Print = an error message. I would find it very surprising if emacsclient were = to tell the server to create a new buffer when I've specified no action. >=20 > Ken >=20