From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: starback@stp.lingfil.uu.se (Per =?UTF-8?Q?Starb=C3=A4ck?=) Newsgroups: gmane.emacs.bugs Subject: bug#32356: 26.1; --file visits file later than expected Date: Fri, 03 Aug 2018 12:16:39 +0200 Message-ID: References: <87in4rzry6.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1533291308 22263 195.159.176.226 (3 Aug 2018 10:15:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 3 Aug 2018 10:15:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: 32356@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 03 12:15:03 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1flX6t-0005ge-DW for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Aug 2018 12:15:03 +0200 Original-Received: from localhost ([::1]:49996 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1flX8z-00076N-VL for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Aug 2018 06:17:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1flX8t-000766-D9 for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2018 06:17:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1flX8o-0007L5-DA for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2018 06:17:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34518) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1flX8o-0007Kv-8i for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2018 06:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1flX8n-0002hz-Ti for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2018 06:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: starback@stp.lingfil.uu.se (Per =?UTF-8?Q?Starb=C3=A4ck?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Aug 2018 10:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32356 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32356-submit@debbugs.gnu.org id=B32356.153329140410384 (code B ref 32356); Fri, 03 Aug 2018 10:17:01 +0000 Original-Received: (at 32356) by debbugs.gnu.org; 3 Aug 2018 10:16:44 +0000 Original-Received: from localhost ([127.0.0.1]:39536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1flX8W-0002hQ-9U for submit@debbugs.gnu.org; Fri, 03 Aug 2018 06:16:44 -0400 Original-Received: from cl.lingfil.uu.se ([130.238.78.148]:36460 helo=numerus.lingfil.uu.se) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1flX8U-0002hF-J5 for 32356@debbugs.gnu.org; Fri, 03 Aug 2018 06:16:42 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by numerus.lingfil.uu.se (Postfix) with ESMTP id 60D55A1B2404; Fri, 3 Aug 2018 12:16:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at lingfil.uu.se Original-Received: from numerus.lingfil.uu.se ([127.0.0.1]) by localhost (numerus.lingfil.uu.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5jG1Bxpt-cD2; Fri, 3 Aug 2018 12:16:39 +0200 (CEST) Original-Received: from numerus.lingfil.uu.se (localhost [127.0.0.1]) by numerus.lingfil.uu.se (Postfix) with ESMTP id 7E4FEA1B2402; Fri, 3 Aug 2018 12:16:39 +0200 (CEST) Original-Received: (from starback@localhost) by numerus.lingfil.uu.se (8.14.7/8.14.7/Submit) id w73AGdt9021614; Fri, 3 Aug 2018 12:16:39 +0200 In-Reply-To: <87in4rzry6.fsf@gmail.com> (Noam Postavsky's message of "Fri, 03 Aug 2018 06:04:49 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:149228 Archived-At: Noam Postavsky writes: > The buffer is set by then, e.g., try > > emacs -Q --file=test.txt --eval '(princ (cons (current-buffer) > (frame-selected-window)))' > > and you get (test.txt . #). So it's just that > window selection doesn't happen immediately. Thanks! I should have tried that as well when making my test case smaller. For what I was actually trying to do I needed that window, and I also tried (redisplay t) and other stuff in between to make it display before my code continued, to no avail. Visiting the file explicitly with find-file instead works for me. I just thought I found something strange on the way, but evidently not, so this can be closed.