all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Boruch Baum <boruch_baum@gmx.com>
Cc: Emacs-Devel List <emacs-devel@gnu.org>
Subject: Re: Async processes to be persistent even after exiting Emacs
Date: Fri, 23 Apr 2021 00:03:31 +0300	[thread overview]
Message-ID: <YIHkoyzghDz/RRbI@protected.localdomain> (raw)
In-Reply-To: <20210422200141.2hyv2crygvhac5zd@E15-2016.optimum.net>

* Boruch Baum <boruch_baum@gmx.com> [2021-04-22 23:16]:
> The standard built-in method that Emacs uses to spawn an asynchronous
> processes doesn't enable those processes to survive the killing of their
> process buffers, and certainly not to survive exiting emacs.

That is useful. I am launching software through Emacs and often those
programs should persist.

It would be good to have some prefix or similar command to make it
persist.

As a side note, not quite relate, but could be, some software I cannot
launch with M-! but it works with M-& -- example is rox and retext. It
is very unclear why is this happening, do you maybe know a reason?

For example this below does not work with `retext' editor neither M-!
retext works, but M-& retext does work.

(defun rcd-edit-with-external-editor ()
  (interactive)
  (let* ((buffer (current-buffer))
	 (text (buffer-substring-no-properties (point-min) (point-max)))
	 (mode major-mode)
	 (file (concat (or (getenv "TMPDIR") "/tmp/") "temp-file")))
    (string-to-file-force text file)
    (shell-command (format "retext %s" file))
    (erase-buffer)
    (insert (file-to-string file))
    (goto-char 0)))

If I use other GUI editor it does work.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

Sign an open letter in support of Richard M. Stallman
https://stallmansupport.org/
https://rms-support-letter.github.io/




      reply	other threads:[~2021-04-22 21:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-22 20:01 Async processes to be persistent even after exiting Emacs Boruch Baum
2021-04-22 21:03 ` Jean Louis [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=YIHkoyzghDz/RRbI@protected.localdomain \
    --to=bugs@gnu.support \
    --cc=boruch_baum@gmx.com \
    --cc=emacs-devel@gnu.org \
    /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.