emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andrea Rossetti <andrea.rossetti@gmail.com>
To: emacs-orgmode@gnu.org
Subject: 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/)]
Date: Fri, 01 Aug 2014 00:21:47 +0200	[thread overview]
Message-ID: <84ppglb24k.fsf@gmail.com> (raw)

[-- 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/)


             reply	other threads:[~2014-07-31 22:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-31 22:21 Andrea Rossetti [this message]
2014-08-01  8:54 ` 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/)] 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=84ppglb24k.fsf@gmail.com \
    --to=andrea.rossetti@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).