From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Samer Masterson Newsgroups: gmane.emacs.bugs Subject: bug#21095: [PATCH] switch to file buffer from command line args regardless of `initial-buffer-choice' Date: Mon, 10 Aug 2015 11:16:54 -0700 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: multipart/alternative; boundary=001a11490850afeece051cf8fed2 X-Trace: ger.gmane.org 1439230701 9708 80.91.229.3 (10 Aug 2015 18:18:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2015 18:18:21 +0000 (UTC) Cc: 21095@debbugs.gnu.org, Rasmus , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 10 20:18:13 2015 Return-path: Envelope-to: geb-bug-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 1ZOreG-0003dw-P0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Aug 2015 20:18:12 +0200 Original-Received: from localhost ([::1]:59695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOreG-0004rj-3L for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Aug 2015 14:18:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOreB-0004qe-Rh for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 14:18:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOre7-0005io-1m for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 14:18:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOre6-0005gZ-Tu for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 14:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZOre6-0006Kw-24 for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 14:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Samer Masterson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Aug 2015 18:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21095 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21095-submit@debbugs.gnu.org id=B21095.143923063724304 (code B ref 21095); Mon, 10 Aug 2015 18:18:02 +0000 Original-Received: (at 21095) by debbugs.gnu.org; 10 Aug 2015 18:17:17 +0000 Original-Received: from localhost ([127.0.0.1]:52400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOrdM-0006Jw-Te for submit@debbugs.gnu.org; Mon, 10 Aug 2015 14:17:17 -0400 Original-Received: from mail-yk0-f170.google.com ([209.85.160.170]:33320) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOrdK-0006Jo-Hd for 21095@debbugs.gnu.org; Mon, 10 Aug 2015 14:17:15 -0400 Original-Received: by ykaz130 with SMTP id z130so39172680yka.0 for <21095@debbugs.gnu.org>; Mon, 10 Aug 2015 11:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=EOpIsxyaXiQ5cpdmSZf38rhge7sukQBivTjO4uXff/M=; b=jUHajAVc/LISdp20wYdSL7gDngOXtRws70QQsiDPqJHc5pBGNqfBWk5mvsFExcHooN X1shcHruYXV3IjxUiXN+qi1jozgnxx+uiE7o29WiXsFezn6F8bKLn/8XXDlmJZ25JSU8 c8AoWjC0n/ReSr8VdOOsz/VBbjevroEzb1YxWx4JsGqq/NCY9RyevuUOx+4JHPHxM1Ti uYZ6MKJ5XQJ8V6phzw/xq35DgeknXozRPEUi4rw7bXeEq/J5bwR6xGbDbCTSvvgIhArq ouYbNrezQcmL6MWHUvoX/tiYXRQg7UTskvedfpLBbSdbdnki893n3Tu77X4OHi8HGI8B rp4Q== X-Received: by 10.129.102.70 with SMTP id a67mr21650410ywc.19.1439230633961; Mon, 10 Aug 2015 11:17:13 -0700 (PDT) Original-Received: by 10.129.105.66 with HTTP; Mon, 10 Aug 2015 11:16:54 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105400 Archived-At: --001a11490850afeece051cf8fed2 Content-Type: text/plain; charset=UTF-8 Fixed with 5cd6c08 by using `set-buffer' instead of 'find-file'. Best, Samer On Fri, Aug 7, 2015 at 2:22 PM, Stefan Monnier wrote: > > Is there a way of making the file buffer the current buffer without > > displaying it, though? > > Of course: with-current-buffer and/or set-buffer. > > > Stefan > --001a11490850afeece051cf8fed2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Fixed with 5cd6c08 by using `set-buffer' ins= tead of 'find-file'.

Best,
Samer

On Fri, Aug 7, 2015 = at 2:22 PM, Stefan Monnier <monnier@iro.umontreal.ca>= wrote:
> Is there a = way of making the file buffer the current buffer without
> displaying it, though?

Of course: with-current-buffer and/or set-buffer.


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan

--001a11490850afeece051cf8fed2--