Re: [O] Problem with org-clock-persistence-insinuate in org-plus-contrib
T.F. Torrey writes: I don't understand that backtrace very well, but it looks like something is hardcoded to look in a contrib subdirectory for the contrib files and can't find them when they are moved to the root of the package directory. Actually, you will need to customize that variable if you want to use ditaa. But the error is that ob-ditaa is missing a (require 'org-compat), I've pushed a fix for that. But you may still do your own customizations for Org too early, you should defer them to after package-initialize has run. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] TeX-master: TeX-master is let-bound
On Thu, Oct 25, 2012 at 11:19:30PM +0100, Christopher Schmidt wrote: Suvayu Ali fatkasuvayu+li...@gmail.com writes: On Thu, Oct 25, 2012 at 05:48:57PM +0100, Christopher Schmidt wrote: org-export-as-latex (org-latex.el) let-binds TeX-master. Later on feature tex may be loaded. This is a problem, because in that case the defvar TeX-master of tex (AUCTeX) is ignored. Warning: defvar ignored because TeX-master is let-bound This issue could be fixed by adding (require 'tex nil t). What is your org-version? AFAIR, this was the case at the beginning of this year (Feb-March '12) but I do not think this is an issue anymore. No, it is in both maint and master (org-latex.el:958) right now. To be honest, why is TeX-master exactly bound in the first place? (TeX-master (boundp 'TeX-master)) For the record, I use Org-mode version 7.9.2 (release_7.9.2-62-gde7766), that is maint from the 15th. of October. I believe the reason was to get rid of auctex prompting for the master file name every time an org file is exported to LaTeX. -- Suvayu Open source is the future. It sets us free.
[O] org tex: label and footnote make a problem
Hello, I have a problem exporting my file.org into file.tex. _file.org:_ #+LaTeX_CLASS:book #+LaTeX_CLASS_OPTIONS: [a4paper,oneside] #+LATEX_HEADER: \usepackage[frenchb]{babel} \pagestyle{empty} #+LATEX_HEADER: \usepackage[style=verbose-trad2]{biblatex} \bibliography{/home/nicopro/Documents/INFORMATIQUE/TEX/texmf/tex/latex/THESE/BIBLIOGRAPHIE/biblio.bib} #+LATEX_HEADER: \frenchbsetup{StandardLists=true} \renewcommand\labelitemi{\textbullet} \renewcommand\labelitemiii{\diamond} \renewcommand\labelitemii{\circ} ... *** Vie politique et économique [fn::\cite{CARCERI2001}] *** Organisation administrative *... The result of my file.tex in _Example 1:_ \chapter{Vie politique et économique \protect\footnote{\cite{CARCERI2001}} \label{sec-1-2} } \section{Organisation administrative} \label{sec-1-2-1} Then, I compile my file.tex with pdflatex: see result1 in the attached-file. I observe, that rectifying the Example 1 like this, works well. _Example 2:_ \chapter{Vie politique et économique \protect\footnote{\cite{CARCERI2001}}} \label{sec-1-2} See result2 in the attached file. *What should I do in my file.org to obtain the same as my example 2?* Thank you for your help. Celano attachment: result1.jpegattachment: result2.jpeg
Re: [O] org-contacts.el does not require org-agenda
Hi Christopher, Christopher Schmidt christop...@ch.ristopher.com writes: org-contacts uses agenda functions but does not require org-agenda. No, org-contacts does not use any org-agenda.el function. It uses some org-agenda.el variables, though. What is the problem you did encounter? This is a bug. Not yet. -- Bastien
Re: [O] [New exporter] Protected Org code is still interpreted
Hello Nicolas, Nicolas Goaziou wrote: Sebastien Vauban writes: Org code (protected by a comma, in a code block) is interpreted, when exported to Beamer. See with this ECM: This should be fixed. Thanks for the report. Confirmed OK. Thanks. Note : this isn't related to new exporter but to recent code-escaping changes. Best regards, Seb -- Sebastien Vauban
Re: [O] org tex: label and footnote make a problem
Hi, Nicolas, works well. Example 2: \chapter{Vie politique et économique \protect\footnote{\cite{CARCERI2001}}} \label{sec-1-2} Org-mode version 7.9.2 (b5aded1 @ c:/Users/ridolfi/programs/emacs-o/org/lisp/) GNU Emacs 24.1.1 (i386-mingw-nt6.1.7601) of 2012-06-10 on MARVIN Cannot reproduce, *with the new exporter*: file.org: - #+LaTeX_CLASS:book #+LaTeX_CLASS_OPTIONS: [a4paper,oneside] #+LATEX_HEADER: \usepackage[frenchb]{babel} \pagestyle{empty} #+LATEX_HEADER: \usepackage[style=verbose-trad2]{biblatex} \bibliography{/home/nicopro/Documents/INFORMATIQUE/TEX/texmf/tex/latex/THESE/BIBLIOGRAPHIE/biblio.bib} #+LATEX_HEADER: \frenchbsetup{StandardLists=true} \renewcommand\labelitemi{\textbullet} \renewcommand\labelitemiii{\diamond} \renewcommand\labelitemii{\circ} other ... # * [2012-10-26 ven 10:08] ** Vie politique et économique [fn::\cite{CARCERI2001}] *** Organisation administrative --- M-x org-export-dispatch l L gives: - TEX - % Created 2012-10-26 ven 10:12 \documentclass[a4paper,oneside]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{soul} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{latexsym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \usepackage[frenchb,english]{babel} \pagestyle{empty} \usepackage[style=verbose-trad2]{biblatex} \bibliography{/home/nicopro/Documents/INFORMATIQUE/TEX/texmf/tex/latex/THESE/BIBLIOGRAPHIE/biblio.bib} \frenchbsetup{StandardLists=true} \renewcommand\labelitemi{\textbullet} \renewcommand\labelitemiii{\diamond} \renewcommand\labelitemii{\circ} \author{Giovanni Ridolfi} \date{\today} \title{test-2} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Generated by Org mode 7.9.1 in Emacs 24.1.1.}} \begin{document} \maketitle \tableofcontents \vspace*{1cm} other \ldots{} \part{Vie politique et économique [fn::\cite{CARCERI2001}]} \label{sec-1} \chapter{Organisation administrative} \label{sec-1-1} % Generated by Org mode 7.9.1 in Emacs 24.1.1. \end{document} - Please provide: 1. org- version 2. emacs version 3. which exporter didi you use cheers, Giovanni elano
Re: [O] [Patch] Table lookup functions: director's cut
Greetings. I got an email saying that the patch has now been committed to git. I also added a link to the tutorial on the tutorial index page at http://orgmode.org/worg/org-tutorials/ All the best. Jarmo
Re: [O] org-contacts.el does not require org-agenda
Bastien b...@altern.org writes: Christopher Schmidt christop...@ch.ristopher.com writes: org-contacts uses agenda functions but does not require org-agenda. No, org-contacts does not use any org-agenda.el function. I see, some functions prefixed with org-agenda- are defined in org.el. It uses some org-agenda.el variables, though. What is the problem you did encounter? emacs -q M-: (add-to-list 'load-path ~/.emacs.d/apps/org-mode/lisp) RET M-: (add-to-list 'load-path ~/.emacs.d/apps/org-mode/contrib/lisp) RET M-x load-library RET org-contacts RET M-x org-contacts RET Richard Stallman RET or: Symbol's value as variable is void: org-agenda-archives-mode Christopher
Re: [O] TeX-master: TeX-master is let-bound
Suvayu Ali fatkasuvayu+li...@gmail.com writes: I believe the reason was to get rid of auctex prompting for the master file name every time an org file is exported to LaTeX. The default value it t anyway. The docstring suggests that this variable should be set via file variables. I do not think org-mode should worry about AUCTeX. Christopher
Re: [O] org tex: label and footnote make a problem
Sorry... 1. org- version*7.8.11-1* 2. emacs version*45.0* 3.1 which exporter didi you use*C-c C-e l = Export as latex 3.2 then, I compile in the terminal with pdflatex (TexLive 2012) 4- I use Linux Debian testing * Le 26/10/2012 10:18, Giovanni Ridolfi a écrit : Hi, Nicolas, works well. Example 2: \chapter{Vie politique et économique \protect\footnote{\cite{CARCERI2001}}} \label{sec-1-2} Org-mode version 7.9.2 (b5aded1 @ c:/Users/ridolfi/programs/emacs-o/org/lisp/) GNU Emacs 24.1.1 (i386-mingw-nt6.1.7601) of 2012-06-10 on MARVIN Cannot reproduce, *with the new exporter*: file.org: - #+LaTeX_CLASS:book #+LaTeX_CLASS_OPTIONS: [a4paper,oneside] #+LATEX_HEADER: \usepackage[frenchb]{babel} \pagestyle{empty} #+LATEX_HEADER: \usepackage[style=verbose-trad2]{biblatex} \bibliography{/home/nicopro/Documents/INFORMATIQUE/TEX/texmf/tex/latex/THESE/BIBLIOGRAPHIE/biblio.bib} #+LATEX_HEADER: \frenchbsetup{StandardLists=true} \renewcommand\labelitemi{\textbullet} \renewcommand\labelitemiii{\diamond} \renewcommand\labelitemii{\circ} other ... # * [2012-10-26 ven 10:08] ** Vie politique et économique [fn::\cite{CARCERI2001}] *** Organisation administrative --- M-x org-export-dispatch l L gives: - TEX - % Created 2012-10-26 ven 10:12 \documentclass[a4paper,oneside]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{soul} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{latexsym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \usepackage[frenchb,english]{babel} \pagestyle{empty} \usepackage[style=verbose-trad2]{biblatex} \bibliography{/home/nicopro/Documents/INFORMATIQUE/TEX/texmf/tex/latex/THESE/BIBLIOGRAPHIE/biblio.bib} \frenchbsetup{StandardLists=true} \renewcommand\labelitemi{\textbullet} \renewcommand\labelitemiii{\diamond} \renewcommand\labelitemii{\circ} \author{Giovanni Ridolfi} \date{\today} \title{test-2} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Generated by Org mode 7.9.1 in Emacs 24.1.1.}} \begin{document} \maketitle \tableofcontents \vspace*{1cm} other \ldots{} \part{Vie politique et économique [fn::\cite{CARCERI2001}]} \label{sec-1} \chapter{Organisation administrative} \label{sec-1-1} % Generated by Org mode 7.9.1 in Emacs 24.1.1. \end{document} - Please provide: 1. org- version 2. emacs version 3. which exporter didi you use cheers, Giovanni elano
Re: [O] TeX-master: TeX-master is let-bound
It probably has something to do with this thread: http://lists.gnu.org/archive/html/emacs-orgmode/2012-02/msg00473.html That thread was about auctex prompting for the master file name every time an org file is opened. On 26 October 2012 10:43, Christopher Schmidt christop...@ch.ristopher.com wrote: Suvayu Ali fatkasuvayu+li...@gmail.com writes: I believe the reason was to get rid of auctex prompting for the master file name every time an org file is exported to LaTeX. The default value it t anyway. The docstring suggests that this variable should be set via file variables. I do not think org-mode should worry about AUCTeX. Christopher
[O] Announcing a script that connects org-mode and google-tasks
Hello all- I hacked together a python script based on some already-existing code, which allows one to push an org file to a google-tasks list, or to pull the contents of a google-tasks list into an org file. Though the code isn't beautiful at the moment, it is functional. Feel free to improve it. Get it at: https://bitbucket.org/edgimar/michel-orgmode Regards, Mark
Re: [O] Patch: org-agenda-skip-deadline-prewarning-if-scheduled prior to scheduled date
Hello, Nicolas Goaziou n.goaz...@gmail.com wrote on Wed, 17 Oct 2012 15:07:23 +0200: Since you provide both the patch and the commit message, what about providing it completely as an attachement (with i.e. git format-patch)? I attach a patch against the current git master. - d2 diff dfrac wdays pos pos1 category category-pos level + ds d2 diff dfrac wdays pos pos1 category category-pos level I wouldn't define the ds variable here, since it's local to suppress-prewarning computation. It's clearer to let-bind it around the (if (and org-agenda-skip-deadline-prewarning-if-scheduled )). + (setq ds (save-match-data +(if (string-match + org-scheduled-time-regexp item) +(match-string 1 item)) Since it is setq'ed only once, it can be let-bound. I did not find a fully satisfactory way to do this. I can wrap the (if (and org-agenda-skip-deadline-prewarning-if-scheduled ...)) inside a dedicated (let ...), but I would like to evaluate ds only if org-... is non-nil, so I would have to keep the setq inside the conditional. The only gain would be the limited scope of the ds, but the price of the additional (let ...) clutter is high, I think. My current solution (see the patch) involves some minor refactoring at the price of an extra (if ds ...) that I don't see a way to get rid of, but I find the result quite readable. Also, I replaced the if-elseif chain by a cond for clarity. Also, since your contribution is more than 20 lines long, did you sign the FSF papers? I signed the FSF GNU EMACS copyright assignment form a few years ago. Do I need to do something else for org-mode? Justus From 342abbe56b786fa7361c6ef574623c4c07915058 Mon Sep 17 00:00:00 2001 From: Justus Piater justus-...@piater.name Date: Fri, 26 Oct 2012 12:47:47 +0200 Subject: [PATCH] org-agenda: New option: skip deadline prewarning if scheduled in the future * lisp/org-agenda.el (org-agenda-skip-deadline-prewarning-if-scheduled): Add an option to skip the deadline prewarning if the scheduled date is in the future. --- lisp/org-agenda.el | 45 ++--- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 08066d2..ea4abfd 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -827,9 +827,10 @@ deadlines are always turned off when the item is DONE. This will apply on all days where a prewarning for the deadline would be shown, but not at the day when the entry is actually due. On that day, the deadline will be shown anyway. -This variable may be set to nil, t, or a number which will then give -the number of days before the actual deadline when the prewarnings -should resume. +This variable may be set to nil, t, the symbol `pre-scheduled', +or a number which will then give the number of days before the actual +deadline when the prewarnings should resume. The symbol `pre-scheduled' +eliminates the deadline prewarning only prior to the scheduled date. This can be used in a workflow where the first showing of the deadline will trigger you to schedule it, and then you don't want to be reminded of it because you will take care of it on the day when scheduled. @@ -838,6 +839,7 @@ because you will take care of it on the day when scheduled. :version 24.1 :type '(choice (const :tag Always show prewarning nil) + (const :tag Remove prewarning prior to scheduled date pre-scheduled) (const :tag Remove prewarning if entry is scheduled t) (integer :tag Restart prewarning N days before deadline))) @@ -5812,18 +5814,8 @@ See also the user option `org-agenda-clock-consistency-checks'. show-all upcomingp donep timestr warntime) (goto-char (point-min)) (while (re-search-forward regexp nil t) - (setq suppress-prewarning nil) (catch :skip (org-agenda-skip) - (when (and org-agenda-skip-deadline-prewarning-if-scheduled - (save-match-data - (string-match org-scheduled-time-regexp - (buffer-substring (point-at-bol) - (point-at-eol) - (setq suppress-prewarning - (if (integerp org-agenda-skip-deadline-prewarning-if-scheduled) - org-agenda-skip-deadline-prewarning-if-scheduled - 0))) (setq s (match-string 1) txt nil pos (1- (match-beginning 1)) @@ -5834,8 +5826,31 @@ See also the user option `org-agenda-clock-consistency-checks'. d2 (org-time-string-to-absolute (match-string 1) d1 'past show-all (current-buffer) pos) - diff (- d2 d1) - wdays (if suppress-prewarning + diff (- d2 d1)) + (setq suppress-prewarning + (let ((ds (and org-agenda-skip-deadline-prewarning-if-scheduled + (let ((item (buffer-substring (point-at-bol) + (point-at-eol + (save-match-data + (and (string-match + org-scheduled-time-regexp item) +
[O] [PATCH] Fixing when org-clock-in-prepare-hook is called
From d7c3f0a4611ced0a240af9115f29f888beb60af2 Mon Sep 17 00:00:00 2001 From: Myles English mylesengl...@gmail.com Date: Fri, 26 Oct 2012 12:38:09 +0100 Subject: [PATCH] Clocking: Move to task before calling org-clock-in-prepare-hook * lisp/org-clock.el (org-clock-in): Moved the call to org-clock-in-prepare-hook until the task's properties can be accessed. The problem was when using a function to add an effort property via the hook, it would not recognise an existing effort property when called with the prefix (C-u C-c C-x C-i) with the point at a place other than at the task. TINYCHANGE --- lisp/org-clock.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index e5488e4..84eb2fd 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1149,7 +1149,6 @@ make this the default behavior.) (if (and (eobp) (not (org-at-heading-p))) (point-at-bol 0) (point))) - (run-hooks 'org-clock-in-prepare-hook) (save-excursion (when (and selected-task (marker-buffer selected-task)) ;; There is a selected task, move to the correct buffer @@ -1168,6 +1167,7 @@ make this the default behavior.) ;; beginning of the heading, since the ;; user is liking to insert stuff here ;; manually + (run-hooks 'org-clock-in-prepare-hook) (org-clock-history-push)) (org-clock-set-current) (cond ((functionp org-clock-in-switch-to-state) -- 1.8.0
Re: [O] TeX-master: TeX-master is let-bound
On Fri, Oct 26, 2012 at 11:30:17AM +0200, Christopher Witte wrote: It probably has something to do with this thread: http://lists.gnu.org/archive/html/emacs-orgmode/2012-02/msg00473.html That thread was about auctex prompting for the master file name every time an org file is opened. Okay so I was a bit off about the reason; do you see any other ways to deal with this? -- Suvayu Open source is the future. It sets us free.
Re: [O] [PATCH] Fixing when org-clock-in-prepare-hook is called
Hello Myles, Myles English wrote: From d7c3f0a4611ced0a240af9115f29f888beb60af2 Mon Sep 17 00:00:00 2001 From: Myles English mylesengl...@gmail.com Date: Fri, 26 Oct 2012 12:38:09 +0100 Subject: [PATCH] Clocking: Move to task before calling org-clock-in-prepare-hook * lisp/org-clock.el (org-clock-in): Moved the call to org-clock-in-prepare-hook until the task's properties can be accessed. The problem was when using a function to add an effort property via the hook, it would not recognise an existing effort property when called with the prefix (C-u C-c C-x C-i) with the point at a place other than at the task. TINYCHANGE --- lisp/org-clock.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index e5488e4..84eb2fd 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -1149,7 +1149,6 @@ make this the default behavior.) (if (and (eobp) (not (org-at-heading-p))) (point-at-bol 0) (point))) - (run-hooks 'org-clock-in-prepare-hook) (save-excursion (when (and selected-task (marker-buffer selected-task)) ;; There is a selected task, move to the correct buffer @@ -1168,6 +1167,7 @@ make this the default behavior.) ;; beginning of the heading, since the ;; user is liking to insert stuff here ;; manually + (run-hooks 'org-clock-in-prepare-hook) (org-clock-history-push)) (org-clock-set-current) (cond ((functionp org-clock-in-switch-to-state) That hits me for months... Tested your patch: the promised behavior does work as expected. Thanks! Best regards, Seb -- Sebastien Vauban
[O] Exporting to HTML without IDs
Hi, I want to manage my web page using org-mode, and to have a navigation bar also encoded in org. The problem is that the org-to-html conversion function adds IDs to all headers, and the same ids occur on the nav bar and the main content. Things link sec-1, outline-2 and so on. The words 'sec' and 'outline' seem to be hardcoded. Of course this makes html validators a bit nervous ... Is there a simple way to either remove those ids, or make them start at say 1001 for one part? [In case it matters, I am using o-blog and org-mode 7.9.2 with mostly default configuration.] Thanks! /v -- Vincent Beffara
[O] [PATCH] Fix bug in org-agenda-diary-sexp-prefix
The commit message in the attached patch explains the problem, and the simple fix. Toby -- Dr T. S. Cubitt Mathematics and Quantum Information group Department of Mathematics Complutense University Madrid, Spain email: ts...@cantab.net web: www.dr-qubit.org From b777c7ca29c74476893dd62599c344c0ff5998e6 Mon Sep 17 00:00:00 2001 From: Toby S. Cubitt ts...@cantab.net Date: Fri, 26 Oct 2012 14:06:28 +0200 Subject: [PATCH] Fix bug in org-agenda-diary-sexp-prefix * lisp/org-agenda.el (org-agenda-get-sexps): reset `extra' to nil at beginning of re-search-forward loop, otherwise next iteration picks up `extra' value from previous entry. --- lisp/org-agenda.el |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index b9588bb..a2ed3b6 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -5482,7 +5482,8 @@ Do we have a reason to ignore this TODO entry because it has a time stamp? tags (save-excursion (org-backward-heading-same-level 0) (org-get-tags-at)) todo-state (org-get-todo-state) - warntime (org-entry-get (point) APPT_WARNTIME)) + warntime (org-entry-get (point) APPT_WARNTIME) + extra nil) (dolist (r (if (stringp result) (list result) -- 1.7.8.6
Re: [O] Exporting to HTML without IDs
Hello Vincent, Vincent Beffara wrote: I want to manage my web page using org-mode, and to have a navigation bar also encoded in org. The problem is that the org-to-html conversion function adds IDs to all headers, and the same ids occur on the nav bar and the main content. Things link sec-1, outline-2 and so on. The words 'sec' and 'outline' seem to be hardcoded. Of course this makes html validators a bit nervous ... Is there a simple way to either remove those ids, or make them start at say 1001 for one part? [In case it matters, I am using o-blog and org-mode 7.9.2 with mostly default configuration.] Maybe adding CUSTOM-ID in your navigation bar would solve the problem. You don't say whether you use the old (current) or the new (in the to-be Org 8) HTML exporter?? Best regards, Seb -- Sebastien Vauban
[O] agenda view of repeated time-ranges
Hi, I want some events to show up every week with start and end-time in the agenda. Is it possible to combine a time-range with a repeater? I think I tried every combination of range and repeater, but I can only get one of both to work. Example: #+begin_src org ** Weekly meeting 2012-10-31 Mi 15:00--2012-10-31 Mi 17:00 this doesn't repeat ** Weekly meeting 2012-10-31 Mi 15:00 +1w--2012-10-31 Mi 17:00 +1w this neither ** Weekly meeting 2012-10-31 Mi 15:00 +1w this does, but it has no range #+end_src org Best regards, Philipp
Re: [O] Exporting to HTML without IDs
Hi, Maybe adding CUSTOM-ID in your navigation bar would solve the problem. You don't say whether you use the old (current) or the new (in the to-be Org 8) HTML exporter?? Don't know, meaning probably the old one ... a CUSTOM-ID property is ignored, but it sounds like what I am looking for. Right now I fixed it by using (replace-gegexp-in-string id=\ id=\nav- navbar) in the template, but that implies having a template in the first place, which is not always the case. /v
[O] How to automatic list org files via Elisp and then, import them for an HTML export
Hi All, Since I use Orgmode 7.9.2, I tri to do this: - parsing a directory in which several Org files are located. Basically, each files is a blog post. So one org file pear day. - import or include them in a main ORG file (index.org) - export the main Org file to HTML to create a website. To be more clear, this is the directory structure I build. /website/ +- index.org | +/blog-posts/ + 2012_10_12.org + 2012_10_09.org Here is a typical post org file: 8---CUT HERE *Post title blala c'est la crise 8--- CUT HERE Here is the index.org 8---CUT HERE #+SETUPFILE: ../templates/level-0.org #+INCLUDE: ../templates/level-0.org #+TITLE: Home #+OPTIONS: toc:nil H:3 num:nil # home * Home Welcome in .. ... ... * Latest Articles 1 #+BEGIN_SRC emacs-lisp :exports results (let ((default-directory ~/path/to/the/directory/posts/)) (file-expand-wildcards ?org)) #+END_SRC #+BEGIN_SRC emacs-lisp :exports results (directory-files ~/path/to/the/directory/posts/ nil \\.org\\') #+END_SRC * Latest Articles 2 ** Test 1 #+INCLUDE: ./posts/2012_10_12.org #+INCLUDE: ./posts/2012_10_09.org ** Test 2 #+INCLUDE: ./posts/2012_10_12.org :minlevel 2 #+INCLUDE: ./posts/2012_10_09.org :minlevel 2 ** Test 3 #+INCLUDE: ./posts/2012_10_12.org :prefix1 * #+INCLUDE: ./posts/2012_10_09.org :prefix1 * * Latest Articles 3 #+BEGIN_EXAMPLE #+INCLUDE ~/Dropbox/Private/The_Flammable_project/wx-fp/posts/2012_10_09.org #+END_EXAMPLE * Latest Articles 4 #+BEGIN_SRC :exports results :results output cat ./posts/2012_10_12.org #+END_SRC 8--- CUT HERE Here is the status of my trial after doing org-publish-project: - Latest trials 1 : this elisp code parses the right directory but I don't know how to import the result the elisp function and them use #+INCLUDE: them as org files. If someone can help me on that? I really like to do what I want with elisp, more powerfull solution. - Latest trials 2 : the #+INCLUDE command includes the content of each files but in the 3 sub-tests the hierarchy is completely meesed up, like this * Latest Articles 2 ** 2012_10_12 Post title blablabla from post 2012_10_12.org file *** 2012_10_09 Post tile blabla from post 2012_10_09.org file the second included files is put under another level of hierarchy even if the command :minlevel X or :prefix1 are used. Gentleman's any suggestion? - Latest Articles 3 4 : Not working at all. Here we are! The HTML export is working very well. So it's not a problem of export. If someone can help me to do this I will really appreciate! Thanks
Re: [O] [PATCH] Fixing when org-clock-in-prepare-hook is called
Hi Myles, Myles English mylesengl...@gmail.com writes: * lisp/org-clock.el (org-clock-in): Moved the call to org-clock-in-prepare-hook until the task's properties can be accessed. The problem was when using a function to add an effort property via the hook, it would not recognise an existing effort property when called with the prefix (C-u C-c C-x C-i) with the point at a place other than at the task. Applied, thanks a lot. -- Bastien
Re: [O] [PATCH] Fix bug in org-agenda-diary-sexp-prefix
Hi Toby, Toby Cubitt ts...@cantab.net writes: The commit message in the attached patch explains the problem, and the simple fix. Applied, thanks! -- Bastien
Re: [O] [PATCH] Orgpan: resize the correct window
Hi Jonas, Jonas Bernoulli jo...@bernoul.li writes: I created a patch using git-filter-branch opened the file and turned on message-mode and hit C-c C-c - obviously that is not enough. Could someone enlighten me how to actually submit the patches? Quick patch: 1. edit 2. C-x v = 3. copy the buffer string and send it to the list More elaborated patch: 1. create a dedicated branch for your patch(es) 2. commit on this branch 3. git format-patch master 4. send the patch to the list See http://www.kernel.org/pub/software/scm/git/docs/git-format-patch.html git send-email might also be useful: http://www.kernel.org/pub/software/scm/git/docs/git-send-email.html Can you resubmit the correct patch and cc Lennart Borgman so that he can review your patch (as the author of org-panel.el)? Thanks, -- Bastien
Re: [O] org-export-region-as-latex skips header
Hi Christopher, Christopher Schmidt christop...@ch.ristopher.com writes: Org-mode version 7.9.2 (release_7.9.2-52-g921998) C-x b test RET insert * dub M-: (org-export-region-as-latex (point-min) (point-max) nil 'string) RET org-export-region-as-latex returns \\section{dub}\n\\label{sec-1}\n\n\\end{document}\n This does not look right to me. Where is the header? Using 'string as the value for `to-buffer' does produce a string with no LaTeX header (i.e. it implicitely set body-only to t.) I've fixed the docstring wrt this. Thanks, -- Bastien
Re: [O] org-contacts.el does not require org-agenda
Hi Christopher, Christopher Schmidt christop...@ch.ristopher.com writes: Bastien b...@altern.org writes: Christopher Schmidt christop...@ch.ristopher.com writes: org-contacts uses agenda functions but does not require org-agenda. No, org-contacts does not use any org-agenda.el function. I see, some functions prefixed with org-agenda- are defined in org.el. It uses some org-agenda.el variables, though. What is the problem you did encounter? emacs -q M-: (add-to-list 'load-path ~/.emacs.d/apps/org-mode/lisp) RET M-: (add-to-list 'load-path ~/.emacs.d/apps/org-mode/contrib/lisp) RET M-x load-library RET org-contacts RET M-x org-contacts RET Richard Stallman RET or: Symbol's value as variable is void: org-agenda-archives-mode Thanks. I've added (require 'org-agenda) to org-contacts.el. -- Bastien
[O] bug#12702: 24.2; Orgmode Refile complains Not bookmark format
Hi Stefan, Stefan Monnier monn...@iro.umontreal.ca writes: IOW, if needed we could wrap the calls to bookmark-set in with-demoted-errors, but maybe those errors are signaled late enough already that while the command signals an error, it did do what it was expected to do. I've now wrapped calls to `bookmark-set' within `with-demoted-errors' in Org, the capture and the refile processes will not be stopped by corrupted bookmark files. I'm now closing this bug. Thanks, -- Bastien
Re: [O] org-contacts.el does not require org-agenda
Bastien b...@altern.org writes: Thanks. I've added (require 'org-agenda) to org-contacts.el. Thank you very much. Christopher
[O] bug#12718: /srv/bzr/emacs/trunk r110652: Fix error in previous merge from Org.
Chong Yidong c...@gnu.org writes: OK, reverted. Please go ahead and commit your other fix. Thanks. I've merged the bugfix branch of Org in current Emacs trunk. I'm closing this bug. -- Bastien
Re: [O] TeX-master: TeX-master is let-bound
Christopher Witte ch...@witte.net.au writes: It probably has something to do with this thread: http://lists.gnu.org/archive/html/emacs-orgmode/2012-02/msg00473.html I do not think so, latex export has nothing to do with reftex. This is the commit in questions http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=3007ddd1 and I am not exactly sure what's correct about the new form. The old one looks way better to me. Christopher
[O] Org-Mode menus not in text mode menu or lacarte
Hello everybody, I was trying to use org-mode from console and realized that there are no Org-Mode menus when I open the text menu with f10 (tmm-menubar) or lacarte. Do you have an idea why there are not there. They appear in a gtk emacs window. I didn't find a reason. Best regards Lennart
Re: [O] TeX-master: TeX-master is let-bound
Christopher Schmidt christop...@ch.ristopher.com wrote: Christopher Witte ch...@witte.net.au writes: It probably has something to do with this thread: http://lists.gnu.org/archive/html/emacs-orgmode/2012-02/msg00473.html I do not think so, latex export has nothing to do with reftex. This is the commit in questions http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=3007ddd1 and I am not exactly sure what's correct about the new form. The old one looks way better to me. The more relevant thread I think is http://thread.gmane.org/gmane.emacs.orgmode/48512 In any case, if you can get rid of the let-bind (or the need to muck with TeX-master at all within org), without introducing a regression, we are all ears. Nick
Re: [O] Problem with org-clock-persistence-insinuate in org-plus-contrib
That's curious. Achim Gratz writes: Actually, you will need to customize that variable if you want to use ditaa. But the error is that ob-ditaa is missing a (require 'org-compat), I've pushed a fix for that. But you may still do your own customizations for Org too early, you should defer them to after package-initialize has run. First, thanks so much for your help. My whole life is in Emacs and Org. My initial report should be amended, because after a few cycles, the error came back even with org-clock-persistence-insinuate commented out. I did not run and save a backtrace of that. I don't use ditaa at all, and I have no mention of it in my init file. Something else must have been pretty far off the rails to be calling it. Finally, the only things before package-initialize in my init file were some general Emacs interface settings (tool bar off, some others, I can post a list if anyone is interested). Nothing org related was before it. Nonetheless, when I move package-initialize to be the first thing in the init file, the problem goes away. Thanks again for your help. Best regards, Terry -- T.F. Torrey
Re: [O] Web site bug
On 10/25/2012 12:42 AM, Bastien wrote: Hi Simon, Simon Thumsimon.t...@gmx.de writes: I just set up another machine and noticed that the ELPA install still recommends (require 'org-install). http://orgmode.org/elpa.html That worked but got me warnings. I added a note about (require 'org-install) not being required for Org 7.9.2 -- thanks! Sorry but to me this just worsens the (or my) confusion around org-install. In git we find this org-install.el: ;;; org-install.el --- autogenerated file, do not edit ;; ;;; Code: (warn The file org-install is obsolete. Please change your configuration to (require 'org) instead.) Apart from it not being autogenerated, it's confusing that I should use 'org instead. Which is the recommended thing in what setup? If ELPA needs not even 'org, which AFAIK is not the case, then what? And what about git installs? I guess I'm wholly confused now. Cheers, Simon
Re: [O] agenda view of repeated time-ranges
On Fri, 26 Oct 2012 15:05:07 +0200, Philipp Kroos spake thus: I want some events to show up every week with start and end-time in the agenda. Is it possible to combine a time-range with a repeater? I think I tried every combination of range and repeater, but I can only get one of both to work. Hi :) Did you try 2012-10-31 Mi 15:00-17:00 +1w ? #+begin_src org ** Weekly meeting 2012-10-31 Mi 15:00--2012-10-31 Mi 17:00 this doesn't repeat #+end_src org