From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: "Everton J. Carpes" <everton.carpes@gmail.com>
Newsgroups: gmane.emacs.help
Subject: Re: Command line open does not use find-file anymore?
Date: Tue, 19 Sep 2017 22:16:02 -0300
Message-ID: <CAL2=v67c8FQkhGC9KUsvoBukONCZGz5y=1cWYafaHHcDvuHc-Q@mail.gmail.com>
References: <CAL2=v65uCXhTfLCZsabJu5xce7_03gwOEcZVfDVOr00JkYPgqw@mail.gmail.com>
	<87d16mhq9r.fsf@web.de>
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1505870192 16119 195.159.176.226 (20 Sep 2017 01:16:32 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 20 Sep 2017 01:16:32 +0000 (UTC)
Cc: help-gnu-emacs@gnu.org
To: Michael Heerdegen <michael_heerdegen@web.de>
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 20 03:16:28 2017
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geh-help-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 <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1duTco-0003vS-La
	for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Sep 2017 03:16:26 +0200
Original-Received: from localhost ([::1]:46139 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>)
	id 1duTcv-00012M-Tw
	for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 21:16:33 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58810)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <everton.carpes@gmail.com>) id 1duTcU-000124-SQ
	for help-gnu-emacs@gnu.org; Tue, 19 Sep 2017 21:16:07 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <everton.carpes@gmail.com>) id 1duTcT-0003t8-Qh
	for help-gnu-emacs@gnu.org; Tue, 19 Sep 2017 21:16:06 -0400
Original-Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]:44953)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <everton.carpes@gmail.com>)
	id 1duTcT-0003rr-Jm
	for help-gnu-emacs@gnu.org; Tue, 19 Sep 2017 21:16:05 -0400
Original-Received: by mail-pf0-x231.google.com with SMTP id e1so731071pfk.1
	for <help-gnu-emacs@gnu.org>; Tue, 19 Sep 2017 18:16:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc; bh=eN78sWzBBRYvLzhNH2ZqdixArvFwy/IiixctC38gobQ=;
	b=YUvnXwxHTG5zVu04vvFQggYegdyLr3Vy9aG/diFaI5XiRLM9jASes4fwXM7ea7NZ6j
	K7hrjT5LtMMjFX7A+XKfkSZbAp820Y77u+nWOGhLdyTcMsMCaiMkZcTeASHAdR4z2pEu
	uxCnea+W8oG5Nk/GIHqYvNUsQRYpkMRq05EzQQg1F09oavsaKHSAUkURd0rTazCWmCOt
	ysup2sjLWoHiLhZtn8Xw1uzx4SuPm/mB7Goap+IXVRSIhOljbXXF0lw2B7X/R8OZm2G1
	CNoghUTrvBvXzDIpXfwU//2yxmjBnNWh9E8NKoV6s2MvrILJRq/SfcBLn6WqTl5YZx3R
	0dTg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20161025;
	h=x-gm-message-state:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc;
	bh=eN78sWzBBRYvLzhNH2ZqdixArvFwy/IiixctC38gobQ=;
	b=fHb4WeuFmHAH9yWhMmEtzzWR3COLQkdXQnoLoLh6lQDGQbd7QgS/t/RVxZ7+B5zNIe
	HXg5pIYb5EXCAOV8KAWaSU3GUB76IEcrydRYkZz2JGeWhl4Rg21ZidwoDMsEepkTmGZP
	vFrpDj0F/XLpKdFQlaTJOqdgnpav4R/8lNAr/UmKNffSeTOpH8QOmbGPdLP7Gdb1rrIc
	YrlD+HUy8ElfQ6LYYXpJPktjE1WO2Cqw0MRKrnRSXs4Mt1lhsxsSKW1X/O8474lxMqtg
	GN971ED91pfrkv6XmL4/1AsXfio8uqQjyPQR2/1GpjPPnQHrpDGM8OI/VG4UoVVYlS4d
	vcFg==
X-Gm-Message-State: AHPjjUiJDEhN/NOe/tlEvEQq2qCVBXGP9BgWAe3LTl9tW/n1hnx5yi31
	ipI+vHIEwiUu2fjwy5cu9W7epXA42S96ebdTuTM=
X-Google-Smtp-Source: AOwi7QAe2aZyfo3gMLS6fnUD1xrgmm7nW5ZpiiZQBgUPCAr3gTW5K737DiysG6ti/+28ryVvQNHJO5oabEcDVR2eZCk=
X-Received: by 10.98.65.152 with SMTP id g24mr454251pfd.1.1505870163439; Tue,
	19 Sep 2017 18:16:03 -0700 (PDT)
Original-Received: by 10.100.149.1 with HTTP; Tue, 19 Sep 2017 18:16:02 -0700 (PDT)
In-Reply-To: <87d16mhq9r.fsf@web.de>
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 2607:f8b0:400e:c00::231
X-Content-Filtered-By: Mailman/MimeDel 2.1.21
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs/>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "help-gnu-emacs"
	<help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Xref: news.gmane.org gmane.emacs.help:114319
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/114319>

Thank you Michael for your reply, it was very instructive, now I can
understand better the whole startup process.

It seems that the change is not only the find-file, but the whole code of
command line parsing, so the approach using the "advice" will not work
anymore (at least, not around find-file similar functions, but I will try
around command-line-1 itself).



On Tue, Sep 19, 2017 at 8:38 AM, Michael Heerdegen <michael_heerdegen@web.de
> wrote:

> "Everton J. Carpes" <everton.carpes@gmail.com> writes:
>
> >   1. Emacs 25 doesn't use find-file anymore when opening from command
> line?
> >   2. Which function is called now?
> >   4. How can I learn more about what emacs does when opened?
>
> Seems you are right - the code switched to `find-file-noselect' a while
> ago (`find-file' is just a thin wrapper around `find-file-noselect' that
> directly selects the file's buffer).  You can find that argument
> handling code in startup.el, `command-line-1' in particular.
>
>
> Michael.
>



-- 
Everton J. Carpes