From: "Everton J. Carpes" <everton.carpes@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Command line open does not use find-file anymore?
Date: Tue, 19 Sep 2017 22:16:02 -0300 [thread overview]
Message-ID: <CAL2=v67c8FQkhGC9KUsvoBukONCZGz5y=1cWYafaHHcDvuHc-Q@mail.gmail.com> (raw)
In-Reply-To: <87d16mhq9r.fsf@web.de>
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
prev parent reply other threads:[~2017-09-20 1:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-18 9:00 Command line open does not use find-file anymore? Everton J. Carpes
2017-09-18 15:47 ` Óscar Fuentes
2017-09-18 17:36 ` Everton J. Carpes
2017-09-19 11:38 ` Michael Heerdegen
2017-09-19 16:50 ` Eli Zaretskii
2017-09-20 1:16 ` Everton J. Carpes [this message]
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='CAL2=v67c8FQkhGC9KUsvoBukONCZGz5y=1cWYafaHHcDvuHc-Q@mail.gmail.com' \
--to=everton.carpes@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/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.