From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Feature request: Expose system `exec` as a built-in elisp function
Date: Thu, 14 Aug 2014 00:08:37 -0600 [thread overview]
Message-ID: <lshjp5$20n$1@ger.gmane.org> (raw)
In-Reply-To: <CAHXt_SX6=wDE+OuX77pyp28V-=_LohExa_pKNKe3Ut1egzykkw@mail.gmail.com>
On 8/13/14 3:42 PM, Andrew Pennebaker wrote:
> Eh, what if you don't want the second emacs call to use the same emacs
> configuration, etc. etc. as the parent emacs process?
Pass -Q on the command line. Here's what I use to fork a new instance via `M-x
run-emacs RET':
(defun run-emacs (command)
"Run the Emacs COMMAND in the background via `shell-command'."
(interactive
(let ((program (expand-file-name invocation-name invocation-directory)))
(list (read-string "Emacs command: "
(cons (concat program
" "
(if (cdr command-line-args)
(mapconcat 'shell-quote-argument
(cdr command-line-args)
" ")
"-Q")
" &")
(1+ (length program)))))))
(shell-command command))
> Feel free to ask the cask project for more details:
>
> https://github.com/cask/cask
>
>
>
> On Wed, Aug 13, 2014 at 3:36 PM, Barry Margolin <barmar@alum.mit.edu> wrote:
>
>> In article <mailman.7068.1407955728.1147.help-gnu-emacs@gnu.org>,
>> Andrew Pennebaker <andrew.pennebaker@gmail.com> wrote:
>>
>>> One example of the worthiness of exec is cask, an Emacs package manager
>>> that sometimes wants to fork out to an emacs instance, for editing text
>>> files.
>>
>> I'm not familiar with cask, but usually if you run something within
>> Emacs, and it wants you to edit something, you set EDITOR=emacsclient so
>> that it goes back to the original Emacs instance. You don't need to
>> start a new Emacs instance.
>>
>> And that still doesn't explain why you would want to kill the original
>> Emacs instance when running cask.
>>
>> --
>> Barry Margolin, barmar@alum.mit.edu
>> Arlington, MA
>> *** PLEASE post questions in newsgroups, not directly to me ***
--
Kevin Rodgers
Denver, Colorado, USA
next prev parent reply other threads:[~2014-08-14 6:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.7022.1407855404.1147.help-gnu-emacs@gnu.org>
2014-08-13 15:29 ` Feature request: Expose system `exec` as a built-in elisp function Barry Margolin
2014-08-13 17:52 ` Andrew Pennebaker
[not found] ` <mailman.7066.1407952350.1147.help-gnu-emacs@gnu.org>
2014-08-13 18:45 ` Emanuel Berg
2014-08-13 18:48 ` Andrew Pennebaker
[not found] ` <mailman.7068.1407955728.1147.help-gnu-emacs@gnu.org>
2014-08-13 19:22 ` Emanuel Berg
2014-08-13 20:36 ` Barry Margolin
2014-08-13 21:42 ` Andrew Pennebaker
2014-08-14 6:08 ` Kevin Rodgers [this message]
[not found] ` <mailman.7080.1407966184.1147.help-gnu-emacs@gnu.org>
2014-08-13 22:16 ` Emanuel Berg
2014-08-13 22:50 ` Andrew Pennebaker
2014-08-14 9:23 ` Barry Margolin
2014-08-14 21:15 ` Emanuel Berg
2014-08-13 13:44 Andrew Pennebaker
2014-08-13 15:57 ` Stefan Monnier
2014-08-13 18:27 ` Glenn Morris
-- strict thread matches above, loose matches on Subject: below --
2014-08-12 14:56 Andrew Pennebaker
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='lshjp5$20n$1@ger.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=help-gnu-emacs@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.