From de63411264893ba877444e46439acf28f7ddcba7 Mon Sep 17 00:00:00 2001 From: Shaun Johnson Date: Wed, 9 Mar 2011 15:32:40 +0000 Subject: [PATCH 1/2] Babel: Stop tangling failing in an indirect buffer * ob-tangle.el (org-babel-tangle): Make it work in an indirect buffer. The problem was that the message generated after tangling included the file name of the current buffer which was nil in an indirect buffer. TINYCHANGE --- lisp/ob-tangle.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el index b4bd147de..5a81f7382 100644 --- a/lisp/ob-tangle.el +++ b/lisp/ob-tangle.el @@ -243,7 +243,8 @@ exported source code blocks by language." (org-babel-tangle-collect-blocks lang)) (message "tangled %d code block%s from %s" block-counter (if (= block-counter 1) "" "s") - (file-name-nondirectory (buffer-file-name (current-buffer)))) + (file-name-nondirectory + (buffer-file-name (or (buffer-base-buffer) (current-buffer))))) ;; run `org-babel-post-tangle-hook' in all tangled files (when org-babel-post-tangle-hook (mapc From 1997e19bd514d81b5989cd3c0bfae87da474d460 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Fri, 15 Apr 2011 10:16:52 -0600 Subject: [PATCH 2/2] org-src-lang-modes: added alias "C" to "c" * lisp/org-src.el (org-src-lang-modes): Added a language alias of "C" to "c". --- lisp/org-src.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-src.el b/lisp/org-src.el index 7d42e00f3..4ec457ca4 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -153,7 +153,7 @@ but which mess up the display of a snippet in Org exported files.") (defcustom org-src-lang-modes '(("ocaml" . tuareg) ("elisp" . emacs-lisp) ("ditaa" . artist) ("asymptote" . asy) ("dot" . fundamental) ("sqlite" . sql) - ("calc" . fundamental)) + ("calc" . fundamental) ("C" . c)) "Alist mapping languages to their major mode. The key is the language name, the value is the string that should be inserted as the name of the major mode. For many languages this is