2012-01-23 38 views
1

當我評估代碼塊(請參閱下面的示例)時,它可以工作。然而;當我試圖導出爲HTML,我得到了一個錯誤: 錯誤類型參數:stringp,無orgmode emacs無法導出爲html

如果我參加了Ç從 - #+ begin_src C - ,這將沒有任何出口問題。我如何解決這個問題?

感謝

#+begin_src C :includes <stdio.h> :exports both 
int main(void){ 
printf("hello world"); 
return 0; 
} 
#+end_src 

#+results: 
: hello world 
+0

我沒有這個問題。嘗試升級您的組織機構版本。 – kindahero

+0

Emacs 23附帶的組織模式非常古老。你的'org-version'可能會有所幫助。 – pmr

+0

你安裝了什麼版本的組織模式? –

回答

0

中的.emacs

(let ((file (file-name-nondirectory buffer-file-name))) 

更改爲

(let ((file (or buffer-file-name "DEFAULT-NAME"))) 

這裏是鏈接更多的INF,但這個想法是更換緩衝的所有實例-文件名。

org-mode can't edit C source code