--8<---------------cut here---------------start------------->8--- #+TITLE: ECM Tangle failure
* Problem If you try to tangle this file, you'll get: : condition-case: Before first headline at position XX in buffer XXX.org Then, you won't even be able to save it! Workaround is to: #+begin_src emacs-lisp (setq before-save-hook nil) #+end_src The culprit line is =mode: outline-minor= which I use(d) in some prog-mode files. But why??? * Makefile :PROPERTIES: :tangle: Makefile :END: #+begin_src makefile # Makefile # Where HTML files go locally SRC_HTML_DIR=public_html/ # Where HTML files go remotely DEST_HTML_DIR=u...@host.com:~/public_html/ default: @echo -e "$(BOLD)Usage:$(NORMAL)" @echo "To create the HTML files, type \`make publish'." @echo "To update the Web site, type \`make updateweb'." @echo "To do both, type \`make all'." # This is for the sake of Emacs. # Local Variables: # mode: outline-minor # ispell-local-dictionary: "en_US" # End: ## Makefile ends here #+end_src * Other Things... # This is for the sake of Emacs. # Local Variables: # compile-command: "make publish" # End: # XXX.org ends here --8<---------------cut here---------------end--------------->8--- Best regards, Seb -- Sebastien Vauban