From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [BUG] Inconsistency in src block hiding Date: Sun, 20 Nov 2011 08:53:53 -0700 Message-ID: <87fwhiwwr0.fsf@gmail.com> References: <8739djqfkv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSApb-00012I-Q9 for emacs-orgmode@gnu.org; Sun, 20 Nov 2011 12:05:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSApX-0001fS-6j for emacs-orgmode@gnu.org; Sun, 20 Nov 2011 12:05:27 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:59410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSApW-0001fG-V6 for emacs-orgmode@gnu.org; Sun, 20 Nov 2011 12:05:23 -0500 Received: by iaek3 with SMTP id k3so8759833iae.0 for ; Sun, 20 Nov 2011 09:05:22 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Org Mode List Nicolas Goaziou 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 > `org-babel-hide-result-toggle-maybe'. But, should it be the case? > > In particular, if I look at `org-babel-data-names', upon which > `org-babel-result-regexp' is built, I'm not sure that "name" keyword > should define a result line. As such, I would guess that it should be > removed from that list. > Hi Nicolas, "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 The only reason that "tblname" and "results" are included in the list are because "tblname" is used by other parts of Org-mode, and "results" was retained because it was felt that a "name" line without an actual name (e.g., as the results of an un-named code block) would look funny. I don't view the "results style" hiding as inconsistent, however if others do, it wouldn't be difficult to insert a check for a special case in the code that hides results to inhibit the behavior if the data following "name" happens to be a code block. Best -- Eric > > > Regards, -- Eric Schulte http://cs.unm.edu/~eschulte/