From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Problem with org-indent-block Date: Fri, 12 Sep 2014 09:53:06 +0200 Message-ID: <877g19qnq5.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSLek-0006w1-7S for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 03:52:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSLea-0005Hl-3E for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 03:52:34 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:47515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSLeZ-0005HZ-Ti for emacs-orgmode@gnu.org; Fri, 12 Sep 2014 03:52:24 -0400 In-Reply-To: (Fabrice Popineau's message of "Fri, 12 Sep 2014 08:50:55 +0200") 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: Fabrice Popineau Cc: "emacs-orgmode@gnu.org" Hello, Fabrice Popineau writes: > Recently, I started to get problems with org-indent-block returning errors > "Not at a block". > Unfortunately, this is happening while restarting emacs, and I have no idea > about how to debug it. AFAICT, nothing in the code base calls `org-indent-block' automatically. Out of curiosity, is there something in your setup doing this? > It would be nice if somehow this function could give the file and the point > in the file where the error is happening. > Any idea on how to achieve this? It is an interactive function, so the user is expected to know where he called it. Anyway, you could modify function in "org.el" to use: (user-error "Not at a block in %s, line %s" (buffer-name) (org-current-line)) It will probably help understanding the issue. Regards, -- Nicolas Goaziou