emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@gmail.com>
To: Fabrice Popineau <fabrice.popineau@gmail.com>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Problem with org-indent-block
Date: Fri, 12 Sep 2014 14:39:24 +0200	[thread overview]
Message-ID: <CAFgFV9MSerRE6x4se+emVbrhKtDe=i_3dDKjdwkQxuW1PpQDDw@mail.gmail.com> (raw)
In-Reply-To: <877g19qnq5.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 1304 bytes --]

Thanks for your hint.
The problem was not in in org.el:org-indent-block but in
org.el:org-hide-block-toggle.
This function should toggle special-block blocks too, else it barfs on them.
In my setup, when an org file is restored by desktop.el, global visibility
is set, which triggers
calls to org-hide-block-all.

Fabrice

2014-09-12 9:53 GMT+02:00 Nicolas Goaziou <mail@nicolasgoaziou.fr>:

> 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
>

[-- Attachment #2: Type: text/html, Size: 1960 bytes --]

  reply	other threads:[~2014-09-12 12:39 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
2014-09-12 12:39   ` Fabrice Popineau [this message]
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='CAFgFV9MSerRE6x4se+emVbrhKtDe=i_3dDKjdwkQxuW1PpQDDw@mail.gmail.com' \
    --to=fabrice.popineau@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).