* Re: [Emacs-diffs] master 36b9955: Add --new-daemon, which runs in the foreground and does not fork [not found] ` <20161116072926.098DB220167@vcs.savannah.gnu.org> @ 2016-11-16 13:12 ` Stefan Monnier 2016-11-16 16:19 ` Mark Oteiza 0 siblings, 1 reply; 11+ messages in thread From: Stefan Monnier @ 2016-11-16 13:12 UTC (permalink / raw) To: emacs-devel; +Cc: Glenn Morris > Add --new-daemon, which runs in the foreground and does not fork Could we have more meaningful names than "old" and "new"? E.g. --fg-daemon and --bg-daemon? Stefan ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Emacs-diffs] master 36b9955: Add --new-daemon, which runs in the foreground and does not fork 2016-11-16 13:12 ` [Emacs-diffs] master 36b9955: Add --new-daemon, which runs in the foreground and does not fork Stefan Monnier @ 2016-11-16 16:19 ` Mark Oteiza 2016-11-16 16:24 ` Evgeny Roubinchtein 0 siblings, 1 reply; 11+ messages in thread From: Mark Oteiza @ 2016-11-16 16:19 UTC (permalink / raw) To: Stefan Monnier; +Cc: Glenn Morris, emacs-devel Stefan Monnier <monnier@iro.umontreal.ca> writes: >> Add --new-daemon, which runs in the foreground and does not fork > > Could we have more meaningful names than "old" and "new"? > E.g. --fg-daemon and --bg-daemon? Alternatively, an extra flag simply to indicate not to fork the daemon, perhaps -F for emacs. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Emacs-diffs] master 36b9955: Add --new-daemon, which runs in the foreground and does not fork 2016-11-16 16:19 ` Mark Oteiza @ 2016-11-16 16:24 ` Evgeny Roubinchtein 2016-11-16 18:34 ` Óscar Fuentes 2016-11-18 6:56 ` Glenn Morris 0 siblings, 2 replies; 11+ messages in thread From: Evgeny Roubinchtein @ 2016-11-16 16:24 UTC (permalink / raw) To: Mark Oteiza; +Cc: Glenn Morris, Stefan Monnier, Emacs Development [-- Attachment #1: Type: text/plain, Size: 716 bytes --] Alternatively alternatively an optional argument to the "--daemon" option so that, for example "--daemon=foreground" is the no-forking behavior, whereas plain "--daemon" (for backward compatibility) and "--daemon=background" (for completeness) are both the forking behavior. Bikeshedding can be fun. ;-) On Wed, Nov 16, 2016 at 11:19 AM, Mark Oteiza <mvoteiza@udel.edu> wrote: > > Stefan Monnier <monnier@iro.umontreal.ca> writes: > >> Add --new-daemon, which runs in the foreground and does not fork > > > > Could we have more meaningful names than "old" and "new"? > > E.g. --fg-daemon and --bg-daemon? > > Alternatively, an extra flag simply to indicate not to fork the daemon, > perhaps -F for emacs. > > [-- Attachment #2: Type: text/html, Size: 1196 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Emacs-diffs] master 36b9955: Add --new-daemon, which runs in the foreground and does not fork 2016-11-16 16:24 ` Evgeny Roubinchtein @ 2016-11-16 18:34 ` Óscar Fuentes 2016-11-18 6:56 ` Glenn Morris 1 sibling, 0 replies; 11+ messages in thread From: Óscar Fuentes @ 2016-11-16 18:34 UTC (permalink / raw) To: emacs-devel Evgeny Roubinchtein <zhenya1007@gmail.com> writes: > Alternatively alternatively an optional argument to the "--daemon" option > so that, for example "--daemon=foreground" is the no-forking behavior, > whereas plain "--daemon" (for backward compatibility) and > "--daemon=background" (for completeness) are both the forking behavior. From *info* (emacs) Initial Options ‘-daemon=SERVER-NAME’ Start emacs in background as a daemon, and use SERVER-NAME as the server name. Curiously that syntax is not mentioned on the output of `emacs --help', nor it is clear if --daemon=SERVER-NAME is accepted (note the two hyphens). IMHO, --fg-daemon or --daemon-fg makes more sense, but then we need --fg-daemon=SERVER-NAME and -fg-daemon=SERVER-NAME; same for the --bg* alternative. > Bikeshedding can be fun. ;-) Then you are on the right place. An we are entering in a combinatorial explosion. We have bikeshedding material until New Year's Eve and beyond! ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Emacs-diffs] master 36b9955: Add --new-daemon, which runs in the foreground and does not fork 2016-11-16 16:24 ` Evgeny Roubinchtein 2016-11-16 18:34 ` Óscar Fuentes @ 2016-11-18 6:56 ` Glenn Morris 2016-11-18 13:01 ` Stefan Monnier 2017-05-30 2:24 ` Noam Postavsky 1 sibling, 2 replies; 11+ messages in thread From: Glenn Morris @ 2016-11-18 6:56 UTC (permalink / raw) To: Evgeny Roubinchtein; +Cc: Mark Oteiza, Stefan Monnier, Emacs Development I'm not attached to the old- and new- names. Anyone should feel free to change them. I used "new" because https://www.freedesktop.org/software/systemd/man/daemon.html distinguishes between "sysV" and " new-style" daemons. I actually started with "--daemon-fg" and "--daemon-bg", but the Emacs argument parsing code can't handle one argument (ie "--daemon") being a prefix of another. If someone fixes argmatch to prefer an exact match to a prefix match, those would work. "--fg-daemon" and "--bg-daemon" sound fine to me. Switches --foreground (I don't think it's worth a short option like -F) and --background sound fine too. PS: emacs_devel.txt: seven years for a feature to get implemented, then overnight 4 people suggest different names for the option. ;) ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Emacs-diffs] master 36b9955: Add --new-daemon, which runs in the foreground and does not fork 2016-11-18 6:56 ` Glenn Morris @ 2016-11-18 13:01 ` Stefan Monnier 2016-11-18 17:18 ` John Wiegley 2017-05-30 2:24 ` Noam Postavsky 1 sibling, 1 reply; 11+ messages in thread From: Stefan Monnier @ 2016-11-18 13:01 UTC (permalink / raw) To: Glenn Morris; +Cc: Mark Oteiza, Evgeny Roubinchtein, Emacs Development > "--fg-daemon" and "--bg-daemon" sound fine to me. > Switches --foreground (I don't think it's worth a short option like -F) > and --background sound fine too. I think we should have a vote. Stefan "just spicing things up a bit" ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Emacs-diffs] master 36b9955: Add --new-daemon, which runs in the foreground and does not fork 2016-11-18 13:01 ` Stefan Monnier @ 2016-11-18 17:18 ` John Wiegley 2016-11-18 17:31 ` Eli Zaretskii 0 siblings, 1 reply; 11+ messages in thread From: John Wiegley @ 2016-11-18 17:18 UTC (permalink / raw) To: Stefan Monnier Cc: Mark Oteiza, Glenn Morris, Evgeny Roubinchtein, Emacs Development >>>>> "SM" == Stefan Monnier <monnier@iro.umontreal.ca> writes: >> "--fg-daemon" and "--bg-daemon" sound fine to me. >> Switches --foreground (I don't think it's worth a short option like -F) >> and --background sound fine too. SM> I think we should have a vote. I think --daemon and --no-daemon are names I've seen for these flags in other tools. I don't think I've ever seen --background, though. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Emacs-diffs] master 36b9955: Add --new-daemon, which runs in the foreground and does not fork 2016-11-18 17:18 ` John Wiegley @ 2016-11-18 17:31 ` Eli Zaretskii 2016-11-18 18:44 ` John Wiegley 0 siblings, 1 reply; 11+ messages in thread From: Eli Zaretskii @ 2016-11-18 17:31 UTC (permalink / raw) To: John Wiegley; +Cc: mvoteiza, rgm, monnier, zhenya1007, emacs-devel > From: John Wiegley <jwiegley@gmail.com> > Date: Fri, 18 Nov 2016 09:18:51 -0800 > Cc: Mark Oteiza <mvoteiza@udel.edu>, Glenn Morris <rgm@gnu.org>, > Evgeny Roubinchtein <zhenya1007@gmail.com>, > Emacs Development <emacs-devel@gnu.org> > > I think --daemon and --no-daemon are names I've seen for these flags in other > tools. I don't think I've ever seen --background, though. Maybe the foreground "daemon" mode should be triggered by a flag named --headless, since that's what it really is. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Emacs-diffs] master 36b9955: Add --new-daemon, which runs in the foreground and does not fork 2016-11-18 17:31 ` Eli Zaretskii @ 2016-11-18 18:44 ` John Wiegley 2016-11-19 16:10 ` Philipp Stephani 0 siblings, 1 reply; 11+ messages in thread From: John Wiegley @ 2016-11-18 18:44 UTC (permalink / raw) To: Eli Zaretskii; +Cc: mvoteiza, rgm, monnier, zhenya1007, emacs-devel >>>>> Eli Zaretskii <eliz@gnu.org> writes: > Maybe the foreground "daemon" mode should be triggered by a flag named > --headless, since that's what it really is. That does sound more descriptive. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Emacs-diffs] master 36b9955: Add --new-daemon, which runs in the foreground and does not fork 2016-11-18 18:44 ` John Wiegley @ 2016-11-19 16:10 ` Philipp Stephani 0 siblings, 0 replies; 11+ messages in thread From: Philipp Stephani @ 2016-11-19 16:10 UTC (permalink / raw) To: Eli Zaretskii, monnier, rgm, mvoteiza, zhenya1007, emacs-devel [-- Attachment #1: Type: text/plain, Size: 443 bytes --] John Wiegley <jwiegley@gmail.com> schrieb am Fr., 18. Nov. 2016 um 19:44 Uhr: > >>>>> Eli Zaretskii <eliz@gnu.org> writes: > > > Maybe the foreground "daemon" mode should be triggered by a flag named > > --headless, since that's what it really is. > > That does sound more descriptive. > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=4944 suggested "--server". (Just for completeness; I don't care as long the functionality itself exists.) [-- Attachment #2: Type: text/html, Size: 1052 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Emacs-diffs] master 36b9955: Add --new-daemon, which runs in the foreground and does not fork 2016-11-18 6:56 ` Glenn Morris 2016-11-18 13:01 ` Stefan Monnier @ 2017-05-30 2:24 ` Noam Postavsky 1 sibling, 0 replies; 11+ messages in thread From: Noam Postavsky @ 2017-05-30 2:24 UTC (permalink / raw) To: Glenn Morris Cc: Mark Oteiza, Stefan Monnier, Evgeny Roubinchtein, Emacs Development On Fri, Nov 18, 2016 at 1:56 AM, Glenn Morris <rgm@gnu.org> wrote: > > I'm not attached to the old- and new- names. Anyone should feel free > to change them. I've done so now [1: 75b8492946]. I went with "--fg-daemon" and "--bg-daemon" because that required the least changes to the documentation. [1: 75b8492946]: 2017-05-29 22:18:55 -0400 Rename '--new-daemon' to 'fg-daemon' and '--old-daemon' to '--bg-daemon' http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=75b849294656fd92e77a2a6281ff4dceaaa38475 ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2017-05-30 2:24 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20161116072925.16550.32364@vcs.savannah.gnu.org> [not found] ` <20161116072926.098DB220167@vcs.savannah.gnu.org> 2016-11-16 13:12 ` [Emacs-diffs] master 36b9955: Add --new-daemon, which runs in the foreground and does not fork Stefan Monnier 2016-11-16 16:19 ` Mark Oteiza 2016-11-16 16:24 ` Evgeny Roubinchtein 2016-11-16 18:34 ` Óscar Fuentes 2016-11-18 6:56 ` Glenn Morris 2016-11-18 13:01 ` Stefan Monnier 2016-11-18 17:18 ` John Wiegley 2016-11-18 17:31 ` Eli Zaretskii 2016-11-18 18:44 ` John Wiegley 2016-11-19 16:10 ` Philipp Stephani 2017-05-30 2:24 ` Noam Postavsky
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).