* ECM tangle failure if block contains local var outline-minor-mode
@ 2012-09-21 14:37 Sebastien Vauban
2012-09-21 15:26 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Sebastien Vauban @ 2012-09-21 14:37 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
--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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ECM tangle failure if block contains local var outline-minor-mode
2012-09-21 14:37 ECM tangle failure if block contains local var outline-minor-mode Sebastien Vauban
@ 2012-09-21 15:26 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2012-09-21 15:26 UTC (permalink / raw)
To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ
Hi Sébastien,
"Sebastien Vauban"
<wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> writes:
> If you try to tangle this file, you'll get:
I copied your xxx.org file, commented out the workaround and M-x
org-babel-tangle RET: it tangles the Makefile correctly.
--
Bastien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-21 15:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21 14:37 ECM tangle failure if block contains local var outline-minor-mode Sebastien Vauban
2012-09-21 15:26 ` Bastien
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).