emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] ECM tangle failure if block contains local var outline-minor-mode


From: Sebastien Vauban
Subject: [O] ECM tangle failure if block contains local var outline-minor-mode
Date: Fri, 21 Sep 2012 16:37:37 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (windows-nt)

--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
address@hidden:~/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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]