emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Fabrice Popineau <fabrice.popineau@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Problem with org-indent-block
Date: Fri, 12 Sep 2014 09:53:06 +0200	[thread overview]
Message-ID: <877g19qnq5.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAFgFV9Ng4XrDbRsYsD0Tv2=oc9zUowiuc6MTpDya9Bmxrzz--g@mail.gmail.com> (Fabrice Popineau's message of "Fri, 12 Sep 2014 08:50:55 +0200")

Hello,

Fabrice Popineau <fabrice.popineau@gmail.com> 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

  reply	other threads:[~2014-09-12  7:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-12  6:50 Problem with org-indent-block Fabrice Popineau
2014-09-12  7:53 ` Nicolas Goaziou [this message]
2014-09-12 12:39   ` Fabrice Popineau
2014-09-12 18:59     ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877g19qnq5.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=fabrice.popineau@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).