From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Emacs server without emacsserver. Date: Sun, 20 Oct 2002 15:57:29 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200210201957.g9KJvTd12809@rum.cs.yale.edu> References: <200209172010.g8HKAG312061@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035143893 22520 80.91.224.249 (20 Oct 2002 19:58:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 19:58:13 +0000 (UTC) Cc: "Stefan Monnier" , emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 183MDE-0005r1-00 for ; Sun, 20 Oct 2002 21:58:12 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 183N6l-0000h1-00 for ; Sun, 20 Oct 2002 22:55:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 183MDC-0006X1-00; Sun, 20 Oct 2002 15:58:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 183MCf-0006Lc-00 for emacs-devel@gnu.org; Sun, 20 Oct 2002 15:57:37 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 183MCe-0006LM-00 for emacs-devel@gnu.org; Sun, 20 Oct 2002 15:57:37 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 183MCd-0006LF-00; Sun, 20 Oct 2002 15:57:35 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g9KJvTd12809; Sun, 20 Oct 2002 15:57:29 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Sam Steingold Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8600 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8600 > I have a question about `server-switch-buffer'. > most of it > (after ";; OK, we know next-buffer is live, let's display and select it.") > is just `pop-to-buffer' modified to support `server-window' and avoid > at all costs creating a new frame (I am being sloppy here, I know). I know what you mean, since it's exactly what I use ;-) Most of the fixes I've installed recently have been made to help in this kind of situation. Right now, I get more-or-less the behavior I want with the following customization: (defun sm-server-visit-hook () (pop-to-buffer (current-buffer))) (add-hook 'server-visit-hook 'sm-server-visit-hook) I've been reluctant to change the default behavior because of the effort to justify it. But I do hope we can provide a cutomization that would be eaiser than my hook while providing the same kind of behavior. Stefan