emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Andrews <kyle.c.andrews@gmail.com>
To: Emacs orgmode <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <CAG3md+vWvn8CiE6y1yotJGwXJk2gazYNuQNjNo2eqH5t-Ewv2g@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4145 bytes --]

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


** 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 */

** 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


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 @

current state:
 org-drill-optimal-factor-matrix '((1 (2.6 . 4.14)))
 org-tab-first-hook '(org-hide-block-toggle-maybe
 org-adapt-indentation nil
 org-speed-command-hook '(org-speed-command-default-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-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-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-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
                  org-cycle-hide-inline-tasks org-cycle-show-empty-lines
 org-startup-with-latex-preview t
 org-latex-packages-alist '(("" "multirow" t) ("" "fontenc" t) (""
"siunitx" t) ("" "xfrac" t)
                            ("" "mathtools" t) ("" "physics" t) ("" "color"
 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

[-- Attachment #2: Type: text/html, Size: 5206 bytes --]

             reply	other threads:[~2015-04-13  2:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-13  2:17 Kyle Andrews [this message]
2015-04-13 12:59 ` 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/)] 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:

  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=CAG3md+vWvn8CiE6y1yotJGwXJk2gazYNuQNjNo2eqH5t-Ewv2g@mail.gmail.com \
    --to=kyle.c.andrews@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).