Re: [O] [BUG] Inconsistency in src block hiding

2012-01-28 Thread Nicolas Goaziou
Hello, Eric Schulte eric.schu...@gmx.com writes: To my mind a better path moving forward would be to change the behavior of the :RESULTS: drawer so that it is exported but *not* to change the default drawer export behavior. This way with a :wrap header argument the code block results could

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-24 Thread Andreas Leha
Eric Schulte eric.schu...@gmx.com writes: [...] To my mind a better path moving forward would be to change the behavior of the :RESULTS: drawer so that it is exported but *not* to change the default drawer export behavior. This way with a :wrap header argument the code block results could

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-24 Thread Nicolas Goaziou
Hello, Eric Schulte eric.schu...@gmx.com writes: Nicolas Goaziou n.goaz...@gmail.com writes: Changing the default drawer export behavior from don't export to do export would be surprising Probably at first, but not for too long. would break many existing work flows Not at all, since it's

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-24 Thread Nick Dokos
Bernt Hansen be...@norang.ca wrote: Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Bernt Hansen be...@norang.ca writes: I tried :results wrap but that didn't work for me. If I add RESULTS to my list of drawers then I can hide the block with TAB but I can't export my diagrams

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-24 Thread Bernt Hansen
Nick Dokos nicholas.do...@hp.com writes: Bernt Hansen be...@norang.ca wrote: Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Bernt Hansen be...@norang.ca writes: I tried :results wrap but that didn't work for me. If I add RESULTS to my list of drawers then I can hide the

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-23 Thread Leo Alekseyev
statement above.  The tag-line to the Drawers section in the manual is Tucking stuff away which I think is often how drawers are used. Changing the default drawer export behavior from don't export to do export would be surprising, would break many existing work flows, and would likely make

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-23 Thread Jambunathan K
Leo Alekseyev dnqu...@gmail.com writes: Tucking stuff away can mean different things to different users. Personally, I have treated them purely as an organizational device for supplementary information (I have :DETAILS: drawers all over my org files). (Out of Context) Drawer contents =

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-19 Thread Martyn Jago
Hi Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Eric Schulte eric.schu...@gmx.com writes: Well maybe we should roll back this change. Please don't. _That_ would be a regression. These changes /have/ caused a software regression, and should be reverted immediately, since: - they

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-19 Thread Rick Frankel
On 19.01.2012 07:10, Martyn Jago wrote: Hi Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Eric Schulte eric.schu...@gmx.com writes: Well maybe we should roll back this change. Please don't. _That_ would be a regression. These changes /have/ caused a software regression, and

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-19 Thread Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Eric Schulte eric.schu...@gmx.com writes: Well maybe we should roll back this change. Please don't. _That_ would be a regression. I'll wait to see if Nicolas has a solution which is both functional and conforms to the Org-mode wide

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-19 Thread Eric Schulte
Martyn Jago martyn.j...@btinternet.com writes: Hi Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Eric Schulte eric.schu...@gmx.com writes: Well maybe we should roll back this change. Please don't. _That_ would be a regression. These changes /have/ caused a software regression,

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-19 Thread Nicolas Goaziou
Hello, Martyn Jago martyn.j...@btinternet.com writes: These changes /have/ caused a software regression, and should be reverted immediately, since: - they change current expected and implemented behavior to the cost of users expectations and current use, with no prior discussion and

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-19 Thread Nicolas Goaziou
Hello, Eric Schulte eric.schu...@gmx.com writes: Thanks for taking the time to collect these changes into a patch, however I believe the changes you describe present /new/ behavior (e.g., new export semantics for drawers), rather than a bug repair. I'd rather say that its intent is to fix an

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-18 Thread Leo Alekseyev
Why can't you? Wouldn't it be related to drawers configuration (org-export-with-drawers for example)? Yes... but I don't think I can configure which drawers I get, and I don't want my LOGBOOK drawer with all my clock lines in my export. -Bernt Is there still a way to hide results output

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-18 Thread Rick Frankel
On 18.01.2012 05:45, Leo Alekseyev wrote: Why can't you? Wouldn't it be related to drawers configuration (org-export-with-drawers for example)? Yes... but I don't think I can configure which drawers I get, and I don't want my LOGBOOK drawer with all my clock lines in my export. -Bernt Is

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-18 Thread Eric Schulte
Rick Frankel r...@rickster.com writes: On 18.01.2012 05:45, Leo Alekseyev wrote: Why can't you? Wouldn't it be related to drawers configuration (org-export-with-drawers for example)? Yes... but I don't think I can configure which drawers I get, and I don't want my LOGBOOK drawer with all my

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-18 Thread Nicolas Goaziou
Hello, Eric Schulte eric.schu...@gmx.com writes: Well maybe we should roll back this change. Please don't. _That_ would be a regression. I'll wait to see if Nicolas has a solution which is both functional and conforms to the Org-mode wide syntax norms. The problem comes from the current

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-17 Thread Nicolas Goaziou
Hello, Bernt Hansen be...@norang.ca writes: I tried :results wrap but that didn't work for me. If I add RESULTS to my list of drawers then I can hide the block with TAB but I can't export my diagrams to HTML anymore which isn't very satisfying. Why can't you? Wouldn't it be related to

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-17 Thread Bernt Hansen
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Bernt Hansen be...@norang.ca writes: I tried :results wrap but that didn't work for me. If I add RESULTS to my list of drawers then I can hide the block with TAB but I can't export my diagrams to HTML anymore which isn't very satisfying.

Re: [O] [BUG] Inconsistency in src block hiding

2012-01-16 Thread Bernt Hansen
Eric Schulte eric.schu...@gmx.com writes: Bastien b...@altern.org writes: Eric Schulte schulte.e...@gmail.com writes: The attached patch entirely removes the #+name and #+results based hiding. Note that the existing wrap argument to the :results header argument will wrap results in a

Re: [O] [BUG] Inconsistency in src block hiding

2011-12-11 Thread Bastien
Eric Schulte schulte.e...@gmail.com writes: The attached patch entirely removes the #+name and #+results based hiding. Note that the existing wrap argument to the :results header argument will wrap results in a block which allows easy tab-based result hiding. As this is a relatively large

Re: [O] [BUG] Inconsistency in src block hiding

2011-12-11 Thread Nicolas Goaziou
Bastien b...@altern.org writes: Eric Schulte schulte.e...@gmail.com writes: The attached patch entirely removes the #+name and #+results based hiding. Note that the existing wrap argument to the :results header argument will wrap results in a block which allows easy tab-based result

Re: [O] [BUG] Inconsistency in src block hiding

2011-12-11 Thread Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes: Bastien b...@altern.org writes: Eric Schulte schulte.e...@gmail.com writes: The attached patch entirely removes the #+name and #+results based hiding. Note that the existing wrap argument to the :results header argument will wrap results in a

Re: [O] [BUG] Inconsistency in src block hiding

2011-12-11 Thread Eric Schulte
Bastien b...@altern.org writes: Eric Schulte schulte.e...@gmail.com writes: The attached patch entirely removes the #+name and #+results based hiding. Note that the existing wrap argument to the :results header argument will wrap results in a block which allows easy tab-based result

Re: [O] [BUG] Inconsistency in src block hiding

2011-12-11 Thread Bastien
Eric Schulte eric.schu...@gmx.com writes: I've received no more feedback on this patch. It should be safe as it adds no new code but simply removes some questionable code. I will apply this patch now. Seen - thanks! -- Bastien

Re: [O] [BUG] Inconsistency in src block hiding

2011-11-28 Thread Eric Schulte
Again, drawers are in-line with standard hiding methods. Though, their behaviour with regards to export needs to be changed (i.e. by default simply export contents of the drawer instead of ignoring it). I think we should drop any #+result: or #+name: hiding and take another route. It's not

Re: [O] [BUG] Inconsistency in src block hiding

2011-11-23 Thread Nicolas Goaziou
Eric Schulte schulte.e...@gmail.com writes: Consider the following cases: #+name: one-more #+header: :var k=2 #+begin_src emacs-lisp (1+ k) #+end_src #+header: :var k=2 #+name: one-more #+begin_src emacs-lisp (1+ k) #+end_src #+attr_html: :textarea t :height 10 :width 40 #+name:

Re: [O] [BUG] Inconsistency in src block hiding

2011-11-22 Thread Eric Schulte
If you have, from top to bottom, name, results header, nothing will fold. In all those cases, I think a consistent behaviour could be to hide the block, with any number of keywords above, and TAB pressed at any of them. Yes, I would agree, the hiding should be smart enough to find the

Re: [O] [BUG] Inconsistency in src block hiding

2011-11-22 Thread Nicolas Goaziou
Hello, Eric Schulte schulte.e...@gmail.com writes: Nicolas Goaziou n.goaz...@gmail.com writes: It is inconsistent when keywords stack on top of each other. If you have only a #+name: keyword, block with fold at the #+name: level. If you have both #+name: and, for example #+results below,

Re: [O] [BUG] Inconsistency in src block hiding

2011-11-22 Thread Eric Schulte
Consider the following cases: #+name: one-more #+header: :var k=2 #+begin_src emacs-lisp (1+ k) #+end_src #+header: :var k=2 #+name: one-more #+begin_src emacs-lisp (1+ k) #+end_src #+attr_html: :textarea t :height 10 :width 40 #+name: unique-name #+begin_example Edit me!

Re: [O] [BUG] Inconsistency in src block hiding

2011-11-21 Thread Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes: Eric Schulte schulte.e...@gmail.com writes: name is and should be an element of the `org-babel-data-names' list as it is the preferred way to name data in an Org-mode file, e.g., #+name: foo - 1 - 2 - 3 I agree. The only reason that tblname

[O] [BUG] Inconsistency in src block hiding

2011-11-20 Thread Nicolas Goaziou
Hello, In the following example (latest Org), with point at |, when TAB is pressed, block gets hidden at the name level. --8---cut here---start-8--- |#+name: test #+begin_src emacs-lisp test #+end_src --8---cut

Re: [O] [BUG] Inconsistency in src block hiding

2011-11-20 Thread Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, In the following example (latest Org), with point at |, when TAB is pressed, block gets hidden at the name level. |#+name: test #+begin_src emacs-lisp test #+end_src It is because `org-babel-result-regexp' is matched in

Re: [O] [BUG] Inconsistency in src block hiding

2011-11-20 Thread Nicolas Goaziou
Eric Schulte schulte.e...@gmail.com writes: name is and should be an element of the `org-babel-data-names' list as it is the preferred way to name data in an Org-mode file, e.g., #+name: foo - 1 - 2 - 3 I agree. The only reason that tblname and results are included in the list are