From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [jidanni@jidanni.org: Re: emacsclient additional arguments buried] Date: Tue, 04 Jul 2006 10:14:21 -0400 Message-ID: <877j2te9tu.fsf@stupidchicken.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152022486 14029 80.91.229.2 (4 Jul 2006 14:14:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2006 14:14:46 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 04 16:14:44 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fxlfl-0000ub-7y for ged-emacs-devel@m.gmane.org; Tue, 04 Jul 2006 16:14:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fxlfk-0005Dz-Kt for ged-emacs-devel@m.gmane.org; Tue, 04 Jul 2006 10:14:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FxlfZ-0005CO-J7 for emacs-devel@gnu.org; Tue, 04 Jul 2006 10:14:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FxlfZ-0005Bz-7w for emacs-devel@gnu.org; Tue, 04 Jul 2006 10:14:29 -0400 Original-Received: from [18.72.1.2] (helo=south-station-annex.mit.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FxltG-0002Hn-1P; Tue, 04 Jul 2006 10:28:38 -0400 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id k64EESHL012255; Tue, 4 Jul 2006 10:14:28 -0400 (EDT) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id k64EERAl025726; Tue, 4 Jul 2006 10:14:27 -0400 (EDT) Original-Received: from cyd (SYDNEYPACIFIC-SEVENTY-FOUR.MIT.EDU [18.95.5.74]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id k64EEKoF002690; Tue, 4 Jul 2006 10:14:20 -0400 (EDT) Original-Received: from cyd by cyd with local (Exim 3.36 #1 (Debian)) id 1FxlfR-0000wE-00; Tue, 04 Jul 2006 10:14:21 -0400 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Thu, 29 Jun 2006 08:59:00 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-Spam-Score: 1.47 X-Scanned-By: MIMEDefang 2.42 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:56493 Archived-At: Richard Stallman writes: > Would someone please fix this, then ack? > > From: Dan Jacobson > Subject: Re: emacsclient additional arguments buried > To: bug-gnu-emacs@gnu.org > Cc: bortzmeyer@debian.org > >> Hurmf, emacsclient -n a b c causes the additional arguments to be >> buried. The second argument should be right there at the >> switch-to-buffer prompt. Additional arguments not far behind too on >> the buffer list. > > rms> I don't understand. > > emacsclient works fine, except when you try it with more than one > argument. When you do that, the additional arguments after the first > end up bury-buffer'ed, whereas one might expect them near the top of > the buffer list. OK, no big deal...there is a Debian emacsclient man > page. Maybe what should happen when one gives more than one file > argument to emacsclient should be documented. What exactly needs to be done here? If we don't want the additional files to be buried, that is easy enough to do (one-liner patch below). But I'm not sure that is the correct thing to do---it could be construed as interfering with the server's buffer setup. Note that C-x # brings up the next client file correctly, even though they are buried. *** emacs/lisp/server.el.~1.112.~ 2006-06-11 14:50:32.000000000 -0400 --- emacs/lisp/server.el 2006-07-04 10:10:57.000000000 -0400 *************** *** 426,432 **** (write-file filen)))) (setq server-existing-buffer t) (server-goto-line-column file)) ! (set-buffer (find-file-noselect filen)) (server-goto-line-column file) (run-hooks 'server-visit-hook))) (unless nowait --- 426,432 ---- (write-file filen)))) (setq server-existing-buffer t) (server-goto-line-column file)) ! (find-file filen) (server-goto-line-column file) (run-hooks 'server-visit-hook))) (unless nowait