emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: org src block folds partially [8.2.6 (8.2.6-67-g9e09b2-elpa @ c:/Users/andrea/AppData/Roaming/.emacs.d/elpa/org-20140602/)]
@ 2014-07-31 22:21 Andrea Rossetti
  2014-08-01  8:54 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Andrea Rossetti @ 2014-07-31 22:21 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi guys, I think I found a problem in folding a BEGIN_SRC block.
When I:

  - create a "BEGIN_SRC org" block (let's call it "the external
    BEGIN_SRC")
  - hit C-c ' to edit its contents
  - create two consecutive, non-nested "BEGIN_SRC org" blocks
    (let's call them "the internal BEGIN_SRCs")
  - hit C-c ' to return back to the main org buffer
  - hit TAB on the external BEGIN_SRC to fold the whole block

then the folding happens only for the first internal BEGIN_SRC block.
Tentative guess: I suppose "#+END_SRC" is used as a regexp by the fold
procedure, while something like "[^,]#+END_SRC" could be more appropriate.

  Can anyone please confirm if the described issue is reproducible?
(if your answer is "yes", but you think it's a very minor problem:
I agree with you, it's just better if we know it :)

  Thanks for your attention, kindest regards.

  Andrea


PS: a test case file is attached here:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ecm_org_src_block_folds_partially.org --]
[-- Type: text/x-org, Size: 114 bytes --]

#+BEGIN_SRC org
  ,#+BEGIN_SRC org
    block1
  ,#+END_SRC

  ,#+BEGIN_SRC org
    block2
  ,#+END_SRC

#+END_SRC

[-- Attachment #3: Type: text/plain, Size: 195 bytes --]


Emacs  : GNU Emacs 24.3.1 (i386-mingw-nt6.1.7600)
 of 2013-03-17 on MARVIN
Package: Org-mode version 8.2.6 (8.2.6-67-g9e09b2-elpa @ c:/Users/andrea/AppData/Roaming/.emacs.d/elpa/org-20140602/)


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

* Re: Bug: org src block folds partially [8.2.6 (8.2.6-67-g9e09b2-elpa @ c:/Users/andrea/AppData/Roaming/.emacs.d/elpa/org-20140602/)]
  2014-07-31 22:21 Bug: org src block folds partially [8.2.6 (8.2.6-67-g9e09b2-elpa @ c:/Users/andrea/AppData/Roaming/.emacs.d/elpa/org-20140602/)] Andrea Rossetti
@ 2014-08-01  8:54 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2014-08-01  8:54 UTC (permalink / raw)
  To: Andrea Rossetti; +Cc: emacs-orgmode

Hello,

Andrea Rossetti <andrea.rossetti@gmail.com> writes:

> When I:
>
>   - create a "BEGIN_SRC org" block (let's call it "the external
>     BEGIN_SRC")
>   - hit C-c ' to edit its contents
>   - create two consecutive, non-nested "BEGIN_SRC org" blocks
>     (let's call them "the internal BEGIN_SRCs")
>   - hit C-c ' to return back to the main org buffer
>   - hit TAB on the external BEGIN_SRC to fold the whole block
>
> then the folding happens only for the first internal BEGIN_SRC block.
> Tentative guess: I suppose "#+END_SRC" is used as a regexp by the fold
> procedure, while something like "[^,]#+END_SRC" could be more
> appropriate.

This should be fixed (along with other issues in the same function).
Thank you for reporting it.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2014-08-01  8:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-31 22:21 Bug: org src block folds partially [8.2.6 (8.2.6-67-g9e09b2-elpa @ c:/Users/andrea/AppData/Roaming/.emacs.d/elpa/org-20140602/)] Andrea Rossetti
2014-08-01  8:54 ` Nicolas Goaziou

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