emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Bug: Tabbing error with asterisks [7.8.03]


From: Bastien
Subject: Re: [O] Bug: Tabbing error with asterisks [7.8.03]
Date: Mon, 26 Mar 2012 19:51:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

Hi Ken,

Ken Williams <address@hidden> writes:

> I have the following document:
>
> ----------------------
> #+TITLE: Test Doc
> #+AUTHOR: Ken Williams
>
> * Top header
>
> Top paragraph.
>
> #+begin_src R
> library(testthat)
>
> test_that("failures", {
>   expect_that(6, equals(9))
>   expect_that(6, equals(9))
>   expect_that(6, equals(9))
>   expect_that(6, equals(9))
>   expect_that(6, equals(9))
> })
> #+end_src
>
> #+results:
> #+begin_example
>  Error: Test failure in 'failures'
> * 6 not equal to 9
> Mean relative difference: 0.3333333
> * 6 not equal to 9
> Mean relative difference: 0.3333333
> * 6 not equal to 9
> Mean relative difference: 0.3333333
> * 6 not equal to 9
> Mean relative difference: 0.3333333
> * 6 not equal to 9
> Mean relative difference: 0.3333333
> #+end_example
> ----------------------
>
>
> When I put the point on the top headline and hit <tab>, it doesn't fold the
> complete section, it only folds up to the line "* 6 not equal to 9".  So
> something thinks that line is a header, even though it's within a
> "#+begin_example" section.

Hit C-c ' twice and you'll have commas inserted before the lines
starting with an asterisk.

See this footnote in the "Literal example" section of the manual:

,----
|    (4) Upon exit, lines starting with `*' or `#' will get a comma
| prepended, to keep them from being interpreted by Org as outline nodes
| or special comments.  These commas will be stripped for editing with
| `C-c '', and also for export.
`----

HTH,

-- 
 Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]