* Re: master 5be9a9cacf: Add a new command `restart-emacs'
[not found] ` <20220417113813.8E299C051DD@vcs2.savannah.gnu.org>
@ 2022-04-17 17:00 ` Sean Whitton
[not found] ` <87czhfy7ai.fsf@athena.silentflame.com>
1 sibling, 0 replies; 5+ messages in thread
From: Sean Whitton @ 2022-04-17 17:00 UTC (permalink / raw)
To: Lars Ingebrigtsen, emacs-diffs
Hello,
On Sun 17 Apr 2022 at 07:38am -04, Lars Ingebrigtsen wrote:
> branch: master
> commit 5be9a9cacfaae1959c4b95c45c146044a181ad20
> Author: Lars Ingebrigtsen <larsi@gnus.org>
> Commit: Lars Ingebrigtsen <larsi@gnus.org>
>
> Add a new command `restart-emacs'
This is cool, thank you. In my case all my frames are created with
'emacsclient -nc', however, so this command is not much use on its own.
Could there be some sort of hook so that I could arrange for Emacs to
execute (make-frame) or something after the restart?
--
Sean Whitton
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: master 5be9a9cacf: Add a new command `restart-emacs'
[not found] ` <877d7nabjl.fsf@gnus.org>
@ 2022-04-18 5:06 ` Sean Whitton
2022-04-18 9:39 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Sean Whitton @ 2022-04-18 5:06 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: emacs-devel
Hello,
On Sun 17 Apr 2022 at 07:02pm +02, Lars Ingebrigtsen wrote:
> Sean Whitton <spwhitton@spwhitton.name> writes:
>
>> This is cool, thank you. In my case all my frames are created with
>> 'emacsclient -nc', however, so this command is not much use on its own.
>> Could there be some sort of hook so that I could arrange for Emacs to
>> execute (make-frame) or something after the restart?
>
> Doesn't desktop-mode do that?
Well, in this case I just want a single frame to be opened, rather than
saving and restoring all that state. I guess what I want is reexec with
additional command line arguments, "--eval" "(make-frame)".
--
Sean Whitton
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: master 5be9a9cacf: Add a new command `restart-emacs'
2022-04-18 5:06 ` Sean Whitton
@ 2022-04-18 9:39 ` Lars Ingebrigtsen
2022-04-19 3:10 ` Sean Whitton
0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2022-04-18 9:39 UTC (permalink / raw)
To: Sean Whitton; +Cc: emacs-devel
Sean Whitton <spwhitton@spwhitton.name> writes:
> Well, in this case I just want a single frame to be opened, rather than
> saving and restoring all that state. I guess what I want is reexec with
> additional command line arguments, "--eval" "(make-frame)".
I think that's out of scope for `restart-emacs'. I mean, it would be
possible to have a
`restart-emacs-but-with-extra-command-line-arguments', but then you're
not restarting Emacs the way you started it.
But if you start Emacs originally with "--eval" "(make-frame)", then
`restart-emacs' will be restarted the same way.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: master 5be9a9cacf: Add a new command `restart-emacs'
2022-04-18 9:39 ` Lars Ingebrigtsen
@ 2022-04-19 3:10 ` Sean Whitton
2022-04-19 12:28 ` Stefan Monnier
0 siblings, 1 reply; 5+ messages in thread
From: Sean Whitton @ 2022-04-19 3:10 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: emacs-devel
Hello,
On Mon 18 Apr 2022 at 11:39AM +02, Lars Ingebrigtsen wrote:
> Sean Whitton <spwhitton@spwhitton.name> writes:
>
>> Well, in this case I just want a single frame to be opened, rather than
>> saving and restoring all that state. I guess what I want is reexec with
>> additional command line arguments, "--eval" "(make-frame)".
>
> I think that's out of scope for `restart-emacs'. I mean, it would be
> possible to have a
> `restart-emacs-but-with-extra-command-line-arguments', but then you're
> not restarting Emacs the way you started it.
Right.
> But if you start Emacs originally with "--eval" "(make-frame)", then
> `restart-emacs' will be restarted the same way.
Interesting idea, thank you.
--
Sean Whitton
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: master 5be9a9cacf: Add a new command `restart-emacs'
2022-04-19 3:10 ` Sean Whitton
@ 2022-04-19 12:28 ` Stefan Monnier
0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2022-04-19 12:28 UTC (permalink / raw)
To: Sean Whitton; +Cc: Lars Ingebrigtsen, emacs-devel
>> I think that's out of scope for `restart-emacs'. I mean, it would be
>> possible to have a
>> `restart-emacs-but-with-extra-command-line-arguments', but then you're
>> not restarting Emacs the way you started it.
A related out-of-scope request would be to `start/call-process` a new
instance of the running Emacs, as needed for `async.el` or
`elisp-flymake-byte-compile`, which currently relies on
(expand-file-name invocation-name invocation-directory).
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-04-19 12:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <165019549260.14825.15584590170389963112@vcs2.savannah.gnu.org>
[not found] ` <20220417113813.8E299C051DD@vcs2.savannah.gnu.org>
2022-04-17 17:00 ` master 5be9a9cacf: Add a new command `restart-emacs' Sean Whitton
[not found] ` <87czhfy7ai.fsf@athena.silentflame.com>
[not found] ` <877d7nabjl.fsf@gnus.org>
2022-04-18 5:06 ` Sean Whitton
2022-04-18 9:39 ` Lars Ingebrigtsen
2022-04-19 3:10 ` Sean Whitton
2022-04-19 12:28 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).