From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Macro that calls external program Date: Mon, 11 Mar 2019 07:46:52 +0000 Message-ID: <87pnqxsvir.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:54340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3Fst-0000Q8-5X for emacs-orgmode@gnu.org; Mon, 11 Mar 2019 04:02:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3FeD-0003n6-L1 for emacs-orgmode@gnu.org; Mon, 11 Mar 2019 03:46:58 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:36804) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h3FeD-0003lt-BM for emacs-orgmode@gnu.org; Mon, 11 Mar 2019 03:46:57 -0400 Received: by mail-wr1-x42d.google.com with SMTP id g18so470034wru.3 for ; Mon, 11 Mar 2019 00:46:55 -0700 (PDT) In-Reply-To: (Josh's message of "Sun, 10 Mar 2019 15:37:52 -0700 (PDT)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Josh Cc: emacs-orgmode@gnu.org On Sunday, 10 Mar 2019 at 15:37, Josh wrote: > Hi, > > I am new to emacs and orgmode. I spent the last couple days reading most > of the docs before diving in, but I didn't see anywhere how I could have a > macro that instead of replacing the macro with lisp code, calls an > external program instead. > > Something like: > > #+MACRO: func call /home/josh/mybinary $1 You could maybe do something along the lines of #+macro: func (eval (shell-command (concat "/home/josh/mybinary " "$1"))) (untested). -- Eric S Fraga via Emacs 27.0.50, Org release_9.2.2-249-g51444a