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: [PATCH] switch to file buffer from command line args regardless of `initial-buffer-choice' Date: Fri, 07 Aug 2015 11:33:51 -0400 Message-ID: References: <1425283676.2563.0@mail.samertm.com> <87fv7ge61j.fsf@f-box.i-did-not-set--mail-host-address--so-tickle-me> <87lhdsmndf.fsf@gmx.us> <874mkdjwt8.fsf@gmx.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438961669 30306 80.91.229.3 (7 Aug 2015 15:34:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2015 15:34:29 +0000 (UTC) Cc: Rasmus , emacs-devel@gnu.org To: Samer Masterson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 07 17:34:21 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZNjf3-0004bC-0A for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 17:34:21 +0200 Original-Received: from localhost ([::1]:49570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNjf2-0002a3-DV for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 11:34:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNjed-0002T5-W5 for emacs-devel@gnu.org; Fri, 07 Aug 2015 11:33:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNjea-00060C-JX for emacs-devel@gnu.org; Fri, 07 Aug 2015 11:33:55 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:10597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNjea-000600-GC for emacs-devel@gnu.org; Fri, 07 Aug 2015 11:33:52 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CVDQA731xV//gFNJ1cgxCEAsEVh0sEAgKBPDsSAQEBAQEBAYEKQQWDXQEBBFYjEAsOJhIUGA0kiD/PIwEBAQcCAR+LOoUFB4QtAQS1BCNhgVqBWSKCeAEBAQ X-IPAS-Result: A0CVDQA731xV//gFNJ1cgxCEAsEVh0sEAgKBPDsSAQEBAQEBAYEKQQWDXQEBBFYjEAsOJhIUGA0kiD/PIwEBAQcCAR+LOoUFB4QtAQS1BCNhgVqBWSKCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="159088086" Original-Received: from 157-52-5-248.cpe.teksavvy.com (HELO pastel.home) ([157.52.5.248]) by ironport2-out.teksavvy.com with ESMTP; 07 Aug 2015 11:33:51 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 884F361710; Fri, 7 Aug 2015 11:33:51 -0400 (EDT) In-Reply-To: (Samer Masterson's message of "Wed, 5 Aug 2015 13:46:06 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188558 Archived-At: > - (buf (find-file-noselect file))) > + ;; Call `find-file' instead of `find-file-noselect' > + ;; so that the file buffer can be used with "--eval". > + (buf (find-file file))) Using find-file means the buffer is not only selected as current-buffer but is also *displayed* in the selected window (which can have all kinds of undesirable side-effects). Why do you think it's better? I can't seem to find the description of the problem this is trying to solve. Stefan