From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: where to place caption so babel results include caption? Date: Sat, 09 Nov 2019 23:28:23 +0100 Message-ID: <87ftiw1y7s.fsf@gmail.com> References: <871ruls518.fsf@gmail.com> <5A52F11B-774A-46A3-B507-70883FB181A8@ucsd.edu> <87imnx9cai.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34293) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTZDY-00014D-QJ for emacs-orgmode@gnu.org; Sat, 09 Nov 2019 17:28:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTZDX-0008RJ-Sy for emacs-orgmode@gnu.org; Sat, 09 Nov 2019 17:28:28 -0500 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]:44719) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iTZDX-0008QO-K4 for emacs-orgmode@gnu.org; Sat, 09 Nov 2019 17:28:27 -0500 Received: by mail-lj1-x22c.google.com with SMTP id g3so9843498ljl.11 for ; Sat, 09 Nov 2019 14:28:26 -0800 (PST) In-reply-to: <87imnx9cai.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.org@gnu.org Sender: "Emacs-orgmode" To: "Berry, Charles" Cc: emacs-orgmode On 2019-11-06 at 17:53 +01, Ken Mankoff wrote... > On 2019-11-06 at 17:05 +01, Berry, Charles wrote... >> M-: (org-babel-map-src-blocks nil (org-babel-insert-result "" >> '("replace"))) RET An improvement: Don't insert #+results: if they don't already exist: (org-babel-map-src-blocks nil (if (org-babel-where-is-src-block-result) (org-babel-insert-result "" '("replace")))) -k.