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 )