From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Andrews Subject: Bug: sas comments in source blocks confused with headings [8.2.10 (8.2.10-35-g19a7d6-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20150406/)] Date: Sun, 12 Apr 2015 22:17:51 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c16f54c15715051391b962 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhTwz-00011Z-Mn for emacs-orgmode@gnu.org; Sun, 12 Apr 2015 22:18:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhTwx-0004WG-W6 for emacs-orgmode@gnu.org; Sun, 12 Apr 2015 22:18:13 -0400 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:36785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhTwx-0004WA-P1 for emacs-orgmode@gnu.org; Sun, 12 Apr 2015 22:18:11 -0400 Received: by qku63 with SMTP id 63so154635746qku.3 for ; Sun, 12 Apr 2015 19:18:11 -0700 (PDT) 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: Emacs orgmode --001a11c16f54c15715051391b962 Content-Type: text/plain; charset=UTF-8 I included SAS code for reference in an org file and noticed that a SAS comment breaks the folding feature. The buffer is folded only until the comment. The snippet below placed in an org-buffer should clarify what I mean. <---- ** SAS #+BEGIN_SRC sas * a full line comment in SAS code; proc mixed method=reml cl; class D M G; model y = M G M*G; random D D*M D*G/cl alpha=0.05; /* can't do 3-way */ lsmeans M G M*G/cl adjust=tukey; /* only fixed effects */ run; #+END_SRC ** R Here is how to fit the mixed effect model in R. ----> If you press tab on the SAS heading, it doesn't fold all the way to the R heading, but only to the comment line. Perhaps this is fixed in org 8.3? --------------------------------------------------------------- Emacs : GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.7) of 2015-01-17 on bisson Package: Org-mode version 8.2.10 (8.2.10-35-g19a7d6-elpaplus @ /home/k/.emacs.d/elpa/org-plus-contrib-20150406/) current state: ============== (setq org-drill-optimal-factor-matrix '((1 (2.6 . 4.14))) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-adapt-indentation nil org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-latex-format-inlinetask-function 'ignore org-confirm-shell-link-function 'yes-or-no-p org-image-actual-width nil org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-agenda-inhibit-startup t org-pretty-entities 1 org-latex-format-headline-function 'org-latex-format-headline-default-function org-default-notes-file "~/org/notes.org" org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-capture-mode-hook '(make-frame) org-from-is-user-regexp nil org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-font-lock-set-keywords-hook '(org-drill-add-cloze-fontification) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-startup-with-latex-preview t org-latex-packages-alist '(("" "multirow" t) ("" "fontenc" t) ("" "siunitx" t) ("" "xfrac" t) ("" "mathtools" t) ("" "physics" t) ("" "color" t)) org-babel-tangle-lang-exts '(("maxima" . "max") ("julia" . "jl") ("tcl" . "tcl") ("python" . "py") ("perl" . "pl") ("latex" . "tex") ("emacs-lisp" . "el")) org-confirm-elisp-link-function 'yes-or-no-p org-startup-with-inline-images t org-metadown-hook '(org-babel-pop-to-session-maybe) org-babel-after-execute-hook '(org-display-inline-images) org-html-format-headline-function 'ignore org-babel-load-languages '((emacs-lisp . t) (calc . t) (sh . t) (latex . t) (R . t) (perl . t) (octave . t) (python . t) (scheme . t) (makefile . t) (tcl . t) (julia . t) (maxima . t)) org-html-format-inlinetask-function 'ignore org-fontify-whole-heading-line t org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-confirm-babel-evaluate nil org-src-fontify-natively t ) --001a11c16f54c15715051391b962 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I included SAS code for reference in an org file and notic= ed that a SAS
comment breaks the folding feature. The buffer is folded o= nly until the
comment. The snippet below placed in an org-buffer should = clarify what I
mean.

<----

** SAS

#+BEGIN_SRC sa= s
* a full line comment in SAS code;
proc mixed method=3Dreml cl; class D M G;
model y =3D M G M*G;
random D D*M D*G/cl alpha=3D0.05;= =C2=A0 /* can't do 3-way=C2=A0=C2=A0=C2=A0=C2=A0 */
lsmeans M G M*G/= cl adjust=3Dtukey; /* only fixed effects */
run;
#+END_SRC

** = R

Here is how to fit the mixed effect model in R.

---->
If you press tab on the SAS heading, it doesn't fold all the way t= o the
R heading, but only to the comment line. Perhaps this is fixed in = org
8.3?

--------------------------------------------------------= -------


Emacs=C2=A0 : GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu= , GTK+ Version 3.14.7)
=C2=A0of 2015-01-17 on bisson
Package: Org-mod= e version 8.2.10 (8.2.10-35-g19a7d6-elpaplus @ /home/k/.emacs.d/elpa/org-pl= us-contrib-20150406/)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D
(setq
=C2=A0org-drill-optimal-factor-matrix '((1 = (2.6 . 4.14)))
=C2=A0org-tab-first-hook '(org-hide-block-toggle-mayb= e org-src-native-tab-command-maybe
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 org-babel-hide-result-toggle-maybe org-babel-header-arg-exp= and)
=C2=A0org-adapt-indentation nil
=C2=A0org-speed-command-hook = 9;(org-speed-command-default-hook org-babel-speed-command-hook)
=C2=A0or= g-occur-hook '(org-first-headline-recenter)
=C2=A0org-metaup-hook &#= 39;(org-babel-load-in-session-maybe)
=C2=A0org-html-format-drawer-functi= on '(lambda (name contents) contents)
=C2=A0org-latex-format-inlinet= ask-function 'ignore
=C2=A0org-confirm-shell-link-function 'yes-= or-no-p
=C2=A0org-image-actual-width nil
=C2=A0org-ascii-format-inlin= etask-function 'org-ascii-format-inlinetask-default
=C2=A0org-agenda= -inhibit-startup t
=C2=A0org-pretty-entities 1
=C2=A0org-latex-format= -headline-function 'org-latex-format-headline-default-function
=C2= =A0org-default-notes-file "~/org/notes.or= g"
=C2=A0org-after-todo-state-change-hook '(org-clock-out-i= f-current)
=C2=A0org-latex-format-drawer-function '(lambda (name con= tents) contents)
=C2=A0org-capture-mode-hook '(make-frame)
=C2=A0= org-from-is-user-regexp nil
=C2=A0org-src-mode-hook '(org-src-babel-= configure-edit-buffer org-src-mode-configure-edit-buffer)
=C2=A0org-agen= da-before-write-hook '(org-agenda-add-entry-text)
=C2=A0org-babel-pr= e-tangle-hook '(save-buffer)
=C2=A0org-font-lock-set-keywords-hook &= #39;(org-drill-add-cloze-fontification)
=C2=A0org-mode-hook '(#[nil = "\300\301\302\303\304$\207"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= [org-add-hook change-major-mode-hook org-show-block-all append local] 5]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 #[nil "\300\301\302\303\304$\207"
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [org-add-hook change-major-mode-hook org-bab= el-show-result-all append local] 5]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-babel-resu= lt-hide-spec org-babel-hide-all-hashes)
=C2=A0org-ascii-format-drawer-fu= nction '(lambda (name contents width) contents)
=C2=A0org-ctrl-c-ctr= l-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe)
= =C2=A0org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-= drawers
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-cycle-hide-inline-tasks org-cyc= le-show-empty-lines
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-optimize-window-aft= er-visibility-change)
=C2=A0org-startup-with-latex-preview t
=C2=A0or= g-latex-packages-alist '(("" "multirow" t) ("&= quot; "fontenc" t) ("" "siunitx" t) ("&q= uot; "xfrac" t)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("" "mathtools&qu= ot; t) ("" "physics" t) ("" "color"= t))
=C2=A0org-babel-tangle-lang-exts '(("maxima" . "= max") ("julia" . "jl") ("tcl" . "tc= l") ("python" . "py")
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= ("perl" . "pl") ("latex" . "tex") = ("emacs-lisp" . "el"))
=C2=A0org-confirm-elisp-link-= function 'yes-or-no-p
=C2=A0org-startup-with-inline-images t
=C2= =A0org-metadown-hook '(org-babel-pop-to-session-maybe)
=C2=A0org-bab= el-after-execute-hook '(org-display-inline-images)
=C2=A0org-html-fo= rmat-headline-function 'ignore
=C2=A0org-babel-load-languages '(= (emacs-lisp . t) (calc . t) (sh . t) (latex . t) (R . t) (perl . t)
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 (octave . t) (python . t) (scheme . t) (makefile . t) (tcl . t)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 (julia . t) (maxima . t))
=C2=A0org-html-format-inlineta= sk-function 'ignore
=C2=A0org-fontify-whole-heading-line t
=C2=A0= org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
=C2=A0org-= confirm-babel-evaluate nil
=C2=A0org-src-fontify-natively t
=C2=A0)
--001a11c16f54c15715051391b962--