emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Async processes to be persistent even after exiting Emacs


From: Jean Louis
Subject: Re: Async processes to be persistent even after exiting Emacs
Date: Fri, 23 Apr 2021 00:03:31 +0300
User-agent: Mutt/2.0.6 (2021-03-06)

* 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 via email to

[Prev in Thread] Current Thread [Next in Thread]