all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Error exporting empty results block
@ 2012-12-25  2:59 Michael Gauland
  2012-12-29 13:32 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Gauland @ 2012-12-25  2:59 UTC (permalink / raw)
  To: emacs-orgmode Org-Mode

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

org-escape-code-in-region produces an 'Invalid search bound (wrong side
of point)' error when exporting a block that produces an empty wrapped
block. For example:

  #+BEGIN_SRC emacs-lisp :wrap fundamental :exports both
  (setq x nil)
  #+END_SRC

I'm exporting an empty block because I want the side effect of executing
the block. I have a large number of other blocks that produce non-empty
results, and I'm using a global :wrap setting for those.

Any suggestions on solving this would be appreciated.

Kind Regards,
Mike Gauland



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 899 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error exporting empty results block
  2012-12-25  2:59 Error exporting empty results block Michael Gauland
@ 2012-12-29 13:32 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2012-12-29 13:32 UTC (permalink / raw)
  To: Michael Gauland, schulte eric; +Cc: emacs-orgmode Org-Mode

Hi Michael,

Michael Gauland <mikelygee@no8wireless.co.nz> writes:

> org-escape-code-in-region produces an 'Invalid search bound (wrong side
> of point)' error when exporting a block that produces an empty wrapped
> block. For example:
>
>   #+BEGIN_SRC emacs-lisp :wrap fundamental :exports both
>   (setq x nil)
>   #+END_SRC
>
> I'm exporting an empty block because I want the side effect of executing
> the block. I have a large number of other blocks that produce non-empty
> results, and I'm using a global :wrap setting for those.
>
> Any suggestions on solving this would be appreciated.

I confirm this bug.  I cc Eric so that he can have a look
(I did have a look but the fix is not straightforward and
I'm less familiar with this part of the code than Eric.)

Thanks for reporting this,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-29 13:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-25  2:59 Error exporting empty results block Michael Gauland
2012-12-29 13:32 ` Bastien

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.