From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: ECM tangle failure if block contains local var outline-minor-mode Date: Fri, 21 Sep 2012 16:37:37 +0200 Message-ID: <8062775tn2.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org --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=user-19nr15rzP4Y@public.gmane.org:~/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