From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniele Pizzolli Subject: idempotency and inconsistency for org-babel-remove-inline-result Date: Fri, 30 Jan 2015 17:04:32 +0100 Message-ID: <86fvasqmpb.fsf@me.localhost.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHE5K-00036O-IB for emacs-orgmode@gnu.org; Fri, 30 Jan 2015 11:06:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHE5D-0004No-GF for emacs-orgmode@gnu.org; Fri, 30 Jan 2015 11:06:18 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:52531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHE5D-0004NK-AL for emacs-orgmode@gnu.org; Fri, 30 Jan 2015 11:06:11 -0500 Received: from mfilter38-d.gandi.net (mfilter38-d.gandi.net [217.70.178.169]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 9A9F11720A9 for ; Fri, 30 Jan 2015 17:06:09 +0100 (CET) Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter38-d.gandi.net (mfilter38-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id awgWh3UDl5Wb for ; Fri, 30 Jan 2015 17:04:33 +0100 (CET) Received: from localhost.invalid (unknown [193.206.22.97]) (Authenticated sender: me@toel.it) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id CB4471720DD for ; Fri, 30 Jan 2015 17:04:33 +0100 (CET) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode mailing list Hello, I really like the new inline results. Thanks for this new cool feature. I have only a few problems with it. Is there a way to evaluate a buffer an then remove inline results or better, to get the very same buffer after: (org-babel-execute-buffer) (org-babel-map-inline-src-blocks nil (org-babel-remove-inline-result)) Every call add an extra white space: Original: 1 + 4 in R is src_R[:exports results]{1+4}. After (org-babel-execute-buffer): 1 + 4 in R is src_R[:exports results]{1+4} {{{results(5)}}}. After: (org-babel-map-inline-src-blocks nil (org-babel-remove-inline-result)) 1 + 4 in R is src_R[:exports results]{1+4} . After (org-babel-execute-buffer): 1 + 4 in R is src_R[:exports results]{1+4} {{{results(5)}}} . And so on... I see that the function docs says: Extraneous leading whitespace is trimmed. Is this the intended result? Also, is there anything that prevents to make org-babel-remove-inline-result interactive as is org-babel-remove-result? Wwhy not have also org-babel-remove-inline-result-one-or-many and org-babel-remove-all-result-one-or-many to remove all the babel result with one function call? I do no not know lisp a lot, but I can try to submit a patch if you agree that will be useful. Thanks in advance, Daniele