* bug#13850: Emacs for Windows: Launch better from a command prompt @ 2013-03-01 20:49 Andrew Pennebaker 2013-03-01 22:54 ` K. Frank ` (2 more replies) 0 siblings, 3 replies; 11+ messages in thread From: Andrew Pennebaker @ 2013-03-01 20:49 UTC (permalink / raw) To: 13850, help-emacs-windows [-- Attachment #1: Type: text/plain, Size: 355 bytes --] Currently, Emacs ties up the Command Prompt until the user quits Emacs. In Git Bash, you can hack around this with an ampersand (&), but the default behavior should really be to fork a thread for Emacs and immediately return terminal control to the user. Can we default the next version to this behavior? -- Cheers, Andrew Pennebaker www.yellosoft.us [-- Attachment #2: Type: text/html, Size: 542 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Emacs for Windows: Launch better from a command prompt 2013-03-01 20:49 bug#13850: Emacs for Windows: Launch better from a command prompt Andrew Pennebaker @ 2013-03-01 22:54 ` K. Frank 2013-03-02 7:27 ` bug#13850: " Eli Zaretskii [not found] ` <83k3pquuqy.fsf@gnu.org> 2 siblings, 0 replies; 11+ messages in thread From: K. Frank @ 2013-03-01 22:54 UTC (permalink / raw) To: help-emacs-windows, Emacs Bugs Hello Andrew! On Fri, Mar 1, 2013 at 3:49 PM, Andrew Pennebaker <andrew.pennebaker@gmail.com> wrote: > Currently, Emacs ties up the Command Prompt until the user quits Emacs. In > Git Bash, you can hack around this with an ampersand (&), but the default > behavior should really be to fork a thread for Emacs and immediately return > terminal control to the user. With my old version, 23.1.1, "start", the windows analog of "&", as in: start emacs works (although emacs then opens up a new, vaguely annoying console window of its own). I believe the "official" approach (at least with my old version) is to use the companion helper program, runemacs, as in: runemacs This, I believe, will do what you are asking (although it does seem to flicker a console window briefly). > Can we default the next version to this behavior? I'll let the experts answer this one. But do let me note that emacs (at least my old version) still supports the old, text-only, console mode, as in: emacs -nw ("nw" being, I believe, an abbreviation of "no window") I have no idea whether having emacs default to "detaching" itself from the console would make continuing to support "-nw" more difficult. > Cheers, > > Andrew Pennebaker > www.yellosoft.us Good luck. K. Frank ^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#13850: Emacs for Windows: Launch better from a command prompt 2013-03-01 20:49 bug#13850: Emacs for Windows: Launch better from a command prompt Andrew Pennebaker 2013-03-01 22:54 ` K. Frank @ 2013-03-02 7:27 ` Eli Zaretskii [not found] ` <83k3pquuqy.fsf@gnu.org> 2 siblings, 0 replies; 11+ messages in thread From: Eli Zaretskii @ 2013-03-02 7:27 UTC (permalink / raw) To: Andrew Pennebaker; +Cc: 13850, help-emacs-windows > Date: Fri, 1 Mar 2013 15:49:57 -0500 > From: Andrew Pennebaker <andrew.pennebaker@gmail.com> > > Currently, Emacs ties up the Command Prompt until the user quits Emacs. In > Git Bash, you can hack around this with an ampersand (&), but the default > behavior should really be to fork a thread for Emacs and immediately return > terminal control to the user. > > Can we default the next version to this behavior? We already do: just invoke runemacs.exe rather than emacs.exe. As for forking a thread: it is a bit more complex than that. (We already start at least 2 threads at startup.) The 2 most important problems are (1) the same executable should be able to run in a text terminal session under -nw, and (2) we don't want the GUI session to have a console. runemacs.exe solves both. Any reasons not to close this bug? ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <83k3pquuqy.fsf@gnu.org>]
[parent not found: <CAHXt_SXakTei9TZFvjEmuggaGNHCQMq4xYfJ0Qtq1NwvOy_82g@mail.gmail.com>]
* bug#13850: Emacs for Windows: Launch better from a command prompt [not found] ` <CAHXt_SXakTei9TZFvjEmuggaGNHCQMq4xYfJ0Qtq1NwvOy_82g@mail.gmail.com> @ 2013-03-02 14:59 ` Eli Zaretskii [not found] ` <CAHXt_SV+VVnj2yw189cNq15sKNqMonWZm2zH_FN3nOS5_PSa3w@mail.gmail.com> 0 siblings, 1 reply; 11+ messages in thread From: Eli Zaretskii @ 2013-03-02 14:59 UTC (permalink / raw) To: Andrew Pennebaker; +Cc: 13850 > Date: Sat, 2 Mar 2013 09:43:14 -0500 > From: Andrew Pennebaker <andrew.pennebaker@gmail.com> > > Would it make sense to give runemacs a -nw option, and rename it emacs.exe? No, because runemacs.exe works by invoking emacs.exe in a special way. If you rename it, it will reinvoke itself. Why is the current arrangement a problem? ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <CAHXt_SV+VVnj2yw189cNq15sKNqMonWZm2zH_FN3nOS5_PSa3w@mail.gmail.com>]
* bug#13850: Emacs for Windows: Launch better from a command prompt [not found] ` <CAHXt_SV+VVnj2yw189cNq15sKNqMonWZm2zH_FN3nOS5_PSa3w@mail.gmail.com> @ 2013-03-02 15:33 ` Eli Zaretskii [not found] ` <CAHXt_SUFhkL64WPzOqTKq0Qq6FYFafC_t4m04qUnreB1Fd2MsQ@mail.gmail.com> 0 siblings, 1 reply; 11+ messages in thread From: Eli Zaretskii @ 2013-03-02 15:33 UTC (permalink / raw) To: Andrew Pennebaker; +Cc: 13850 > Date: Sat, 2 Mar 2013 10:13:42 -0500 > From: Andrew Pennebaker <andrew.pennebaker@gmail.com> > > Hmm. I ask, because I use several operating systems, and it would be nice > to call a single command dor all of them: emacs. Don't you start Emacs when the machine starts and keep it running all the time until the machine is shut down? If you do, you don't need to type the command name too much. Or you could just click the icon on the desktop, in which case you don't need to worry which executable file is being run by it. Or you could make a shell script called 'runemacs' on Unix, and have a single command to use on all platforms. > You say runemacs calls emacs with some settings. Could we achieve the same > behavior by making those the default in emacs.exe? Not trivially; at least I don't know how to do that. Take a look at runemacs.c in the sources: you will see that it runs emacs.exe with special non-default options (to hide its console window). Again, the same executable should be able to be run as a TTY session, so it must be a console program, as far as Windows is concerned. ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <CAHXt_SUFhkL64WPzOqTKq0Qq6FYFafC_t4m04qUnreB1Fd2MsQ@mail.gmail.com>]
* bug#13850: Emacs for Windows: Launch better from a command prompt [not found] ` <CAHXt_SUFhkL64WPzOqTKq0Qq6FYFafC_t4m04qUnreB1Fd2MsQ@mail.gmail.com> @ 2013-03-02 16:22 ` Eli Zaretskii 2013-03-02 16:25 ` Lennart Borgman 0 siblings, 1 reply; 11+ messages in thread From: Eli Zaretskii @ 2013-03-02 16:22 UTC (permalink / raw) To: Andrew Pennebaker; +Cc: 13850 > Date: Sat, 2 Mar 2013 10:44:33 -0500 > From: Andrew Pennebaker <andrew.pennebaker@gmail.com> > > No, I run vi with "vi", python with "python", and on every other operating > system, emacs with "emacs". Sorry. Anyway, unless someone can suggest how to pull that trick on Windows, I don't see how this feature can be made to happen. ^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#13850: Emacs for Windows: Launch better from a command prompt 2013-03-02 16:22 ` Eli Zaretskii @ 2013-03-02 16:25 ` Lennart Borgman 0 siblings, 0 replies; 11+ messages in thread From: Lennart Borgman @ 2013-03-02 16:25 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 13850 [-- Attachment #1: Type: text/plain, Size: 526 bytes --] What is the problem? Just start Emacs through emacsclient. (I posted code for it long ago.) On Sat, Mar 2, 2013 at 5:22 PM, Eli Zaretskii <eliz@gnu.org> wrote: > > Date: Sat, 2 Mar 2013 10:44:33 -0500 > > From: Andrew Pennebaker <andrew.pennebaker@gmail.com> > > > > No, I run vi with "vi", python with "python", and on every other > operating > > system, emacs with "emacs". > > Sorry. > > Anyway, unless someone can suggest how to pull that trick on Windows, > I don't see how this feature can be made to happen. > > > > [-- Attachment #2: Type: text/html, Size: 964 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#13850: Emacs for Windows: Launch better from a command prompt [not found] ` <83k3pquuqy.fsf@gnu.org> [not found] ` <CAHXt_SXakTei9TZFvjEmuggaGNHCQMq4xYfJ0Qtq1NwvOy_82g@mail.gmail.com> @ 2022-05-01 9:12 ` Lars Ingebrigtsen 2022-05-01 9:57 ` Joel Reicher [not found] ` <86zgk1lgm8.fsf@gmail.com> 1 sibling, 2 replies; 11+ messages in thread From: Lars Ingebrigtsen @ 2022-05-01 9:12 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 13850, help-emacs-windows Eli Zaretskii <eliz@gnu.org> writes: > We already do: just invoke runemacs.exe rather than emacs.exe. > > As for forking a thread: it is a bit more complex than that. (We > already start at least 2 threads at startup.) The 2 most important > problems are (1) the same executable should be able to run in a text > terminal session under -nw, and (2) we don't want the GUI session to > have a console. runemacs.exe solves both. > > Any reasons not to close this bug? (I'm going through old bug reports that unfortunately weren't resolved at the time.) "Use runemacs" seems like it's the correct answer here, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no ^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#13850: Emacs for Windows: Launch better from a command prompt 2022-05-01 9:12 ` Lars Ingebrigtsen @ 2022-05-01 9:57 ` Joel Reicher [not found] ` <86zgk1lgm8.fsf@gmail.com> 1 sibling, 0 replies; 11+ messages in thread From: Joel Reicher @ 2022-05-01 9:57 UTC (permalink / raw) To: Lars Ingebrigtsen; +Cc: 13850, help-emacs-windows Lars Ingebrigtsen <larsi@gnus.org> writes: > Eli Zaretskii <eliz@gnu.org> writes: > >> We already do: just invoke runemacs.exe rather than emacs.exe. >> >> As for forking a thread: it is a bit more complex than that. (We >> already start at least 2 threads at startup.) The 2 most important >> problems are (1) the same executable should be able to run in a text >> terminal session under -nw, and (2) we don't want the GUI session to >> have a console. runemacs.exe solves both. >> >> Any reasons not to close this bug? > > (I'm going through old bug reports that unfortunately weren't resolved > at the time.) > > "Use runemacs" seems like it's the correct answer here, so I'm closing > this bug report. It is the right answer, but I can't help thinking that there is an issue of ignorance amongst Window users. Does anyone know why the OP had this `wrong'? I think we need to keep an eye on Windows users usage patterns/habits; there may be an opportunity here, especially when it comes to the installer. Regards, - Joel ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <86zgk1lgm8.fsf@gmail.com>]
* bug#13850: Emacs for Windows: Launch better from a command prompt [not found] ` <86zgk1lgm8.fsf@gmail.com> @ 2022-05-01 10:09 ` Eli Zaretskii [not found] ` <83bkwh7eec.fsf@gnu.org> 1 sibling, 0 replies; 11+ messages in thread From: Eli Zaretskii @ 2022-05-01 10:09 UTC (permalink / raw) To: Joel Reicher; +Cc: 13850, help-emacs-windows, larsi > From: Joel Reicher <joel.reicher@gmail.com> > Cc: Eli Zaretskii <eliz@gnu.org>, 13850@debbugs.gnu.org, > help-emacs-windows@gnu.org, Andrew Pennebaker > <andrew.pennebaker@gmail.com> > Date: Sun, 01 May 2022 19:57:51 +1000 > > > "Use runemacs" seems like it's the correct answer here, so I'm closing > > this bug report. > > It is the right answer, but I can't help thinking that there is an issue of ignorance amongst Window users. > > Does anyone know why the OP had this `wrong'? Most probably because (a) he comes from Unix, and (b) he didn't read the README.W32 file that comes with Emacs for Windows. ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <83bkwh7eec.fsf@gnu.org>]
* bug#13850: Emacs for Windows: Launch better from a command prompt [not found] ` <83bkwh7eec.fsf@gnu.org> @ 2022-05-01 10:35 ` Joel Reicher 0 siblings, 0 replies; 11+ messages in thread From: Joel Reicher @ 2022-05-01 10:35 UTC (permalink / raw) To: Eli Zaretskii; +Cc: 13850, help-emacs-windows, larsi Eli Zaretskii <eliz@gnu.org> writes: >> From: Joel Reicher <joel.reicher@gmail.com> >> Cc: Eli Zaretskii <eliz@gnu.org>, 13850@debbugs.gnu.org, >> help-emacs-windows@gnu.org, Andrew Pennebaker >> <andrew.pennebaker@gmail.com> >> Date: Sun, 01 May 2022 19:57:51 +1000 >> >> > "Use runemacs" seems like it's the correct answer here, so I'm closing >> > this bug report. >> >> It is the right answer, but I can't help thinking that there is an issue of ignorance amongst Window users. >> >> Does anyone know why the OP had this `wrong'? > > Most probably because (a) he comes from Unix, and (b) he didn't read > the README.W32 file that comes with Emacs for Windows. If that's correct, the best measure may be to launch that README after the installer. I know I'm repeating myself a little, but I really want to give Windows users a flying start, and that requires understanding where they're coming from. Cheers, - Joel ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-05-01 10:35 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-03-01 20:49 bug#13850: Emacs for Windows: Launch better from a command prompt Andrew Pennebaker 2013-03-01 22:54 ` K. Frank 2013-03-02 7:27 ` bug#13850: " Eli Zaretskii [not found] ` <83k3pquuqy.fsf@gnu.org> [not found] ` <CAHXt_SXakTei9TZFvjEmuggaGNHCQMq4xYfJ0Qtq1NwvOy_82g@mail.gmail.com> 2013-03-02 14:59 ` Eli Zaretskii [not found] ` <CAHXt_SV+VVnj2yw189cNq15sKNqMonWZm2zH_FN3nOS5_PSa3w@mail.gmail.com> 2013-03-02 15:33 ` Eli Zaretskii [not found] ` <CAHXt_SUFhkL64WPzOqTKq0Qq6FYFafC_t4m04qUnreB1Fd2MsQ@mail.gmail.com> 2013-03-02 16:22 ` Eli Zaretskii 2013-03-02 16:25 ` Lennart Borgman 2022-05-01 9:12 ` Lars Ingebrigtsen 2022-05-01 9:57 ` Joel Reicher [not found] ` <86zgk1lgm8.fsf@gmail.com> 2022-05-01 10:09 ` Eli Zaretskii [not found] ` <83bkwh7eec.fsf@gnu.org> 2022-05-01 10:35 ` Joel Reicher
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).