From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Keyboard macros and export dispatcher Date: Thu, 9 Jan 2020 12:42:36 -0600 Message-ID: References: <8736cojxqc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43981) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipclh-0004yA-0X for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 13:42:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipclf-0000l6-Kv for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 13:42:52 -0500 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]:37307) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipclf-0000hf-GE for emacs-orgmode@gnu.org; Thu, 09 Jan 2020 13:42:51 -0500 Received: by mail-qk1-x732.google.com with SMTP id 21so6984438qky.4 for ; Thu, 09 Jan 2020 10:42:51 -0800 (PST) In-Reply-To: <8736cojxqc.fsf@gmail.com> 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Jack Kamm Cc: emacs-orgmode On Thu, Jan 9, 2020 at 12:24 PM Jack Kamm wrote: > > Hello, > > I have an org-mode file, and am exporting one of its subtrees to a > beamer presentation. > > I would like to use a keyboard macro for this, because re-exporting the > presentation requires a lot of keypresses: > - Jump to the appropriate heading > - Start the dispatcher > - Toggle subtree export (C-s) > - Finally, export > > So, I defined a keyboard macro to do all this, but when I try to run it, > Emacs simply hangs, and I need to quit with C-g. I think this might be > the fault of the export dispatcher, but am not sure. Funny timing. I have used Org for maybe 10 years and just found about about macros yesterday! I have a spreadsheet with reference information per work group, coded up some R code to spit out a tree-per-group, and then wanted to export these 51 documents to their own PDFs. I've done this before, but got sick of `C-e C-s l p` for every one so I looked into it. I had no problem doing the following: - C-x ( - C-e C-s l p C-n - C-x ) - go to first of my results headlines - C-u 51 C-x e It sounds like you already tried this... are you using `C-x (` or are you defining the macros via elisp? If the latter, can we see the code? Anything in the Messages buffer? I had an error yesterday and realized that some of the group names were "Foo/Bar" and since my code titles the tree's :export_file_name property according to the group name, emacs was interpreting the `/` in the filename as a directory that didn't exist. My suggestion: - give us a stripped down, beamer file so we can reproduce (maybe with one non-exporting headline and an analog of your target subtree to export) - tell us what you run manually to accomplish your goal - give us the exact details of your macro setup John > > Anyone have ideas on what's going wrong here, or on alternative > approaches to achieve what I want? > > Thanks, > Jack >