From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Change in emacsclient behavior Date: Mon, 03 Sep 2007 16:37:04 -0400 Message-ID: References: <87veaw5ds5.fsf@baldur.tsdh.de> <87veatxcrz.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188851845 20350 80.91.229.12 (3 Sep 2007 20:37:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Sep 2007 20:37:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 03 22:37:22 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ISIfZ-0001hD-An for ged-emacs-devel@m.gmane.org; Mon, 03 Sep 2007 22:37:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISIfY-00029m-E4 for ged-emacs-devel@m.gmane.org; Mon, 03 Sep 2007 16:37:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISIfU-00028r-Gy for emacs-devel@gnu.org; Mon, 03 Sep 2007 16:37:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISIfT-00027N-5i for emacs-devel@gnu.org; Mon, 03 Sep 2007 16:37:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISIfT-00027E-0b for emacs-devel@gnu.org; Mon, 03 Sep 2007 16:37:07 -0400 Original-Received: from tomts20.bellnexxia.net ([209.226.175.74] helo=tomts20-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ISIfS-0006Ns-C8 for emacs-devel@gnu.org; Mon, 03 Sep 2007 16:37:06 -0400 Original-Received: from pastel.home ([70.55.144.31]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070903203704.IOQQ8273.tomts20-srv.bellnexxia.net@pastel.home> for ; Mon, 3 Sep 2007 16:37:04 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B31F6857C; Mon, 3 Sep 2007 16:37:04 -0400 (EDT) In-Reply-To: <87veatxcrz.fsf@jurta.org> (Juri Linkov's message of "Sun\, 02 Sep 2007 21\:52\:21 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-Detected-Kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:77685 Archived-At: > How about the following default behavior of emacsclient: > 1. When invoked without arguments, display the current frame (-c uses the > current frame, but this could be customizable to display the initial frame > or any of existing frames). > 2. When invoked with -e or --eval, display the current frame and eval the > expression on this frame. > 3. When invoked with one FILE argument, create a new frame with the file > buffer. > 4. When invoked with multiple FILE arguments, create either one frame with > windows containing all specified files' buffers, or if `pop-up-frames' is > non-nil, create as many frames as there are file arguments (starting a new > Emacs session already does this). I think most of those decisions are better placed in the user's .emacs than on the emacsclient commandline. Looking at the description above I always get nightmares of make-frame and switch-to-buffer (the first having the problem of generating non-dedicated frames, and the other having the problem of failing in several circumstances and doing the wrong thing in others). If you want to obey pop-up-frames, then please use display-buffer (or pop-to-buffer). Stefan