all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: starback@stp.lingfil.uu.se (Per Starbäck)
To: Noam Postavsky <npostavs@gmail.com>
Cc: 32356@debbugs.gnu.org
Subject: bug#32356: 26.1; --file visits file later than expected
Date: Fri, 03 Aug 2018 12:16:39 +0200	[thread overview]
Message-ID: <sa5a7q3hi0o.fsf@numerus.lingfil.uu.se> (raw)
In-Reply-To: <87in4rzry6.fsf@gmail.com> (Noam Postavsky's message of "Fri, 03 Aug 2018 06:04:49 -0400")

Noam Postavsky <npostavs@gmail.com> 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 . #<window 3 on *scratch*>).  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.








  reply	other threads:[~2018-08-03 10:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-03  9:51 bug#32356: 26.1; --file visits file later than expected Per Starbäck
2018-08-03 10:04 ` Noam Postavsky
2018-08-03 10:16   ` Per Starbäck [this message]
2018-08-03 11:06     ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sa5a7q3hi0o.fsf@numerus.lingfil.uu.se \
    --to=starback@stp.lingfil.uu.se \
    --cc=32356@debbugs.gnu.org \
    --cc=npostavs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.