Re: [O] [bug] org block not correctly exported to LaTeX

2011-07-25 Thread Thomas Holst
Hi Eric,

thanks for looking into this.

· Eric Schulte  wrote:
> Thomas Holst  writes:
>> Hi Bastien,
>>
>> thanks for your answer. 
>>
 when the follwing org-file is exported to LaTeX, #+BEGIN_ORG
 and #+END_ORG is inserted in the tex-file.
>>>
>>> You surely want
>>> #+begin_src org
>>> #+end_src org
>>> "#+begin_org" doesn't exist.
>>
>> #+BEGIN_ORG 
>> #+END_ORG
>>
>> gets inserted by org-babel.
>
> Yes, Babel uses the #+begin/end_org as markers, so that it can identify
> the beginning and end of raw Org-mode results when those results need to
> be deleted or replaced with new results.
>
> Since these are just used as markers and are functionally equivalent to
> comment lines (e.g., no special treatment of the portion between the
> begin_org and end_org lines) we didn't really coordinate this with the
> results of Org-mode.
>
> It seems however that since comments must start on the first character
> of a line, these don't work when indented.
>
> Would it be difficult to recognize these two lines as comments when they
> are indented?  Note we also have #+begin/end_result lines which may
> likely have similar issues.

This exactly is the issue. If I remove the indentation from the result
block export works fine. As you mentioned #+begin/#+end_org markers are
treated as comments and do not appear in the LaTeX output.

I tried to find a solution to this but my lisp is not (yet) good enough.

-- 
Mit freundlichen Grüßen / Best regards 

Thomas Holst 
DGS-EC/ESE4

Tel.   +49 (711) 811-40681
PC-Fax +49 (711) 811-5182208



Re: [O] Copy/Search Outline

2011-07-25 Thread Christian Moe

On 7/26/11 8:35 AM, Christian Moe wrote:

Then select all with `C-c h' (alternately,


Typo, sorry. I meant `C-x h'.

cm



Re: [O] Copy/Search Outline

2011-07-25 Thread Christian Moe

On 7/22/11 10:20 PM, Florian Beck wrote:

Hi all,

when working with outlines (tabbing until CONTENTS), there are two
things I cannot figure out:

Firstly, I want to copy the *visible* text (minus the …, but never mind
that);


C-c C-e v [SPACE]
C-x h M-w
C-x k

In other words: Begin exporting only the visible part with `C-c C-e 
v', then press space at the prompt for output formats. This leaves you 
in a second buffer with a copy of the visible part (and yes, you do 
get rid of the ellipses). Then select all with `C-c h' (alternately, 
select the region of your choice) and copy. Kill the copy buffer when 
you're done with it.


You may want to record a keyboard macro if you need this often.


secondly, I want to be able to search only the visible text.


You can do that, albeit only in a copy of your document in a separate 
buffer, with the approach above. But why would you want to? Perhaps if 
you state a use case, someone can point out a different approach.



More generally (and less org specific), how do I restrict commands to
the visible parts of the buffer?


I don't know.

Yours,
Christian



[O] Any work on Java ME?

2011-07-25 Thread XeCycle
Java ME seems more widely supported, has anyone worked on that?

Also, it's painful to input text on iOS devices, and text is all of Org
mode.

-- 
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591


pgpCqBoqtBNMb.pgp
Description: PGP signature


Re: [O] Question about org-search-view and org-occur-in-agenda-files

2011-07-25 Thread Matt Lundin
suvayu ali  writes:

> Hi Darlan,
>
> On Mon, Jul 25, 2011 at 8:29 PM, Darlan Cavalcante Moreira
>  wrote:
>> You can probably use custom agenda commands for this. See the documentation
>> for the org-agenda-custom-commands and the corresponding section in the
>> manual [1].
>
> Custom agenda commands do not support prompting for search phrases.

The following custom agenda command offers a prompt:

--8<---cut here---start->8---
(org-add-agenda-custom-command
 '("x" "Search special files" search ""
   ((org-agenda-files '("~/special/")
--8<---cut here---end--->8---

Best,
Matt



Re: [O] References in Latex

2011-07-25 Thread Nick Dokos
Aditya Mandayam  wrote:


> So when exporting from .org to LaTeX-PDF, I would like the references
> to show up at the bottom. This does not happen currently. Why is it
> so?
> 
> PS: Gleaned from
> http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/
> 
> PPS: I am using the tufte-handout document class. On changing this to
> the default article class, the references still do not show up.
> 

The first thing to do is to read Tom Dye's excellent LaTeX export
tutorial:

http://orgmode.org/worg/org-tutorials/org-latex-export.html

If you still have problems after that, the second thing to do is
to post here an example of what you are trying to do: a small org
file, what happens to it on latex export and what you would like
to happen.

Nick



Re: [O] How to filter by tag/todo in AGENDA VIEW

2011-07-25 Thread Matt Lundin
"Mark S"  writes:

> Yes, I know you can make customized views, but I could find nothing in
> the documentation showing how to customize the AGENDA view. In the
> documentation, there are example of how to use the various type
> functions, but none for the agenda type function. There must be some
> options that go with it, or some way to tell it what TODOs you want to
> see.
>
> The closest thing to an example is this:
>
>  (agenda "")
>
> Hmm. What goes inside of ""?

Nothing. The "" corresponds to the match slot within a custom agenda
command. With todo and tags searches will search for a match, the agenda
does not.  

> I know how to filter inside the TODO list, but I can't seem to find
> how your filter inside of the agenda view. Is there a way? In
> particular, I want to filter out all the TODO keyword items so I can
> see just the non-todo schedules and deadlines.

You can use org-agenda-skip-function. See:

(info "(org) Special agenda views")

For the scenario above, you could use:

--8<---cut here---start->8---
(org-add-agenda-custom-command
 '("x" "Agenda without todos" agenda ""
   ((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'todo)
--8<---cut here---end--->8---

Best,
Matt



Re: [O] Question about org-search-view and org-occur-in-agenda-files

2011-07-25 Thread suvayu ali
Hi Bernt,

On Tue, Jul 26, 2011 at 3:20 AM, Bernt Hansen  wrote:
>>> You can set the org-agenda-files and
>>> org-agenda-text-search-extra-files to point to the old project for
>>> some custom search.
>>>
>
> You can also restrict agenda to a single file with C-u C-c C-x <.
> Subsequent agenda commands and searches will only use the current file
> until you remove the restriction with C-c C-x >
>

My problem was I wanted to search a whole slew of files in a directory
tree. Also I was misreading some of the the org-agenda documentation.
After reading the article on custom agenda commands on Worg, many of my
misconceptions were resolved. Now I have written a function to find org
files recursively from a directory tree and I use this list to
selectively search project directories.

e.g.:

(setq org-agenda-custom-commands
  '(("W" "Search tutorials on Worg" search ""
 ((org-agenda-files nil)
  (org-agenda-text-search-extra-files
   (find-org-file-recursively "~/org/Worg/org-tutorials"))

> -Bernt

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] References in Latex

2011-07-25 Thread suvayu ali
On Tue, Jul 26, 2011 at 3:33 AM, Aditya Mandayam  wrote:
>> Internal references (using \ref{..}) (e.g. to figures, tables,
>> equations) are shown just fine here. Whereas for external citations
>> (using \cite{..}), it is customary to list them in a bibliography. You
>> need to use the bibtex command to achieve that.
>>
>
> does this mean running bibtex on the tex file again?
>
> incidentally, i used to run rubber with xelatex using the following
> commented line at the top of my tex files:
>
> % rubber: set program xelatex
>
> now, upon looking at the tex file generated by org, i added the above
> line and ran rubber again on the tex file, and the bibliography came
> out just fine.
>
> is this expected? to massage the tex generated by org? or am i seeing
> it wrong and it is assumed that i have a tex file in the first place?
>

You need to customise org-latex-to-pdf-process.

This is what I use:

(setq org-latex-to-pdf-process
 '("pdflatex -interaction nonstopmode %b"
   "/usr/bin/bibtex %b"
   "pdflatex -interaction nonstopmode %b"
   "pdflatex -interaction nonstopmode %b"))

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] References in Latex

2011-07-25 Thread Aditya Mandayam
On Mon, Jul 25, 2011 at 9:24 PM, suvayu ali  wrote:
> Hi Aditya,
>
> On Tue, Jul 26, 2011 at 2:56 AM, Aditya Mandayam  wrote:
>> Hello,
>>
>> So when exporting from .org to LaTeX-PDF, I would like the references
>> to show up at the bottom. This does not happen currently. Why is it
>> so?
>>
>
> When you say references, do you mean references within the document or
> citations to external sources? And when you say bottom, do you mean at
> the end of the document or as a footnote?
>
I mean citations to external sources (papers, web pages etc) at the
end of the document.

> Internal references (using \ref{..}) (e.g. to figures, tables,
> equations) are shown just fine here. Whereas for external citations
> (using \cite{..}), it is customary to list them in a bibliography. You
> need to use the bibtex command to achieve that.
>

does this mean running bibtex on the tex file again?

incidentally, i used to run rubber with xelatex using the following
commented line at the top of my tex files:

% rubber: set program xelatex

now, upon looking at the tex file generated by org, i added the above
line and ran rubber again on the tex file, and the bibliography came
out just fine.

is this expected? to massage the tex generated by org? or am i seeing
it wrong and it is assumed that i have a tex file in the first place?

>> PS: Gleaned from
>> http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/
>>
>
> That article is rather old. Everything might not work as described.
>
>> A
>>
>>
>
> Hope my comments help.
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>



Re: [O] References in Latex

2011-07-25 Thread suvayu ali
Hi Aditya,

On Tue, Jul 26, 2011 at 2:56 AM, Aditya Mandayam  wrote:
> Hello,
>
> So when exporting from .org to LaTeX-PDF, I would like the references
> to show up at the bottom. This does not happen currently. Why is it
> so?
>

When you say references, do you mean references within the document or
citations to external sources? And when you say bottom, do you mean at
the end of the document or as a footnote?

Internal references (using \ref{..}) (e.g. to figures, tables,
equations) are shown just fine here. Whereas for external citations
(using \cite{..}), it is customary to list them in a bibliography. You
need to use the bibtex command to achieve that.

> PS: Gleaned from
> http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/
>

That article is rather old. Everything might not work as described.

> A
>
>

Hope my comments help.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Question about org-search-view and org-occur-in-agenda-files

2011-07-25 Thread Bernt Hansen
suvayu ali  writes:

> Hi Darlan,
>
> On Mon, Jul 25, 2011 at 8:29 PM, Darlan Cavalcante Moreira
>  wrote:
>> You can probably use custom agenda commands for this. See the documentation
>> for the org-agenda-custom-commands and the corresponding section in the
>> manual [1].
>
> Custom agenda commands do not support prompting for search phrases.
>
>> You can set the org-agenda-files and
>> org-agenda-text-search-extra-files to point to the old project for
>> some custom search.
>>

You can also restrict agenda to a single file with C-u C-c C-x <.
Subsequent agenda commands and searches will only use the current file
until you remove the restriction with C-c C-x >

-Bernt


>>
>
> However the above comment gave me an idea. I could use a custom function
> to wrap  around the search  functions and use let  to bind the  value of
> agenda-files and org-agenda-text-search-extra-files as needed.
>
> Thank you very much!



Re: [O] [DEV]

2011-07-25 Thread Bastien
Hi Matthew,

Matthew Sauer  writes:

> The agenda view will be a user definable number of days calendar with
> a user defined number of days in the future view of upcoming deadlines
> or just unscheduled deadlines (a choice between the two may have to be
> implemented in the future as my skills grow and more contribute?) and
> at the bottom we would find TODO keywords (maybe I need to change this
> to != all not done keywords in the future) that are not scheduled and
> do not have a deadline on them (kind of a someday/sometime todos).

Mmhh... an interactive interface for building custom agenda views?
I'd be curious about the result, but that'd probably be useful!

> What I am needing to know is about adding an agenda view via a .el
> file to the custom agenda views.  Could I do that, something like
> this:
> -Cut here---start code---cut here---start code-
> (add-to-list
>  '(org-agenda-custom-commands
>(quote
> (
>  ("s" "Startup View"
> --Cut Here---end codecut hereend code

Did you try this?  It should not work.  

In this file in Worg

  http://orgmode.org/worg/org-tutorials/advanced-searching.html

you can see this example:

#+begin_src emacs-lisp
  (add-to-list 'org-agenda-custom-commands
   '("b" "Big books" tags "+BIB_PAGES>1000"))
#+end_src

> When I get my basic idea for the package outlined a little more I will
> ask for some help with testing on it at the github I have setup.

Keep us posted!

Thanks,

-- 
 Bastien



[O] References in Latex

2011-07-25 Thread Aditya Mandayam
Hello,

So when exporting from .org to LaTeX-PDF, I would like the references
to show up at the bottom. This does not happen currently. Why is it
so?

PS: Gleaned from
http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/

PPS: I am using the tufte-handout document class. On changing this to
the default article class, the references still do not show up.

A



Re: [O] Copy/Search Outline

2011-07-25 Thread Bastien
Hi Florian,

Florian Beck  writes:

> Firstly, I want to copy the *visible* text (minus the …, but never mind
> that); secondly, I want to be able to search only the visible text.
>
> More generally (and less org specific), how do I restrict commands to
> the visible parts of the buffer?

Sorry to drop the question like this, but IMHO this is more a request
for Emacs hackers than for Orgers.  Could you keep us posted about any
answer you get?

Thanks!

-- 
 Bastien



Re: [O] Personal wiki

2011-07-25 Thread Bastien
Hi Anders,

Anders Waldenborg  writes:

> On Sun, Jul 24, 2011 at 09:22:57PM +0200, Bastien wrote:
>> Org has `C-x n s' to narrow to a subtree.
>
> Right. The difference is that aw-org-pw re-narrows when navigating to
> a different section. Maybe that is a feature that would be useful
> directly in org instead. Maybe pre/post-link-follow hooks could do
> that?

Mmhh.. do you really use this often?  I mean: it's quite useful to work
from a wide buffer when navigating -- narrowing is just for quickly
focusing on something.  (But maybe I should rather test your file and
see how useful it can be.)

> Also aw-org-pw autowidens on isearch. (the reason for that is that when
> used as a personal wiki each section should be small, so searching is
> seldom required within a section, and searching the full "wiki" is
> more useful).

Okay - since narrowing in Org is not that frequent and Org files can 
be very large, I guess it's better to *not* auto-widen on isearch.

> But the more I think about it maybe I should just use [[...]] as it
> would greatly simplify the implementation.

:)

> Thanks for your input!

You're welcome,

-- 
 Bastien



Re: [O] org unavailable in ELPA package manager

2011-07-25 Thread Bastien
Hi Max,

Max Roberts-Zirker  writes:

> Thanks for the quick follow up. I'm encouraged to know that there is
> an active community here.

There is :)

Can we start again with the problem at hand?

Here is how I read it:

- you use Emacs 23.2
- you do M-x list-packages RET
- you don't see "org" as a proposed ELPA package.

Is that right?  If so, does it happen when launching Emacs
with ~$ emacs -Q ?

Thanks for further details,

-- 
 Bastien



Re: [O] CLOCKTABLE multiply time expended by hourly rate?

2011-07-25 Thread Bastien
Hi Daniel,

Daniel E.Doherty  writes:

> Bastien, I did not use the T specifier at all.  

Why?  

'T' is needed for duration computation -- unless you use the 
specific calc format for time and date manipulation.

HTH,

-- 
 Bastien



Re: [O] Org Mobile Writing App (a la Epistle/Paragraft)

2011-07-25 Thread Bastien
Hi Tycho,

tycho garen  writes:

> I've created a little script that links all of my org-files into a
> place where Epistle can see them in dropbox
> (http://tychoish.com/code/epistle-linker/), and while the rendering
> doesn't work, it is nice to be able to read and edit these files. I've
> also, as an aside created some procmail and shell glue that takes
> emails and inserts them into an org-file so that I can capture stuff
> on the go using the email program. That's here: 
>
> http://tychoish.com/code/org-mail/

This is neat.  I added a section in Worg to org-hacks (at the 
bottom of the file.)

Thanks,

-- 
 Bastien



Re: [O] Special Characters In Tags

2011-07-25 Thread Bastien
Hi aditya,

aditya siram  writes:

> Hi all,
> Are special characters allowed in tags? 

The standard regexp for matching tags is ":[[:alnum:]_@#%:".
So no, special characters are not allowed, especially "&" and
parentheses, and there is no escape character to allow them.

Sorry!

-- 
 Bastien



Re: [O] iCalendar export

2011-07-25 Thread Arun Persaud
Hi

>>> And have anyone got this information to their mobile devices? Android?

I do a simple two-way sync (well, kind of two-way) using the method
described here:

http://orgmode.org/worg/org-tutorials/org-google-sync.html

ARUN



Re: [O] Ctrl-Tab behaviour

2011-07-25 Thread A. Ryan Reynolds

On Jul 25, 2011, at 5:57 PM, Aditya Mandayam wrote:

> Hello,
> 
> I use swbuff with Ctrl-Tab and Ctrl-Shift-Tab bound to cycle between
> active buffers. I additionally use some regex to skip all internal
> buffers.
> 
> Now this behaviour breaks when I visit a buffer with a .org file. How
> can I fix this?


By default I believe the conflicting binding is set, in Org, to 
org-force-cycle-archived. If you unset that binding, it should not conflict, 
and hopefully swbuff will work correctly (I do not use swbuff so I cannot say 
for certain).
--
A. Ryan Reynolds







[O] Ctrl-Tab behaviour

2011-07-25 Thread Aditya Mandayam
Hello,

I use swbuff with Ctrl-Tab and Ctrl-Shift-Tab bound to cycle between
active buffers. I additionally use some regex to skip all internal
buffers.

Now this behaviour breaks when I visit a buffer with a .org file. How
can I fix this?

Thanks,

-A



Re: [O] CLOCKTABLE multiply time expended by hourly rate?

2011-07-25 Thread Daniel E . Doherty
At Mon, 25 Jul 2011 23:02:38 +0200,
bzg wrote:
> 
> The 'T' format does this: 
> 
> 1. it converts HH:MM:SS strings to integers (number of seconds) 
> 2. it applies the formulas to these integers
> 3. it formats the output as HH:MM:SS
> 
> So I guess you cannot combine it with "f2" -- let me know if 
> combining 'T' and 'f2' is the real problem at hand.
> 

Bastien, I did not use the T specifier at all.  Here is the table
again.  I use only the f2 specifier and I get the same result with no
specifier.  It looks like you are converting to H:M:S form (actually,
H:M or M:S form, I can't tell which) even without any format specifier.  

I think that without the T format specifier, org is taking the time
durations to be fractions again.  If you look at the fourth line of the
body of my table below, the 5:40, when multiplied by 50 yields 25:4.
This only makes sense if these numbers are treated as fractions.  This
was the behaviour that prompted my original question.  It looked like it
was fixed when I went from org-version 7.5 to 7.6, but it looks like its
back again in the latest git pull.

| Headline  | 
Time|   |  |   |
|---+-+---+--+---|
| *Total time*  | 
*28:09* |   |  | 0 |
|---+-+---+--+---|
| Lawsuit for Debt Against Rose Funding, LLC (1016-cv18431) | 
28:09   |   |  | 0 |
| Activities|   
  | 28:09 |  | 0 |
| DONE Activity Log |   
  |   | 0:05 | 0 |
| DONE Draft Complaint for Damages  |   
  |   | 5:40 |  25:4 |
| DONE Meet with Kevin Jones and Elizabeth Bennett re Complaint |   
  |   | 0:32 | 0 |
| DONE [#A] Motion for Appointment of Private Process Server|   
  |   | 1:24 | 25:12 |
| DONE [#A] File Affidavit of Service with Court|   
  |   | 0:25 | 0 |
| [2010-07-27 Tue 11:16] Phone call from Mark Sheister  |   
  |   | 0:11 | 0 |
| Research regarding compulsory counterclaim, res judicata  |   
  |   | 1:23 | 50:23 |
| Work on brief in opposition to motion to dismiss. |   
  |   | 3:03 |50 |
| Prepared for Hearing  |   
  |   | 0:24 | 0 |
| Hearing on Case Status (Div 25:7th Flr) <2010-10-19 Tue 09:00>|   
  |   | 0:30 | 0 |
| Hearing on Motion to Dismiss <2010-11-30 Tue 09:00>   |   
  |   | 1:15 |  10:3 |
| Hearing on Motion to Dismiss <2010-12-21 Tue 09:00>   |   
  |   | 1:09 |  50:9 |
| Status Hearing <2011-01-25 Tue 09:00> |   
  |   | 1:31 | 50:31 |
| Status Hearing <2011-04-26 Tue 09:00> |   
  |   | 1:42 | 25:21 |
| Called Kevin [[bbdb:Stacy]].  Left voicemail to call re settlement offer. |   
  |   | 0:04 | 0 |
| DONE Call [[bbdb:Sheister]] with counter offer.   |   
  |   | 0:06 | 0 |
| [#B] Draft Interrogatories for Rose, Swords   |   
  |   | 4:48 |  25:6 |
| Argo Status Hearing <2011-06-28 Tue 09:00>|   
  |   | 1:09 |  50:9 |
| Letter of Discovery Deficiencies  |   
  |   | 2:48 | 25:12 |
#+TBLFM: $5=$4*50;f2


Thanks,

Dan.



Re: [O] how to change the headline starter *

2011-07-25 Thread Bastien
Hi Carsten,

Carsten Dominik  writes:

>> This confirms my intuition that the "*" should be hardcoded.
>
> One argument against hardcoding would be that you can use org-cycle
> in other modes, with outline-minor-mode, and I think a number of people
> make use of this.

Yes, I confirm this is (partly) broken.  

I use this in emacs-lisp-mode:

#+begin_src emacs-lisp
(defun org-cycle-global ()
  (interactive)
  (org-cycle t))

(defun org-cycle-local ()
  (interactive)
  (save-excursion
(move-beginning-of-line nil)
(org-cycle)))

(global-set-key (kbd "C-M-]") 'org-cycle-global)
(global-set-key (kbd "M-]") 'org-cycle-local)
#+end_src

org-cycle-local still works, but org-cycle-global doesn't anymore.

I'll try to look at this.

> Of cause, if indeed an interesting speed bump can be achieved, we
> can provide a stand-alone org-cycle, maybe even integrate it into
> outline-mode itself.

Yes, this makes sense to have this in outline-mode rather than in
org-mode.  

-- 
 Bastien



Re: [O] T-shirt idea

2011-07-25 Thread Bastien
Hi Carsten,

Carsten Dominik  writes:

> I talked to Sabrina earlier today, and these T-Shirts (for both
> dads and moms) are now in the shop.
>
> http://orgmode.spreadshirt.de/p5

Great!!

> Unfortunately there is a problem with the US shop which does
> not allow this specific type of image on small T-Shirts - but
> in the EU shop they look sweet :)

Hehe, let's check European birth rate vs US birth rate in a few 
years from now...

> If you have specific requests or questions, ask here or mail to
> me, I will forward them to the shop designer.

Thanks for contacting him and allowing this!

Best,

-- 
 Bastien



Re: [O] Org-Mode Homepage error

2011-07-25 Thread Bastien
Hi all and Sebastian,

thanks for signaling this problem -- I fixed it on the server.

This commit creates problems when exporting using org-info.js: 

  
http://orgmode.org/w/?p=org-mode.git;a=commit;h=2f1fbc58be1dc48621217d666da7bc46c3c5d84e

This is no real surprise, as the commit changes the underlying
div structure of an HTML page produced by Org...

Sebastian, what would be need to make org-info.js compatible
with both the old HTML structure and the new one, which is:


   
  

  
  

  
  


(With the "preamble"/"content"/"postamble" strings being defined
in the variable `org-export-html-divs'.)

If that's too complicate, perhaps we can enforce another structure
for divs.

Thanks for your time!

-- 
 Bastien



Re: [O] Org Mobile Writing App (a la Epistle/Paragraft)

2011-07-25 Thread Jeff Horn
I'd be interested in something like this! Maybe the standard org file
format will increase development activity for mobile devices.

On Sat, Jul 23, 2011 at 14:17, tycho garen  wrote:
> I must confess that I've fallen onto the Tablet bandwagon, and despite
> the alure of having a more functional mobile-org,I went for an android
> tablet (to match the phone, and because I'm not a mac user.) Largely I
> think it's great, and while I've got a mobile-org setup that I like
> well enough, I found myself saying "wouldn't it rock, if..." a few
> times and I just wanted to float the idea with you.
>
> While I think mobile-org is a great concept for making all of the task
> planning and organization features of org more accessible on the go,
> it's not quite so good for taking notes and doing the kind of writing
> that I spend most of my waking hours doing these days.
>
> I've been using a really delightful little app called
> [Epistle](http://kooklab.com/epistle.html) which renders markdown text
> (a fetish of mine that predates org-mode,) that works with dropbox. I
> think I learned about this from someone on the list. I suspect it's a
> lot like Paragraft for those of you on the otherside.
>
> I've created a little script that links all of my org-files into a
> place where Epistle can see them in dropbox
> (http://tychoish.com/code/epistle-linker/), and while the rendering
> doesn't work, it is nice to be able to read and edit these files. I've
> also, as an aside created some procmail and shell glue that takes
> emails and inserts them into an org-file so that I can capture stuff
> on the go using the email program. That's here:
>
> http://tychoish.com/code/org-mail/
>
> Wouldn't it be nice to have something like Epistle for org-mode? It
> might just render org-mode text to HTML, and frankly that would be
> enough for me. Org-indent equivalent, syntax highlighting, and
> collapsing trees (probably in that order) might be nice as well, but I
> think the key is simple and quick...
>
> I'm not a developer, so I can't promise to start making an app this
> instant if there's interest, but if anyone's bored and thinks this
> might be a good idea (or knows of something that might work better for
> this.) I'd love to hear about it.
>
> Cheers,
> Sam
>
> --
> tycho(ish) @
> ga...@tychoish.com
> http://tychoish.com/
> "don't get it right, get it written" -- james thurber
>



-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/



Re: [O] %(SEXP) with %c in org-capture templates

2011-07-25 Thread Bastien
Philipp Möller  writes:

> A patch for the doc string and the info manual is attached. Let me
> know if anything is wrong with it.

Applied, thanks a lot!

-- 
 Bastien



Re: [O] CLOCKTABLE multiply time expended by hourly rate?

2011-07-25 Thread Bastien
Hi Daniel,

Daniel E.Doherty  writes:

> Has the 'T' format specifier messed up the interpretation of column 4 as
> a number of minutes for calulation purposes?

The 'T' format does this: 

1. it converts HH:MM:SS strings to integers (number of seconds) 
2. it applies the formulas to these integers
3. it formats the output as HH:MM:SS

So I guess you cannot combine it with "f2" -- let me know if 
combining 'T' and 'f2' is the real problem at hand.

Thanks!

-- 
 Bastien



Re: [O] eps and png pictures

2011-07-25 Thread Russell Adams
In Worg under the R examples there is a dual-format example where
jpg/png is used for INLINE viewing and HTML export, and Latex uses
eps/pdf.

Good luck.

On Mon, Jul 25, 2011 at 06:22:23PM +0200, Piter_ wrote:
> Hi all.
> I am writing a draft of my thesis using org-mode.
> The problem I have is the following. If I use png pictures they are
> not compatible with export to latex, and if I use eps pictures, than I
> cant view them inline in the ogr-mode.
> Any recomendations about it?
> Thanks.
> Petro.
>


--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3



Re: [O] Org-Mode Homepage error

2011-07-25 Thread Nick Dokos
Michael Markert  wrote:

> Hi,
> 
> On 25 Jul 2011, Renger van Nieuwkoop wrote:
> > Hi The hyperlinks on the left of the change page
> > (http://orgmode.org/Changes.html) do not work (Firefox and Chrome).
> 
> I can't confirm if by "on the left" you mean the scrollable panel that
> links to anchors on the page.
> 
> Michael

I see the same thing as Renger: there may be links on the left, but the
page itself seems empty except for title, date, author, org version and
the HTML validation link - in particular, no anchors.

If I look at Page Source I can see everything, so somehow the
outline-containers have become invisible for me.

I ran firebug and got this error

,
| b.CI is null
| [Break On This Error] b.HI=(b.HI+1)%50;}b.SKIP_H=false;b.CI[a.HI]){var 
b=parseInt(a.H[a.HI][0]); 
`

on line 172 of org-info.js, but I don't know if this is real or a red
herring.

Also when the pointer hovers over e.g. "Older changes" i.e. the last
link in the scrollable list, the echo area (lower left where the link is
shown) shows:

javascript:org_html_manager.go(278)

but clicking does nothing (except pop up another instance of the above
error in the firebug console).

HTH,
Nick







Re: [O] Org-Mode Homepage error

2011-07-25 Thread Sebastien Vauban
Hi Renger and Michael,

Michael Markert wrote:
> On 25 Jul 2011, Renger van Nieuwkoop wrote:
>> Hi The hyperlinks on the left of the change page
>> (http://orgmode.org/Changes.html) do not work (Firefox and Chrome).
>
> I can't confirm if by "on the left" you mean the scrollable panel that links
> to anchors on the page.

I confirm that nothing happens when clicking on the links in the left sidebar
of the above mentioned page -- though my Firefox is not blocking JavaScript.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Org-Mode Homepage error

2011-07-25 Thread Michael Markert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 25 Jul 2011, Renger van Nieuwkoop wrote:

> Yes, for example if I click on for example "Version 7.5" I still see
> the xhtml message from 7.6. Nothing changes.

Please CC the mailing list on followups.

The problem only with javascript. Once it's disabled all works.

Michael

> -Original Message-
> From: Michael Markert [mailto:markert.mich...@googlemail.com] 
> Sent: Monday, July 25, 2011 9:42 PM
> To: Renger van Nieuwkoop
> Cc: emacs-orgmode@gnu.org
> Subject: Re: Org-Mode Homepage error
>
> Hi,
>
> On 25 Jul 2011, Renger van Nieuwkoop wrote:
>> Hi The hyperlinks on the left of the change page
>> (http://orgmode.org/Changes.html) do not work (Firefox and Chrome).
>
> I can't confirm if by "on the left" you mean the scrollable panel that
> links to anchors on the page.
>
> Michael
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJOLc2mAAoJEHHMVUK0UjKVPSoQAMdZhh4VBPS0ZSMxDTTpXeO0
l/M0M4XyHOXmTHPBBngQfZrM6Dr+cp29yG76k/hBmEJRYIE9mzvJ+TdMWHul/Zdb
9f/CZ54orqpu72pFMb/3NpE8Q7E0rhdAQG+ffJFnJXHJWNBYy2vIJHtafE574Cz/
Mimsathdi2bFahevPS/DhgKnllTJI33AxQ6CvKIfaVXjPZcV6EUjRkg7kdAsYFg1
lNnoVzxJ3qAIviMwbiHu//Uw3rH97I8nfw/wf+mH8YcykpiDZW0BTYJFw6S4tnmp
C4p/ld9c2PNaoRB8SG+B24MBKH604nQ/0qu8b2drOHD1N053ZuB1+CFAUpZEs4Xd
5h38R+56hg+Emfv7pEpBIuh9s1eTxyn5bRPjQZf9Tdz3UfX08NqEk3yS7rreI/Fh
02FBsdytfiD5OZriuIxgjGLH+WFvfPA2bcoTbDQwLAnuSCwb/lE1AcMAzFc8hiEh
RDYEVkJYV0zp9I1kskji+rw2mLp8KYZdPchanhL3zU/Fwi/C4n7P8sMEyrewrhDS
vGf9/FUosIaMaSoZDURLLSMvkY14gf9UQuxObmkLtSesXTeRVKz2sN2mQKqSCebS
Cawuxr3wFVBwvkGWvKbgWEIZnf8Am3wtaWhCruWN7TtDFE+SOUPLwRHW/RHCgzcA
mJmxfz5MIN2CTg1oxP3t
=5x3h
-END PGP SIGNATURE-



Re: [O] Question about org-search-view and org-occur-in-agenda-files

2011-07-25 Thread suvayu ali
Hi Darlan,

On Mon, Jul 25, 2011 at 8:29 PM, Darlan Cavalcante Moreira
 wrote:
> You can probably use custom agenda commands for this. See the documentation
> for the org-agenda-custom-commands and the corresponding section in the
> manual [1].

Custom agenda commands do not support prompting for search phrases.

> You can set the org-agenda-files and
> org-agenda-text-search-extra-files to point to the old project for
> some custom search.
>

However the above comment gave me an idea. I could use a custom function
to wrap  around the search  functions and use let  to bind the  value of
agenda-files and org-agenda-text-search-extra-files as needed.

Thank you very much!

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Org-Mode Homepage error

2011-07-25 Thread Michael Markert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi,

On 25 Jul 2011, Renger van Nieuwkoop wrote:
> Hi The hyperlinks on the left of the change page
> (http://orgmode.org/Changes.html) do not work (Firefox and Chrome).

I can't confirm if by "on the left" you mean the scrollable panel that
links to anchors on the page.

Michael
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJOLcceAAoJEHHMVUK0UjKVeewP/RbxlLIe30Z7wfSLwzHWpuhH
GpPDsAJhbBDzJTXkCsQBcVDuuUu4lkUCmtAgArVMdlhWEDwCTO56fuKRClCM+rkg
RSS4Pf2kObSk/cJel4SA9vAPKrbGtWpxQgVpGL2Ku5Ip8yT2KIS0KbqgFVqnVo0g
zW/3o2MNOpsoiuWbpkbSULZeFtIvQk47Y9CECtDJXl9trN0/k0+hqeHHqA00L+gM
iq0PPZCiPpIPBZLmZbC3BM529rwYIlsXVgK0Ll1R3NYhaJBjzHlqJ1ShQxjSG8TX
9PJLDAlM4drU8rrKO8Pl21AllrReRd/bKE9e+NFo2NUqzEkUJEWzOBkTFUFyIJcl
GHsqH7XtNM/IZgznt2KCCFs3RcTVBGScoa8k4TDSjghajzy70lA2tDiILakd5NCl
cRFn+IEn3lNU/fX/NB7vJ2kn1oQGs/RJZd3EnKSQ50+QM2k967DpxSOojfVhdfwO
QJey6NzXstV2vhFY4BmMQjjR2kHiTnR9IrXy8L2YNR+EeOJ+WrVOjIVXE2URXnQO
maux7y3bVQxG9HzjUvaOTwOoR/YOh3lyjQAuu0AWk1qkYBJVvr+QGUkOvm8PqrST
rxQHCKqLyT5zOZhofMwAFgvi28QNcl5QCcVAFX8OB4LELrCVnCRTL9pwf9rCi286
xIvowyrco6JLRqbpR1ry
=vt71
-END PGP SIGNATURE-



[O] Org-Mode Homepage error

2011-07-25 Thread Renger van Nieuwkoop
Hi
The hyperlinks on the left of the change page (http://orgmode.org/Changes.html) 
do not work (Firefox and Chrome).
Renger

_




Re: [O] One screen with agenda views and column view question

2011-07-25 Thread Renger


> 
> Hi
> If I use my agenda views, what happens is that the screen is always split in
two buffers. I would like to have my
> agenda views without splitting the windows. Is there an option for this?
> Another question: I tried to define my column views with width for the
specific columns. It is however hard
> to get the column headers in line with the columns. Is there a trick for this?
> 
> TASK   |  EFFORT |  <-heading
> Have dinner   |1:00| <- entry
> 
> Instead of 
> TASK|  EFFORT | <-heading
> Have dinner | 1:00|  <- entry
> 
> Thanks
> Renger
> 
> 

Renger van Nieuwkoop  ecoplan.ch> writes:

Hi
I solved the first problem and edited the second one (see above)
Renger








Re: [O] Question about org-search-view and org-occur-in-agenda-files

2011-07-25 Thread Darlan Cavalcante Moreira

You can probably use custom agenda commands for this. See the documentation
for the org-agenda-custom-commands and the corresponding section in the
manual [1]. You can set the org-agenda-files and
org-agenda-text-search-extra-files to point to the old project for some
custom search.

For instance, I use
--8<---cut here---start->8---
#+begin_src emacs-lisp
  (setq org-agenda-custom-commands
(quote (
... Some custom commands
("N" . "Search in notes.org")
("Nw" search ""
((org-agenda-files '("~/org/notes.org"))
 (org-agenda-text-search-extra-files nil)))
("Nt" tags ""
((org-agenda-files '("~/org/notes.org"))
 (org-agenda-text-search-extra-files nil)))
... Some more custom commands
)))
#+end_src
--8<---cut here---end--->8---

This allows-me to perform a search only in my org/notes.org file without
actually changing my org-agenda-files.

--
Darlan

[1] - http://orgmode.org/org.html#Custom-agenda-views


At Sat, 23 Jul 2011 19:36:16 +0200,
suvayu ali  wrote:
> 
> Hi Orgers,
> 
> I know that I can use `org-search-view' or `org-occur-in-agenda-files'
> from the agenda to search for some string on all my agenda files. And I
> can customise `org-agenda-text-search-extra-files' to include extra text
> files.
> 
> These search functions are quite powerful in general, so I was wondering
> if these functions can be used to do a search restricted to say a list
> of files or to org files within a directory. If I could wrap these in my
> own functions, even that would be amazingly helpful.
> 
> To illustrate a use case, I recently switched research projects[1]. I
> keep all my files related to the OLDPROJ under ~/org/OLDPROJ/ and all my
> files related to the NEWPROJ under ~/org/NEWPROJ/[2]. Now when I perform
> a text search I want to include only the NEWPROJ along with my agenda
> files (located in ~/org/). Now I would like to have an interface (either
> through the agenda menu or through some interactively called function)
> to perform a search _only_ on the OLDPROJ files when necessary. Is that
> possible?
> 
> Any hints as to how I can achieve this would be amazingly helpful.
> Thanks. :)
> 
> 
> Footnotes:
> 
> [1] I am using the word project rather loosely to describe a
> super-project with several sub-projects which are rather significant
> by themselves.
> 
> [2] These project directories have their own structure based on
> sub-projects and other needs.
> 
> -- 
> Suvayu
> 
> Open source is the future. It sets us free.
> 



Re: [O] Referring to ID in other Org-mode file

2011-07-25 Thread Darlan Cavalcante Moreira

You don't need to type this manually. Use org-store-link (usually "C-c l")
in a sub-tree to store the link (it uses the sub-tree's id - it will ever
create an id if there isn't one already). Then use org-insert-link (usually
"C-c C-l") to insert the link.

--
Darlan

At Sat, 23 Jul 2011 18:45:01 +0200,
Karl Voit  wrote:
> 
> * Memnon Anon  wrote:
> > Karl Voit  writes:
> >
> >> How can I refer to an ID in another Org-mode file (withing the same
> >> folder)?
> > [...]
> >> I was searching in the Org-mode manual but could not find any
> >> solution for my problem. Either this is not possible or I could not
> >> find the (existing) solution yet.
> >
> > ,[ (info "(org)Search options") ]
> > `
> 
> Sorry, I was not searching good enough. Shame on me :-(
> 
> In this case, that method is exactly what I need:
> 
> file:README.org::*foobar
> 
> Since GitHub's interpretation of Org-mode files is not that
> perfect I want to avoid drawers containing IDs at all.[1]
> 
> The more I am using Org-mode the more I see its beauty :-)
> 
>   1. https://github.com/novoid/Memacs
> -- 
> Karl Voit
> 
> 



Re: [O] One screen with agenda views and column view question

2011-07-25 Thread Bernt Hansen
Renger van Nieuwkoop  writes:

> If I use my agenda views, what happens is that the screen is always
> split in two buffers. I would like to have my agenda views without
> splitting the windows. Is there an option for this?

Look at the variable org-agenda-window-setup.  Maybe you want
'current-window or 'other-frame instead of the default
'reorganize-frame?

Regards,
Bernt



Re: [O] [bug] org block not correctly exported to LaTeX

2011-07-25 Thread Bernt Hansen
Thomas Holst  writes:

> Hi Bastien,
>
> thanks for your answer. 
>
>>> when the follwing org-file is exported to LaTeX, #+BEGIN_ORG
>>> and #+END_ORG is inserted in the tex-file.
>>
>> You surely want
>> #+begin_src org
>> #+end_src org
>> "#+begin_org" doesn't exist.
>
> #+BEGIN_ORG 
> #+END_ORG
>
> gets inserted by org-babel. Here is the relevant part of ob.el lines
> 1620 ff.
>
> #+srcname: ob.el
> #+begin_src emacs-lisp
>   ;; 
>   ((member "org" result-params)
>(wrap "#+BEGIN_ORG" "#+END_ORG"))
>   ;; ...
> #+end_src emacs-lisp
>
> Here is an example which shows the issue.
>
> #+begin_src org
> * Testing org-babel perl
>   
>   #+srcname: TestingPerl
>   #+begin_src perl :exports results :results output org
> print("#+CAPTION: A caption\n");
> print("#+LABEL: tbl:dvi\n");
> print("#+ATTR_LaTeX: placement[H]\n");
> print("| *bold/T* |\n");
> print("||\n");
> print("| normal |\n");
>   #+end_src
>   #+results: TestingPerl
>   #+BEGIN_ORG
>   #+CAPTION: A caption
>   #+LABEL: tbl:dvi
>   #+ATTR_LaTeX: placement[H]
>   | *bold/T* |
>   ||
>   | normal |
>   #+END_ORG
> #+end_src org

Hi Thomas,

You have nested #+begin_src / #+end_src in this example.  I'm not sure
that is supported.

Fontification of this example seems to indicate that the
second #+begin_src perl is invalid and the first #+end_src terminates
the #+begin_src org

-Bernt



Re: [O] [babel] :file header

2011-07-25 Thread Eric Schulte
Did you see my response to your previous email on this subject?

Max Flöttmann  writes:

> Hi,
> I'm working with org-mode and babel to write annotated R-scripts. I include a 
> lot of code blocks that should write their graphics to a file.
> I'm usually using the :file argument for that, but on my Mac this doesn't 
> work anymore.
>
> A code block like this:
> #+begin_src R :file test.pdf :session test
>  plot.Data(data)
> #+end_src
>
> Should be sent to the session 'test' and should be wrapped in the code to 
> produce a pdf. This wrapping does not work.
> The result is a link to the file, but the file is not produced. The session 
> does not show the wrapper code either.
>
> I'm using Aquamacs 2.2 and Org-mode version 7.6 (release_7.6.1.gc51d).
> Does anybody know a fix for this?
> Regards,
>
> Max

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



[O] One screen with agenda views and column view question

2011-07-25 Thread Renger van Nieuwkoop
Hi
If I use my agenda views, what happens is that the screen is always split in 
two buffers. I would like to have my agenda views without splitting the 
windows. Is there an option for this?
Another question: I tried to define my column views with width for the specific 
columns. It is however hard to get the column headers in line with the columns. 
Is there a trick for this?

TASK   |  EFFORT |  <-heading
Have dinner   |1:00| <- entry

Instead of 
TASK|  EFFORT | <-heading
Have dinner |  1:00|  <- entry

Thanks
Renger






Re: [O] [bug] org block not correctly exported to LaTeX

2011-07-25 Thread Eric Schulte
Thomas Holst  writes:

> Hi Bastien,
>
> thanks for your answer. 
>
>>> when the follwing org-file is exported to LaTeX, #+BEGIN_ORG
>>> and #+END_ORG is inserted in the tex-file.
>>
>> You surely want
>> #+begin_src org
>> #+end_src org
>> "#+begin_org" doesn't exist.
>
> #+BEGIN_ORG 
> #+END_ORG
>
> gets inserted by org-babel.

Yes, Babel uses the #+begin/end_org as markers, so that it can identify
the beginning and end of raw Org-mode results when those results need to
be deleted or replaced with new results.

Since these are just used as markers and are functionally equivalent to
comment lines (e.g., no special treatment of the portion between the
begin_org and end_org lines) we didn't really coordinate this with the
results of Org-mode.

It seems however that since comments must start on the first character
of a line, these don't work when indented.

Would it be difficult to recognize these two lines as comments when they
are indented?  Note we also have #+begin/end_result lines which may
likely have similar issues.

Best -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] Suppress visibility cycling for a specific tree

2011-07-25 Thread suvayu ali
Hi Carsten,

On Mon, Jul 25, 2011 at 3:24 PM, Carsten Dominik
 wrote:
> Archived trees are kept closed by the function
> `org-cycle-hide-archived-subtrees', which is called by
> `org-cycle-hook'.  You could define a tag of your choice
> and then put a function into org-cycle-hook that uses a let form
> to bind `org-archive-tag' to the chosen tag and then calls
> `org-cycle-hide-archived-subtrees' to do the work.
>

Thanks a lot! That works like a charm although I considering simply
choose to "retrain" my brain to use ARCHIVE. :)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] eps and png pictures

2011-07-25 Thread suvayu ali
On Mon, Jul 25, 2011 at 6:34 PM, suvayu ali  wrote:
> On Mon, Jul 25, 2011 at 6:22 PM, Piter_  wrote:
>> If I use png pictures they are
>> not compatible with export to latex
>
> Use pdflatex.

This is what I use:

(setq org-latex-to-pdf-process
  '("pdflatex -interaction nonstopmode %b"
"/usr/bin/bibtex %b"
"pdflatex -interaction nonstopmode %b"
"pdflatex -interaction nonstopmode %b"))

HTH

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] eps and png pictures

2011-07-25 Thread suvayu ali
On Mon, Jul 25, 2011 at 6:22 PM, Piter_  wrote:
> If I use png pictures they are
> not compatible with export to latex

Use pdflatex.

-- 
Suvayu

Open source is the future. It sets us free.



[O] eps and png pictures

2011-07-25 Thread Piter_
Hi all.
I am writing a draft of my thesis using org-mode.
The problem I have is the following. If I use png pictures they are
not compatible with export to latex, and if I use eps pictures, than I
cant view them inline in the ogr-mode.
Any recomendations about it?
Thanks.
Petro.



Re: [O] LaTeX export of lists

2011-07-25 Thread Thomas S. Dye
Nicolas Goaziou  writes:

> Hello,
>
> t...@tsdye.com (Thomas S. Dye) writes:
>
>> Nicolas Goaziou  writes:
>>> That raises an interesting question: can a list belong to a paragraph in
>>> Org? According to paragraph-related regexps, it can't, for now. And your
>>> request is more a "LaTeXism" than an "Orgism" (!).
>
>> I probably don't understand your question fully, but it seems obvious to
>> me that a list can either belong to a paragraph or it can be separate.
>> I'm not certain why Org-mode would want to choose one over the other.
>
> It isn't obvious. For example, in HTML, a list within a paragraph
> doesn't even make sense[1].
>
> There's no harm in it, but you're basically faking Org and its LaTeX
> exporter, as lists and paragraphs are two distinct entities[2].
>
> Regards,
>
>
> Footnotes:
>
> [1] You can't have  within , according to
> http://www.w3.org/TR/html401/struct/text.html#h-9.3.1
>
> [2] If you try to `mark-paragraph' in your file, it won't mark both
> the text and the list in one go.

Aloha Nicolas,

Interesting observations.  Thanks.

The relation seems obvious to me because my model comes from printed
works, which commonly include enumerated lists typeset within
paragraphs.  

Perhaps given the limitation of the HTML spec and the structure of
paragraphs in Org-mode it will always be necessary to have the LaTeX
exporter take care of setting lists inside paragraphs.

Thanks again for your help with this.

All the best,
Tom

-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com



Re: [O] CLOCKTABLE multiply time expended by hourly rate?

2011-07-25 Thread Daniel E . Doherty

Bastien,

Maybe I spoke too soon.  When I try my original example with an 'f2'
format after updating to the latest git, I get the following, so I
cannot compute an invoice anymore.  That, to me, is the most important
application.

Has the 'T' format specifier messed up the interpretation of column 4 as
a number of minutes for calulation purposes?

Regards,


| Headline  | 
Time|   |  |   |
|---+-+---+--+---|
| *Total time*  | 
*28:09* |   |  | 0 |
|---+-+---+--+---|
| Lawsuit for Debt Against Rose Funding, LLC (1016-cv18431) | 
28:09   |   |  | 0 |
| Activities|   
  | 28:09 |  | 0 |
| DONE Activity Log |   
  |   | 0:05 | 0 |
| DONE Draft Complaint for Damages  |   
  |   | 5:40 |  25:4 |
| DONE Meet with Kevin Jones and Elizabeth Bennett re Complaint |   
  |   | 0:32 | 0 |
| DONE [#A] Motion for Appointment of Private Process Server|   
  |   | 1:24 | 25:12 |
| DONE [#A] File Affidavit of Service with Court|   
  |   | 0:25 | 0 |
| [2010-07-27 Tue 11:16] Phone call from Mark Sheister  |   
  |   | 0:11 | 0 |
| Research regarding compulsory counterclaim, res judicata  |   
  |   | 1:23 | 50:23 |
| Work on brief in opposition to motion to dismiss. |   
  |   | 3:03 |50 |
| Prepared for Hearing  |   
  |   | 0:24 | 0 |
| Hearing on Case Status (Div 25:7th Flr) <2010-10-19 Tue 09:00>|   
  |   | 0:30 | 0 |
| Hearing on Motion to Dismiss <2010-11-30 Tue 09:00>   |   
  |   | 1:15 |  10:3 |
| Hearing on Motion to Dismiss <2010-12-21 Tue 09:00>   |   
  |   | 1:09 |  50:9 |
| Status Hearing <2011-01-25 Tue 09:00> |   
  |   | 1:31 | 50:31 |
| Status Hearing <2011-04-26 Tue 09:00> |   
  |   | 1:42 | 25:21 |
| Called Kevin [[bbdb:Stacy]].  Left voicemail to call re settlement offer. |   
  |   | 0:04 | 0 |
| DONE Call [[bbdb:Sheister]] with counter offer.   |   
  |   | 0:06 | 0 |
| [#B] Draft Interrogatories for Rose, Swords   |   
  |   | 4:48 |  25:6 |
| Argo Status Hearing <2011-06-28 Tue 09:00>|   
  |   | 1:09 |  50:9 |
| Letter of Discovery Deficiencies  |   
  |   | 2:48 | 25:12 |
#+TBLFM: $5=$4*50;f2
#+END:


At Mon, 25 Jul 2011 00:58:24 +0200,
bzg wrote:
> 
> Hi Daniel,
> 
> Daniel E. Doherty  writes:
> 
> > | Headline  
> > | Time|   |  |   |
> > |---+-+---+--+---|
> > | *Total time*  
> > | *28:09* |   |  | 0 |
> > |---+-+---+--+---|
> > | Lawsuit for Debt Against Rose Funding, LLC (1016-cv18431) 
> > | 28:09   |   |  | 0 |
> > | Activities
> > | | 28:09 |  | 0 |
> > | DONE Activity Log 
> > | |   | 0:05 | 0 |
> > | DONE Draft Complaint for Damages  
> > | |   | 5:40 |  25:4 |
> > | DONE Meet with Kevin Jones and Elizabeth Bennett re Complaint 
> > | |   | 0:32 | 0 |
> > | DONE [#A] Motion for Appointment of Private Process Server
> > | |   | 1:24 | 25:12 |
> > | DONE [#A] File Affidavit of Service with Court
> > | |   | 0:25 | 0 |
> > | [2010-07-27 Tue 11:16] Phone call from Mark Sheister  
> > | |   | 0:11 | 0 |
> > | Research regarding compulsory counterclaim, res judicata  
> > | |   | 1:23 | 50:23 |
> > | Work on brief in opposition to motion to dismiss. 
> > | |   | 3:03 |50 |
> > | Prepared for Hearing   

Re: [O] Attachments and refiling

2011-07-25 Thread Darlan Cavalcante Moreira

As I see changing the attach directory to point to the original one is the
easiest solution that has no chances of breaking anything and would keep
attachments working in the refiled/archived sub-trees.

Maybe a org-attach-move-files function could also be implemented to easily
move an attachment directory to a different place. It should move the
directory and automatically set the ATTACH_DIR property to the appropriated
value. Of course org could try to find out if this attach directory is also
used in a different file/sub-tree (maybe search in the agenda files and in
the current directory for org-files using this attach directory) and change
ATTACH_DIR in that file/sub-tree or warn the user before moving the
files. This won't be bullet proof but if the users only set the same attach
directory for headings in the same file, for instance (I do this), then it
would work perfectly.

Then, when the user wants the refiling/archiving process to also move the
attached files it could pass an argument before refiling/archiving and
org-attach-move-files would be called appropriately.

--
Darlan

At Mon, 25 Jul 2011 09:45:24 +0200,
Bastien  wrote:
> 
> Gustav Wikström  writes:
> 
> > I'm leaning towards not moving my archive to a different folder. I
> > like having the attachments relative.
> 
> Okay.  
> 
> But as Darlan pointed out, moving the attached files when refiling the
> entry might be dangerous, because files in this attached directory can
> also be attached in a different subtree.
> 
> I don't have a good general solution to this -- if someone has, please
> share.
> 
> > Are archive- and refile-hooks implemented b.t.w.? 
> 
> C-h v org-archive-*-hook TAG
> C-h v org-refile-*-hook TAG
> 
> helps.
> 
> There is `org-after-refile-insert-hook' but there is no
> `org-archive-hook'.  I'll consider adding this.
> 
> > This would make it
> > possible to hack a personal setting, or am I wrong?
> 
> You're probably right.  Code is proof.
> 
> -- 
>  Bastien



Re: [O] CLOCKTABLE multiply time expended by hourly rate?

2011-07-25 Thread Daniel E . Doherty
Bastien,

Here's what I get.  This is a really nice feature!  The times all look
correct and correctly formatted.

Thanks for all your work on org.

Regards,


| Headline  | 
Time|   |  |   |
|---+-+---+--+---|
| *Total time*  | 
*28:09* |   |  |  00:00:00 |
|---+-+---+--+---|
| Lawsuit for Debt Against Rose Funding, LLC (1016-cv18431) | 
28:09   |   |  |  00:00:00 |
| Activities|   
  | 28:09 |  |  00:00:00 |
| DONE Activity Log |   
  |   | 0:05 |  04:10:00 |
| DONE Draft Complaint for Damages  |   
  |   | 5:40 | 283:20:00 |
| DONE Meet with Kevin Jones and Elizabeth Bennett re Complaint |   
  |   | 0:32 |  26:40:00 |
| DONE [#A] Motion for Appointment of Private Process Server|   
  |   | 1:24 |  70:00:00 |
| DONE [#A] File Affidavit of Service with Court|   
  |   | 0:25 |  20:50:00 |
| [2010-07-27 Tue 11:16] Phone call from Mark Sheister  |   
  |   | 0:11 |  09:10:00 |
| Research regarding compulsory counterclaim, res judicata  |   
  |   | 1:23 |  69:10:00 |
| Work on brief in opposition to motion to dismiss. |   
  |   | 3:03 | 152:30:00 |
| Prepared for Hearing  |   
  |   | 0:24 |  20:00:00 |
| Hearing on Case Status (Div 25:7th Flr) <2010-10-19 Tue 09:00>|   
  |   | 0:30 |  25:00:00 |
| Hearing on Motion to Dismiss <2010-11-30 Tue 09:00>   |   
  |   | 1:15 |  62:30:00 |
| Hearing on Motion to Dismiss <2010-12-21 Tue 09:00>   |   
  |   | 1:09 |  57:30:00 |
| Status Hearing <2011-01-25 Tue 09:00> |   
  |   | 1:31 |  75:50:00 |
| Status Hearing <2011-04-26 Tue 09:00> |   
  |   | 1:42 |  85:00:00 |
| Called Kevin [[bbdb:Stacy]].  Left voicemail to call re settlement offer. |   
  |   | 0:04 |  03:20:00 |
| DONE Call [[bbdb:Sheister]] with counter offer.   |   
  |   | 0:06 |  05:00:00 |
| [#B] Draft Interrogatories for Rose, Swords   |   
  |   | 4:48 | 240:00:00 |
| Argo Status Hearing <2011-06-28 Tue 09:00>|   
  |   | 1:09 |  57:30:00 |
| Letter of Discovery Deficiencies  |   
  |   | 2:48 | 140:00:00 |
#+TBLFM: $5=$4*50;T
#+END:


At Mon, 25 Jul 2011 00:58:24 +0200,
bzg wrote:
> 
> Hi Daniel,
> 
> Daniel E. Doherty  writes:
> 
> > | Headline  
> > | Time|   |  |   |
> > |---+-+---+--+---|
> > | *Total time*  
> > | *28:09* |   |  | 0 |
> > |---+-+---+--+---|
> > | Lawsuit for Debt Against Rose Funding, LLC (1016-cv18431) 
> > | 28:09   |   |  | 0 |
> > | Activities
> > | | 28:09 |  | 0 |
> > | DONE Activity Log 
> > | |   | 0:05 | 0 |
> > | DONE Draft Complaint for Damages  
> > | |   | 5:40 |  25:4 |
> > | DONE Meet with Kevin Jones and Elizabeth Bennett re Complaint 
> > | |   | 0:32 | 0 |
> > | DONE [#A] Motion for Appointment of Private Process Server
> > | |   | 1:24 | 25:12 |
> > | DONE [#A] File Affidavit of Service with Court
> > | |   | 0:25 | 0 |
> > | [2010-07-27 Tue 11:16] Phone call from Mark Sheister  
> > | |   | 0:11 | 0 |
> > | Research regarding compulsory counterclaim, res judicata  
> > | |   | 1:23 | 50:23 |
> > | Work on brief in opposition to motion to dismiss. 
> > | |   | 3:03 |50 |
> > | Prepared for Hearing  
> > | |   | 0:24 | 0 |
> > | Hearing on Case St

Re: [O] Suppress visibility cycling for a specific tree

2011-07-25 Thread Rainer Stengele
Am 25.07.2011 16:17, schrieb Carsten Dominik:
> 
> On Jul 25, 2011, at 3:24 PM, Carsten Dominik wrote:
> 
>>
>> On Jul 25, 2011, at 2:13 PM, suvayu ali wrote:
>>
>>> Hi,
>>>
>>> Is it possible to suppress visibility cycling for a particular tree?
>>> What I am looking for is the behaviour of an ARCHIVEd tree. I have some
>>> general guidelines and local config in this tree that I don't want to
>>> see usually but since it is technically not archived information I am
>>> looking for an alternate means to a similar goal.
>>>
>>> Could I specify a special tag of my own and define the behaviour I want
>>> with elisp? Where do I start looking for this?
>>
>> Archived trees are kept closed by the function
>> `org-cycle-hide-archived-subtrees', which is called by
>> `org-cycle-hook'.  You could define a tag of your choice
>> and then put a function into org-cycle-hook that uses a let form
>> to bind `org-archive-tag' to the chosen tag and then calls
>> `org-cycle-hide-archived-subtrees' to do the work.
>>
>> Hope this gets you on the path.
> 
> Actually, the true zen[1] way to do this is to use ACHIVE anyway
> and change your brain to accept that ARCHIVE does not mean the
> thing is archived at all.  Or do

brain changes are costly and confusing ;)

> 
> (setq org-archive-tag "KEEPCLOSED")
> 
> :-)
> 
> The side effect of this is that stuff in these trees ill never
> contribute t the agenda - but if it is setup stuff, you
> probably do not care

No, it is not setup stuff, just a blurb of stuff I do not want to see every 
time cycling through the subtree ..

> 
> These solutions will work if the subtree does not contain stuff
> relevant for agendas.

It can contain agenda stuff, so that solution maybe zen'ish but not working for 
me.
If you saw my code and find something wrong please help along!
Thanks!

- rainer

> 
> - Carsten
> 
> 
> 
> [1] The book of knowledge defines Zen as:
> Zen emphasizes experiential wisdom in the attainment of
> enlightenment. As such, it de-emphasizes theoretical knowledge
> in favor of direct self-realization through meditation and dharma practice
> 
> 
> 




Re: [O] Suppress visibility cycling for a specific tree

2011-07-25 Thread Rainer Stengele
Am 25.07.2011 15:24, schrieb Carsten Dominik:
> 
> On Jul 25, 2011, at 2:13 PM, suvayu ali wrote:
> 
>> Hi,
>>
>> Is it possible to suppress visibility cycling for a particular tree?
>> What I am looking for is the behaviour of an ARCHIVEd tree. I have some
>> general guidelines and local config in this tree that I don't want to
>> see usually but since it is technically not archived information I am
>> looking for an alternate means to a similar goal.
>>
>> Could I specify a special tag of my own and define the behaviour I want
>> with elisp? Where do I start looking for this?
> 
> Archived trees are kept closed by the function
> `org-cycle-hide-archived-subtrees', which is called by
> `org-cycle-hook'.  You could define a tag of your choice
> and then put a function into org-cycle-hook that uses a let form
> to bind `org-archive-tag' to the chosen tag and then calls
> `org-cycle-hide-archived-subtrees' to do the work.
> 
> Hope this gets you on the path.
> 
> - Carsten
> 
> 
> 
Thanks, Carsten,

this works, added to my .emacs:

(defun custom-org-cycle-hide-hidden-subtrees (state)
  "temporarily set archive tag to 'HIDE', then hide archived subtree"
  (let ((org-archive-tag "HIDE"))
(org-cycle-hide-archived-subtrees state)))
;; add function to be called when cycling takes place: hides subtrees with 
"HIDE" tag
(add-hook 'org-cycle-hook 'custom-org-cycle-hide-hidden-subtrees)

Please remember that I am an emacs-lisp greenhorn.

- Rainer



Re: [O] Suppress visibility cycling for a specific tree

2011-07-25 Thread Carsten Dominik

On Jul 25, 2011, at 3:24 PM, Carsten Dominik wrote:

> 
> On Jul 25, 2011, at 2:13 PM, suvayu ali wrote:
> 
>> Hi,
>> 
>> Is it possible to suppress visibility cycling for a particular tree?
>> What I am looking for is the behaviour of an ARCHIVEd tree. I have some
>> general guidelines and local config in this tree that I don't want to
>> see usually but since it is technically not archived information I am
>> looking for an alternate means to a similar goal.
>> 
>> Could I specify a special tag of my own and define the behaviour I want
>> with elisp? Where do I start looking for this?
> 
> Archived trees are kept closed by the function
> `org-cycle-hide-archived-subtrees', which is called by
> `org-cycle-hook'.  You could define a tag of your choice
> and then put a function into org-cycle-hook that uses a let form
> to bind `org-archive-tag' to the chosen tag and then calls
> `org-cycle-hide-archived-subtrees' to do the work.
> 
> Hope this gets you on the path.

Actually, the true zen[1] way to do this is to use ACHIVE anyway
and change your brain to accept that ARCHIVE does not mean the
thing is archived at all.  Or do

(setq org-archive-tag "KEEPCLOSED")

:-)

The side effect of this is that stuff in these trees ill never
contribute t the agenda - but if it is setup stuff, you
probably do not care

These solutions will work if the subtree does not contain stuff
relevant for agendas.

- Carsten



[1] The book of knowledge defines Zen as:
Zen emphasizes experiential wisdom in the attainment of
enlightenment. As such, it de-emphasizes theoretical knowledge
in favor of direct self-realization through meditation and dharma practice




Re: [O] org-timestamp-up/down broken in tip

2011-07-25 Thread Bastien
Nicolas Goaziou  writes:

>> S- will move one character backward.
>>
>> Can you see where does this come from?
>
> Yes, I corrected this.

Thanks for the fix and for having applied the patch!

-- 
 Bastien



Re: [O] Inconsistent behaviour when #+setupfile is used recursively

2011-07-25 Thread Bastien
Hi Stefan,

Stefan Vollmar  writes:

> we use Org-mode for software documentation and have come across the
> following behaviour with version 7.6 (release_7.6.71.g22fa9):
>
> our documentation is located in the directory doc/usage,
> e.g. doc/usage/index.org or doc/usage/tutorial.org, whereas Org-Mode's
> setupfiles are stored in doc/common/org,
> e.g. doc/common/org/setup-toc-large or doc/common/org/setup-common. When we
> include a setupfile from doc/usage/index.org using
>
> #+setupfile: ../common/org/setup-toc-large
>
> everything works fine. The path of the setupfile is relative to the path of 
> index.org.
>
> However, when setup-toc-large itself includes another setupfile with
> setup-common using a relative path, the path is still treated as relative
> to index.org, not relative to setup-toc-large. Therefore, when using the
> line
>
> #+setupfile: setup-common
>
> within setup-toc-large, Org-Mode fails to find setup-common. 

This is fixed in latest git.  Thanks for signaling this bug.

Best,

-- 
 Bastien



Re: [O] %(SEXP) with %c in org-capture templates

2011-07-25 Thread Philipp Möller
On 24 July 2011 18:48, Bastien  wrote:
> Hi Philipp,
>
> Philipp Möller  writes:
>
>> nevermind. I figured out that the expansion order of %s and s
>> expressions is the problem and also the reason for the with the
>> correct URL.
>> The solution is to use %(get-page-title (current-kill 0)).
>
> Thanks for letting us know!
>
>> Can this be added to the documentation or is it supposed to be obvious
>> from the order of available template expansions?
>
> IMHO this should go in the documentation -- could you provide a patch
> for this?

A patch for the doc string and the info manual is attached. Let me
know if anything is wrong with it.

Philipp

> Thanks,
>
> --
>  Bastien
>
diff --git a/doc/org.texi b/doc/org.texi
index 87f73a8..8c6b137 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -6526,39 +6526,39 @@ buffer again after capture is completed.
 
 In the template itself, special @kbd{%}-escapes@footnote{If you need one of
 these sequences literally, escape the @kbd{%} with a backslash.}  allow
-dynamic insertion of content:
+dynamic insertion of content. The templates are expanded in the order given 
here:
 
 @smallexample
-%^@{@var{prompt}@}  @r{prompt the user for a string and replace this sequence 
with it.}
-@r{You may specify a default value and a completion table with}
-@r{%^@{prompt|default|completion2|completion3...@}.}
-@r{The arrow keys access a prompt-specific history.}
+%[@var{file}] @r{insert the contents of the file given by @var{file}.}
+%(@var{sexp}) @r{evaluate Elisp @var{sexp} and replace with the result.}
+%<...>  @r{the result of format-time-string on the ... format 
specification.}
+%t  @r{timestamp, date only.}
+%T  @r{timestamp with date and time.}
+%u, %U  @r{like the above, but inactive timestamps.}
 %a  @r{annotation, normally the link created with 
@code{org-store-link}.}
-%A  @r{like @code{%a}, but prompt for the description part.}
 %i  @r{initial content, the region when capture is called while the}
 @r{region is active.}
 @r{The entire text will be indented like @code{%i} itself.}
-%t  @r{timestamp, date only.}
-%T  @r{timestamp with date and time.}
-%u, %U  @r{like the above, but inactive timestamps.}
-%^t @r{like @code{%t}, but prompt for date.  Similarly @code{%^T}, 
@code{%^u}, @code{%^U}.}
-@r{You may define a prompt like @code{%^@{Birthday@}t}.}
-%<...>  @r{the result of format-time-string on the ... format 
specification.}
-%n  @r{user name (taken from @code{user-full-name}).}
+%A  @r{like @code{%a}, but prompt for the description part.}
 %c  @r{Current kill ring head.}
 %x  @r{Content of the X clipboard.}
-%^C @r{Interactive selection of which kill or clip to use.}
-%^L @r{Like @code{%^C}, but insert as link.}
 %k  @r{title of the currently clocked task.}
 %K  @r{link to the currently clocked task.}
+%n  @r{user name (taken from @code{user-full-name}).}
 %f  @r{file visited by current buffer when org-capture was called.}
 %F  @r{full path of the file or directory visited by current buffer.}
+%:keyword   @r{specific information for certain link types, see below.}
 %^g @r{prompt for tags, with completion on tags in target file.}
 %^G @r{prompt for tags, with completion all tags in all agenda files.}
+%^t @r{like @code{%t}, but prompt for date.  Similarly @code{%^T}, 
@code{%^u}, @code{%^U}.}
+@r{You may define a prompt like @code{%^@{Birthday@}t}.}
+%^C @r{Interactive selection of which kill or clip to use.}
+%^L @r{Like @code{%^C}, but insert as link.}
 %^@{@var{prop}@}p   @r{Prompt the user for a value for property @var{prop}.}
-%:keyword   @r{specific information for certain link types, see below.}
-%[@var{file}] @r{insert the contents of the file given by @var{file}.}
-%(@var{sexp}) @r{evaluate Elisp @var{sexp} and replace with the result.}
+%^@{@var{prompt}@}  @r{prompt the user for a string and replace this sequence 
with it.}
+@r{You may specify a default value and a completion table with}
+@r{%^@{prompt|default|completion2|completion3...@}.}
+@r{The arrow keys access a prompt-specific history.}
 @end smallexample
 
 @noindent
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index d80bddc..d18dd96 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -206,39 +206,40 @@ properties are:
  capture was invoked, kill the buffer again after capture
  is finalized.
 
-The template defines the text to be inserted.  Often this is an org-mode
-entry (so the first line should start with a star) that will be filed as a
-child of the target headline.  It can also be freely formatted text.
-Furthermore, the following %-escapes will be replaced with content:
+The template defines the text 

Re: [O] Suppress visibility cycling for a specific tree

2011-07-25 Thread Carsten Dominik

On Jul 25, 2011, at 2:13 PM, suvayu ali wrote:

> Hi,
> 
> Is it possible to suppress visibility cycling for a particular tree?
> What I am looking for is the behaviour of an ARCHIVEd tree. I have some
> general guidelines and local config in this tree that I don't want to
> see usually but since it is technically not archived information I am
> looking for an alternate means to a similar goal.
> 
> Could I specify a special tag of my own and define the behaviour I want
> with elisp? Where do I start looking for this?

Archived trees are kept closed by the function
`org-cycle-hide-archived-subtrees', which is called by
`org-cycle-hook'.  You could define a tag of your choice
and then put a function into org-cycle-hook that uses a let form
to bind `org-archive-tag' to the chosen tag and then calls
`org-cycle-hide-archived-subtrees' to do the work.

Hope this gets you on the path.

- Carsten




Re: [O] Suppress visibility cycling for a specific tree

2011-07-25 Thread Rainer Stengele
Am 25.07.2011 14:13, schrieb suvayu ali:
> Hi,
> 
> Is it possible to suppress visibility cycling for a particular tree?
> What I am looking for is the behaviour of an ARCHIVEd tree. I have some
> general guidelines and local config in this tree that I don't want to
> see usually but since it is technically not archived information I am
> looking for an alternate means to a similar goal.
> 
> Could I specify a special tag of my own and define the behaviour I want
> with elisp? Where do I start looking for this?
> 
> Thanks a lot.
> 
Hi,

+1

exactly the same thing I wanted to ask for some weeks.

- Rainer



Re: [O] Suppress visibility cycling for a specific tree

2011-07-25 Thread Rainer Stengele
Am 25.07.2011 14:13, schrieb suvayu ali:
> Hi,
> 
> Is it possible to suppress visibility cycling for a particular tree?
> What I am looking for is the behaviour of an ARCHIVEd tree. I have some
> general guidelines and local config in this tree that I don't want to
> see usually but since it is technically not archived information I am
> looking for an alternate means to a similar goal.
> 
> Could I specify a special tag of my own and define the behaviour I want
> with elisp? Where do I start looking for this?
> 
> Thanks a lot.
> 
Hi,

+1

exactly the same thing I wanted to ask for some weeks.

- Rainer




Re: [O] Suppress visibility cycling for a specific tree

2011-07-25 Thread Rainer Stengele
Am 25.07.2011 14:13, schrieb suvayu ali:
> Hi,
> 
> Is it possible to suppress visibility cycling for a particular tree?
> What I am looking for is the behaviour of an ARCHIVEd tree. I have some
> general guidelines and local config in this tree that I don't want to
> see usually but since it is technically not archived information I am
> looking for an alternate means to a similar goal.
> 
> Could I specify a special tag of my own and define the behaviour I want
> with elisp? Where do I start looking for this?
> 
> Thanks a lot.
> 
Hi,

+1

exactly the same thing I wanted to ask for some weeks.

- Rainer




[O] Suppress visibility cycling for a specific tree

2011-07-25 Thread suvayu ali
Hi,

Is it possible to suppress visibility cycling for a particular tree?
What I am looking for is the behaviour of an ARCHIVEd tree. I have some
general guidelines and local config in this tree that I don't want to
see usually but since it is technically not archived information I am
looking for an alternate means to a similar goal.

Could I specify a special tag of my own and define the behaviour I want
with elisp? Where do I start looking for this?

Thanks a lot.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] T-shirt idea

2011-07-25 Thread Carsten Dominik

On Mar 25, 2011, at 4:11 PM, Jason Dunsmore wrote:

> T-shirt idea for babies/little kids:
> http://dunsmor.com/img/110325094800.png


I talked to Sabrina earlier today, and these T-Shirts (for both
dads and moms) are now in the shop.

http://orgmode.spreadshirt.de/p5

Unfortunately there is a problem with the US shop which does
not allow this specific type of image on small T-Shirts - but
in the EU shop they look sweet :)

If you have specific requests or questions, ask here or mail to
me, I will forward them to the shop designer.

Cheers

- Carsten




[O] org-icons package (was: how to change the headline starter *)

2011-07-25 Thread Renzo Been
Bastien  altern.org> writes:

> 
> Hi Philipp,
> 
> Philipp Haselwarter  gmx.de> writes:
> 
> > Is there any particular reason for it to be hardcoded? Apart from the
> > fact that /well it just is this way right now/ I mean.
> 
> Nothing carved in stone, but here are the two reasons I see:
> 
> - we don't want users to use arbitrary regexp to match headlines as they
>   are very likely to shoot themselves in the foot (Harven's example of
>   using "-" instead of "*" is a good example of that.)
> 
> - Given this, I am not able to imagine a good way of limiting the number
>   of allowed characters.
> 
> > That'd be useful information for anyone interested in changing it. 
> 
> I'd interested in any solution to the problems above.
> 
> > Then
> > you can still just tell them to write a patch if they care that much
> > ('cause even in org-mode-land patches don't write themselves just yet)
> 
> :)
> 
> > [I just had the most awesome idea for a feature request].
> 
> Please share!
> 
> > If it's "just" about inheriting from a variable in some 300 places it
> > could at least be discussed.
> 
> Yep -- if you have the energy to go through the code and see where it is
> hardcoded while it should not, please do.  
> 
> Thanks,
> 

Hi,

I was just thinking... If you want to change the "look" of the
org-headlines. Does one really need to change the code?

I have been using Nicolas Girard's org-icons package for quite a while. And
that makes org-buffers look pretty nice. You can even customise the icons, to
make it look the way you want.

However, some things about the org-icons package... It seems to be a little
outdated.  Are there many org-moders out there still using it?  Were there
ever any plans to include it in the org-distribution? Right now it needs to be
installed by hand, because the patch to org.el is outdated...  Also, I need to
load it two times in my .emacs before the icons work...

Ciao,
Renzo

The org-icons can be found here:
Download from Nicolas Girard's github
http://github.com/ngirard/org-icons
On the Worg site I could only find screenshots, no other information...
http://orgmode.org/worg/org-screenshots.html
The list-message announcement for org-icons
http://news.gmane.org/find-root.php?message_id=%3c87zl2962um.fsf%40stats.ox.ac.uk%3e
And some list-messages discussing including the org-icons-patch into org-mode
http://news.gmane.org/find-root.php?message_id=%3c87zlbx3kvf.fsf%40kassiopeya.MSHEIMNETZ%3e




Re: [O] org-timestamp-up/down broken in tip

2011-07-25 Thread Nicolas Goaziou
Hello,

Bastien  writes:

> One small weirdness:
>
>   CLOCK: [2011-07-03 dim. 21:02]--[2011-07-13 mer. 21:03] => 240:01
> ^
> When point is at this position  |
>
> S- will move one character backward.
>
> Can you see where does this come from?

Yes, I corrected this.

> Also, the solution looks really hackish...  a big hammer for such a 
> small nail :/

"For every problem, there is a solution which is simple, clean and wrong."

Regards,

-- 
Nicolas Goaziou



Re: [O] LaTeX export of lists

2011-07-25 Thread Nicolas Goaziou
Hello,

t...@tsdye.com (Thomas S. Dye) writes:

> Nicolas Goaziou  writes:
>> That raises an interesting question: can a list belong to a paragraph in
>> Org? According to paragraph-related regexps, it can't, for now. And your
>> request is more a "LaTeXism" than an "Orgism" (!).

> I probably don't understand your question fully, but it seems obvious to
> me that a list can either belong to a paragraph or it can be separate.
> I'm not certain why Org-mode would want to choose one over the other.

It isn't obvious. For example, in HTML, a list within a paragraph
doesn't even make sense[1].

There's no harm in it, but you're basically faking Org and its LaTeX
exporter, as lists and paragraphs are two distinct entities[2].

Regards,


Footnotes:

[1] You can't have  within , according to
http://www.w3.org/TR/html401/struct/text.html#h-9.3.1

[2] If you try to `mark-paragraph' in your file, it won't mark both
the text and the list in one go.


-- 
Nicolas Goaziou



Re: [O] [bug] org block not correctly exported to LaTeX

2011-07-25 Thread Thomas Holst
Hi Bastien,

thanks for your answer. 

>> when the follwing org-file is exported to LaTeX, #+BEGIN_ORG
>> and #+END_ORG is inserted in the tex-file.
>
> You surely want
> #+begin_src org
> #+end_src org
> "#+begin_org" doesn't exist.

#+BEGIN_ORG 
#+END_ORG

gets inserted by org-babel. Here is the relevant part of ob.el lines
1620 ff.

#+srcname: ob.el
#+begin_src emacs-lisp
  ;; 
  ((member "org" result-params)
   (wrap "#+BEGIN_ORG" "#+END_ORG"))
  ;; ...
#+end_src emacs-lisp

Here is an example which shows the issue.

#+begin_src org
* Testing org-babel perl
  
  #+srcname: TestingPerl
  #+begin_src perl :exports results :results output org
print("#+CAPTION: A caption\n");
print("#+LABEL: tbl:dvi\n");
print("#+ATTR_LaTeX: placement[H]\n");
print("| *bold/T* |\n");
print("||\n");
print("| normal |\n");
  #+end_src

  #+results: TestingPerl
  #+BEGIN_ORG
  #+CAPTION: A caption
  #+LABEL: tbl:dvi
  #+ATTR_LaTeX: placement[H]
  | *bold/T* |
  ||
  | normal |
  #+END_ORG
#+end_src org

I tested replacing 

 #+BEGIN_ORG 
 #+END_ORG 

with 

 #+BEGIN_SRC org
 #+END_SRC org

But that doesn't work. The org-babel output is inserted verbatim when
exported to LaTeX. That is not what is expected. 

I could use a

:results output raw

header, but with a long output (including blank lines) org-babel has
problems finding the end of the output when recalculating the source
block. The org-babel output gets appended not rewritten.

My workaround is not indenting the source block. Then everything works
as expected. But indented soure blocks look nicer.

Thanks again for looking into this.
-- 
Mit freundlichen Grüßen / Best regards 

Thomas Holst 
DGS-EC/ESE4

Tel.   +49 (711) 811-40681
PC-Fax +49 (711) 811-5182208



Re: [O] Attachments and refiling

2011-07-25 Thread Bastien
Gustav Wikström  writes:

> I'm leaning towards not moving my archive to a different folder. I
> like having the attachments relative.

Okay.  

But as Darlan pointed out, moving the attached files when refiling the
entry might be dangerous, because files in this attached directory can
also be attached in a different subtree.

I don't have a good general solution to this -- if someone has, please
share.

> Are archive- and refile-hooks implemented b.t.w.? 

C-h v org-archive-*-hook TAG
C-h v org-refile-*-hook TAG

helps.

There is `org-after-refile-insert-hook' but there is no
`org-archive-hook'.  I'll consider adding this.

> This would make it
> possible to hack a personal setting, or am I wrong?

You're probably right.  Code is proof.

-- 
 Bastien



Re: [O] Attachments and refiling

2011-07-25 Thread Gustav Wikström
To make org-mode look for attachments in the current sub-tree when using
org-insert-link would simplify the process of "linking" to attached files
(useful at least when exporting). Persistent links, in in this regard, seems
like a nice idea!

/Gustav

2011/7/24 Bastien 

> Hi Gustav,
>
> Gustav Wikström  writes:
>
> > Another feature that could improve the use of attachments is to allow
> > links to the attached folders also via the C-c C-l interface in a
> > similar way as stored links (C-c l ). I.E to get the attachment-folder
> > as an item in the C-c C-l buffer with TAB-completion.
>
> You can already use (setq org-attach-store-link-p t) to create a link
> while attaching a file.
>
> Since links are deleted as soon as they are inserted, this will be
> usable only once.  We can imagine *persistent links* -- and links to
> attached files could be a good example of persistent links.
>
> What do you think?
>
> --
>  Bastien
>


Re: [O] Attachments and refiling

2011-07-25 Thread Gustav Wikström
I'm leaning towards not moving my archive to a different folder. I like
having the attachments relative.

Are archive- and refile-hooks implemented b.t.w.? This would make it
possible to hack a personal setting, or am I wrong?

/Gustav

2011/7/24 Bastien 

> Hi Gustav and Darlan,
>
> one solution I can think of is to set `org-attach-directory'
> to an absolute path instead of "data/" (the current default
> value).
>
> This way, refiling an entry will not lose attachments.
>
> I'm considering using "~/.org-data/" as the default value.
>
> What do you think?
>
> --
>  Bastien
>