From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aaron Meurer Newsgroups: gmane.emacs.help Subject: Making emacsclient more friendly toward multiple terminal tabs Date: Mon, 2 Apr 2012 16:35:55 -0600 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1333406188 27935 80.91.229.3 (2 Apr 2012 22:36:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2012 22:36:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 03 00:36:27 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SEprN-0005be-Ut for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Apr 2012 00:36:26 +0200 Original-Received: from localhost ([::1]:44387 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEprN-0001Se-7Q for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Apr 2012 18:36:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEprI-0001SU-KA for help-gnu-emacs@gnu.org; Mon, 02 Apr 2012 18:36:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEprG-0005ud-NB for help-gnu-emacs@gnu.org; Mon, 02 Apr 2012 18:36:20 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:34726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEprG-0005uT-FJ for help-gnu-emacs@gnu.org; Mon, 02 Apr 2012 18:36:18 -0400 Original-Received: by obbta14 with SMTP id ta14so5519810obb.0 for ; Mon, 02 Apr 2012 15:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=ZzrJ0W2lUgILszu/eW73VljVp9LSBWgqg5sZ6rSefBo=; b=jwQYVc48wq8uYLWEB7hWvos+WJc9a2zj1qnbCE3IwJc3ZkKxyxo35QKxB5yXW+WCWg 9ftNF3Ro5DTUkIYcFVEPJsJb76eGQhOPHH/JukYmHzf6HN6hLUkJKQRD1p8DUHavKAEQ J5Vymsb+jWjw3HeA1UEDXyIkiMqqgU5nJ6SVK6w0cESAEoLzqY8uk3gLS9e1YHHAxM9b 7SC4TfuWIniurwOYU90BEybIRSe7i7pVKmBv74OaFZ7yF+ZX4MYt2aZAVNIQ5lYVp71z KI9icpWXmLnnjJq2Aw1Abye4PJOoAYdmeOqJIDoz/ks1W+0LiJsvSUBUKskKa30FfjGD lkXQ== Original-Received: by 10.182.50.100 with SMTP id b4mr15180725obo.45.1333406175688; Mon, 02 Apr 2012 15:36:15 -0700 (PDT) Original-Received: by 10.182.109.41 with HTTP; Mon, 2 Apr 2012 15:35:55 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84271 Archived-At: 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