[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#44665: 28.0.50; enhancement proposal: to have term run command with
bug#44665: 28.0.50; enhancement proposal: to have term run command with arguments
Mon, 16 Nov 2020 14:12:28 +0300
Mutt/2.0 (3d08634) (2020-11-07)
* Michael Albinus <email@example.com> [2020-11-16 12:28]:
> Jean Louis <firstname.lastname@example.org> writes:
> > Currently I am using many times both M-x ansi-term or term and also
> > dynamic module M-x vterm and I have this function for vterm:
> > (defun run-with-vterm (command)
> > "Runs command with vterm"
> > (let ((vterm-kill-buffer-on-exit t)
> > (buffer (format "Running within vterm: %s" command))
> > (vterm-shell command))
> > (vterm buffer)))
> > That helps me to quickly open maildirs belonging to specific users for
> > review. I can also invoke full string as command to `vterm-shell`.
> > I am proposing that term and ansi-term also get the possibility to
> > easier invoke full command.
> eshell comes to mind. Internally, it uses term.el for interactive
> commands like mutt. You can call simply it like
> (eshell-command "mutt -s blabla anyone@anywhere") or whatever arguments
> you prefer.
Aha, yes, that way works well. Thank you. Closing.
There are 43 messages yet in my incoming mailbox.