From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 03 05:52:07 2018 Received: (at submit) by debbugs.gnu.org; 3 Aug 2018 09:52:07 +0000 Received: from localhost ([127.0.0.1]:39511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1flWkh-0001sN-Bw for submit@debbugs.gnu.org; Fri, 03 Aug 2018 05:52:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1flWkf-0001rq-BF for submit@debbugs.gnu.org; Fri, 03 Aug 2018 05:52:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1flWkZ-0002Gl-7C for submit@debbugs.gnu.org; Fri, 03 Aug 2018 05:51:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38932) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1flWkZ-0002Gh-3d for submit@debbugs.gnu.org; Fri, 03 Aug 2018 05:51:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1flWkX-0000Bh-Tn for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2018 05:51:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1flWkU-0002Bo-Sb for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2018 05:51:58 -0400 Received: from st.lingfil.uu.se ([130.238.78.148]:42636 helo=numerus.lingfil.uu.se) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1flWkU-00027B-KY for bug-gnu-emacs@gnu.org; Fri, 03 Aug 2018 05:51:54 -0400 Received: from localhost (localhost [127.0.0.1]) by numerus.lingfil.uu.se (Postfix) with ESMTP id 44C00A1B2402; Fri, 3 Aug 2018 11:51:51 +0200 (CEST) X-Virus-Scanned: amavisd-new at lingfil.uu.se 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 x20-BI_eyIw2; Fri, 3 Aug 2018 11:51:50 +0200 (CEST) Received: from haplologi.lingfil.uu.se (haplologi.lingfil.uu.se [130.238.78.138]) by numerus.lingfil.uu.se (Postfix) with ESMTP id 48B6DA1B2401; Fri, 3 Aug 2018 11:51:50 +0200 (CEST) Received: from haplologi.lingfil.uu.se (starback@localhost [127.0.0.1]) by haplologi.lingfil.uu.se (8.14.7/8.14.7) with ESMTP id w739porQ007502; Fri, 3 Aug 2018 11:51:50 +0200 Received: (from starback@localhost) by haplologi.lingfil.uu.se (8.14.7/8.14.7/Submit) id w739poek007501; Fri, 3 Aug 2018 11:51:50 +0200 X-Authentication-Warning: haplologi.lingfil.uu.se: starback set sender to starback@stp.lingfil.uu.se using -f From: starback@stp.lingfil.uu.se (Per =?iso-8859-1?Q?Starb=E4ck?=) To: bug-gnu-emacs@gnu.org Subject: 26.1; --file visits file later than expected Date: Fri, 03 Aug 2018 11:51:49 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.26) Windowing system distributor 'The X.Org Foundation', version 11.0.11905000 System Description: CentOS Linux release 7.5.1804 (Core)=20 I'm not sure if this is a bug or just other unexpected (by me) behavior: $ emacs -Q --file=3Dtest.txt --eval '(princ (frame-selected-window))' This starts an emacs and prints "#" I expected it to already have selected a window with test.txt instead. Only by opening the file with something like $ emacs -Q --eval '(progn (find-file "test.txt") (princ (frame-selected-win= dow)))' instead do I get the result "#" that I expected. If this behavior is intended, I think something could be added to "(emacs) Action Arguments" about it. I think this text about "--insert" the= re gives the impression that action arguments are processed in the order they are given: > Usually, this is the > =E2=80=98*scratch*=E2=80=99 buffer (*note Lisp Interaction::), but if= arguments > earlier on the command line visit files or switch buffers, that > might be a different buffer. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 03 06:04:58 2018 Received: (at 32356) by debbugs.gnu.org; 3 Aug 2018 10:04:58 +0000 Received: from localhost ([127.0.0.1]:39530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1flWx8-0002Ku-6L for submit@debbugs.gnu.org; Fri, 03 Aug 2018 06:04:58 -0400 Received: from mail-it0-f54.google.com ([209.85.214.54]:35453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1flWx6-0002Kf-90 for 32356@debbugs.gnu.org; Fri, 03 Aug 2018 06:04:56 -0400 Received: by mail-it0-f54.google.com with SMTP id 139-v6so790764itf.0 for <32356@debbugs.gnu.org>; Fri, 03 Aug 2018 03:04:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=98HWSApl94WJQs8aWLnr+QWWjdalX5QGoYeRzGQ4sJ4=; b=FinaA+2N7/ceRGZo9SdPwbvbTHjSd3J1rC/P7ElRQeRPoQQeGwC83moB7Xk7Or7Ue9 ZpLvnOLOvWFfuvKj24WxOwmcHlnvYjDNiYFGSDQP2ReM1AfbsMlsHz7yv5+/9ESFQ0Qm esvL4BqHu8o8Hf1VJFwyNrt3XsU2OSwUL18Sw5WPIztGRFsfBILV49sM3G1nJxFvY3rY vzazGQpuJc5Hx1fN6mkfb1O8xcJfHyyXWQuBDmu/JaWU5Iirk0/OJgUJjKeExPJrn0UC O/42Al1QXElsWZ7WcBrmf759pLBo32OoAaV9oQ7GKeFOV5xzVYYEXL9i1p3141YjI2EF m/7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=98HWSApl94WJQs8aWLnr+QWWjdalX5QGoYeRzGQ4sJ4=; b=QskZjeYHZAuN/FEydZweDbkMGYBR9AxgA9KtTBCeojLLZr00EaGsRlQ8Vvu7r2Hr0v 1RgJpUrFInx8+eTMchasNSSM+4rnR5GeJhiH+eYD6stNcnBDEiQT1xFEqvVZLBLloQJG KNh30SXi1+WCpJlozJrBu+06YKgzyYHsjJqQdp5ic+uWTtVJX0jxxJ2qhlbRCdZ2sxHI 9t4DvghVxLWzjuDKpDa8APICEB+bwVBrV7ig/bTCIBMXPoEiIL115tuBG8MaKUXpvRJ2 T7Z8PAV7e0tIKcrGQvehiBHFGhORtLiSfJhMwPat2Jm1huPnYRM6d4xlMeVjXlowYQmx CQnQ== X-Gm-Message-State: AOUpUlHFQg0FL4OOnBqvoDnljRip2XNulMCZA7b8+exXCUUtnwORuRlT 3bVu+Cu1juIQR+DF/uyB3Z42cu1r X-Google-Smtp-Source: AAOMgpc9ryiwgBq8YWDNVI1U3tDvxMtRQuDoZTxDjH3PnpU9lIndYWdSDH3VRUAJDamWbYxkg1iFOQ== X-Received: by 2002:a24:4ecb:: with SMTP id r194-v6mr5795219ita.39.1533290690557; Fri, 03 Aug 2018 03:04:50 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id v82-v6sm1572292iod.14.2018.08.03.03.04.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Aug 2018 03:04:50 -0700 (PDT) From: Noam Postavsky To: starback@stp.lingfil.uu.se (Per =?utf-8?Q?Starb=C3=A4ck?=) Subject: Re: bug#32356: 26.1; --file visits file later than expected References: Date: Fri, 03 Aug 2018 06:04:49 -0400 In-Reply-To: ("Per \=\?utf-8\?Q\?Sta\?\= \=\?utf-8\?Q\?rb\=C3\=A4ck\=22's\?\= message of "Fri, 03 Aug 2018 11:51:49 +0200") Message-ID: <87in4rzry6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32356 Cc: 32356@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) starback@stp.lingfil.uu.se (Per Starb=C3=A4ck) writes: > If this behavior is intended, I think something could be added to > "(emacs) Action Arguments" about it. I think this text about "--insert" t= here > gives the impression that action arguments are processed in the order > they are given: > >> Usually, this is the >> =E2=80=98*scratch*=E2=80=99 buffer (*note Lisp Interaction::), but i= f arguments >> earlier on the command line visit files or switch buffers, that >> might be a different buffer. The buffer is set by then, e.g., try emacs -Q --file=3Dtest.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. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 03 06:16:44 2018 Received: (at 32356) by debbugs.gnu.org; 3 Aug 2018 10:16:44 +0000 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 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 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 X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-9999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=ham autolearn_force=no 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) 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) 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 From: starback@stp.lingfil.uu.se (Per =?iso-8859-1?Q?Starb=E4ck?=) To: Noam Postavsky Subject: Re: bug#32356: 26.1; --file visits file later than expected References: <87in4rzry6.fsf@gmail.com> Date: Fri, 03 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") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32356 Cc: 32356@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 03 07:06:38 2018 Received: (at 32356) by debbugs.gnu.org; 3 Aug 2018 11:06:38 +0000 Received: from localhost ([127.0.0.1]:39551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1flXuo-0004BC-HV for submit@debbugs.gnu.org; Fri, 03 Aug 2018 07:06:38 -0400 Received: from mail-it0-f41.google.com ([209.85.214.41]:35546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1flXum-0004Aq-Ui; Fri, 03 Aug 2018 07:06:37 -0400 Received: by mail-it0-f41.google.com with SMTP id 139-v6so986417itf.0; Fri, 03 Aug 2018 04:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=0dpsbkNrDfTaQNIhsTWx9rNE3AAf0ABKOsFfN1apqCk=; b=SL/l+b2byIddan4/yf1gWCMXCH1AlqWV4fKhIg3VkRoaeJz2Rum20hx8/I6aMS6NhX mpNXXnEoojP5nxD+nR5pi5vvM0nFd6QFkTzCjjzrIPGQW3jeovTpYkF6hab1Gid2kZYv dWYqkiJ0zsdhWSYaZNBKzV+RWhW3DSZuCQP9mo3PerQbXZKg3xOikTyajN/YojhOtYT5 c0FNG/4JXDzZDh3jPiTeSVadJn/+YYMNtUh3PFC1APbiDvrsRDT/wtESbbMb8vUyo2vu VrIPrfKq2s/QnnfCJLG4FYVhdR6aLuKh+muXP6nkH1a0cGUfMB9HzB1l618KzQRw9nFo Fq7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=0dpsbkNrDfTaQNIhsTWx9rNE3AAf0ABKOsFfN1apqCk=; b=igHwRMnF/0auR1Exw3oDSrEvvyGivY/24FBdok61Nm+aShK7wPdDhLGmVa+aHwEmcN y+9ZRMq8iXMOlceqy/Me6kb0RJPzXgqTJXAn2TrVHnRHhYly5Fx9RQ8c1MbQifOCJtwL 0W3dRv4cqDpm2+7mdW8xMtVOF7ZVwnqzDUaBOMPecn+edvGDYDS9cYEUYhHajFlKz/yI DQtwGubB8eSdexf6QcPQGdoU3Bs0cGAl6DpPaOuvFV38e4t/MDV90OoSAGLyh/vMfXPd SaboNMhcSoUuDukhnpYZG1nxS114TKwzg9D2ZleGvL0nH32IEsH9Pc88o8j/Q/bmC1JH fA8A== X-Gm-Message-State: AOUpUlGQgMmOCB4tSzVfstLT5bDIoh8GT6Boak2GvSdDzExhDAdaReUM Sf5/55pZXWGCJtCDknojojuQ92jl X-Google-Smtp-Source: AAOMgpcbITjECR2j8Rjv0PPyZKoN0uujOV+tgk8DZ6d7LRthulOjA6884dqlpkzS8E5Ck9Jd1gl/rw== X-Received: by 2002:a24:ac1d:: with SMTP id s29-v6mr5741487ite.3.1533294391031; Fri, 03 Aug 2018 04:06:31 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id i129-v6sm1999791ita.28.2018.08.03.04.06.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Aug 2018 04:06:30 -0700 (PDT) From: Noam Postavsky To: starback@stp.lingfil.uu.se (Per =?utf-8?Q?Starb=C3=A4ck?=) Subject: Re: bug#32356: 26.1; --file visits file later than expected References: <87in4rzry6.fsf@gmail.com> Date: Fri, 03 Aug 2018 07:06:28 -0400 In-Reply-To: ("Per \=\?utf-8\?Q\?Starb\?\= \=\?utf-8\?Q\?\=C3\=A4ck\=22's\?\= message of "Fri, 03 Aug 2018 12:16:39 +0200") Message-ID: <87ftzvzp3f.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32356 Cc: 32356@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 32356 notabug close 32356 quit starback@stp.lingfil.uu.se (Per Starb=C3=A4ck) writes: > 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. Ah, it's because --file only sets the buffer, displaying it in a window only happens later, when initial-buffer-choice is processed (i.e., after all command line arguments have been processed). (elisp) Startup Summary: 24. [...] If one file is given as a command line argument, that file is visited and its buffer displayed alongside `initial-buffer-choice'. From unknown Sat Aug 16 22:48:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 31 Aug 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator