Re: [O] [PATCH]: New Add defun org-mode-or-derived-mode-p

2011-10-11 Thread Tassilo Horn
Carsten Dominik writes: Hi Carsten, >> BTW: I'm not sure if there is any reasonable benefit for >> `org-mode-p', anyway. Checking the rest of the emacs source tree, >> then the convention is to either use >> >> (eq major-mode 'foo-mode) >> >> or >> >> (derived-mode-p 'foo-mode) >> >> depe

Re: [O] [agenda] Case-insensitive tag search

2011-10-11 Thread Christian Moe
On 10/11/11 8:22 AM, Carsten Dominik wrote: (...) To be on the safe side, my suggestion would be to apply a function to your files which would downcase all the tags present in the buffer. Marcelo, maybe this is a nice task to try your elisp on? With perl, it would be a one-liner I have one

Re: [O] What do you use to identify projects (in the GTD sense)

2011-10-11 Thread Sven Bretfeld
Hi Bernt Bernt Hansen writes: > http://doc.norang.ca/org-mode.html#Projects Wow, that is a WONDERFUL page you shared with us. Thank you very much! It will cost me hours go through it and see what I can implement for my setup. Can't you think about others' time before posting such great stuff?

Re: [O] Put result output in different type of code block than original

2011-10-11 Thread Rasmus Pank Roulund
Niels Giesen writes: > Hi, > > Say I've got a sh code block invoking curl to some json api, is it possible > some way to specify that the format of the output when :results output code > is in a json code block and *not* a sh code block? Does this help you? (Lacking a relevant example) #+begin

Re: [O] Put result output in different type of code block than original

2011-10-11 Thread Rainer M Krug
On Mon, Oct 10, 2011 at 5:44 PM, Niels Giesen wrote: > Hi, > > Say I've got a sh code block invoking curl to some json api, is it possible > some way to specify that the format of the output when :results output code > is in a json code block and *not* a sh code block? > > #+begin_src sh :results

[O] Include does not work when doing org-export-as-org

2011-10-11 Thread Henry Hirsch
Hello everyone, I am trying to export an org-file with includes. When I export as PDF all includes work but when I export as org-file the includes are getting ignored. I am on org-mode 7.6. Hope somebody knows how to fix this. Sincerly yours, Henry

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Nick Dokos
Henry Hirsch wrote: > Hello everyone, > > I am trying to export an org-file with includes. > When I export as PDF all includes work but when > I export as org-file the includes are getting ignored. > > I am on org-mode 7.6. > > Hope somebody knows how to fix this. > Sorry to be a grouch, but

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Henry Hirsch
On Tue, Oct 11, 2011 at 09:41:43AM -0400, Nick Dokos wrote: > Sorry to be a grouch, but can you *please* provide an example? Content of a.org: #+INCLUDE: "b.org" Content of b.org: Hello World Content of a_source.org after export: Thanks, Henry

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Henry Hirsch
On Tue, Oct 11, 2011 at 03:53:00PM +0200, Henry Hirsch wrote: I forgot something: > Content of a_source.org after export: is actually: #+INCLUDE "b.org" Where I expected it to be "Hello World". Thanks, Henry

Re: [O] Put result output in different type of code block than original

2011-10-11 Thread Sebastien Vauban
Hi Rainer and Niels, Rainer M Krug wrote: > On Mon, Oct 10, 2011 at 5:44 PM, Niels Giesen wrote: >> Say I've got a sh code block invoking curl to some json api, is it possible >> some way to specify that the format of the output when :results output code >> is in a json code block and *not* a sh c

Re: [O] Checkbox difficulties

2011-10-11 Thread Dave Abrahams
on Thu Oct 06 2011, Dave Abrahams wrote: > Here's a version that deals with at least one of your caveats: > > (defun ndk/checkbox-list-complete () > (save-excursion > (org-back-to-heading t) > (when looking-at (concat > "^\\*+[ \t]+" > org-

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Nick Dokos
Henry Hirsch wrote: > Hello everyone, > > I am trying to export an org-file with includes. > When I export as PDF all includes work but when > I export as org-file the includes are getting ignored. > What does "export as org-file" mean? What do you do exactly? FWIW, I tried with your minimal

[O] Patch: Mark org-diary-class as obsolete and skip entries on holidays in org-class

2011-10-11 Thread Rüdiger Sonderfeld
Hello, I wrote two small patches. The first one marks org-diary-class as obsolete (according to its documentation it is deprecated). The second one is a patch for org-class. It changes org-class to skip entries that are on holidays. Maybe the second change should be made optional. Regards, Rüdige

[O] [PATCH] Improve documentation + fix typos

2011-10-11 Thread Rafael Laboissiere
Dear Org-mode developpers, You will find here attached three patches for org-mode. Two of them improve the "External links" node of the info documentation. The other one just fixes minor typos. Best regards, Rafael Laboissière >From b6aac367829af8b6507d04c3f820e3cdbd33853a Mon Sep 17 00:00:00

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Nick Dokos
Nick Dokos wrote: > FWIW, I tried with your minimal example (thanks!), and I can export to > ascii/latex/PDF/HTML with > > C-c C-e A (or D or L or H) > I meant: C-c C-e A (or L or d or H) Nick

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Nick Dokos
Nick Dokos wrote: > Henry Hirsch wrote: > > > Hello everyone, > > > > I am trying to export an org-file with includes. > > When I export as PDF all includes work but when > > I export as org-file the includes are getting ignored. > > > > What does "export as org-file" mean? What do you do ex

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Henry Hirsch
On Tue, Oct 11, 2011 at 10:09:49AM -0400, Nick Dokos wrote: > Henry Hirsch wrote: > > > Hello everyone, > > > > I am trying to export an org-file with includes. > > When I export as PDF all includes work but when > > I export as org-file the includes are getting ignored. > > > > What does "exp

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Nick Dokos
Nick Dokos wrote: > Nick Dokos wrote: > > > Henry Hirsch wrote: > > > > > Hello everyone, > > > > > > I am trying to export an org-file with includes. > > > When I export as PDF all includes work but when > > > I export as org-file the includes are getting ignored. > > > > > > > What does

Re: [O] Put result output in different type of code block than original

2011-10-11 Thread Eric Schulte
Niels Giesen writes: > Hi, > > Say I've got a sh code block invoking curl to some json api, is it possible > some way to specify that the format of the output when :results output code > is in a json code block and *not* a sh code block? > Hi Niels, Currently there is no way to specify the type

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Henry Hirsch
On Tue, Oct 11, 2011 at 10:27:56AM -0400, Nick Dokos wrote: > In particular, I assume it does not process includes, because they need > to be preserved in examples. > > Nick So do you think it is reasonable that org-export-as-org is the only mode of export which is exhibiting a different behav

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Nick Dokos
Henry Hirsch wrote: > On Tue, Oct 11, 2011 at 10:27:56AM -0400, Nick Dokos wrote: > > > In particular, I assume it does not process includes, because they need > > to be preserved in examples. > > > > Nick > > So do you think it is reasonable that org-export-as-org is the only mode > of expo

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Henry Hirsch
On Tue, Oct 11, 2011 at 10:57:58AM -0400, Nick Dokos wrote: > o org is very much a scratch-your-itch project - so you can > certainly go ahead and implement what you want. I get it. If I want something fixed I gotta do it myself. Have a nice day, and thank you for sobering me up.

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Nick Dokos
Henry Hirsch wrote: > On Tue, Oct 11, 2011 at 10:57:58AM -0400, Nick Dokos wrote: > > o org is very much a scratch-your-itch project - so you can > > certainly go ahead and implement what you want. > > I get it. If I want something fixed I gotta do it myself. > > Have a nice day, an

[O] org-agenda-switch-to switches to weird place

2011-10-11 Thread Antoine Levitt
Hi, I use org-capture to store information (such as appointments), then view them in the agenda. I use RET (org-agenda-switch-to) in the agenda view to modify them. For instance, for an entry like * TODO Some task SCHEDULED: !<2011-10-11 Tue> , point is at "!", which is inconvenient, because mos

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Henry Hirsch
On Tue, Oct 11, 2011 at 11:37:54AM -0400, Nick Dokos wrote: > What is *your* use case? That is not at all clear, so far at least. > > Nick I want to apply the don't repeat yourself (dry) principle to my org files. For the documentation of software quality I have huge org documents with a lot of t

Re: [O] Put result output in different type of code block than original

2011-10-11 Thread Burton Samograd
"Sebastien Vauban" writes: > Hi Rainer and Niels, > > Rainer M Krug wrote: >> On Mon, Oct 10, 2011 at 5:44 PM, Niels Giesen wrote: >>> Say I've got a sh code block invoking curl to some json api, is it possible >>> some way to specify that the format of the output when :results output code >>> is

Re: [O] org-agenda-switch-to switches to weird place

2011-10-11 Thread Sebastien Vauban
Hi Antoine, Antoine Levitt wrote: > I use org-capture to store information (such as appointments), then view > them in the agenda. I use RET (org-agenda-switch-to) in the agenda view to > modify them. For instance, for an entry like > > * TODO Some task > SCHEDULED: !<2011-10-11 Tue> > > , point i

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Nick Dokos
Henry Hirsch wrote: > On Tue, Oct 11, 2011 at 11:37:54AM -0400, Nick Dokos wrote: > > What is *your* use case? That is not at all clear, so far at least. > > > > Nick > > I want to apply the don't repeat yourself (dry) principle to my org files. > For the documentation of software quality I hav

Re: [O] Put result output in different type of code block than original

2011-10-11 Thread Sebastien Vauban
Hi Burton, Burton Samograd wrote: > "Sebastien Vauban" writes: >> Hi Rainer and Niels, >> >> Rainer M Krug wrote: >>> On Mon, Oct 10, 2011 at 5:44 PM, Niels Giesen wrote: Say I've got a sh code block invoking curl to some json api, is it possible some way to specify that the format of t

Re: [O] org-agenda-switch-to switches to weird place

2011-10-11 Thread Antoine Levitt
11/10/11 18:45, Sebastien Vauban > Hi Antoine, > > Antoine Levitt wrote: >> I use org-capture to store information (such as appointments), then view >> them in the agenda. I use RET (org-agenda-switch-to) in the agenda view to >> modify them. For instance, for an entry like >> >> * TODO Some task >

Re: [O] Include does not work when doing org-export-as-org

2011-10-11 Thread Carsten Dominik
On 11.10.2011, at 16:34, Henry Hirsch wrote: > On Tue, Oct 11, 2011 at 10:27:56AM -0400, Nick Dokos wrote: > >> In particular, I assume it does not process includes, because they need >> to be preserved in examples. >> >> Nick > > So do you think it is reasonable that org-export-as-org is the

[O] "C-M" showing up everywhere in the INFO file

2011-10-11 Thread York Zhao
Hi, I'm using the lasted org-mode from git, I used make install info to generate the INFO file and I have verified that the file "org" has been copied to the "info" directory of my emacs directory. I'm using Windows, and the problem is that "C-M" is appearing everywhere in this INFO file which is

Re: [O] org-agenda-switch-to switches to weird place

2011-10-11 Thread Sebastien Vauban
Hi Antoine, Antoine Levitt wrote: > 11/10/11 18:45, Sebastien Vauban >> Antoine Levitt wrote: >>> I use org-capture to store information (such as appointments), then view >>> them in the agenda. I use RET (org-agenda-switch-to) in the agenda view to >>> modify them. For instance, for an entry like

Re: [O] Idea: insert "current sort order" property

2011-10-11 Thread Christian Moe
Hi, Gez, On 10/7/11 5:02 PM, Gez wrote: What I'm imagining is a command executed on a headline to insert a property into each of its children "fixing" the current order; something like ":sorted:01", ":sorted:02" etc. I think this is a neat idea, and can see some uses for it for my own stuff.

Re: [O] org-agenda-switch-to switches to weird place

2011-10-11 Thread Antoine Levitt
11/10/11 21:35, Sebastien Vauban >> If I understand correctly, org-agenda-switch-to goes to the org-marker >> marker that is set by capture. > > No, I absolutely don't think so. Org files are plain text files: what you > don't see in there, is simply not there. So, how could such markers be stored

Re: [O] Put result output in different type of code block than original

2011-10-11 Thread Niels Giesen
To all people in this thread, Thank you for all the responses. The echoing of #+begin_src and #end_src is indeed a workaround that I had not thought of myself, though it is not that general, and puts stuff in the source that really oughtn't be there. In the mean time I came up with a piece of ad

Re: [O] [patch] Add source subtree which will be refiled

2011-10-11 Thread Sebastien Vauban
Hi Carsten, "Sebastien Vauban" wrote: > Carsten Dominik wrote: >>> I found it difficult, sometimes, to remember which subtree we're gonna >>> refile. When TAB'ing for multiple targets, you loose your source buffer, >>> and can easily forget which exact subtree you had selected. >>> >>> Here a patc

[O] org-refile-use-outline-path question

2011-10-11 Thread Arun Persaud
Hi I use the following settings to refile tasks (setq org-refile-use-outline-path 'file) (setq org-refile-targets '((org-agenda-files . (:maxlevel . 5 this has the nice effect that I can refile across different files, which I do use every now and then. For this I use: /level1/level2/... Ho