Re: [Orgmode] Invalid capture target specification

2010-11-29 Thread David Maus
At Mon, 29 Nov 2010 11:46:07 + (UTC),
Thorsten wrote:
>
> I try to set up Org capture with a default target file.
>
> from my .emacs:
> ; set file and global key for org-capture
> (setq org-directory "/home/tj1/Dropbox/.emacs.d/org")
> (setq org-default-notes-file (concat org-directory "/notes.org"))
> (define-key global-map "\C-cc" 'org-capture)
>
> C-h v org-default-notes-file gives:
> org-default-notes-file is a variable defined in `org.el'.
> Its value is
> "/home/tj1/Dropbox/.emacs.d/org/notes.org"
>
> but C-c c gives:
> org-capture-set-target-location: Invalid capture target specification
>
> To me it looks as if I just followed the manual and everything should be 
> fine. I
> do not need a capture template, don't I?
> I would appreciate any advice.

I can confirm this problem with 7.01h, but it is fixed in current
stable 7.3.

commit e3b93cda2e5717c9444a176bedf6663df7d60c25
Author: Carsten Dominik 
Date:   Wed Jul 21 08:28:20 2010 +0200

Capture: Default template when no capture templates are defined

Best,
 -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpBhdhWKqUWw.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [Babel] Reporting 2 problems of code execution

2010-11-29 Thread Dan Davison


Sébastien Vauban 
writes:

> Hi Charles,
>
> Thanks a lot for taking a look at this, too...
>
> "Charles C. Berry" wrote:
>> On Sun, 28 Nov 2010, Sébastien Vauban wrote:
>>> Hi Eric and Dan,
>>>
>>> * Abstract
>>>
>>> Reporting two problems:
>>
>> Did you mean to include ":results output" in the headers?
>
> You're right that could be it. I often forget about adding that setting, even
> though it's more or less mandatory for the sh blocks -- at least, in many sh
> blocks I write...
>
>
>> When I do that in eaco of the src blocks I get what I think you were
>> expecting.
>
> I still don't. See below.
>
>
>>> 1. parsing problem of unescaped text from a shell block
>>> 2. end marker repeated upon execution of elisp block
>>>
>>> Note that I added the RESULT thing in my default headers.
>>>
>>> * Data
>>>
>>> Let's say I want to grep trough arbitrary text, such as:
>>>
>>> #+results:a-couple-of-lines
>>> : He said "I'll do it"
>>> : but that cannot be echo'ed!
>>>
>>> ... or to let it scanned by AWK for post-processing (like generating some
>>> DOT representation).
>>>
>>> But, first, as errors are popping up, let's say I can just output it as is.
>>>
>>> * Shell code
>>>
>>> #+begin_src sh :var data=a-couple-of-lines :exports both
>>> echo "$data"
>>> #+end_src
>>>
>>> #+results:
>>> #+BEGIN_RESULT
>>> #+END_RESULT
>>
>> #+begin_src sh :results output :var data=a-couple-of-lines :exports both
>> echo "$data"
>> #+end_src
>>
>> #+results:
>> : He said "I'll do it"
>> : but that cannot be echo'ed!
>
> It does not work for me. With the above, I (still) get:
>
> #+results:
> #+BEGIN_RESULT
> #+END_RESULT
>
>
> for results, and, in the *Org-Babel Error Output*:
>
> sh: line 3: unexpected EOF while looking for matching `''
> sh: line 7: syntax error: unexpected end of file

Hi Seb,

Just to say that these blocks with embedded quotes are outputting OK for
me on linux, but I do see the second bug you mention (repeatedly adding
new lines on each execution). I'm guessing that the first one is a
difference in shell quoting behaviour between out operating systems.

Dan

>
>
>>> The data is impossible (*for me*, as is) to print out from a shell code.
>>> Though, it is in Emacs-Lisp... without any change.
>>>
>>> Note that it's the second *single quote* only that's causing a problem, not
>>> the first one...
>>>
>>> * Emacs-Lisp code
>>>
>>> Executing this:
>>>
>>> #+begin_src emacs-lisp :var data=a-couple-of-lines :exports both
>>> (prin1-to-string data)
>>> #+end_src
>>>
>>> #+results:
>>> #+BEGIN_RESULT
>>> #+begin_example
>>> "He said \"I'll do it\"
>>> but that cannot be echoed!"
>>> #+END_RESULT#+end_example
>>> #+end_example
>>> #+end_example
>>> #+end_example
>>> #+end_example
>>> #+end_example
>>> #+end_example
>>> #+end_example
>>> #+end_example
>>>
>>> works, but the *end marker is repeated* as long as we re-execute the block.
>>
>> #+begin_src emacs-lisp results output :var data=a-couple-of-lines :exports 
>> both
>> (prin1-to-string data)
>> #+end_src
>>
>> #+results:
>> : "He said \"I'll do it\"
>> : but that cannot be echo'ed!"
>
> With or without the ":results output" (BTW, notice you've forgotten the colon
> in front of results), the result is the same. But, if you evaluate the block
> multiple times, in my case, the end marker (end_example) is still repeated...
>
> Best regards,
>   Seb


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] %20 in file://... URL

2010-11-29 Thread David Maus
At Fri, 26 Nov 2010 23:11:13 +0100,
Vincent Belaïche wrote:
> 
> [1  ]
> 
> 
> [...]
> 
> 
> > 1. The percent escaping/unescaping functions are not unicode aware;
> 
> My understanding/feeling is that a link in a file foo.org should be
> interpreted with the coding scheme of this file. 

I think this is not reasoble: The information about the coding system
of the file where the link was created is not carried with the link.
E.g. the unescaping function would have no idea about how to properly
unescape the escaped chars.

> Now I am surprised that you write that there is no unicode support, become
> some code like this looks like unicoding the stuff:

You are right: I should have said: The *escaping* function is not
unicode aware.  The unescaping function wasn't neither, but in the
development version on Github I replace the old `org-link-unescape'
with the function formerly known as `org-protocol-unhex-string'.

> > 2. The percent escaping/unescaping functions require a user to
> >explicitly tell which characters should be escaped;
> 
> That should be dependant on the type of link, file and http should support
> that all characters are escaped, or that no character but % and ] are escaped.

Correct.  The new algorithm escapes characters if one of these
conditions is true:

 - the character is a ASCII control character (<32, 127)
 - the character is the percent sign
 - the character is a non-ASCII character (>127, unicode)
 - the character is in the user supplied list

For unescaping there is no table, it just unescapes all percent
escaped characters.

> 
> I have a question to you: emacs has a url package to interprete url. Why does
> org does not rely on this.

Good question.  This is something to find out: There is C-h v
org-url-encoding-use-url-hexify RET

org-url-encoding-use-url-hexify is a variable defined in `org.el'.
Its value is nil

Documentation:
Not documented as a variable.

This variable was added back in 2009 (commit b077f710) but seems not
used at all.

The only difference I can see is that you can pass org-link-escape in
a table of user defined characters that should be escaped -- but not
sure if this functionality is really needed.

So the next step is check all functions that use escape/unescape and
see if replacing the calls to org-link-escape/unescape can be replaced
with calls to url-hexify/unhexify.

Thanks,
  -- David
-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgprlRtG4y6yy.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Tutorial on advanced searches

2010-11-29 Thread Manish
On Mon, Nov 29, 2010 at 8:33 AM, Matt Lundin wrote:
>
> These days I find myself frequently searching a mountainous pile of org
> files. To clarify my own understanding of Org-mode's powerful search
> tools, I wrote a tutorial on "advanced searches". It's available on
> Worg:
>
> http://orgmode.org/worg/org-tutorials/advanced-searching.php
>
> I hope the tutorial proves useful. If nothing else, I'd like to bring
> some attention of one of Org-mode's hidden gems: C-c a s
> (org-search-view).

Indeed.  Even a simple use of C-c a s on my notes file has saved me
countless times.

Thanks for the impressive writeup.

-- 
Manish

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Problem with tables

2010-11-29 Thread Carsten Dominik


On Nov 29, 2010, at 6:22 PM, Gaspaio wrote:


Thanks for the quick reply,
but it doesn't work either, "M-x table-delete-row" from inside the  
table still outputs the Table not found error.
What's weird is that other commands seems to work, like tabbing from  
cell to cell, etc.


Org mode supports two kinds of tables.

It has its own, built-in version.  And you can have tables made with
the table.el package.  Any commands starting with table- can deal
only with the table.el stuff.

- Carsten



R

On Nov 29, 2010, at 6:13 PM, niklas | brueckenschlaeger wrote:


Try creating a table by typing |- and pressing TAB

On Mon, 2010-11-29 at 17:58 +0100, Gaspaio wrote:

Hello everybody,

I'm a newbie at org-mode (and emacs BTW), and i can't seem to use  
a few commands like table-delete-row, table-insert-row and so on.  
I systematically get a "Table not found" error.
Also, some of the Shift commands don't seem to work, like using S- 
UP/Down to navigate between headers. I tried toggle the org- 
support-shift-select, but nothing.


I'm using emacs.app v23.2 (OSX), with org-mode v7.2

Any ideas ?

Thanks.
Gaspaio





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Tutorial on advanced searches

2010-11-29 Thread Achim Gratz
Hi Matt,

all I can say is just "yow!".

Matt Lundin  writes:
> Since Worg is in perpetual beta, any suggestions or comments would, of
> course, be greatly appreciated!

You might want to consider scheduling the big event for next year, not
past January.
:-)


Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Refile to a different Org file?

2010-11-29 Thread Raymond Zeitler
Thank you Sebastien.  (Sorry about the Americanized spelling of your name.)

I added (setq org-refile-use-outline-path 'file) and switched to a maxlevel
of 2.  Now I have a working solution.  That was one "point" to my post.

Org-agenda-refile still doesn't find the categories within other files.  And
now completion is broken for categories even within the main todo file.  But
this a viable alternative because:

1. I have only one category within the extra files that I have listed in
org-agenda-files.
2. It offers the ability to complete the file name.
3. I'll probably split the main todo file into multiple "category" files.

My other point was that refile is not working as well as it could.  Or
perhaps I have a misunderstanding about how to construct an org file in
order to take advantage of it.

I do think that the documentation for org-refile-targets should refer to the
variable org-refile-use-outline-path.

All the best!

- Ray

--
Raymond Zeitler 


-Original Message-
Date: Wed, 24 Nov 2010 22:44:53 +0100
From: S?bastien Vauban 
Subject: [Orgmode] Re: Refile to a different Org file?
To: emacs-orgmode@gnu.org
Message-ID: <80k4k2jt0q@missioncriticalit.com>
Content-Type: text/plain; charset=utf-8

Hi Raymond,

"Raymond Zeitler" wrote:
> I'm trying to change the value of org-refile-targets to enable me to
refile
> to the other files that make up my agenda view.  Its value started out as
> just nil, which worked exactly right for one file because I was able to
> refile to all the *categories* in ~/todo.org, using tab completion, and it
> didn't get confused by tags or heading names.
>
> So far I've used customization to put this into the appropriate section of
> my .emacs:
>
>  '(org-refile-targets (quote ((org-agenda-files :maxlevel . 1) (nil
> :maxlevel . 1
>
> This doesn't work the way I expect.  I figured out that I can refile if I
> specify the heading "Tasks" and the filename.  But I cannot refile to any
> categories other than the ones in ~/todo.org.  And sometimes I get choices
> that I don't want where the heading starts with the same text as the
> category name.  BTW, I use unique category names across all files.

This is what I'm using:

#+begin_src emacs-lisp
;; any headline with level <= 2 is a target
(setq org-refile-targets '((nil :maxlevel . 2)
; all top-level headlines in the
; current buffer are used (first) as a
; refile target
   (org-agenda-files :maxlevel . 2)))

;; provide refile targets as paths, including the file name
;; (without directory) as level 1 of the path
(setq org-refile-use-outline-path 'file)

;; allow to create new nodes (must be confirmed by the user) as
;; refile targets
(setq org-refile-allow-creating-parent-nodes 'confirm)

;; refile only within the current buffer
(defun my/org-refile-within-current-buffer ()
  "Move the entry at point to another heading in the current buffer."
  (interactive)
  (let ((org-refile-targets '((nil :maxlevel . 5
(org-refile)))
#+end_src

In particular, the file notation allows me to easily refile to any Org file
(from the agenda ones):

Work.org/Appointments

or

Perso.org/Appointments

Does this answer your concern, or did I miss your point?

Best regards,
  Seb

--
SC)bastien Vauban




--

Message: 15
Date: Wed, 24 Nov 2010 17:12:33 -0500
From: "Raymond Zeitler" 
Subject: [Orgmode] Re: Sunrise / Sunset in Agenda View only for
Current Day?
To: "'Matt Lundin'" 
Cc: emacs-orgmode@gnu.org
Message-ID: 
Content-Type: text/plain;   charset="us-ascii"

This worked wonderfully!  Thanks!

I decided to combine the &%%(diary-day-of-year) into the same category with
&%%(diary-sunrise-sunset).

My setup is shown on Emacs wiki:

http://www.emacswiki.org/emacs/RaymondZeitler

All the best!

--
Raymond Zeitler 


-Original Message-
From: Matt Lundin [mailto:m...@imapmail.org]
Sent: Wednesday, November 03, 2010 8:44 PM
To: Raymond Zeitler
Cc: emacs-orgmode@gnu.org
Subject: Re: Sunrise / Sunset in Agenda View only for Current Day?

"Raymond Zeitler"  writes:

> I added sunrise & day of the week to the org file that I base my agenda
view
> on.  But this adds the information for every day that's displayed in the
> agenda.  Is it possible to get the information to show up only for the
> current day?
>
> TIA
>
> Here's the relevant content in the org file:
> #+CATEGORY: Day/Year
> &%%(diary-day-of-year)
> #+CATEGORY: Sunrise
> &%%(diary-sunrise-sunset)

One way to accomplish this is with a custom skip function and a custom
agenda command. In order for this particular setup to work, you'll need
to put the sunrise sexp in it's own subtree, as in:

--8<---cut here---start->8---
* Sunrise
  :PROPERTIES:
  :CATEGORY: Sunrise
  :END:
&%%(diary-sunrise-sunset)
--8<---cut here---end--->8---

Note

Re: [Orgmode] Problem with tables

2010-11-29 Thread Michael Brand
On Mon, Nov 29, 2010 at 18:43, Gaspaio  wrote:
> When i do S-UP/DOWN i get the normal emacs region expanding
> behavior

For Org tables it is either M-Up/Down/Left/Right to move or
S-M-Up/Down/Left/Right to delete/insert.

Michael

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [OT] retrieving old messages

2010-11-29 Thread Matt Lundin


Sébastien Vauban 
writes:

> Hi Matt,
>
> Matt Lundin wrote:
>> FWIW, recent changes nnir (in nognus and development Emacs) allow for
>> easy searching of individual Gmane groups. Simply type "G G" on the
>> org-mode group in the in the Group buffer or call
>> gnus-group-make-nnir-group from within the summary buffer or an article.
>> I typed M-x gnus-group-make-nnir-group while editing this message,
>> entered "gnus painful" and received the following summary buffer
>> (limited to the org-mode list) in less than a second:
>
> Do we have to activate something special?
>
> Pressing G G on the Org group, I get:
>
> Debugger entered--Lisp error: (error "Couldn't request group: Search produced 
> empty results.")
>   signal(error ("Couldn't request group: Search produced empty results."))
>   error("Couldn't request group: %s" "Search produced empty results.")
>   gnus-group-read-ephemeral-group("nnir:((query . \"gnus painful\") 
> (unique-id . \"80ipzgijf2.fsf\"))" (nnir "") t (# . group) 
> nil)
>   (let ((parms nil)) (if extra-parms (setq parms ...) (setq parms ...)) 
> (add-to-list (quote parms) (cons ... ...) t) (gnus-group-read-ephemeral-group 
> (concat "nnir:" ...) (quote ...) t (cons ... 
> gnus-current-window-configuration) nil))
>   gnus-group-make-nnir-group(nil "gnus painful")
>   call-interactively(gnus-group-make-nnir-group nil nil)
>

Alas, at this point, you have to run the development version of Gnus
(nognus):

http://www.gnus.org/distribution.html

Gmane searching was added with the following (Oct 31) commit:

http://git.gnus.org/cgit/gnus.git/commit/?id=a14d856fc1432f862e075b7ee792fe5e381a38ff

Building development emacs will give you essentially the same bleeding
edge as nognus.

Otherwise, all I have in my setup is:

(require 'nnir)

And I'm not even sure that is necessary anymore.

Best,
Matt



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Problem with tables

2010-11-29 Thread Gaspaio
AHA !

> table-delete-row, table-insert-row are for tables in the "table.el" format 
> like
> +--+
> |User Visible Entry Points |
> +---+--+
> |   Function|   Description|
> +---+--+

Ok, this works. If i use table-insert, then table-delete-row works. Cool, 
thanks a lot.

But, the :
 
> S-Up/Down are only for tables on the orgtbl format like
> | x | y |
> |---+---|
> | 1 | 2 |
> | 3 | 4 |

Still don't seem to work. I toggled org-support-shift-select on and off but 
nothing. When i do S-UP/DOWN i get the normal emacs region expanding behavior, 
of, if i deactivate org-support-shift-select i get a cursor movement.
That said, M-x org-table-delete-column does work. 

I gess its a binding problem …


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Problem with tables

2010-11-29 Thread Gaspaio
Thanks for the quick reply, 
but it doesn't work either, "M-x table-delete-row" from inside the table still 
outputs the Table not found error.
What's weird is that other commands seems to work, like tabbing from cell to 
cell, etc.

R

On Nov 29, 2010, at 6:13 PM, niklas | brueckenschlaeger wrote:

> Try creating a table by typing |- and pressing TAB
> 
> On Mon, 2010-11-29 at 17:58 +0100, Gaspaio wrote:
>> Hello everybody,
>> 
>> I'm a newbie at org-mode (and emacs BTW), and i can't seem to use a few 
>> commands like table-delete-row, table-insert-row and so on. I systematically 
>> get a "Table not found" error.
>> Also, some of the Shift commands don't seem to work, like using S-UP/Down to 
>> navigate between headers. I tried toggle the org-support-shift-select, but 
>> nothing.
>> 
>> I'm using emacs.app v23.2 (OSX), with org-mode v7.2
>> 
>> Any ideas ?
>> 
>> Thanks.
>> Gaspaio
>> 
>> 
>> 
>> 
>> 
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Problem with tables

2010-11-29 Thread Michael Brand
On Mon, Nov 29, 2010 at 17:58, Gaspaio  wrote:
> I'm a newbie at org-mode (and emacs BTW), and i can't seem to use a few 
> commands like table-delete-row, table-insert-row and so on. I systematically 
> get a "Table not found" error.
> Also, some of the Shift commands don't seem to work, like using S-UP/Down to 
> navigate between headers. I tried toggle the org-support-shift-select, but 
> nothing.

Be aware of the two table formats:

table-delete-row, table-insert-row are for tables in the "table.el" format like
+--+
|User Visible Entry Points |
+---+--+
|   Function|   Description|
+---+--+

S-Up/Down are only for tables on the orgtbl format like
| x | y |
|---+---|
| 1 | 2 |
| 3 | 4 |

Michael

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Problem with tables

2010-11-29 Thread niklas | brueckenschlaeger
Try creating a table by typing |- and pressing TAB

On Mon, 2010-11-29 at 17:58 +0100, Gaspaio wrote:
> Hello everybody,
> 
> I'm a newbie at org-mode (and emacs BTW), and i can't seem to use a few 
> commands like table-delete-row, table-insert-row and so on. I systematically 
> get a "Table not found" error.
> Also, some of the Shift commands don't seem to work, like using S-UP/Down to 
> navigate between headers. I tried toggle the org-support-shift-select, but 
> nothing.
> 
> I'm using emacs.app v23.2 (OSX), with org-mode v7.2
> 
> Any ideas ?
> 
> Thanks.
> Gaspaio
> 
> 
> 
> 
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode



signature.asc
Description: This is a digitally signed message part
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Problem with tables

2010-11-29 Thread Gaspaio
Hello everybody,

I'm a newbie at org-mode (and emacs BTW), and i can't seem to use a few 
commands like table-delete-row, table-insert-row and so on. I systematically 
get a "Table not found" error.
Also, some of the Shift commands don't seem to work, like using S-UP/Down to 
navigate between headers. I tried toggle the org-support-shift-select, but 
nothing.

I'm using emacs.app v23.2 (OSX), with org-mode v7.2

Any ideas ?

Thanks.
Gaspaio





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [Babel] Reporting 2 problems of code execution

2010-11-29 Thread Charles C. Berry

On Mon, 29 Nov 2010, Sébastien Vauban wrote:


Hi Charles,

Thanks a lot for taking a look at this, too...

"Charles C. Berry" wrote:

On Sun, 28 Nov 2010, Sébastien Vauban wrote:

Hi Eric and Dan,

* Abstract

Reporting two problems:


Did you mean to include ":results output" in the headers?


You're right that could be it. I often forget about adding that setting, even
though it's more or less mandatory for the sh blocks -- at least, in many sh
blocks I write...



When I do that in eaco of the src blocks I get what I think you were
expecting.


I still don't. See below.




[deleted]



#+begin_src sh :results output :var data=a-couple-of-lines :exports both
echo "$data"
#+end_src

#+results:
: He said "I'll do it"
: but that cannot be echo'ed!


It does not work for me. With the above, I (still) get:

#+results:
#+BEGIN_RESULT
#+END_RESULT

for results, and, in the *Org-Babel Error Output*:

--8<---cut here---start->8---
sh: line 3: unexpected EOF while looking for matching `''
sh: line 7: syntax error: unexpected end of file
--8<---cut here---end--->8---




Hmmm. So it looks like 'sh' is having some trouble here.

Can you run the same code directly in the shell?

That is can you set/export $data and then 'echo $data' at the command line

[deleted]



#+begin_src emacs-lisp results output :var data=a-couple-of-lines :exports both
(prin1-to-string data)
#+end_src

#+results:
: "He said \"I'll do it\"
: but that cannot be echo'ed!"


With or without the ":results output" (BTW, notice you've forgotten the colon
in front of results), the result is the same. But, if you evaluate the block
multiple times, in my case, the end marker (end_example) is still repeated...



Sorry 'bout the missing ":" - it outputs the same results either way on my 
box.


Chuck

[rest deleted]


Charles C. BerryDept of Family/Preventive Medicine
cbe...@tajo.ucsd.eduUC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [Babel] How to pass variables to SQL blocks?

2010-11-29 Thread Sébastien Vauban
#+TITLE: How to pass variables to SQL code blocks?
#+DATE:  2010-11-29
#+LANGUAGE:  en

* Abstract

I'm trying to abstract similar blocks of SQL code, making use of variables
passed to blocks. Though, I can't get any var passed to the SQL block --
maybe my mistake!

While doing this exercise:

- I tried an alternative way using Noweb syntax -- but this only works for one
  instantiation of the parameters --, and

- I found that no warning are emitted if referring to inexistent blocks.

* Using vars

Using this table of parameters,

#+results: param
| table   | valueTable0   |
| column  | valueColumn0  |
| type| valueType0|
| nullability | valueNullability0 |

I want to apply the values onto the following chunk of code:

#+srcname: add-column-in-table-0
#+begin_src sql :var @table=param[0,1] :var @column=param[1,1] :var 
@type=param[2,1] :var @nullability=param[3,1]
-- add column `...@column' (if column does not exist yet)
IF NOT EXISTS (SELECT *
   FROM INFORMATION_SCHEMA.COLUMNS
   WHERE TABLE_NAME = '@table'
   AND COLUMN_NAME = '@column')
BEGIN
ALTER TABLE @table
ADD @column @type @nullability
END
#+end_src

* Using Noweb

Using Noweb, I can pass values to some variables, doing this:

#+srcname: table
#+begin_src sql
valueTable1
#+end_src

#+srcname: column
#+begin_src sql
valueColumn1
#+end_src

#+srcname: type
#+begin_src sql
valueType1
#+end_src

#+srcname: nullability
#+begin_src sql
valueNullability1
#+end_src

It works:

#+srcname: add-column-in-table-1
#+begin_src sql :noweb yes
-- add column `<>' (if column does not exist yet)
IF NOT EXISTS (SELECT *
   FROM INFORMATION_SCHEMA.COLUMNS
   WHERE TABLE_NAME = '<>'
   AND COLUMN_NAME = '<>')
BEGIN
ALTER TABLE <>
ADD <> <> <>
END
#+end_src

but *only once*, as I can't overwrite the value of the 4 variables...

#+srcname: table
#+begin_src sql
valueTable2
#+end_src

#+srcname: column
#+begin_src sql
valueColumn2
#+end_src

#+srcname: type
#+begin_src sql
valueType2
#+end_src

#+srcname: nullability
#+begin_src sql
valueNullability2
#+end_src

The above chunks of code (with *new values*) were silently ignored, as you can
see when exporting this code, which should add another column in another
table:

#+srcname: add-column-in-table-2
#+begin_src sql :noweb yes
<>
#+end_src

* No warning if block does not exist

Please note that inexistent references are ignored, without further notice.
That's the case for such a block (where I forgot the number suffix):

#+srcname: contains-inexistent-ref
#+begin_src sql :noweb yes
<>
#+end_src

Best regards,
  Seb

-- 
Sébastien Vauban


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: moving in the agenda view is slow

2010-11-29 Thread Sébastien Vauban
Hi Rainer,

Rainer Stengele wrote:
> after disabling the showing of the outline path in agenda views:
>
> line-move 430 
> 0.189000  0.0004395348
> line-move-1   430 
> 0.173000  0.0004023255
> org-agenda-previous-line  214 
> 0.156000  0.0007289719
> org-agenda-next-line  216 
> 0.095 0.0004398148
> next-line 216 
> 0.048 0.000222
> org-agenda-do-context-action  430 
> 0.047 0.0001093023
> org-detach-overlay431 
> 0.015 3.48...e-005
> org-unhighlight   431 
> 0.015 3.48...e-005
> line-move-partial 430 0.0 
>   0.0
> org-agenda-post-command-hook  431 0.0 
>   0.0
> org-get-at-bol430 0.0 
>   0.0
>
> scrolling with "n" and "p" runs smoothly now! Sigh! That means the slowness
> is connected to my .emacs and org settings!? I'am afraid I have to go
> through all the settings and find the culprit.

What do you exactly mean by: "disabling the showing of the outline path in 
agenda
views"?

Best regards,
  Seb

-- 
Sébastien Vauban


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Two issues with :VISIBILITY: property

2010-11-29 Thread Cassio Koshikumo
Hi all,

I've just recently began using emacs and org-mode, and I'm already in
love. So, first, let me thank and congratulate Mr. Dominik and
everyone else involved.

Now, I have two questions about the :VISIBILITY: property. (I did find
some info on the archives but, unless I misinterpreted it, I think
this is a different matter.)

What I want to do, basically, is to replicate a cool functionality
from Scrivener, a Mac app for writing long documents. Scrivener can
associate a synopsis with each chunk of text, allowing you to
reorganize the structure based on the synopsis. Org-mode seems
perfectly capable of doing that using the following setup:

* Chapter 1
  :PROPERTIES:
  :VISIBILITY: children
  :END:

  The synopses for chapter 1 goes here.

** Section 1 (Ch.1)
   The actual text for Section 1 of Chapter 1.

** Section 2 (Ch.1)
   The actual text for Section 2 of Chapter 1.

And so on.

The "children" property allows me to press C-u C-u  to show only
the synopsis and the headlines inside the chapters -- which is exactly
what I want.

But here's the thing: if I decide to put "Chapter 1" /after/ "Chapter
2", using M-Down or M-S-Down, it gets moved alright -- but the entire
Chapter 1 subtree is expanded. I no longer see only the headlines
inside it, but also the entire text inside them. Is this by design? If
so, why? It seems to me that the :VISIBILITY: property should hold
when moving trees around.

That was the first issue. The second is:

The :VISIBILITY: property seems to work only when it's applied to
level 1 trees. For example, say I have this:

* Part 1

** Chapter 1
  :PROPERTIES:
  :VISIBILITY: children
  :END:

  Synopsis for Chapter 1 goes here.

*** Section 1 (Ch.1)
The actual text for Section 1 of Chapter 1.

** Chapter 2
  :PROPERTIES:
  :VISIBILITY: children
  :END:

  Synopsis for Chapter 2 goes here.

*** Section 1 (Ch.2)
The actual text for Section 1 of Chapter 2.

When I press C-u C-u , only Chapter 1 gets expanded correctly
(synopsis + headlines inside it). Chapter 2 stays completely folded
("Chapter 2..."), without any children or content shown -- effectively
ignoring the "children" property, or acting as it was set to "folded".
I guess this wasn't supposed to happen, right?

Any help on these matters would be much appreciated. Also, if anyone
knows of a better way to accomplish what I'm trying to do, please tell
me. I experimented with a :SYNOPSIS: drawer, but it didn't seem
adequate. There's no way of showing only the drawer and hiding
everything else (which makes sense, since the drawers were made to
hide content, so I'm not saying this should be an option).

I'm using yesterday's snapshot from the repository, so I'm pretty much
up to date. Emacs 23.2 on a Mac OS X 10.6.5.

Thanks,

-- 
Cássio Koshikumo

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: moving in the agenda view is slow

2010-11-29 Thread Nick Dokos
Rainer Stengele  wrote:

> 
> scrolling with "n" and "p" runs smoothly now! Sigh! That means the
> slowness is connected to my .emacs and org settings!?  I'am afraid I
> have to go through all the settings and find the culprit.
> 

Great! That's real progress: in one fell swoop, you have eliminated
99.99% of the code that could be the culprit :-) However, it's not
clear to me that it's your org settings: if the next-line sluggishness
is real, then it's something in the emacs setup that causes it (again,
unless there is some hidden connection back to org that I know nothing
about).

Nick



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Update on Org-mode clone in Vim

2010-11-29 Thread Carsten Dominik


On Nov 29, 2010, at 3:00 PM, Matt Lundin wrote:


Herbert Sitz  writes:


Matt Lundin  imapmail.org> writes:


I'm curious to see how hyperlinks and capture might work in a vim
environment. Being able to call org-capture from anywhere in my  
Emacs

ecosystem (or should I say operating system) has spoiled me. :)


Matt -- Regarding the hyperlinks there's a Vim plugin that already
seems to have pretty complete hyperlinking functionality.  Just put
it in your plugin folder and you're good to go with it.  You
can find it here:

http://www.vim.org/scripts/script.php?script_id=293

I haven't done any checking to see what needs to be done to make
it compatible with Org-mode hyperlinking markup.  I don't think it
should be too bad.


The syntax does indeed seem similar at points:

http://mars.iti.pk.edu.pl/doc/vim-scripts/html/plugin_utl.vim.html



At least before 'conceal text' was available in Vim73 I don't
think there's any good way to hide link details and have just
the link text appear in the document.  I haven't used Vim73
or looked at conceal text much, but it seems that feature
might make it possible to closely replicate the way
Emacs does things.  I'd be happy to hear suggestions from
people who know more about this. . .


This is a very interesting development in Vim. I remember that the
ability to hide text (in Org-mode and auctex) was one of the things  
that

drew me to Emacs in the first place.


I think there are some other existing Vim plugins that can
be made use of.  There's a footnoting plugin that I want
to look into adopting at some point.

Also, I have done
nothing at all to implement any of Org's table editing
functionality.  This is pretty much independent of Org
itself, and I was hoping there was an existing Vim plugin
that would be somewhere along lines of what's in Org,
but I haven't found anything close yet.


I'd agree. I remember wishing for a self-aligning table editor in Vim
(let alone a spreadsheet). Then again, it took Carsten's genius to  
bring
that particular bit of magic to Emacs, so who knows what is possible  
in

Vim. The Vim/Unix philosophy (which I admire just as much as I admire
the all-in-one "second OS" philosophy behind Emacs) seems to be that
such things are better handled by external programs


This reminds me:  Almost 10 years ago, I did write such
a tool for table formatting:

http://staff.science.uva.nl/~dominik/Tools/tfmt/index.html

The man page even mentions that it can be used as a filter for
vi and Emacs.  And it implements computations of columns using
Perl syntax :)

- Carsten





and that scripting
and integration should take place in the shell, not the editor.[1] All
of which makes an Org-mode clone in Vim a particularly impressive
accomplishment!

Thanks again. I look forward to following your progress.

Best,
Matt

Footnotes:
[1] And why not enjoy the best of both worlds, right?

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Org-babel games screencast

2010-11-29 Thread Mark A. Hershberger
"David O'Toole"  writes:

> Here's a presentation I made, sorry it's a bit rough but here goes:
>
> http://lispgamesdev.blogspot.com/2010/11/lisp-game-development-screencast-1.html

This is awesome.  I've only been barely following Babel, and wasn't
aware of slime integration.  While I plan on going back and looking at
the list archives, is there any place that you would recommend as the
best place to start if your goal is to duplicate the sort of things
you've done with org-mode and outline-formatted code?

Mark.



-- 
http://hexmode.com/

War begins by calling for the annihilation of the Other,
but ends ultimately in self-annihilation.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Invalid capture target specification

2010-11-29 Thread Thorsten
I try to set up Org capture with a default target file. 

from my .emacs:
; set file and global key for org-capture
(setq org-directory "/home/tj1/Dropbox/.emacs.d/org")
(setq org-default-notes-file (concat org-directory "/notes.org"))
(define-key global-map "\C-cc" 'org-capture) 

C-h v org-default-notes-file gives:
org-default-notes-file is a variable defined in `org.el'.
Its value is 
"/home/tj1/Dropbox/.emacs.d/org/notes.org"

but C-c c gives:
org-capture-set-target-location: Invalid capture target specification

To me it looks as if I just followed the manual and everything should be fine. 
I 
do not need a capture template, don't I?
I would appreciate any advice. 

Thorsten

PS 
GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-03-29 on 
rothera, modified by Debian
Org-mode version 7.01h
 



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH 3/4] org-capture: use org-today

2010-11-29 Thread Julien Danjou
* org-capture.el: Use org-today.

Signed-off-by: Julien Danjou 
---
 lisp/org-capture.el |9 ++---
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index a5c6a4d..7d0f1ac 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -671,15 +671,10 @@ already gone."
;; prompt for date
(time-to-days (org-read-date 
   nil t nil "Date for tree entry:"
-  (time-subtract (current-time)
- (list 0 (* 3600 
-org-extend-today-until)
-   0)
+  (days-to-time (org-today)
   (t
;; current date, possible corrected for late night workers
-   (time-to-days
-(time-subtract (current-time)
-   (list 0 (* 3600 org-extend-today-until) 0
+   (org-today))

((eq (car target) 'file+function)
(set-buffer (org-capture-target-buffer (nth 1 target)))
-- 
1.7.2.3


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH 2/4] org-habit: Use org-today.

2010-11-29 Thread Julien Danjou
* org-habit.el: Use org-today.

Signed-off-by: Julien Danjou 
---
 lisp/org-habit.el |   10 +++---
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/lisp/org-habit.el b/lisp/org-habit.el
index 394b4fb..04a2328 100644
--- a/lisp/org-habit.el
+++ b/lisp/org-habit.el
@@ -197,10 +197,7 @@ This list represents a \"habit\" for the rest of this 
module."
   "Determine the relative priority of a habit.
 This must take into account not just urgency, but consistency as well."
   (let ((pri 1000)
-   (now (time-to-days
- (or moment
- (time-subtract (current-time)
-(list 0 (* 3600 org-extend-today-until) 0)
+   (now (if moment (time-to-days moment) (org-today)))
(scheduled (org-habit-scheduled habit))
(deadline (org-habit-deadline habit)))
 ;; add 10 for every day past the scheduled date, and subtract for every
@@ -240,7 +237,7 @@ Habits are assigned colors on the following basis:
 (deadline (if scheduled-days
   (+ scheduled-days (- d-repeat s-repeat))
 (org-habit-deadline habit)))
-(m-days (or now-days (time-to-days (current-time)
+(m-days (or now-days (org-today
 (cond
  ((< m-days scheduled)
   '(org-habit-clear-face . org-habit-clear-future-face))
@@ -319,8 +316,7 @@ current time."
   "Insert consistency graph for any habitual tasks."
   (let ((inhibit-read-only t) l c
(buffer-invisibility-spec '(org-link))
-   (moment (time-subtract (current-time)
-  (list 0 (* 3600 org-extend-today-until) 0
+   (moment (days-to-time (org-today
 (save-excursion
   (goto-char (if line (point-at-bol) (point-min)))
   (while (not (eobp))
-- 
1.7.2.3


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH 4/4] org: use org-today in habits auto repeat

2010-11-29 Thread Julien Danjou
* org.el (org-auto-repeat-maybe): Use org-today.

Signed-off-by: Julien Danjou 
---
 lisp/org.el |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 6c4c433..7a76559 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -11393,13 +11393,13 @@ This function is run automatically after each state 
change to a DONE state."
 ((equal (match-string 1 ts) ".")
  ;; Shift starting date to today
  (org-timestamp-change
-  (- (time-to-days (current-time)) (time-to-days time))
+  (- (org-today) (time-to-days time))
   'day))
 ((equal (match-string 1 ts) "+")
  (let ((nshiftmax 10) (nshift 0))
(while (or (= nshift 0)
   (<= (time-to-days time)
-  (time-to-days (current-time
+  (org-today)))
  (when (= (incf nshift) nshiftmax)
(or (y-or-n-p (message "%d repeater intervals were not 
enough to shift date past today.  Continue? " nshift))
(error "Abort")))
-- 
1.7.2.3


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH 1/4] Rename org-agenda-today to org-today.

2010-11-29 Thread Julien Danjou
Signed-off-by: Julien Danjou 
---
 lisp/org-agenda.el |   18 ++
 lisp/org.el|6 ++
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 48856c9..aee7ca7 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -3208,7 +3208,7 @@ dates."
 org-timeline-show-empty-dates))
 (org-deadline-warning-days 0)
 (org-agenda-only-exact-dates t)
-(today (org-agenda-today))
+(today (org-today))
 (past t)
 args
 s e rtn d emptyp)
@@ -3285,7 +3285,7 @@ When EMPTY is non-nil, also include days without any 
entries."
 (if inactive org-ts-regexp-both org-ts-regexp)))
 dates dates1 date day day1 day2 ts1 ts2)
 (if force-today
-   (setq dates (list (org-agenda-today
+   (setq dates (list (org-today
 (save-excursion
   (goto-char beg)
   (while (re-search-forward re end t)
@@ -3396,7 +3396,7 @@ given in `org-agenda-start-on-weekday'."
  org-agenda-start-on-weekday nil))
 (thefiles (org-agenda-files nil 'ifmode))
 (files thefiles)
-(today (org-agenda-today))
+(today (org-today))
 (sd (or start-day today))
 (start (if (or (null org-agenda-start-on-weekday)
(< org-agenda-ndays 7))
@@ -3839,7 +3839,7 @@ for a keyword.  A numeric prefix directly selects the Nth 
keyword in
   (org-set-sorting-strategy 'todo)
   (org-prepare-agenda "TODO")
   (if (and (stringp arg) (not (string-match "\\S-" arg))) (setq arg nil))
-  (let* ((today (org-agenda-today))
+  (let* ((today (org-today))
 (date (calendar-gregorian-from-absolute today))
 (kwds org-todo-keywords-for-agenda)
 (completion-ignore-case t)
@@ -7956,7 +7956,7 @@ belonging to the \"Work\" category."
   (let* ((cnt 0) ; count added events
 (org-agenda-new-buffers nil)
 (org-deadline-warning-days 0)
-;; Do not use `org-agenda-today' here because appt only takes
+;; Do not use `org-today' here because appt only takes
 ;; time and without date as argument, so it may pass wrong
 ;; information otherwise
 (today (org-date-to-gregorian
@@ -7999,15 +7999,9 @@ belonging to the \"Work\" category."
(message "No event to add")
   (message "Added %d event%s for today" cnt (if (> cnt 1) "s" "")
 
-(defun org-agenda-today ()
-  "Return today date, considering `org-extend-today-until'."
-  (time-to-days
-   (time-subtract (current-time)
- (list 0 (* 3600 org-extend-today-until) 0
-
 (defun org-agenda-todayp (date)
   "Does DATE mean today, when considering `org-extend-today-until'?"
-  (let ((today (org-agenda-today))
+  (let ((today (org-today))
(date (if (and date (listp date)) (calendar-absolute-from-gregorian 
date)
date)))
 (eq date today)))
diff --git a/lisp/org.el b/lisp/org.el
index 873b294..6c4c433 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4798,6 +4798,12 @@ The following commands are available:
   (nthcdr 2 time
 (current-time)))
 
+(defun org-today ()
+  "Return today date, considering `org-extend-today-until'."
+  (time-to-days
+   (time-subtract (current-time)
+ (list 0 (* 3600 org-extend-today-until) 0
+
  Font-Lock stuff, including the activators
 
 (defvar org-mouse-map (make-sparse-keymap))
-- 
1.7.2.3


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Enhancing the Org/Gnus experience

2010-11-29 Thread Sébastien Vauban
Hi Julien,

Julien Danjou wrote:
> On Sun, Oct 31 2010, Eric Schulte wrote:
>> This is really great. I finally folded it into my gnus setup, and while it
>> looks great when it works, I was getting frequent errors throw by the
>> org-mode fontification engine recursing too deeply. I've changed it to the
>> following which augments what you sent with some simple error handling.
>
> That looks like something I'd like to see added to Gnus.
> If one of you can provide a clean patch and have signed FSF papers I'd
> be happy to review and merge it.

This is undergoing...

I've signed (like 2 weeks ago) the FSF papers, and am still waiting for the
PDF file that proves it. As soon as I get them, I send a proper patch to Larsi
for integration into Gnus. Eventually, I'd even like to add some other stuff
(inlined code with = markers, etc.)...

Best regards,
  Seb

-- 
Sébastien Vauban


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Update on Org-mode clone in Vim

2010-11-29 Thread Matt Lundin
Herbert Sitz  writes:

> Matt Lundin  imapmail.org> writes:
>> 
>> I'm curious to see how hyperlinks and capture might work in a vim
>> environment. Being able to call org-capture from anywhere in my Emacs
>> ecosystem (or should I say operating system) has spoiled me. :)
>
> Matt -- Regarding the hyperlinks there's a Vim plugin that already
> seems to have pretty complete hyperlinking functionality.  Just put
> it in your plugin folder and you're good to go with it.  You
> can find it here:
>
> http://www.vim.org/scripts/script.php?script_id=293
>
> I haven't done any checking to see what needs to be done to make 
> it compatible with Org-mode hyperlinking markup.  I don't think it 
> should be too bad.

The syntax does indeed seem similar at points:

http://mars.iti.pk.edu.pl/doc/vim-scripts/html/plugin_utl.vim.html

>
> At least before 'conceal text' was available in Vim73 I don't 
> think there's any good way to hide link details and have just
> the link text appear in the document.  I haven't used Vim73
> or looked at conceal text much, but it seems that feature
> might make it possible to closely replicate the way
> Emacs does things.  I'd be happy to hear suggestions from
> people who know more about this. . . 

This is a very interesting development in Vim. I remember that the
ability to hide text (in Org-mode and auctex) was one of the things that
drew me to Emacs in the first place.

> I think there are some other existing Vim plugins that can
> be made use of.  There's a footnoting plugin that I want
> to look into adopting at some point.  
>
> Also, I have done
> nothing at all to implement any of Org's table editing
> functionality.  This is pretty much independent of Org
> itself, and I was hoping there was an existing Vim plugin
> that would be somewhere along lines of what's in Org, 
> but I haven't found anything close yet.

I'd agree. I remember wishing for a self-aligning table editor in Vim
(let alone a spreadsheet). Then again, it took Carsten's genius to bring
that particular bit of magic to Emacs, so who knows what is possible in
Vim. The Vim/Unix philosophy (which I admire just as much as I admire
the all-in-one "second OS" philosophy behind Emacs) seems to be that
such things are better handled by external programs and that scripting
and integration should take place in the shell, not the editor.[1] All
of which makes an Org-mode clone in Vim a particularly impressive
accomplishment!

Thanks again. I look forward to following your progress.

Best,
Matt

Footnotes:
[1] And why not enjoy the best of both worlds, right?

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Enhancing the Org/Gnus experience

2010-11-29 Thread Julien Danjou
On Sun, Oct 31 2010, Eric Schulte wrote:

> This is really great.  I finally folded it into my gnus setup, and while
> it looks great when it works, I was getting frequent errors throw by the
> org-mode fontification engine recursing too deeply.  I've changed it to
> the following which augments what you sent with some simple error
> handling.

That looks like something I'd like to see added to Gnus.
If one of you can provide a clean patch and have signed FSF papers I'd
be happy to review and merge it.

-- 
Julien Danjou
// ᐰhttp://julien.danjou.info


pgpWRwhNAtDoB.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [patch] LaTeX export of lists

2010-11-29 Thread Nicolas Goaziou
Hello,

> Sébastien Mengin writes:

> Sorry I come too late but I would not like this kind of "annoyance"
> avoided ;)

> In Thomas' case, it is perfectly understandable, true.

> But in general, I find it a lot better to leave a blank line between
> the end of a list and the following paragraph in the LaTeX code --
> easier to read, I think.

> Can your patch be set as an option or so, instead of the default
> behaviour?

You just need to leave a blank line between your list and the next
paragraph. I don't see why an option should be needed here.

Or am I wrong?

Regards,

-- Nicolas

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Tutorial on advanced searches

2010-11-29 Thread Carsten Dominik

Wow, Matt, this is awesome.

Thanks!

- Carsten

On Nov 29, 2010, at 4:03 AM, Matt Lundin wrote:



These days I find myself frequently searching a mountainous pile of  
org

files. To clarify my own understanding of Org-mode's powerful search
tools, I wrote a tutorial on "advanced searches". It's available on
Worg:

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

I hope the tutorial proves useful. If nothing else, I'd like to bring
some attention of one of Org-mode's hidden gems: C-c a s
(org-search-view).

Since Worg is in perpetual beta, any suggestions or comments would, of
course, be greatly appreciated!

Best,
Matt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] org-agenda: rework ndays and span handling

2010-11-29 Thread Julien Danjou
On Mon, Nov 29 2010, Carsten Dominik wrote:

> important testing would be to make sure that *refreshing* the
> agenda does this right thing, both for normal and for
> custom commands.

Sure. Refreshing as in pressing 'g' seems to do the right thing for me.

I did not test for custom commands though, any volunteer?

-- 
Julien Danjou
// ᐰhttp://julien.danjou.info


pgpfEpUZzKv7e.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] org-agenda: rework ndays and span handling

2010-11-29 Thread Carsten Dominik

Hi Julien,

important testing would be to make sure that *refreshing* the
agenda does this right thing, both for normal and for
custom commands.

- Carsten

On Nov 29, 2010, at 11:49 AM, Julien Danjou wrote:


* org-agenda.el (org-agenda-custom-commands-local-options):
Allow org-agenda-span to be a symbol.
(org-agenda-ndays): Make obsolete.
(org-agenda-span): New variable superseding org-agenda-ndays.
(org-agenda-menu): Use org-agenda-current-span.
(org-agenda-current-span): New local variable storing current
span.
(org-agenda-list): Take a span instead of ndays as argument.
This function is now responsible for computing the ndays based
on span.
(org-agenda-ndays-to-span): Return span only if number of days
really matches.
(org-agenda-span-to-ndays): New function.
(org-agenda-manipulate-query): Use org-agenda-compute-starting-span.
(org-agenda-goto-today): Use org-agenda-compute-starting-span.
(org-agenda-later): Do not give compute a new span, use the
current one.
(org-agenda-day-view, org-agenda-week-view)
(org-agenda-month-view, org-agenda-year-view): Stop touching
org-agenda-ndays.
(org-agenda-change-time-span): Only compute starting-span.
(org-agenda-compute-starting-span): New function derived from
the old org-agenda-compute-time-span.
(org-agenda-set-mode-name): Compute mode based on
org-agenda-current-span.
(org-agenda-span-name): New function.

* org-mouse.el: Replace Replace org-agenda-ndays by
org-agenda-current-span.

* org.texi, orgguide.texi: Replace org-agenda-ndays by org-agenda- 
span.


Signed-off-by: Julien Danjou 
---

Hi,

This patch is pretty huge, so I'll give a bit of context about it.

I'm weird, but I used org-agenda-ndays set to 14. Unfortunately, this
settings was interpreted as a month view. Pressing 'f' key to see  
later,

would show me the next month, which was not at all what I wanted.

On the same idea, day view or week view would change my org-agenda- 
ndays
settings, which I think is not a good idea. Changing user setting is  
*bad*.

:-)

So I rewrote the things this way:
- Rename org-agenda-span to org-agenda-current-span
 Which has the same meaning has before, except it can be numeric.
- Rename org-agenda-ndays to org-agenda-span
 I think the name is better choosen. You can set it to a symbol  
instead of
 only a numeric value. That means you can set it to 'month and it  
will show
 you the number of days of the current month in your agenda. Better  
than

 30. But you can still set it to 30, or 31, or whatever you want.
- Do not change org-agenda-span. Never.
- Use org-agenda-current-span for navigation.
 That means if you press 'f', it will shows you really the next
 org-agenda-current-span ndays, and not something based on "I think  
you

 want a weekly view".

Tested, no bug found so far. :-)

doc/org.texi   |   14 ++--
doc/orgguide.texi  |6 +-
lisp/org-agenda.el |  188  
+--

lisp/org-mouse.el  |4 +-
4 files changed, 119 insertions(+), 93 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index e2e9af5..b5b70c9 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -6966,14 +6966,14 @@ paper agenda, showing all the tasks for the  
current week or day.

@table @kbd
@cindex org-agenda, command
@orgcmd{C-c a a,org-agenda-list}
-...@vindex org-agenda-ndays
+...@vindex org-agenda-span
Compile an agenda for the current week from a list of Org files.   
The agenda
shows the entries for each day.  With a numeric pre...@footnote{for  
backward
compatibility, the universal prefix @kbd{C-u} causes all TODO  
entries to be
listed before the agenda.  This feature is deprecated, use the  
dedicated TODO
list, or a block agenda instead (@pxref{Block agenda}).}  (like  
@kbd{C-u 2 1

C-c a a}) you may set the number of days to be displayed (see also the
-variable @code{org-agenda-ndays})
+variable @code{org-agenda-span})
@end table

Remote editing from the agenda buffer means, for example, that you can
@@ -7621,10 +7621,10 @@ argument as well.  For example, @kbd{200712  
w} will jump to week 12 in

be mapped to the interval 1938-2037.
@c
@orgcmd{f,org-agenda-later}
-...@vindex org-agenda-ndays
-Go forward in time to display the following @code{org-agenda-ndays}  
days.

+...@vindex org-agenda-span
+Go forward in time to display the following @code{org-agenda- 
current-span} days.
For example, if the display covers a week, switch to the following  
week.
-With prefix arg, go forward that many times @code{org-agenda-ndays}  
days.
+With prefix arg, go forward that many times @code{org-agenda- 
current-span} days.

@c
@orgcmd{b,org-agenda-earlier}
Go backward in time to display earlier dates.
@@ -8369,7 +8369,7 @@ or, if you need to modify some  
paramet...@footnote{quoting depends on the

system you use, please check the FAQ for examples.}
@example
emacs -eval '(org-batch-store-agenda-views  \
-  org-agenda-ndays 30   \
+  org-agenda-span month 

[Orgmode] Re: request for latex-to-org importer

2010-11-29 Thread Marvin Doyley
This is awesome, I am looking forward to using your package.
Thanks,
cheers
M
PS I am convinced that when I get some free time I will learn how to program
in lisp

On Sun, Nov 28, 2010 at 3:57 PM, Matt Lundin  wrote:

> Marvin Doyley  writes:
>
> > Does anybody have a latex-org- importer ?
> > I would like to use this as a collaborative tool when working with
> > colleagues and students who are versed in latex but not familiar with
> > emacs or org mode. Could prove to be very powerful when editing latex
> > manuscripts - just import into org edit (my preferred way of working
> > with latex) and export back to latex and send to co-authors.
>
> I have a rudimentary latex2org perl script (ahem, bundle of hacks) born
> of necessity that I intend to put up on Worg when I get a chance. I'm
> afraid it knows nothing (at the moment) of math formulas. (I did use it
> to convert a large manuscript, including biblatex citations, to a nice
> clean org file --- a result that brought a smile to my face, however
> ugly the script itself might be.)
>
> I'll try to clean it up and make it available as soon as I can.
>
> Best,
> Matt
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] error in calculating percentages in clocktables

2010-11-29 Thread Joost Helberg
ls,

I'm using clocktables and encountered an issue in calculating the
percentage in the last column. Some columns have moved 1 left in the
head-revision, but the generated formula was not changed. 
Hence the following patch. The percentages come out OK with this
patch. 

Can someone using clocktables verify that this patch is correct and
doesn't break other stuff? 

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index eb859df..0c7c73b 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -2173,9 +2173,9 @@ from the dynamic block defintion."
 (format
  "\n#+TBLFM: $%d='(org-clock-time%% @%d$%d $%d..$%d);%%.1f"
  pcol
- (+ 2 (if narrow 1 0))
- (+ 3 (if multifile 1 0))
- (+ (if multifile 1 0) 3)
+ (+ 1 (if narrow 1 0))
+ (+ 2 (if multifile 1 0))
+ (+ (if multifile 1 0) 2)
  (1- pcol)))
(setq recalc t))
   ((stringp formula)

regards,

Joost Helberg

-- 
Snow B.V.http://snow.nl

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: moving in the agenda view is slow

2010-11-29 Thread Rainer Stengele


Am 28.11.2010 22:32, schrieb Nick Dokos:
> Rainer Stengele  wrote:
>
>
>> I tried with pressing "n" step by step 10 times, so no leaning on the "n" 
>> key:
>>
>> org-agenda-next-line  10  
>> 0.313999  0.0314
>> next-line 10  
>> 0.313999  0.0314
>> org-detach-overlay12  
>> 0.0   0.0
>> org-agenda-post-command-hook  12  
>> 0.0   0.0
>> org-agenda-do-context-action  10  
>> 0.0   0.0
>> org-get-at-bol10  
>> 0.0   0.0
>> org-unhighlight   12  
>> 0.0   0.0
>> font-lock-mode1   
>> 0.0   0.0
>> font-lock-default-function1   
>> 0.0   0.0
>>
>>
>> I see no change. Emacs is on Windows XP.
>>
> OK - next-line is indeed taking up all the time (but the exact equality
> and the 0.0 times make me wonder about the clock resolution on this
> platform and how reliable elp is here), so, unless there is some
> backdoor connection, these delays have nothing to do with org - it's
> emacs itself which is slow: 31ms per call is not as slow as it was
> yesterday, but it's still 25x what I see.
>
> Eric, do you encounter this problem on Emacs/Windows XP as well? Has
> anybody encountered this problem on anything *but* Emacs/Windows XP?
>
> Rainer, if you'd like to continue the exercise, maybe the thing to do is
> to profile functions that next-line calls and get another profile. The
> only other function that seems likely to take up time is line-move, so
> you might proceed like this:
>
> Set up a minimal emacs so that you don't have to retype everything
> over and over. Something like the following, where I assume you use
> org-install to initialize org - you'll also have to change the load-path
> and the list of org-agenda-files to suit your situation:
>
> --8<---cut here---start->8---
> (add-to-list 'load-path "~/elisp/org-mode/lisp")
> (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . 
> org-mode))
> (require 'org-install)
> (require 'org-agenda)
> (global-set-key "\C-cl" 'org-store-link)
> (global-set-key "\C-ca" 'org-agenda)
> (global-set-key "\C-cr" 'elp-results)
>
> (elp-instrument-list '(org-agenda-next-line next-line line-move))
> (setq org-agenda-files '("~/lib/org/work.org" "~/lib/org/home.org"))
> (org-agenda-list)
> (elp-reset-all)
> --8<---cut here---end--->8---
>
> Save it in a file called minimal.emacs and then say
>
>  emacs -Q --load minimal.emacs
>
> You should get an agenda - press "n" a dozen times, and then C-c r
> to get the results. You can add more functions to the list above
> (the next few candidates are line-move-partial, line-move-visual,
> line-move-1). Assuming that you get consistent results implicating
> these, I suspect that the thing to do is to post your findings in
> an emacs forum or open an emacs bug report.
>
> I haven't gone back to check your original emails, but is there
> a particular version of emacs that exhibits this problem? Is there
> a version that does *not* exhibit it? When exactly did you start
> noticing this behavior (relative to emacs updates etc)?
>
> Thanks,
> Nick
>
>
>
Continuing the exercice I found:

(elp-instrument-list '(org-agenda-next-line next-line line-move)) results in

org-agenda-next-line  12  0.016 0.001333
next-line 12  0.0   0.0
line-move 12  0.0   0.0


(elp-instrument-list '(org-agenda-next-line next-line line-move 
line-move-partial line-move-visual line-move-1)) results in

org-agenda-next-line  12  0.015 0.00125
next-line 12  0.0   0.0
line-move 12  0.0   0.0
line-move-partial 12  0.0   0.0
line-move-1   12  0.0   0.0


changing to agenda month view and "n"-ing through all entries results in:

org-agenda-next-line  93  0.218000  0.0023440860
next-line 93  0.016 0.0001720430
line-move 93  0.0   0.0
line-move-partial 93  0.0   0.0
line-move-1   93  0.0   0.0

further, after elp-instrument-package RET org RET (and doing lots of "n"s and 
"p"s)

org-agenda-do-context-action  445 
1.516999  0.0034089887
org-display-outline-path  428 
1.46  0.0034345794
org-get-outline-path  428 
1.127000  0.0026331775
org-up

[Orgmode] [PATCH] org-agenda: rework ndays and span handling

2010-11-29 Thread Julien Danjou
* org-agenda.el (org-agenda-custom-commands-local-options):
Allow org-agenda-span to be a symbol.
(org-agenda-ndays): Make obsolete.
(org-agenda-span): New variable superseding org-agenda-ndays.
(org-agenda-menu): Use org-agenda-current-span.
(org-agenda-current-span): New local variable storing current
span.
(org-agenda-list): Take a span instead of ndays as argument.
This function is now responsible for computing the ndays based
on span.
(org-agenda-ndays-to-span): Return span only if number of days
really matches.
(org-agenda-span-to-ndays): New function.
(org-agenda-manipulate-query): Use org-agenda-compute-starting-span.
(org-agenda-goto-today): Use org-agenda-compute-starting-span.
(org-agenda-later): Do not give compute a new span, use the
current one.
(org-agenda-day-view, org-agenda-week-view)
(org-agenda-month-view, org-agenda-year-view): Stop touching
org-agenda-ndays.
(org-agenda-change-time-span): Only compute starting-span.
(org-agenda-compute-starting-span): New function derived from
the old org-agenda-compute-time-span.
(org-agenda-set-mode-name): Compute mode based on
org-agenda-current-span.
(org-agenda-span-name): New function.

* org-mouse.el: Replace Replace org-agenda-ndays by
org-agenda-current-span.

* org.texi, orgguide.texi: Replace org-agenda-ndays by org-agenda-span.

Signed-off-by: Julien Danjou 
---

Hi,

This patch is pretty huge, so I'll give a bit of context about it.

I'm weird, but I used org-agenda-ndays set to 14. Unfortunately, this
settings was interpreted as a month view. Pressing 'f' key to see later,
would show me the next month, which was not at all what I wanted.

On the same idea, day view or week view would change my org-agenda-ndays
settings, which I think is not a good idea. Changing user setting is *bad*.
:-)

So I rewrote the things this way:
- Rename org-agenda-span to org-agenda-current-span
  Which has the same meaning has before, except it can be numeric.
- Rename org-agenda-ndays to org-agenda-span
  I think the name is better choosen. You can set it to a symbol instead of
  only a numeric value. That means you can set it to 'month and it will show
  you the number of days of the current month in your agenda. Better than
  30. But you can still set it to 30, or 31, or whatever you want.
- Do not change org-agenda-span. Never.
- Use org-agenda-current-span for navigation.
  That means if you press 'f', it will shows you really the next
  org-agenda-current-span ndays, and not something based on "I think you
  want a weekly view".

Tested, no bug found so far. :-)

 doc/org.texi   |   14 ++--
 doc/orgguide.texi  |6 +-
 lisp/org-agenda.el |  188 +--
 lisp/org-mouse.el  |4 +-
 4 files changed, 119 insertions(+), 93 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index e2e9af5..b5b70c9 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -6966,14 +6966,14 @@ paper agenda, showing all the tasks for the current 
week or day.
 @table @kbd
 @cindex org-agenda, command
 @orgcmd{C-c a a,org-agenda-list}
-...@vindex org-agenda-ndays
+...@vindex org-agenda-span
 Compile an agenda for the current week from a list of Org files.  The agenda
 shows the entries for each day.  With a numeric pre...@footnote{for backward
 compatibility, the universal prefix @kbd{C-u} causes all TODO entries to be
 listed before the agenda.  This feature is deprecated, use the dedicated TODO
 list, or a block agenda instead (@pxref{Block agenda}).}  (like @kbd{C-u 2 1
 C-c a a}) you may set the number of days to be displayed (see also the
-variable @code{org-agenda-ndays})
+variable @code{org-agenda-span})
 @end table
 
 Remote editing from the agenda buffer means, for example, that you can
@@ -7621,10 +7621,10 @@ argument as well.  For example, @kbd{200712 w} will 
jump to week 12 in
 be mapped to the interval 1938-2037.
 @c
 @orgcmd{f,org-agenda-later}
-...@vindex org-agenda-ndays
-Go forward in time to display the following @code{org-agenda-ndays} days.
+...@vindex org-agenda-span
+Go forward in time to display the following @code{org-agenda-current-span} 
days.
 For example, if the display covers a week, switch to the following week.
-With prefix arg, go forward that many times @code{org-agenda-ndays} days.
+With prefix arg, go forward that many times @code{org-agenda-current-span} 
days.
 @c
 @orgcmd{b,org-agenda-earlier}
 Go backward in time to display earlier dates.
@@ -8369,7 +8369,7 @@ or, if you need to modify some 
paramet...@footnote{quoting depends on the
 system you use, please check the FAQ for examples.}
 @example
 emacs -eval '(org-batch-store-agenda-views  \
-  org-agenda-ndays 30   \
+  org-agenda-span month \
   org-agenda-start-day "2007-11-01" \
   org-agenda-include-diary nil  \
   org-agenda-files (quote ("~/org/project.org")))'  \
@@ -

Re: [Orgmode] [PATCH] Quarters added to clocktables

2010-11-29 Thread Carsten Dominik


On Nov 29, 2010, at 10:22 AM, Erwin Vrolijk wrote:


Hi Carsten,

Thank you for your feedback. The FSF papers are no problem, i've  
already got them by mail.

Here are the new patches, patched to the current HEAD.


Hi Erwin,

I have applied your patches - please make sure that you complete the  
FSF copyright assignment process and keep me up to date on how that is  
going.


Thanks!

- Carsten



Regards,
Erwin Vrolijk
Snow B.V.

diff --git a/doc/org.texi b/doc/org.texi
index 17d6e65..a4073d0 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -5820,6 +5820,7 @@ be selected:
2007-12-31@r{New year eve 2007}
2007-12   @r{December 2007}
2007-W50  @r{ISO-week 50 in 2007}
+ 2007-Q2   @r{2nd quarter in 2007}
2007  @r{the year 2007}
today, yesterday, tod...@var{n}  @r{a relative  
day}
thisweek, lastweek, thiswe...@var{n} @r{a relative  
week}


diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index e798027..a7c4a97 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -1654,6 +1654,65 @@ buffer and update it."
  (>= (match-end 0) pos)
  start
+(defun org-day-of-week (day month year)
+  "Returns the day of the week as an integer."
+  (nth 6
+   (decode-time
+(date-to-time
+ (format "%d-%02d-%02dT00:00:00" year month day)
+
+(defun org-quarter-to-date (quarter year)
+  "Get the date (week day year) of the first day of a given quarter."
+  (cond
+   ((= quarter 1)
+(setq startday (org-day-of-week 1 1 year))
+(cond
+ ((= startday 0)
+  (list 52 7 (- year 1)))
+ ((= startday 6)
+  (list 52 6 (- year 1)))
+ ((<= startday 4)
+  (list 1 startday year))
+ ((> startday 4)
+  (list 53 startday (- year 1)))
+ )
+)
+   ((= quarter 2)
+(setq startday (org-day-of-week 1 4 year))
+(cond
+ ((= startday 0)
+  (list 13 startday year))
+ ((< startday 4)
+  (list 14 startday year))
+ ((>= startday 4)
+  (list 13 startday year))
+ )
+)
+   ((= quarter 3)
+(setq startday (org-day-of-week 1 7 year))
+(cond
+ ((= startday 0)
+  (list 26 startday year))
+ ((< startday 4)
+  (list 27 startday year))
+ ((>= startday 4)
+  (list 26 startday year))
+ )
+)
+   ((= quarter 4)
+(setq startday (org-day-of-week 1 10 year))
+(cond
+ ((= startday 0)
+  (list 39 startday year))
+ ((<= startday 4)
+  (list 40 startday year))
+ ((> startday 4)
+  (list 39 startday year))
+ )
+)
+   )
+  )
+
(defun org-clock-special-range (key &optional time as-strings)
 "Return two times bordering a special time range.
Key is a symbol specifying the range and can be one of `today',  
`yesterday',

@@ -1670,6 +1729,10 @@ the returned times will be formatted strings."
(dow (nth 6 tm))
(skey (symbol-name key))
(shift 0)
+ (q (cond ((>= (nth 4 tm) 10) 4)
+  ((>= (nth 4 tm) 7) 3)
+  ((>= (nth 4 tm) 4) 2)
+  ((>= (nth 4 tm) 1) 1)))
s1 m1 h1 d1 month1 y1 diff ts te fm txt w date)
   (cond
((string-match "^[0-9]+$" skey)
@@ -1687,6 +1750,15 @@ the returned times will be formatted strings."
 (setq d (nth 1 date) month (car date) y (nth 2 date)
   dow 1
   key 'week))
+  ((string-match "^\\([0-9]+\\)-[qQ]\\([1-4]\\)$" skey)
+   (require 'cal-iso)
+   (setq y (string-to-number (match-string 1 skey)))
+   (setq q (string-to-number (match-string 2 skey)))
+   (setq date (calendar-gregorian-from-absolute
+   (calendar-absolute-from-iso (org-quarter-to-date  
q y

+   (setq d (nth 1 date) month (car date) y (nth 2 date)
+dow 1
+key 'quarter))
((string-match "^\\([0-9]+\\)-\\([0-9]\\{1,2\\}\\)-\\([0-9]\ 
\{1,2\\}\\)$" skey)

 (setq y (string-to-number (match-string 1 skey))
   month (string-to-number (match-string 2 skey))
@@ -1694,12 +1766,17 @@ the returned times will be formatted strings."
   key 'day))
((string-match "\\([-+][0-9]+\\)$" skey)
 (setq shift (string-to-number (match-string 1 skey))
-key (intern (substring skey 0 (match-beginning 1))
+key (intern (substring skey 0 (match-beginning 1
+   (if(and (memq key '(quarter thisq)) (> shift 0))
+ (error "Looking forward with quarters isn't implemented.")
+(
+
   (when (= shift 0)
-  (cond ((eq key 'yesterday) (setq key 'today shift -1))
-((eq key 'lastweek)  (setq key 'week  shift -1))
-((eq key 'lastmonth) (setq key 'month shift -1))
-((eq key 'lastyear)  (setq key 'year  shift -1
+   (cond ((eq key 'yesterday) (setq key 'today   shift -1))
+((eq key 'lastweek)  (setq key 'weekshift -1))
+((eq key 'lastmonth) (setq key 'month   shift -1))
+((eq key 'lastyear)  (setq key 'yearshift -1))
+((eq

[Orgmode] Importing text/data on export?

2010-11-29 Thread Luke Crook
I would like to create some technical specifications in a format of 
(a) Cover Page, (b) Title Page, (c) Revision History, (d) TOC, 
(e) List of Tables, (f) List of Figures, and (g) Actual specifications/text/etc.

A-C might be part of each org-mode document, or might only be included on 
export.
However there are fields in these sections that are document specific that must 
be updated on export, for example; title, doc number, revision number. 
In addition, the Cover Page has to be of the approved format having space 
for the appropriate signoff signatures for the author and several approvers. 
Is org-mode capable of this, or is this something that has to be done outside 
of org-mode?

For the revision history, I think creating this table on export by 
including the commit text from git would be great. Does anyone have any
 pointers on how to accomplish this?

-Luke


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] Quarters added to clocktables

2010-11-29 Thread Carsten Dominik

Hi Erwin,

I cannot get the patch to apply, probably because the mailer is  
destroying it.
Can you please put the patch into a file and send it to me as an  
attachment?


Thanks.

- Carsten

On Nov 29, 2010, at 10:22 AM, Erwin Vrolijk wrote:


Hi Carsten,

Thank you for your feedback. The FSF papers are no problem, i've  
already got them by mail.

Here are the new patches, patched to the current HEAD.

Regards,
Erwin Vrolijk
Snow B.V.

diff --git a/doc/org.texi b/doc/org.texi
index 17d6e65..a4073d0 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -5820,6 +5820,7 @@ be selected:
2007-12-31@r{New year eve 2007}
2007-12   @r{December 2007}
2007-W50  @r{ISO-week 50 in 2007}
+ 2007-Q2   @r{2nd quarter in 2007}
2007  @r{the year 2007}
today, yesterday, tod...@var{n}  @r{a relative  
day}
thisweek, lastweek, thiswe...@var{n} @r{a relative  
week}


diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index e798027..a7c4a97 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -1654,6 +1654,65 @@ buffer and update it."
  (>= (match-end 0) pos)
  start
+(defun org-day-of-week (day month year)
+  "Returns the day of the week as an integer."
+  (nth 6
+   (decode-time
+(date-to-time
+ (format "%d-%02d-%02dT00:00:00" year month day)
+
+(defun org-quarter-to-date (quarter year)
+  "Get the date (week day year) of the first day of a given quarter."
+  (cond
+   ((= quarter 1)
+(setq startday (org-day-of-week 1 1 year))
+(cond
+ ((= startday 0)
+  (list 52 7 (- year 1)))
+ ((= startday 6)
+  (list 52 6 (- year 1)))
+ ((<= startday 4)
+  (list 1 startday year))
+ ((> startday 4)
+  (list 53 startday (- year 1)))
+ )
+)
+   ((= quarter 2)
+(setq startday (org-day-of-week 1 4 year))
+(cond
+ ((= startday 0)
+  (list 13 startday year))
+ ((< startday 4)
+  (list 14 startday year))
+ ((>= startday 4)
+  (list 13 startday year))
+ )
+)
+   ((= quarter 3)
+(setq startday (org-day-of-week 1 7 year))
+(cond
+ ((= startday 0)
+  (list 26 startday year))
+ ((< startday 4)
+  (list 27 startday year))
+ ((>= startday 4)
+  (list 26 startday year))
+ )
+)
+   ((= quarter 4)
+(setq startday (org-day-of-week 1 10 year))
+(cond
+ ((= startday 0)
+  (list 39 startday year))
+ ((<= startday 4)
+  (list 40 startday year))
+ ((> startday 4)
+  (list 39 startday year))
+ )
+)
+   )
+  )
+
(defun org-clock-special-range (key &optional time as-strings)
 "Return two times bordering a special time range.
Key is a symbol specifying the range and can be one of `today',  
`yesterday',

@@ -1670,6 +1729,10 @@ the returned times will be formatted strings."
(dow (nth 6 tm))
(skey (symbol-name key))
(shift 0)
+ (q (cond ((>= (nth 4 tm) 10) 4)
+  ((>= (nth 4 tm) 7) 3)
+  ((>= (nth 4 tm) 4) 2)
+  ((>= (nth 4 tm) 1) 1)))
s1 m1 h1 d1 month1 y1 diff ts te fm txt w date)
   (cond
((string-match "^[0-9]+$" skey)
@@ -1687,6 +1750,15 @@ the returned times will be formatted strings."
 (setq d (nth 1 date) month (car date) y (nth 2 date)
   dow 1
   key 'week))
+  ((string-match "^\\([0-9]+\\)-[qQ]\\([1-4]\\)$" skey)
+   (require 'cal-iso)
+   (setq y (string-to-number (match-string 1 skey)))
+   (setq q (string-to-number (match-string 2 skey)))
+   (setq date (calendar-gregorian-from-absolute
+   (calendar-absolute-from-iso (org-quarter-to-date  
q y

+   (setq d (nth 1 date) month (car date) y (nth 2 date)
+dow 1
+key 'quarter))
((string-match "^\\([0-9]+\\)-\\([0-9]\\{1,2\\}\\)-\\([0-9]\ 
\{1,2\\}\\)$" skey)

 (setq y (string-to-number (match-string 1 skey))
   month (string-to-number (match-string 2 skey))
@@ -1694,12 +1766,17 @@ the returned times will be formatted strings."
   key 'day))
((string-match "\\([-+][0-9]+\\)$" skey)
 (setq shift (string-to-number (match-string 1 skey))
-key (intern (substring skey 0 (match-beginning 1))
+key (intern (substring skey 0 (match-beginning 1
+   (if(and (memq key '(quarter thisq)) (> shift 0))
+ (error "Looking forward with quarters isn't implemented.")
+(
+
   (when (= shift 0)
-  (cond ((eq key 'yesterday) (setq key 'today shift -1))
-((eq key 'lastweek)  (setq key 'week  shift -1))
-((eq key 'lastmonth) (setq key 'month shift -1))
-((eq key 'lastyear)  (setq key 'year  shift -1
+   (cond ((eq key 'yesterday) (setq key 'today   shift -1))
+((eq key 'lastweek)  (setq key 'weekshift -1))
+((eq key 'lastmonth) (setq key 'month   shift -1))
+((eq key 'lastyear)  (setq key 'yearshift -1))
+   

[Accepted] [Orgmode] Add org-agenda-todo-ignore-timestamp

2010-11-29 Thread Carsten Dominik
Patch 407 (http://patchwork.newartisans.com/patch/407/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C1290691976-11203-1-git-send-email-julien%40danjou.info%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Add org-agenda-todo-ignore-timestamp
> Date: Thu, 25 Nov 2010 18:32:56 -
> From: Julien Danjou 
> X-Patchwork-Id: 407
> Message-Id: <1290691976-11203-1-git-send-email-jul...@danjou.info>
> To: emacs-orgmode@gnu.org
> Cc: Julien Danjou 
> 
> * lisp/org-agenda.el: Add org-agenda-todo-ignore-timestamp.
> (org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item):
> Honor org-agenda-todo-ignore-timestamp.
> * doc/org.texi: Mention org-agenda-todo-ignore-timestamp.
> 
> Signed-off-by: Julien Danjou 
> 
> ---
> doc/org.texi   |8 --
>  lisp/org-agenda.el |   57 +--
>  2 files changed, 59 insertions(+), 6 deletions(-)
> 
> diff --git a/doc/org.texi b/doc/org.texi
> index f391e84..ed1c4bb 100644
> --- a/doc/org.texi
> +++ b/doc/org.texi
> @@ -7117,13 +7117,15 @@ it more compact:
>  @item
>  @vindex org-agenda-todo-ignore-scheduled
>  @vindex org-agenda-todo-ignore-deadlines
> +...@vindex org-agenda-todo-ignore-timestamp
>  @vindex org-agenda-todo-ignore-with-date
>  Some people view a TODO item that has been @emph{scheduled} for execution or
>  have a @emph{deadline} (@pxref{Timestamps}) as no longer @emph{open}.
>  Configure the variables @code{org-agenda-todo-ignore-scheduled},
> -...@code{org-agenda-todo-ignore-deadlines}, and/or
> -...@code{org-agenda-todo-ignore-with-date} to exclude such items from the
> -global TODO list.
> +...@code{org-agenda-todo-ignore-deadlines},
> +...@code{org-agenda-todo-ignore-timestamp} and/or
> +...@code{org-agenda-todo-ignore-with-date} to exclude such items from the 
> global
> +TODO list.
>  @item
>  @vindex org-agenda-todo-list-sublevels
>  TODO items may have sublevels to break up the task into subtasks.  In
> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
> index a248068..acdc1b2 100644
> --- a/lisp/org-agenda.el
> +++ b/lisp/org-agenda.el
> @@ -562,6 +562,33 @@ See also the variable 
> `org-agenda-tags-todo-honor-ignore-options'."
>:group 'org-agenda-todo-list
>:type 'boolean)
>  
> +(defcustom org-agenda-todo-ignore-timestamp nil
> +  "Non-nil means don't show entries with a timestamp.
> +This applies when creating the global todo list.
> +Valid values are:
> +
> +past Don't show entries for today or in the past.
> +
> +future   Don't show entries with a timestamp in the future.
> + The idea behind this is that if it has a future
> + timestamp, you don't want to think about it until the
> + date.
> +
> +all  Don't show any entries with a timestamp in the global todo list.
> + The idea behind this is that by setting a timestamp, you
> + have already \"taken care\" of this item.
> +
> +See also `org-agenda-todo-ignore-with-date'.
> +See also the variable `org-agenda-tags-todo-honor-ignore-options' if you want
> +to make his option also apply to the tags-todo list."
> +  :group 'org-agenda-skip
> +  :group 'org-agenda-todo-list
> +  :type '(choice
> +   (const :tag "Ignore future timestamp todos" future)
> +   (const :tag "Ignore past or present timestamp todos" past)
> +   (const :tag "Ignore all timestamp todos" all)
> +   (const :tag "Show timestamp todos" nil)))
> +
>  (defcustom org-agenda-todo-ignore-scheduled nil
>"Non-nil means, ignore some scheduled TODO items when making TODO list.
>  This applies when creating the global todo list.
> @@ -632,7 +659,8 @@ to make his option also apply to the tags-todo list."
>"Non-nil means honor todo-list ...ignore options also in tags-todo search.
>  The variables
> `org-agenda-todo-ignore-with-date',
> -   `org-agenda-todo-ignore-scheduled'
> +   `org-agenda-todo-ignore-timestamp',
> +   `org-agenda-todo-ignore-scheduled',
> `org-agenda-todo-ignore-deadlines'
>  make the global TODO list skip entries that have time stamps of certain
>  kinds.  If this option is set, the same options will also apply for the
> @@ -4435,7 +4463,8 @@ the documentation of `org-diary'."
>"Do we have a reason to ignore this TODO entry because it has a time 
> stamp?"
>(when (or org-agenda-todo-ignore-with-date
>   org-agenda-todo-ignore-scheduled
> - org-agenda-todo-ignore-deadlines)
> + org-agenda-todo-ignore-deadlines
> + org-agenda-todo-ignore-timestamp)
>  (setq end (or end (save-excursion (outline-next-heading) (point
>  (save-excursion
>(or (and org-agenda-todo-ignore-with-date
> @@ -4458,7 +4487,29 @@ the documentation of `org-diary'."
>(> (org-days-to-time (match-string 1)) 0))
>   ((eq org-agenda-todo-ignore-

[Orgmode] Re: mobileorg app can't sync

2010-11-29 Thread Luke Crook
Luke Crook  balooga.com> writes:
>  
> I'll try this and report back.

I started over. Followed the instructions at http://mobileorg.ncogni.to/ and 
everything works.

Thanks,
-Luke


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Accepted] [Orgmode] org-agenda: convert category to string

2010-11-29 Thread Carsten Dominik
Patch 406 (http://patchwork.newartisans.com/patch/406/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C1290628932-6922-1-git-send-email-julien%40danjou.info%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] org-agenda: convert category to string
> Date: Thu, 25 Nov 2010 01:02:12 -
> From: Julien Danjou 
> X-Patchwork-Id: 406
> Message-Id: <1290628932-6922-1-git-send-email-jul...@danjou.info>
> To: emacs-orgmode@gnu.org
> Cc: Julien Danjou 
> 
> * org-agenda.el (org-format-agenda-item): Convert category to a string
> if it is a symbol. This fixes the following call to
> org-agenda-get-category-icon which fails if category is not a string.
> 
> Signed-off-by: Julien Danjou 
> 
> ---
> lisp/org-agenda.el |4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
> index a248068..638629d 100644
> --- a/lisp/org-agenda.el
> +++ b/lisp/org-agenda.el
> @@ -5044,7 +5044,9 @@ Any match of REMOVE-RE will be removed from TXT."
>  org-agenda-show-inherited-tags
>  org-agenda-hide-tags-regexp))
>  (let* ((category (or category
> -  org-category
> +  (if (stringp org-category)
> +  org-category
> +(symbol-name org-category))
>(if buffer-file-name
>(file-name-sans-extension
> (file-name-nondirectory buffer-file-name))
> 

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] Quarters added to clocktables

2010-11-29 Thread Erwin Vrolijk

Hi Carsten,

Thank you for your feedback. The FSF papers are no problem, i've already 
got them by mail.

Here are the new patches, patched to the current HEAD.

Regards,
Erwin Vrolijk
Snow B.V.

diff --git a/doc/org.texi b/doc/org.texi
index 17d6e65..a4073d0 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -5820,6 +5820,7 @@ be selected:
 2007-12-31@r{New year eve 2007}
 2007-12   @r{December 2007}
 2007-W50  @r{ISO-week 50 in 2007}
+ 2007-Q2   @r{2nd quarter in 2007}
 2007  @r{the year 2007}
 today, yesterday, tod...@var{n}  @r{a relative day}
 thisweek, lastweek, thiswe...@var{n} @r{a relative week}

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index e798027..a7c4a97 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -1654,6 +1654,65 @@ buffer and update it."
   (>= (match-end 0) pos)
   start

+(defun org-day-of-week (day month year)
+  "Returns the day of the week as an integer."
+  (nth 6
+   (decode-time
+(date-to-time
+ (format "%d-%02d-%02dT00:00:00" year month day)
+
+(defun org-quarter-to-date (quarter year)
+  "Get the date (week day year) of the first day of a given quarter."
+  (cond
+   ((= quarter 1)
+(setq startday (org-day-of-week 1 1 year))
+(cond
+ ((= startday 0)
+  (list 52 7 (- year 1)))
+ ((= startday 6)
+  (list 52 6 (- year 1)))
+ ((<= startday 4)
+  (list 1 startday year))
+ ((> startday 4)
+  (list 53 startday (- year 1)))
+ )
+)
+   ((= quarter 2)
+(setq startday (org-day-of-week 1 4 year))
+(cond
+ ((= startday 0)
+  (list 13 startday year))
+ ((< startday 4)
+  (list 14 startday year))
+ ((>= startday 4)
+  (list 13 startday year))
+ )
+)
+   ((= quarter 3)
+(setq startday (org-day-of-week 1 7 year))
+(cond
+ ((= startday 0)
+  (list 26 startday year))
+ ((< startday 4)
+  (list 27 startday year))
+ ((>= startday 4)
+  (list 26 startday year))
+ )
+)
+   ((= quarter 4)
+(setq startday (org-day-of-week 1 10 year))
+(cond
+ ((= startday 0)
+  (list 39 startday year))
+ ((<= startday 4)
+  (list 40 startday year))
+ ((> startday 4)
+  (list 39 startday year))
+ )
+)
+   )
+  )
+
(defun org-clock-special-range (key &optional time as-strings)
  "Return two times bordering a special time range.
Key is a symbol specifying the range and can be one of `today', 
`yesterday',

@@ -1670,6 +1729,10 @@ the returned times will be formatted strings."
 (dow (nth 6 tm))
 (skey (symbol-name key))
 (shift 0)
+ (q (cond ((>= (nth 4 tm) 10) 4)
+  ((>= (nth 4 tm) 7) 3)
+  ((>= (nth 4 tm) 4) 2)
+  ((>= (nth 4 tm) 1) 1)))
 s1 m1 h1 d1 month1 y1 diff ts te fm txt w date)
(cond
 ((string-match "^[0-9]+$" skey)
@@ -1687,6 +1750,15 @@ the returned times will be formatted strings."
  (setq d (nth 1 date) month (car date) y (nth 2 date)
dow 1
key 'week))
+  ((string-match "^\\([0-9]+\\)-[qQ]\\([1-4]\\)$" skey)
+   (require 'cal-iso)
+   (setq y (string-to-number (match-string 1 skey)))
+   (setq q (string-to-number (match-string 2 skey)))
+   (setq date (calendar-gregorian-from-absolute
+   (calendar-absolute-from-iso (org-quarter-to-date q y
+   (setq d (nth 1 date) month (car date) y (nth 2 date)
+dow 1
+key 'quarter))
 ((string-match 
"^\\([0-9]+\\)-\\([0-9]\\{1,2\\}\\)-\\([0-9]\\{1,2\\}\\)$" skey)

  (setq y (string-to-number (match-string 1 skey))
month (string-to-number (match-string 2 skey))
@@ -1694,12 +1766,17 @@ the returned times will be formatted strings."
key 'day))
 ((string-match "\\([-+][0-9]+\\)$" skey)
  (setq shift (string-to-number (match-string 1 skey))
-key (intern (substring skey 0 (match-beginning 1))
+key (intern (substring skey 0 (match-beginning 1
+   (if(and (memq key '(quarter thisq)) (> shift 0))
+ (error "Looking forward with quarters isn't implemented.")
+(
+
(when (= shift 0)
-  (cond ((eq key 'yesterday) (setq key 'today shift -1))
-((eq key 'lastweek)  (setq key 'week  shift -1))
-((eq key 'lastmonth) (setq key 'month shift -1))
-((eq key 'lastyear)  (setq key 'year  shift -1
+   (cond ((eq key 'yesterday) (setq key 'today   shift -1))
+((eq key 'lastweek)  (setq key 'weekshift -1))
+((eq key 'lastmonth) (setq key 'month   shift -1))
+((eq key 'lastyear)  (setq key 'yearshift -1))
+((eq key 'lastq) (setq key 'quarter shift -1
(cond
 ((memq key '(day today))
  (setq d (+ d shift) h 0 m 0 h1 24 m1 0))
@@ -1708,6 +1785,28 @@ the returned times will be formatted strings."
m 0 h 0 d (-

[Orgmode] Re: [OT] retrieving old messages

2010-11-29 Thread Sébastien Vauban
Hi Matt,

Matt Lundin wrote:
> FWIW, recent changes nnir (in nognus and development Emacs) allow for
> easy searching of individual Gmane groups. Simply type "G G" on the
> org-mode group in the in the Group buffer or call
> gnus-group-make-nnir-group from within the summary buffer or an article.
> I typed M-x gnus-group-make-nnir-group while editing this message,
> entered "gnus painful" and received the following summary buffer
> (limited to the org-mode list) in less than a second:

Do we have to activate something special?

Pressing G G on the Org group, I get:

--8<---cut here---start->8---
Debugger entered--Lisp error: (error "Couldn't request group: Search produced 
empty results.")
  signal(error ("Couldn't request group: Search produced empty results."))
  error("Couldn't request group: %s" "Search produced empty results.")
  gnus-group-read-ephemeral-group("nnir:((query . \"gnus painful\") (unique-id 
. \"80ipzgijf2.fsf\"))" (nnir "") t (# . group) nil)
  (let ((parms nil)) (if extra-parms (setq parms ...) (setq parms ...)) 
(add-to-list (quote parms) (cons ... ...) t) (gnus-group-read-ephemeral-group 
(concat "nnir:" ...) (quote ...) t (cons ... gnus-current-window-configuration) 
nil))
  gnus-group-make-nnir-group(nil "gnus painful")
  call-interactively(gnus-group-make-nnir-group nil nil)
--8<---cut here---end--->8---

Any idea?

Best regards,
  Seb

-- 
Sébastien Vauban


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [Babel] Reporting 2 problems of code execution

2010-11-29 Thread Sébastien Vauban
Hi Charles,

Thanks a lot for taking a look at this, too...

"Charles C. Berry" wrote:
> On Sun, 28 Nov 2010, Sébastien Vauban wrote:
>> Hi Eric and Dan,
>>
>> * Abstract
>>
>> Reporting two problems:
>
> Did you mean to include ":results output" in the headers?

You're right that could be it. I often forget about adding that setting, even
though it's more or less mandatory for the sh blocks -- at least, in many sh
blocks I write...


> When I do that in eaco of the src blocks I get what I think you were
> expecting.

I still don't. See below.


>> 1. parsing problem of unescaped text from a shell block
>> 2. end marker repeated upon execution of elisp block
>>
>> Note that I added the RESULT thing in my default headers.
>>
>> * Data
>>
>> Let's say I want to grep trough arbitrary text, such as:
>>
>> #+results:a-couple-of-lines
>> : He said "I'll do it"
>> : but that cannot be echo'ed!
>>
>> ... or to let it scanned by AWK for post-processing (like generating some
>> DOT representation).
>>
>> But, first, as errors are popping up, let's say I can just output it as is.
>>
>> * Shell code
>>
>> #+begin_src sh :var data=a-couple-of-lines :exports both
>> echo "$data"
>> #+end_src
>>
>> #+results:
>> #+BEGIN_RESULT
>> #+END_RESULT
>
> #+begin_src sh :results output :var data=a-couple-of-lines :exports both
> echo "$data"
> #+end_src
>
> #+results:
> : He said "I'll do it"
> : but that cannot be echo'ed!

It does not work for me. With the above, I (still) get:

#+results:
#+BEGIN_RESULT
#+END_RESULT

for results, and, in the *Org-Babel Error Output*:

--8<---cut here---start->8---
sh: line 3: unexpected EOF while looking for matching `''
sh: line 7: syntax error: unexpected end of file
--8<---cut here---end--->8---


>> The data is impossible (*for me*, as is) to print out from a shell code.
>> Though, it is in Emacs-Lisp... without any change.
>>
>> Note that it's the second *single quote* only that's causing a problem, not
>> the first one...
>>
>> * Emacs-Lisp code
>>
>> Executing this:
>>
>> #+begin_src emacs-lisp :var data=a-couple-of-lines :exports both
>> (prin1-to-string data)
>> #+end_src
>>
>> #+results:
>> #+BEGIN_RESULT
>> #+begin_example
>> "He said \"I'll do it\"
>> but that cannot be echoed!"
>> #+END_RESULT#+end_example
>> #+end_example
>> #+end_example
>> #+end_example
>> #+end_example
>> #+end_example
>> #+end_example
>> #+end_example
>> #+end_example
>>
>> works, but the *end marker is repeated* as long as we re-execute the block.
>
> #+begin_src emacs-lisp results output :var data=a-couple-of-lines :exports 
> both
> (prin1-to-string data)
> #+end_src
>
> #+results:
> : "He said \"I'll do it\"
> : but that cannot be echo'ed!"

With or without the ":results output" (BTW, notice you've forgotten the colon
in front of results), the result is the same. But, if you evaluate the block
multiple times, in my case, the end marker (end_example) is still repeated...

Best regards,
  Seb

-- 
Sébastien Vauban


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: moving in the agenda view is slow

2010-11-29 Thread Rainer Stengele
Am 28.11.2010 23:31, schrieb Nick Dokos:
> Eric S Fraga  wrote:
>
>> Nick Dokos  writes:
>>
>> [...]
>>
>>> Eric, do you encounter this problem on Emacs/Windows XP as well? Has
>>> anybody encountered this problem on anything *but* Emacs/Windows XP?
>> All my systems run Linux (Debian testing+unstable mix) so it's not the
>> OS.
>>
> OK, thanks. It also eliminates the window system (unless Rainer is running
> X on Windows), so it looks like an emacs problem.
>
> Nick
No, I am running Windows XP, native Windows Emacs "GNU Emacs 23.1.50.1 
(i386-mingw-nt5.1.2600) of 2009-11-04 on LENNART-69DE564 (patched)"

Rainer

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] LaTeX export of lists

2010-11-29 Thread Sébastien Mengin
Hi,

Forget my previous post, I didn't see this last one by Thomas.

Seems sensible, indeed.

Cheers,
S.

Le dim. 28/11/10 (08:40:58 -1000), Thomas S. Dye a écrit :
> Aloha Nicolas,
> On Nov 28, 2010, at 5:05 AM, Nicolas Goaziou wrote:
> 
> >Hello,
> >
> >>Thomas S Dye writes:
> >
> >>* List
> >> 1. First item
> >> 2. Second item Following text.
> >
> >This is completely different from your first example. Here "Following
> >text" is inside the list, whereas before, it was outside.
> >
> >>This works for lists set in a paragraph, but won't work for lists
> >>set out by themselves. Richard's \noindent will work in these
> >>situations, but I'm wondering why the empty line is there in the
> >>first place?
> >
> >I don't know, I am going to investigate this.
> 
> Thanks for looking into this.  The desired org-mode example and
> exported result is this:
> 
> * List
>   1. First item
>   2. Second item
> Following text
> 
> \section{List}
> \label{sec-1}
> 
> \begin{enumerate}
> \item First item
> \item Second item
> \end{enumerate}
> Following text
> 
> This way, the decision to typeset the list in-paragraph or displayed
> with following non-indented text can be made by the LaTeX class
> file.
> 
> This means that
> 
> * List
>   1. First item
>   2. Second item
> 
> Following text
> 
> should export as:
> 
> \section{List}
> \label{sec-1}
> 
> \begin{enumerate}
> \item First item
> \item Second item
> \end{enumerate}
> 
> Following text
> 
> All the best,
> Tom
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 
Sébastien Mengin
Édition et logiciels libres
< Mise en page avec LaTeX >
http://edilibre.net
tél. : 06 84 88 49 17
jid. : sebastien-men...@jabber.org


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [patch] LaTeX export of lists

2010-11-29 Thread Sébastien Mengin
Le dim. 28/11/10 (10:15:34 +0100), Nicolas Goaziou a écrit :
> 
> > This works perfectly for me. Thanks!
> 
> It is available on master branch now.
> 
> Thanks for pointing out this little annoyance.

Sorry I come too late but I would not like this kind of "annoyance"
avoided ;)

In Thomas' case, it is perfectly understandable, true.

But in general, I find it a lot better to leave a blank line between the
end of a list and the following paragraph in the LaTeX code -- easier to
read, I think.

Can your patch be set as an option or so, instead of the default
behaviour?

Thanks anyway,

-- 
Sébastien Mengin
Édition et logiciels libres
< Mise en page avec LaTeX >
http://edilibre.net
tél. : 06 84 88 49 17
jid. : sebastien-men...@jabber.org


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-mac-protocol/org-protocol-capture

2010-11-29 Thread Konrad Hinsen

On 29 Nov 2010, at 06:04, Timothy Brown wrote:


Has anyone done any hacking or changes to get a working setup
using the capture mechanic in org-mode  >7.01 to work with
org-mac-protocol[1] by claviclaws?

I'm pretty lisp clueless and searched around a bit but
couldn't find any obvious changes in order to get
everything to work as expected.


What exactly doesn't work for you? I use org-mac-protocol pretty much  
as published. The only modification I had to make was in the  
Applescript code that launches emacsclient, since I have several Emacs  
versions installed and by default it would pick up the wrong one.


Konrad.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode