From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#27511: 26.0.50; emacsclient requires file argument Date: Thu, 29 Jun 2017 10:11:19 -0400 Message-ID: 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 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1498745741 9312 195.159.176.226 (29 Jun 2017 14:15:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Jun 2017 14:15:41 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Cc: 27511@debbugs.gnu.org To: npostavs@users.sourceforge.net, James Nguyen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 29 16:15:33 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 1dQaEG-0001uc-Dt for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Jun 2017 16:15:32 +0200 Original-Received: from localhost ([::1]:39641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQaEL-0005yD-N3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Jun 2017 10:15:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQaAw-0002Jg-28 for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2017 10:12:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQaAs-0000sZ-RR for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2017 10:12:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41938) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQaAs-0000ro-OX for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2017 10:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dQaAs-0005o2-8g for bug-gnu-emacs@gnu.org; Thu, 29 Jun 2017 10:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Jun 2017 14:12: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.149874549022274 (code B ref 27511); Thu, 29 Jun 2017 14:12:02 +0000 Original-Received: (at 27511) by debbugs.gnu.org; 29 Jun 2017 14:11:30 +0000 Original-Received: from localhost ([127.0.0.1]:44615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQaAM-0005nC-8Y for submit@debbugs.gnu.org; Thu, 29 Jun 2017 10:11:30 -0400 Original-Received: from limerock03.mail.cornell.edu ([128.84.13.243]:48236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQaAK-0005mz-Nc for 27511@debbugs.gnu.org; Thu, 29 Jun 2017 10:11:29 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id v5TEBMPc003561; Thu, 29 Jun 2017 10:11:22 -0400 Original-Received: from [192.168.0.15] (mta-68-175-129-7.twcny.rr.com [68.175.129.7] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id v5TEBK25029352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 29 Jun 2017 10:11:21 -0400 In-Reply-To: <87bmp7m0sv.fsf@users.sourceforge.net> Content-Language: en-US X-PMX-Cornell-Gauge: Gauge=XXXXX X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; 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:134024 Archived-At: On 6/29/2017 8:32 AM, npostavs@users.sourceforge.net wrote> James Nguyen writes: > >> That snip you sent doesn’t 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) >> >> 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... 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. Ken