unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Aaron Meurer <asmeurer@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Making emacsclient more friendly toward multiple terminal tabs
Date: Mon, 2 Apr 2012 16:35:55 -0600	[thread overview]
Message-ID: <CAKgW=6+T51WiSf3o43iffL0ExxARA+C-MMa90wq857wHiH6XwQ@mail.gmail.com> (raw)

Hi.

I've been using emacsclient in the terminal as my editor for some
time, and it works pretty well.  There are a few issues, though, where
one emacsclient will interact with another in annoying ways.  My setup
is that I have several terminal tabs open, and I run emacsclient in
each one whenever I want to edit a file.  I start emacsclient with
emacsclient -a "" -nw (via a bash alias).  Here are some issues that I
encounter:

- If one emacsclient has a question in the minibuffer, then the others
are all locked out until I answer the question.  For example, if I
modify a file without saving and do C-x C-c, it asks me if I want to
save.  All other emacsclients are locked out completely until I answer
yes or no.  Even C-g or ESC ESC ESC have no effect (nor do y or n).

- Very often, when I close an emacsclient (with C-x C-s C-x C-c), it
bugs me about saving buffers in other emacsclients.

- If I open a file, make a change, then close it without saving, and
reopen it, the change is still there.  I understand why this happens,
because the buffer remains open in the daemon, but this is not really
what I want.

- If I do C-x C-f, the directory that it gives me is very often not
the directory I am cd'd into for that particular emacsclient, but one
from another emacsclient.

If anyone can offer suggestions to fix any of these issues, it would
be greatly appreciated, as they are all quite annoying (especially the
second one). I get why these things happen, because emacsclient shares
all buffers with the one daemon, but I'd rather it act as if it
didn't.  My main motivation for using emacsclient over vanilla emacs
is the enormous speed benefit when starting it.

If anyone cares, my .emacs is at
https://github.com/asmeurer/dotfiles/blob/master/.emacs.

Aaron Meurer



             reply	other threads:[~2012-04-02 22:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-02 22:35 Aaron Meurer [this message]
2012-04-03  9:31 ` Making emacsclient more friendly toward multiple terminal tabs Gregor Zattler
2012-04-03 16:14   ` Aaron Meurer

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='CAKgW=6+T51WiSf3o43iffL0ExxARA+C-MMa90wq857wHiH6XwQ@mail.gmail.com' \
    --to=asmeurer@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).