unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: James Nguyen <jamesn@fastmail.com>
To: Ken Brown <kbrown@cornell.edu>
Cc: Noam Postavsky <npostavs@users.sourceforge.net>, 27511@debbugs.gnu.org
Subject: bug#27511: 26.0.50; emacsclient requires file argument
Date: Wed, 28 Jun 2017 10:22:19 -0700	[thread overview]
Message-ID: <85C06120-9160-4BC3-8B34-F1A48CFD0057@fastmail.com> (raw)
In-Reply-To: <5db096c1-40c7-6841-f451-a4e8e682484d@cornell.edu>

At the very least, I understand how to use emacsclient (e.g. to connect to a running emacs server).

I am just wondering if it makes sense to give an error message instead of `falling back` the way ‘emacs’ does. (scratch buffer or title screen (though a title screen might not make sense assuming the server/emacs instance was already started)).

I’ve also been told emacsclient used to be able to handle the ‘no file arguments’ case, although I can’t confirm if this is true or not.

https://www.reddit.com/r/emacs/comments/45mtdz/can_someone_explain_why_emacsclient_requires_a/

Shows 1 or 2 users being able to use emacsclient without passing a file argument.

> On Jun 28, 2017, at 10:03 AM, Ken Brown <kbrown@cornell.edu> wrote:
> 
> On 6/28/2017 11:00 AM, James Nguyen wrote:
>> "Emacs simply displays those files; otherwise, it displays a buffer named *scratch*, which can be used to evaluate Emacs Lisp expressions interactively."
>> I think it’s preferable it behaves just like regular ‘emacs’ does, opening a *scratch* buffer as a fallback.
> 
> I think you're misunderstanding the purpose of emacsclient:
> 
> $ emacsclient --help
> Usage: emacsclient [OPTIONS] FILE...
> Tell the Emacs server to visit the specified files.
> 
> 
> See https://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html#Emacs-Server for typical use cases.
> 
> Ken






  reply	other threads:[~2017-06-28 17:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-28  2:03 bug#27511: 26.0.50; emacsclient requires file argument James Nguyen
2017-06-28 14:45 ` Noam Postavsky
2017-06-28 15:00   ` James Nguyen
2017-06-28 17:03     ` Ken Brown
2017-06-28 17:22       ` James Nguyen [this message]
2017-06-28 17:35         ` Noam Postavsky
2017-06-28 23:49           ` James Nguyen
2017-06-29  1:13             ` npostavs
2017-06-29  3:35               ` James Nguyen
2017-06-29 12:32                 ` npostavs
2017-06-29 14:11                   ` Ken Brown
2017-06-29 16:48                     ` James Nguyen
2017-06-29 18:11                       ` Ken Brown
2017-06-30  1:06                         ` James Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85C06120-9160-4BC3-8B34-F1A48CFD0057@fastmail.com \
    --to=jamesn@fastmail.com \
    --cc=27511@debbugs.gnu.org \
    --cc=kbrown@cornell.edu \
    --cc=npostavs@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).