From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org-babel-execute-buffer "No surrounding element" error Date: Thu, 31 Aug 2017 09:03:29 +0200 Message-ID: <871snsp6bi.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnJVq-0006R5-3r for emacs-orgmode@gnu.org; Thu, 31 Aug 2017 03:03:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnJVl-0007AC-8r for emacs-orgmode@gnu.org; Thu, 31 Aug 2017 03:03:38 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:40271) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dnJVl-00079u-3X for emacs-orgmode@gnu.org; Thu, 31 Aug 2017 03:03:33 -0400 In-Reply-To: (Wei Tang's message of "Thu, 31 Aug 2017 03:02:44 +0800") 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: Wei Tang Cc: emacs-orgmode@gnu.org Hello, Wei Tang writes: > I was trying to use org-babel-execute-buffer to update all org-babel > code block results for a org document. It works fine when the code block > is visible, but when it's hidden, I got the "user-error: No surrounding > element" error and nothing was executed. I cannot reproduce it. > Adding `(outline-show-all)` fixed this issue for me. Does this look like > a good solution? I don't know. It sounds odd. Could you show an ECM? Regards, -- Nicolas Goaziou