Re: [O] Google Summer of Code 2012 Student Application

2012-04-05 Thread Bastien
Hi Andrew,

Andrew Young younga...@gmail.com writes:

 My name is Andrew Young, and I would like to participate in an Org-Mode
 project for GSoC 2012.  My application for the project 'Git merge tool for
 Org files' can be found
 herehttp://www.google-melange.com/gsoc/proposal/review/google/gsoc2012/pwyl/1#.

Great!

  I would appreciate as much feedback and criticism as possible.

First of all, make sure someone can co-mentor this project.  I'm willing
to mentor this (as the current maintainer it makes sense, especially for
people judging the project from the outside), but having Carsten as a
co-mentor would be a great win.  Make sure Carsten (cc'ed) is okay.

Carsten, being a co-mentor involves mainly three things:

1. registering on google-melange.com

2. from there, requesting to be a mentor for the GNU project

3. during the project, help the student and have IRC/phone meetings,
   at least when I'm not here (I expect to be off for 2-3 weeks this
   summer, I will tell when ASAP)

 I used the generic GNU Project student application template, which can be
 found here http://www.google-melange.com/gsoc/org/google/gsoc2012/gnu.

1. First things thing: you should rewrite the summary section to
   remove the I believe and other informal writing from Carsten's 
   prose.  Make it yours, make it a real summary.

2. Refer to org-element.el when you mention the Data representation.
   org-element.el will be key in representing data and diffs between 
   data (at any level.)

3. Add a documentation section, explaining what doc you will write and
   how you you will write/host it (worg is fine.)

 I have some specific questions:
 1.  There is no implementation details or decisions in my application, just
 a basic plan of what needs to be done.  Should I start researching
 implementation details for my application?

You can look at org-element.el for the data representation.

 2.  I would like to post my application on the community site Worg.  If
 this is appropriate, what is the proper channel to request GIT access?

Send me your public key.

 If this mailing list is not the appropriate place to discuss my
 application, please let me know and then feel free to email me directly.  I
 will also be spending as much time as possible on freenode #org-mode as
 Pwyl.

This mailing list *is* the appropriate place, no worry.

Thanks again for your proposal, this would be a great plus for Org!

Best,

-- 
 Bastien



Re: [O] [PATCH] doc/org.texi: Fix two typos in Agenda commands

2012-04-05 Thread Bastien
Hi Ippei,

Ippei FURUHASHI top.tuna+orgm...@gmail.com writes:

 There seems to be typos about keybindings to move next/previous line
 in Agenda commands.
 Could you have a look at this patch please?

Applied, thanks for the well-formatted patch.

-- 
 Bastien



Re: [O] Google Summer of Code 2012 Student Application

2012-04-05 Thread Torsten Wagner
Hi Andrew,

Reading this proposal and having a bit background in writing
proposals, I have the following suggestion:

* I'm not sure everyone (at least the one who review this) know what
org-mode is. There should be a very small summary about org-mode and
the key-benefit being plain text (which is why you can start this
project after all).

* In the way the proposal is written, you address org-mode users which
uses git (later you mention other CVS too). This actually makes, or at
least sound like, the proposal being only useful for a (small)
intersection of users namely org-mode AND (in the sense of an logic
AND) git-user.
I would find it more useful to describe this work as being an
extension for org-mode users;
** They can start to collaborate on a org-mode files, including
collaboration with users of possible other software tools (e.g.
mobileorg apps).
** Org-mode user can use a CVS system which is not only of interest
for collaboration but for keeping a chronological order of changes in
e.g. a project file.
** It makes org-mode a possible tool for software developers which can
now use org-files e.g. for documentation and notes beside there source
code in the same git repository.

All this points would show that the proposal is going to extend
org-mode instead of being limited useful for only a very particular
user-base. Finally, I guess it would be good to mention that this
project (and org-mode in general) is not limited to a OS but attracts
users of MS Windows, Mac OS and Linux. Simply to demonstrate that the
user-base can be expected to be rather large.
(Not sure if the GNU people like this ;) )

Torsten


On 5 April 2012 15:48, Bastien b...@gnu.org wrote:
 Hi Andrew,

 Andrew Young younga...@gmail.com writes:

 My name is Andrew Young, and I would like to participate in an Org-Mode
 project for GSoC 2012.  My application for the project 'Git merge tool for
 Org files' can be found
 herehttp://www.google-melange.com/gsoc/proposal/review/google/gsoc2012/pwyl/1#.

 Great!

  I would appreciate as much feedback and criticism as possible.

 First of all, make sure someone can co-mentor this project.  I'm willing
 to mentor this (as the current maintainer it makes sense, especially for
 people judging the project from the outside), but having Carsten as a
 co-mentor would be a great win.  Make sure Carsten (cc'ed) is okay.

 Carsten, being a co-mentor involves mainly three things:

 1. registering on google-melange.com

 2. from there, requesting to be a mentor for the GNU project

 3. during the project, help the student and have IRC/phone meetings,
   at least when I'm not here (I expect to be off for 2-3 weeks this
   summer, I will tell when ASAP)

 I used the generic GNU Project student application template, which can be
 found here http://www.google-melange.com/gsoc/org/google/gsoc2012/gnu.

 1. First things thing: you should rewrite the summary section to
   remove the I believe and other informal writing from Carsten's
   prose.  Make it yours, make it a real summary.

 2. Refer to org-element.el when you mention the Data representation.
   org-element.el will be key in representing data and diffs between
   data (at any level.)

 3. Add a documentation section, explaining what doc you will write and
   how you you will write/host it (worg is fine.)

 I have some specific questions:
 1.  There is no implementation details or decisions in my application, just
 a basic plan of what needs to be done.  Should I start researching
 implementation details for my application?

 You can look at org-element.el for the data representation.

 2.  I would like to post my application on the community site Worg.  If
 this is appropriate, what is the proper channel to request GIT access?

 Send me your public key.

 If this mailing list is not the appropriate place to discuss my
 application, please let me know and then feel free to email me directly.  I
 will also be spending as much time as possible on freenode #org-mode as
 Pwyl.

 This mailing list *is* the appropriate place, no worry.

 Thanks again for your proposal, this would be a great plus for Org!

 Best,

 --
  Bastien




Re: [O] Google Summer of Code 2012 Student Application

2012-04-05 Thread Torsten Wagner
Hi Andrew,

Reading this proposal and having a bit background in writing
proposals, I have the following suggestion:

* I'm not sure everyone (at least the one who review this) know what
org-mode is. There should be a very small summary about org-mode and
the key-benefit being plain text (which is why you can start this
project after all).

* In the way the proposal is written, you address org-mode users which
uses git (later you mention other CVS too). This actually makes, or at
least sound like, the proposal being only useful for a (small)
intersection of users namely org-mode AND (in the sense of an logic
AND) git-user.
I would find it more useful to describe this work as being an
extension for org-mode users;
** They can start to collaborate on a org-mode files, including
collaboration with users of possible other software tools (e.g.
mobileorg apps).
** Org-mode user can use a CVS system which is not only of interest
for collaboration but for keeping a chronological order of changes in
e.g. a project file.
** It makes org-mode a possible tool for software developers which can
now use org-files e.g. for documentation and notes beside there source
code in the same git repository.

All this points would show that the proposal is going to extend
org-mode instead of being limited useful for only a very particular
user-base. Finally, I guess it would be good to mention that this
project (and org-mode in general) is not limited to a OS but attracts
users of MS Windows, Mac OS and Linux. Simply to demonstrate that the
user-base can be expected to be rather large.
(Not sure if the GNU people like this ;) )

Torsten


On 5 April 2012 15:48, Bastien b...@gnu.org wrote:
 Hi Andrew,

 Andrew Young younga...@gmail.com writes:

 My name is Andrew Young, and I would like to participate in an Org-Mode
 project for GSoC 2012.  My application for the project 'Git merge tool for
 Org files' can be found
 herehttp://www.google-melange.com/gsoc/proposal/review/google/gsoc2012/pwyl/1#.

 Great!

  I would appreciate as much feedback and criticism as possible.

 First of all, make sure someone can co-mentor this project.  I'm willing
 to mentor this (as the current maintainer it makes sense, especially for
 people judging the project from the outside), but having Carsten as a
 co-mentor would be a great win.  Make sure Carsten (cc'ed) is okay.

 Carsten, being a co-mentor involves mainly three things:

 1. registering on google-melange.com

 2. from there, requesting to be a mentor for the GNU project

 3. during the project, help the student and have IRC/phone meetings,
   at least when I'm not here (I expect to be off for 2-3 weeks this
   summer, I will tell when ASAP)

 I used the generic GNU Project student application template, which can be
 found here http://www.google-melange.com/gsoc/org/google/gsoc2012/gnu.

 1. First things thing: you should rewrite the summary section to
   remove the I believe and other informal writing from Carsten's
   prose.  Make it yours, make it a real summary.

 2. Refer to org-element.el when you mention the Data representation.
   org-element.el will be key in representing data and diffs between
   data (at any level.)

 3. Add a documentation section, explaining what doc you will write and
   how you you will write/host it (worg is fine.)

 I have some specific questions:
 1.  There is no implementation details or decisions in my application, just
 a basic plan of what needs to be done.  Should I start researching
 implementation details for my application?

 You can look at org-element.el for the data representation.

 2.  I would like to post my application on the community site Worg.  If
 this is appropriate, what is the proper channel to request GIT access?

 Send me your public key.

 If this mailing list is not the appropriate place to discuss my
 application, please let me know and then feel free to email me directly.  I
 will also be spending as much time as possible on freenode #org-mode as
 Pwyl.

 This mailing list *is* the appropriate place, no worry.

 Thanks again for your proposal, this would be a great plus for Org!

 Best,

 --
  Bastien




[O] Question about org-table

2012-04-05 Thread Rodolfo Aramayo
People,

I am trying to use the powerful org-table features of org-mode to solve a
simple problem
I have imported a table from excel in both cvs and tab-delimited formats
and converted the region to table

the table looks like this:
##
| Entry | Entry name | Protein names | Gene names | Length
|

| Q01284 | 2NPD_NEUCR | Nitronate monooxygenase (EC 1.13.12.16)
(2-nitropropane dioxygenase) (2-NPD) (Nitroalkane oxidase) | ncd-2
G17A4.200 NCU03949 | 378 |
| P05195 | 3DHQ_NEUCR | Catabolic 3-dehydroquinase (cDHQase) (EC 4.2.1.10)
(3-dehydroquinate dehydratase) | qa-2 NCU06023 | 173
|
| Q7SDX3 | 3HAO_NEUCR | 3-hydroxyanthranilate 3,4-dioxygenase (EC
1.13.11.6) (3-hydroxyanthranilate oxygenase) (3-HAO) (3-hydroxyanthranilic
acid dioxygenase) (HAD) (Biosynthesis of nicotinic acid
protein 1) | bna-1 NCU03282 | 180
|

| P07046 | 3SHD_NEUCR | 3-dehydroshikimate dehydratase (DHS dehydratase)
(DHSase) (EC 4.2.1.-) | qa-4 NCU06024 | 359
|

##
but as soon as I try to align the columns, then org-table introduces a
myriad of spaces where there were previously none
Why is this happening?
What am I doing wrong?

I want to use org-mode for Bioinformatics and teach students to use it as a
tool, but I cannot do it unless things work seamless on my hands

Any help will be much appreciated

--Rodolfo Aramayo, PhD


[O] Default prewarning time for each deadline

2012-04-05 Thread Karl Voit
Hi!

Is there a way to define a default pre-warning time string for new
DEADLINE (only) timestamps?

99% of my DEADLINE timestamps ends with «-0d» as manual pre-warning
time. From time to time I *do* want to use another pre-warning time
such as -10d or -3d. So general deactivation of pre-warnings is not
a solution to me.

I am thinking of using C-c C-d, selecting the day and then something
like DEADLINE: 2012-04-13 Fri -0d appears. Then I can choose to
keep the default setting or change it to something else like -2d.

Thanks!

-- 
Karl Voit




[O] idea, in-line preview link

2012-04-05 Thread Torsten Wagner
Hi,

recently I was wondering if org-mode could have some sort of inline
link. This would allow quick check-ups on details without having more
and more buffers open.
That is a link to another text (org-file) including text position like

[[file:~/code/main.c::255]]

However instead of open a new buffer and jump to that line, I would
like to see the line +x lines just below the link and possible only
until I move the cursor or by any other means close the link again

Thus

[[inlinefile:~/code/main.c::255+4]]

open it

[[inlinefile:~/code/main.c::255+4]]
   1. This is all code
   2. from main.c
   3. I can preview in org
   4. without switching the buffer
   5. is that useful?!

close it again and the buffer looks again like

[[inlinefile:~/code/main.c::255+4]]


Actually, I believe it is fairly easy to implement for people knowing
LISP just a bit better then me ;)

What do you think

Totti



[O] layout org-babel menu WAS: About org-babel menu

2012-04-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 28/03/12 01:07, Bastien wrote:
 Hi Rainer,
 
 Rainer M Krug r.m.k...@gmail.com writes:
 
 So I would see it as a useful way of promoting babel (and therefore 
 org-mode) and also as a
 nice reminder of less frequently (but nevertheless usefull) functionality.
 
 Agreed.
 
 Is anyone volunteering for listing the items in such a menu for Babel?
 
 If so, I'm willing to implement this.
OK - let me start this.

Org
|
+ Babel
  |
  + edit
  |  |
  |  + open surce buffer (that C-c ')
  |  + insert source block skeleton
  |  + ...
  |  + ...
  |
  + tangle
  |  |
  |  + tangle buffer
  |  + inverse tangle
  |  + ...
  |  + ...
  |
  + evaluate
  |  |
  |  + evaluate code block
  |  + evaluate subtree
  |  + ...
  |  + ...
  |  + ...
  |  + ...
  |
  + help
  |  |
  |  + Link to info help on header arguments
  |  + Link to info help on how to enable languages
  |  + URL to language specific help on worg
  |  + ...
  |  + ...


So - At the moment this is a skeleton of the babel menu - Comments? forgotten 
commands (I assume
many?

 
 I'm not convince we should have a menu item to (de)activate each language 
 though -- more a menu
 that exposes the basics.

Agreed.

Cheers,

Rainer




 
 Thanks,
 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk99YSUACgkQoYgNqgF2egrBXACfYvFStHF+7qpcmT9PZ0JLhMFl
LToAn3fxPxT4PP1G0Qno3ufsNwAQ9C4x
=0Nuk
-END PGP SIGNATURE-



Re: [O] Question about org-table

2012-04-05 Thread Dov Grobgeld
I assume that your problem is due the long names in the column named
protein. You can have org-table clip the columns to a more reasonable
length by adding a row that contains e.g. 20 in the column to clip. This
will clip the column to 20 characters. You can still edit the full column
contents by doing ~C-c `~.

Thus add the following new row in the beginning or the end of the table:

||| 20 |
||

move to 20 and press C-c C-c.

See: http://orgmode.org/manual/Column-width-and-alignment.html

Regards,
Dov

On Thu, Apr 5, 2012 at 07:31, Rodolfo Aramayo raram...@tamu.edu wrote:

 People,

 I am trying to use the powerful org-table features of org-mode to solve a
 simple problem
 I have imported a table from excel in both cvs and tab-delimited formats
 and converted the region to table

 the table looks like this:

 ##
 | Entry | Entry name | Protein names | Gene names | Length
 |

 | Q01284 | 2NPD_NEUCR | Nitronate monooxygenase (EC 1.13.12.16)
 (2-nitropropane dioxygenase) (2-NPD) (Nitroalkane oxidase) | ncd-2
 G17A4.200 NCU03949 | 378 |
 | P05195 | 3DHQ_NEUCR | Catabolic 3-dehydroquinase (cDHQase) (EC 4.2.1.10)
 (3-dehydroquinate dehydratase) | qa-2 NCU06023 | 173
 |
 | Q7SDX3 | 3HAO_NEUCR | 3-hydroxyanthranilate 3,4-dioxygenase (EC
 1.13.11.6) (3-hydroxyanthranilate oxygenase) (3-HAO) (3-hydroxyanthranilic
 acid dioxygenase) (HAD) (Biosynthesis of nicotinic acid
 protein 1) | bna-1 NCU03282 | 180
 |

 | P07046 | 3SHD_NEUCR | 3-dehydroshikimate dehydratase (DHS dehydratase)
 (DHSase) (EC 4.2.1.-) | qa-4 NCU06024 | 359
 |


 ##
 but as soon as I try to align the columns, then org-table introduces a
 myriad of spaces where there were previously none
 Why is this happening?
 What am I doing wrong?

 I want to use org-mode for Bioinformatics and teach students to use it as
 a tool, but I cannot do it unless things work seamless on my hands

 Any help will be much appreciated

 --Rodolfo Aramayo, PhD



Re: [O] Compose emails in ogr, but send them via thunderbird?

2012-04-05 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/04/12 04:05, Torsten Wagner wrote:
 Hi Rainer,
 
 Hmm interstingly I working on exact the same task I want to get rid of 
 Thunderbird because
 its troubling me to much, but I can't find an easy drop-in replacement. 
 Recently, I got notmuch
 running after giving up on gnus for the third or fourth time, because I never 
 found enough time
 to come into it. Unfortunately, I find the notmuch thread buffers rather 
 confusing and would be
 very happy if a little org-mode magic would move into it.
 
 Nevertheless notmuch allows you to write emails too. What you have to do is 
 to set-up the smtp
 server to sent your mails. That can be either a pointer to an existing smtp 
 server (like gmail)
 or a own server. A own server might be nice but requires some fiddling and 
 hence I decided to
 use msmtp [1]. It requires only a very small config file with the credentials 
 and settings for
 each smtp (email) account. Mostly what you are used to type into thunderbird 
 too. In my emacs
 init files I added
 
 /init_notmuch.el---/
  
 ;;/// ;; notmuch 
 and smtp settings 
 ;;//
 
 (require 'notmuch) (setq message-send-mail-function 
 'message-send-mail-with-sendmail) ;; we
 substitute sendmail with msmtp (setq sendmail-program /usr/bin/msmtp) 
 ;;need to tell msmtp
 which account we're using (setq message-sendmail-extra-arguments '(-a 
 gmail)) ;; integrate
 with org-mode (require 'org-notmuch) (require 'notmuch-address) (setq 
 notmuch-address-command
 /home/torsten/mails/get_address.sh) (notmuch-address-message-insinuate) 
 /init-notmuch.el---/

  get_address.sh is a little shell script which enables to access the 
 googlemail contact list
 and you will get auto completion.
 
 /--get_address.sh-/ #!/bin/sh 
 goobook query $* |
 sed 's/\(.*\)\t\(.*\)\t.*/\2 \\1\/' | sed '/^$/d' 
 /-get_address.sh/
 
 details about this can be found on the notmuch website.
 
 Being in a notmuch buffer pressing 'm' opens a new buffer with a empty 
 template in Message
 mode Fill it and C-c C-C will send the mail out. It should appear in notmuch 
 later and if you
 did your filtering/tagging right you can file it under sent. From there it 
 should be pretty
 easy to link to an org-mode file.
 
 
 Again I would like to see notmuch using more org-mode magic to get a more 
 clean representation
 of mails and esp. threads. Some more hooks like automatic linking to notmuch 
 emails in
 org-mode buffers and creating of emails directly from org-mode buffers would 
 be nice and I
 guess its rather easy to implement. (E.g., a single command to create a new 
 mail and generating
 a org-mode link to that email in notmuch, at the current position in a 
 org-mode buffer would be
 very nice).
 
 
 Hope that helps


Hi Torsten,

id definitely does. I have implemented it and am playing at the moment with the 
external editor
(combined with the message-mode and the get_address.sh script) and it looks 
quite nice at the
moment.

I think I will tackle the rest later.

Cheers,

Rainer


 
 
 [1] http://msmtp.sourceforge.net/
 
 On 3 April 2012 22:34, Rainer M Krug r.m.k...@gmail.com wrote: On 03/04/12 
 11:36, Rasmus
 wrote:
 Rasmus ras...@gmx.us writes:
 
 ¹  http://globs.org/articles.php?pg=2lng=en
 
 You might also be able to work something out with Keysnail, which, at 
 least in Fx, can
 also call external editors (Emacs, mostly)
 
 Also interesting - nice. Cheers,
 
 Rainer
 
 
 https://github.com/mooz/keysnail/wiki
 
 –Rasmus
 
 
 
 

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk99Zu0ACgkQoYgNqgF2egpzMQCfZ4ON/eYnUKfv4FiPnHCVN+1j
3gEAnjRy+P6KXQ5oLDsAKLyEZ/sZo0Df
=wK07
-END PGP SIGNATURE-



[O] [bug] void-variable org-special-blocks-line when exporting to HTML

2012-04-05 Thread Sebastien Vauban
Hello,

On Org-mode version 7.8.08 (release_7.8.07.217.gcf3b.dirty),
I just experienced this when exporting to HTML:

--8---cut here---start-8---
Debugger entered--Lisp error: (void-variable org-special-blocks-line)
  (string-match ^ORG-\\(.*\\)-\\(START\\|END\\)$ org-special-blocks-line)
  (if (string-match ^ORG-\\(.*\\)-\\(START\\|END\\)$ org-special-blocks-line) 
(progn (message %s (match-string 1)) (when (equal (match-string 2 
org-special-blocks-line) START) (org-close-par-maybe) (insert \ndiv 
class=\ (match-string 1 org-special-blocks-line) \) (org-open-par)) (when 
(equal (match-string 2 org-special-blocks-line) END) (org-close-par-maybe) 
(insert \n/div) (org-open-par)) (throw (quote nextline) nil)))
  (when (string-match ^ORG-\\(.*\\)-\\(START\\|END\\)$ 
org-special-blocks-line) (message %s (match-string 1)) (when (equal 
(match-string 2 org-special-blocks-line) START) (org-close-par-maybe) (insert 
\ndiv class=\ (match-string 1 org-special-blocks-line) \) 
(org-open-par)) (when (equal (match-string 2 org-special-blocks-line) END) 
(org-close-par-maybe) (insert \n/div) (org-open-par)) (throw (quote 
nextline) nil))
  org-special-blocks-convert-html-special-cookies()
  run-hooks(org-export-html-after-blockquotes-hook)
  [...]
  org-export-as-html(nil hidden)
  org-export-as-html-and-open(nil)
  call-interactively(org-export-as-html-and-open)
--8---cut here---end---8---

I must report that I don't have special blocks in the Org document,
though...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [bug] void-variable org-special-blocks-line when exporting to HTML

2012-04-05 Thread Bastien
Hi Sébastien,

Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 On Org-mode version 7.8.08 (release_7.8.07.217.gcf3b.dirty),
 I just experienced this when exporting to HTML:

I cannot reproduce this.  Please provide the minimal setup for
reproducing this bug -- thanks!

-- 
 Bastien



[O] How could I mix COMMENT and TODO?

2012-04-05 Thread François Pinard
Hi, Orgers of this world! :-)

I do not find how to mix COMMENT and TODO in a working way, and I
thought that someone could advise me.

For ease and simplicity, I try to keep everything related to some topic
in a single file, merely commenting (C-c ;) headers for those parts I do
not want to publish.

I would also like to keep my TODO entries for this topic in the same
file, and these are usually not to be published either.  However, TODO
seems to be ignored whenever it is on or under a COMMENT header.  When I
comment a TODO entry, the TODO gets un-highlighted, and the entry
scheduling disappears from the agenda.

So, until I find something better, I keep these TODO in another file,
which I find an awkward compromise.  I could use #+BEGIN_COMMENT and
such within the entry, but the header itself gets published, which I do
not want.  So, what is the proper way for fully preventing a working
TODO header from being published?  Or else, what is the good approach?

François



Re: [O] Google Summer of Code 2012 Student Application

2012-04-05 Thread Andrew Young
Hello Bastien,

On Thu, Apr 5, 2012 at 2:48 AM, Bastien b...@gnu.org wrote:
 Hi Andrew,

 Andrew Young younga...@gmail.com writes:

 My name is Andrew Young, and I would like to participate in an Org-Mode
 project for GSoC 2012.  My application for the project 'Git merge tool for
 Org files' can be found
 herehttp://www.google-melange.com/gsoc/proposal/review/google/gsoc2012/pwyl/1#.

 Great!

  I would appreciate as much feedback and criticism as possible.

 First of all, make sure someone can co-mentor this project.  I'm willing
 to mentor this (as the current maintainer it makes sense, especially for
 people judging the project from the outside), but having Carsten as a
 co-mentor would be a great win.  Make sure Carsten (cc'ed) is okay.

I will send him a personal (private) request.


 Carsten, being a co-mentor involves mainly three things:

 1. registering on google-melange.com

 2. from there, requesting to be a mentor for the GNU project

 3. during the project, help the student and have IRC/phone meetings,
   at least when I'm not here (I expect to be off for 2-3 weeks this
   summer, I will tell when ASAP)

 I used the generic GNU Project student application template, which can be
 found here http://www.google-melange.com/gsoc/org/google/gsoc2012/gnu.

 1. First things thing: you should rewrite the summary section to
   remove the I believe and other informal writing from Carsten's
   prose.  Make it yours, make it a real summary.

I found the GNU Application template confusing, and was not sure if
the summary was supposed to be written by me, or copied from the ideas
page (to clarify what project idea I was referring to).  I followed
your advice and wrote my own project summary, since that seems like
the better idea.


 2. Refer to org-element.el when you mention the Data representation.
   org-element.el will be key in representing data and diffs between
   data (at any level.)

 3. Add a documentation section, explaining what doc you will write and
   how you you will write/host it (worg is fine.)


Thanks for the pointers. I've incorporated your advice into the proposal.

 I have some specific questions:
 1.  There is no implementation details or decisions in my application, just
 a basic plan of what needs to be done.  Should I start researching
 implementation details for my application?

 You can look at org-element.el for the data representation.

 2.  I would like to post my application on the community site Worg.  If
 this is appropriate, what is the proper channel to request GIT access?

 Send me your public key.

 If this mailing list is not the appropriate place to discuss my
 application, please let me know and then feel free to email me directly.  I
 will also be spending as much time as possible on freenode #org-mode as
 Pwyl.

 This mailing list *is* the appropriate place, no worry.

 Thanks again for your proposal, this would be a great plus for Org!

 Best,

 --
  Bastien

Thanks again for your suggestions and pointers.

My public key is attached.

Regards,
Andrew


youngar17@gmail.com.pub
Description: Binary data


Re: [O] idea, in-line preview link

2012-04-05 Thread Christian Moe

Hi,

One of my first Lisp projects was a link type that behaves a bit like 
what you describe.


I don't bother with placing the snippet inline, though, I just flash 
it as a message in the minibuffer. But I also leave it on the kill 
ring, so I can C-y it into my current buffer if I like.


The following quick and dirty adaptation to your inlinefile idea comes 
with ABSOLUTELY NO WARRANTY.


#+BEGIN_SRC elisp
(defun my/org-inlinefile-get (file offset length)
  Copy the line at OFFSET and LENGTH extra lines from FILE.
  (let (beg)
(save-excursion
  (with-temp-buffer
(insert-file-contents file)
(forward-line (1- offset)) ; Go to beg of range
(setq beg (point))
(if length  
(progn
  (goto-line (+ offset length))
  (kill-region beg (line-end-position)))
  (kill-line))
(yank)

(defun my/org-inlinefile-open (path)
  Open a link by displaying the lines specified in PATH as a message 
and making them available for yanking.

  (let ((parts (split-string (org-no-properties path) \\(::\\|\\+\\)))
file offset length beg)
(setq file (car parts)
  offset (string-to-number (or (nth 1 parts) 0))
  length (string-to-number (or (nth 2 parts) 0)))
(my/org-inlinefile-get file offset length)
(message (format %s\n%s path (current-kill 0)

(org-add-link-type inlinefile 'my/org-inlinefile-open (lambda (path 
desc format) desc))

#+END_SRC


Yours,
Christian


On 4/5/12 11:04 AM, Torsten Wagner wrote:

Hi,

recently I was wondering if org-mode could have some sort of inline
link. This would allow quick check-ups on details without having more
and more buffers open.
That is a link to another text (org-file) including text position like

[[file:~/code/main.c::255]]

However instead of open a new buffer and jump to that line, I would
like to see the line +x lines just below the link and possible only
until I move the cursor or by any other means close the link again

Thus

[[inlinefile:~/code/main.c::255+4]]

open it

[[inlinefile:~/code/main.c::255+4]]
1. This is all code
2. from main.c
3. I can preview in org
4. without switching the buffer
5. is that useful?!

close it again and the buffer looks again like

[[inlinefile:~/code/main.c::255+4]]


Actually, I believe it is fairly easy to implement for people knowing
LISP just a bit better then me ;)

What do you think

Totti







Re: [O] How could I mix COMMENT and TODO?

2012-04-05 Thread Sebastien Vauban
Hi François,

François Pinard wrote:
 Hi, Orgers of this world! :-)

 I do not find how to mix COMMENT and TODO in a working way, and I
 thought that someone could advise me.

 For ease and simplicity, I try to keep everything related to some topic
 in a single file, merely commenting (C-c ;) headers for those parts I do
 not want to publish.

 I would also like to keep my TODO entries for this topic in the same
 file, and these are usually not to be published either.  However, TODO
 seems to be ignored whenever it is on or under a COMMENT header.  When I
 comment a TODO entry, the TODO gets un-highlighted, and the entry
 scheduling disappears from the agenda.

 So, until I find something better, I keep these TODO in another file,
 which I find an awkward compromise.  I could use #+BEGIN_COMMENT and
 such within the entry, but the header itself gets published, which I do
 not want.  So, what is the proper way for fully preventing a working
 TODO header from being published?  Or else, what is the good approach?

Instead of COMMENT'ing entries, I prefer the tag version of the same
functionality: mark the entries you don't wanna see exported with the
`noexport' tag.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Google Summer of Code 2012 Student Application

2012-04-05 Thread Bastien
Hi Andrew,

Andrew Young younga...@gmail.com writes:

 I will send him a personal (private) request.

Ok.

 I found the GNU Application template confusing, and was not sure if
 the summary was supposed to be written by me, or copied from the ideas
 page (to clarify what project idea I was referring to).  I followed
 your advice and wrote my own project summary, since that seems like
 the better idea.

Yes it is!

 Thanks again for your suggestions and pointers.

You're welcome.

 My public key is attached.

You can now push changes to Worg.

Thanks,

-- 
 Bastien



Re: [O] MobileOrg setup

2012-04-05 Thread Jason F. McBrayer

On Wed, 4 Apr 2012 22:16:50 -0500, John Hendy wrote:


Well, I've made progress. I just turned off the webdav user/password
stuff and it worked fine. I'm not really worried about that, as it's
within the corporate firewall, but it still puzzles me that a
browser on the tablet could access the path with a user and password
prompt but MobileOrg couldn't, despite being setup with the same
information.


Have you tried turning the webdav authentication back on and
connecting to the dav share with cadaver, the command-line webdav
client? That's what I used to test my MobileOrg staging setup (though
now I use the ssh backend rather than webdav).

--
+---+
| Jason F. McBrayer jmcb...@carcosa.net |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors. --- The Dhammapada |




[O] Struggling with large: :LOGBOOK: .. :END: blocks

2012-04-05 Thread Rainer Stengele
Hi all,

As a long time Org user I have a lot of tasks having large

:LOGBOOK:
..
:END:

blocks, sometimes 50 and more CLOCK entries.
Why? Well, I have tasks to read and organise E-Mail which I do at least once I 
day and which I have to clock.


I also do have to adjust the latest few CLOCK lines manually.
Now, opening the :LOGBOOK: block I cannot see the text following the :LOGBOOK: 
block
because all the CLOCK entries flood my screen.
But I would like to see it in order to get some context of the task.

Wouldn't it be a nice thing to be able to configure the number of visible block 
entries?


This could result in:
Opening the :LOGBOOK block with TAB shows this:


* TODO text
:LOGBOOK:
CLOCK: [2012-03-27 Di 13:00]--[2012-03-27 Di 13:30] =  0:30
CLOCK: [2012-03-06 Di 11:30]--[2012-03-06 Di 11:45] =  0:15
CLOCK: [2012-03-02 Fr 14:45]--[2012-03-02 Fr 15:15] =  0:30
..
:END:


Another TAB would show all CLOCK entries.
The next TAB would close the block again.

The variable could configure:

show the first n entries of the BLOCK
show the last n entries of the BLOCK
show the first n and last m entries of the BLOCK


Regards,
Rainer




Re: [O] Google Summer of Code 2012 Student Application

2012-04-05 Thread Thorsten
Bastien b...@gnu.org writes:

Hi Bastien, hi Andrew,

 You can now push changes to Worg.

I just added a directory 'student-projects' under the gsoc2012 directory
on worg, accessible through:
http://orgmode.org/worg/org-contrib/gsoc2012/index.html
(see links at end of page)

which might be used by Andrew, me and others. 

Andrew: I'm preparing my application for the Orgmode/Picolisp project,
which turned into a bugtracker for Org-mode project, right now. If you
want, we can communicate (here or privately).

Bastien: thanks for your suggestions (private mail), gave me quite a lot
of thinks to chew - I'm busy with that right now. 

What I really would need to decide upon at the very beginning is the git
workflow - not too complicated, but somehow scalable for the future is
the project succeeds. Any suggestion besides having a master and a
private branch? Should I already consider a workflow similar to the one
used by you for Org-mode?
-- 
cheers,
Thorsten




Re: [O] Google Summer of Code 2012 Student Application

2012-04-05 Thread Bastien
Thorsten quintf...@googlemail.com writes:

 Bastien: thanks for your suggestions (private mail), gave me quite a lot
 of thinks to chew - I'm busy with that right now. 

Good -- REMINDER for all three future-GSoC students out there:
the deadline is in 28 hours.

Good luck!

-- 
 Bastien



[O] [PATCH] Add info when reference to remote table is not in the file

2012-04-05 Thread Sebastien Vauban
2012-04-05  Sebastien Vauban  wxhgmqzgw...@spammotel.com

* org-table.el (org-table-get-remote-range): when a reference to a
  remote table is not found locally, display a message for 1 second,
  then go on searching within all known locations

From 432a57390d8a103d440017664b8a594de61281a4 Mon Sep 17 00:00:00 2001
From: Sebastien Vauban s...@mygooglest.com
Date: Thu, 5 Apr 2012 15:58:27 +0200
Subject: [PATCH] Add info when reference to remote table is not in the file

---
 lisp/org-table.el |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lisp/org-table.el b/lisp/org-table.el
index ae12cee..c336f89 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -4735,6 +4735,8 @@ list of the fields in the rectangle .
 (concat ^[ \t]*#\\+TBLNAME:[ \t]* (regexp-quote name-or-id) 
[ \t]*$)
 nil t)
(setq buffer (current-buffer) loc (match-beginning 0))
+ (message Reference `%s' is not found in the current file 
name-or-id)
+ (sit-for 1)
  (setq id-loc (org-id-find name-or-id 'marker))
  (unless (and id-loc (markerp id-loc))
(error Can't find remote table \%s\ name-or-id))
-- 
1.7.9

Best regards,
  Seb

-- 
Sebastien Vauban




[O] [PATCH] Add autoload cookie for function org-table-iterate-buffer-tables

2012-04-05 Thread Sebastien Vauban
2012-04-05  Sebastien Vauban  wxhgmqzgw...@spammotel.com

* org-table.el (org-table-iterate-buffer-tables): Autoload function.

From 8bf259dea1d84dede8c193c2e8d8223a6e5e87ec Mon Sep 17 00:00:00 2001
From: Sebastien Vauban s...@mygooglest.com
Date: Thu, 5 Apr 2012 16:22:44 +0200
Subject: [PATCH] Add autoload cookie for function 
org-table-iterate-buffer-tables

---
 lisp/org-table.el |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lisp/org-table.el b/lisp/org-table.el
index c336f89..8dd449a 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -2963,6 +2963,7 @@ with the prefix ARG.
   (widen)
   (org-table-map-tables (lambda () (org-table-recalculate t)) t
 
+;;;###autoload
 (defun org-table-iterate-buffer-tables ()
   Iterate all tables in the buffer, to converge inter-table dependencies.
  (interactive)
-- 
1.7.9

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Default prewarning time for each deadline

2012-04-05 Thread Michael Brand
Hi Karl

On Thu, Apr 5, 2012 at 10:42, Karl Voit devn...@karl-voit.at wrote:
 Is there a way to define a default pre-warning time string for new
 DEADLINE (only) timestamps?

Not in the way you told that you think of. But another solution is to
set org-deadline-warning-days to 0 and then set the
deadline-individual explicit warning period only when not 0. Be aware
of that the behaviour of the deadlines written before and without an
explicit warning period will change. They will not warn any more
before the due date. Adapt them to the new setting where they need
-14d or the like.

Side note: If -3d is typed into the date+time prompt of C-c C-d it
will not end up in the edited Org buffer, so I add it always only
after that step.

Michael



[O] Bug: SCHEDULED: positioning is fragile [7.8.06 (release_7.8.06.181.ga481)]

2012-04-05 Thread Dave Abrahams


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


Given the following:

--8---cut here---start-8---
* TODO Some headline
SCHEDULED: 2012-04-05 Thu
--8---cut here---end---8---

If I add body text between the headline and the SCHEDULED: line, some
things work, but others don't.  For example:

--8---cut here---start-8---
* TODO Some headline
some body
SCHEDULED: 2012-04-05 Thu
--8---cut here---end---8---

In agenda mode, I can hit `f' (org-agenda-date-later) and it will bump
the scheduled date forward and all is well.  However, if I hit `C-c C-s
+ RET' (org-agenda-schedule), the item changes to

--8---cut here---start-8---
* TODO Some headline
SCHEDULED: 2012-04-06 Fri
some body
SCHEDULED: 2012-04-05 Thu
--8---cut here---end---8---

Moreover, the agenda still thinks this item is scheduled for
2012-04-05!  I can attempt to reschedule the item indefinitely and the
scheduled date will never appear to change, because the later one
overrides the earlier one.

There's no reason the format should be so sensitive to ordering.  If
org-agenda-date-later can do the right thing, so can org-agenda-schedule
and all the other commands that change the scheduled date of an item.

Emacs  : GNU Emacs 24.0.94.1 (x86_64-apple-darwin11.3.0, Carbon Version 1.6.0 
AppKit 1138.32)
 of 2012-03-14 on pluto.luannocracy.com
Package: Org-mode version 7.8.06 (release_7.8.06.181.ga481)

current state:
==
(setq
 org-hide-leading-stars t
 org-export-babel-evaluate nil
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-tab-first-hook '(yas/org-very-safe-expand org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-adapt-indentation nil
 org-footnote-section nil
 org-time-clocksum-use-fractional t
 org-log-buffer-setup-hook '((lambda nil (setq fill-column (- fill-column 5
 org-habit-preceding-days 42
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-agenda-fontify-priorities t
 org-reverse-note-order t
 org-agenda-auto-exclude-function 'org-my-auto-exclude-function
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-agenda-scheduled-leaders '( S%d: )
 org-agenda-start-on-weekday nil
 org-clock-into-drawer LOGBOOK
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-confirm-shell-link-function nil
 org-x-backends '(ox-org ox-redmine)
 org-finalize-agenda-hook '(org-agenda-add-overlays)
 org-speed-commands-user '((+ . org-priority-up) (- . org-priority-down))
 org-clock-idle-time 10
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc 
org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-habit-completed-glyph 10004
 org-agenda-restore-windows-after-quit t
 org-agenda-deadline-leaders '(D:  D%d: )
 org-pretty-entities t
 org-special-ctrl-a/e 'reversed
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-x-redmine-title-prefix-function 'org-x-redmine-title-prefix
 org-agenda-prefix-format '((agenda .   %-11:c%?-12t% s) (timeline .   % s) 
(todo .   %-11:c) (tags .   %-11:c))
 org-agenda-skip-scheduled-if-done t
 org-agenda-custom-commands '((E Errands (next 3 days) tags
   
ErrandTODO\DONE\TODO\CANCELED\STYLE\habit\SCHEDULED\+3d\
   ((org-agenda-overriding-header Errands (next 3 
days
  (A Priority #A tasks agenda 
   ((org-agenda-ndays 1) 
(org-agenda-overriding-header Today's priority #A tasks: )
(org-agenda-skip-function (quote 
(org-agenda-skip-entry-if (quote notregexp) \\=.*\\[#A\\]
   )
  (b Priority #A and #B tasks agenda 
   ((org-agenda-ndays 1) 
(org-agenda-overriding-header Today's priority #A and #B tasks: )
(org-agenda-skip-function (quote 
(org-agenda-skip-entry-if (quote regexp) \\=.*\\[#C\\]
   )
  (w Waiting/delegated tasks tags 
TODO=\WAITING\|TODO=\DELEGATED\
   ((org-agenda-overriding-header 
Waiting/delegated tasks:)
(org-agenda-sorting-strategy (quote 
(todo-state-up priority-down 

Re: [O] Compose emails in ogr, but send them via thunderbird?

2012-04-05 Thread Martin Pohlack
On 05.04.2012 11:33, Rainer M Krug wrote:
 id definitely does. I have implemented it and am playing at the moment with 
 the external editor
 (combined with the message-mode and the get_address.sh script) and it looks 
 quite nice at the
 moment.

Here is a link to external editor:
* http://globs.org/articles.php?lng=enpg=2

Here is a link to a small mode that I use for composing email in emacs
that I later send with thunderbird:
* http://os.inf.tu-dresden.de/~mp26/download/tbemail.el

HTH,
Martin



Re: [O] layout org-babel menu WAS: About org-babel menu

2012-04-05 Thread Eric Schulte
Rainer M Krug r.m.k...@gmail.com writes:

 On 28/03/12 01:07, Bastien wrote:
 Hi Rainer,
 
 Rainer M Krug r.m.k...@gmail.com writes:
 
 So I would see it as a useful way of promoting babel (and therefore 
 org-mode) and also as a
 nice reminder of less frequently (but nevertheless usefull) functionality.
 
 Agreed.
 
 Is anyone volunteering for listing the items in such a menu for Babel?
 
 If so, I'm willing to implement this.
 OK - let me start this.

 Org
 |
 + Babel
   |
   + edit
   |  |
   |  + open surce buffer (that C-c ')
   |  + insert source block skeleton
   |  + ...
   |  + ...
   |
   + tangle
   |  |
   |  + tangle buffer
   |  + inverse tangle
   |  + ...
   |  + ...
   |
   + evaluate
   |  |
   |  + evaluate code block
   |  + evaluate subtree
   |  + ...
   |  + ...
   |  + ...
   |  + ...
   |
   + help
   |  |
   |  + Link to info help on header arguments
   |  + Link to info help on how to enable languages
   |  + URL to language specific help on worg
   |  + ...
   |  + ...


 So - At the moment this is a skeleton of the babel menu - Comments? forgotten 
 commands (I assume
 many?


Hi Rainer,

Thanks for starting this.  It looks like a great skeleton.  Here are a
couple of comments which I hope are helpful.

To find more publicly available Babel function you can do C-c C-v h in
an Org-mode buffer or run the org-babel-describe-bindings command

There are two high level sub-menus which I may suggest be added to the
above, namely languages and library of babel, which could list
information on available languages and list library of babel functions
respectively.

I'm not sure how menus are normally used, specifically how Emacs breaks
functionality between the menu, configuration and help sub-systems.  It
is possible that because of such boundaries both the help and
languages submenus may not be appropriate.

Two other pieces of menu content which occur to me are a list of the
code blocks available in the current buffer including some information
on each block (e.g., name, arguments,), and a way to show the user what
the current file wide header arguments are -- note: there already exists
a function for displaying this information on the code block level
`org-babel-view-source-block-info' which may be sufficient.

Cheers,


 
 I'm not convince we should have a menu item to (de)activate each language 
 though -- more a menu
 that exposes the basics.

 Agreed.

 Cheers,

 Rainer




 
 Thanks,
 

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



Re: [O] Default prewarning time for each deadline

2012-04-05 Thread Karl Voit
Hi!

* Michael Brand michael.ch.br...@gmail.com wrote:

 But another solution is to set org-deadline-warning-days to 0 and
 then set the deadline-individual explicit warning period only when
 not 0.

I tried that but unfortunately with this setting, an entry like
«DEADLINE: 2012-04-23 Mon -20d» does not appear on todays agenda
at all :-(

Is this due to another setting on my side (only)?

-- 
Karl Voit




Re: [O] ATTR_HTML for a clickable image, howto?

2012-04-05 Thread François Pinard
Bastien b...@gnu.org writes:

 then I get the display I wanted.  Is there a way for having #+ATTR_HTML
 to be applied to the inner tag instead of the outer one?

 Not -- it would not make sense.

Hello, Bastien.

I understand what you mean by saying it does not make sense with the
current mechanics.  Yet, from a user perspective, it surely makes sense
hoping that Org offers a way for adding attributes to either part of a
link, as links are kind of indivisible (so far that I know).

 I suggest you fix your css instead.

My knowledge of CSS is rudimentary.  I'm not aware that CSS (the version
widely available, not the incoming one) has enough matching capabilities
to spot wrong HTML, remove attributes on some elements and add them on
other elements.  Is that really possible?  Should I dive and study CSS
more?  Without matching, CSS would not help much, as the correction is
needed in three dozen cases at most, and not blindly for all images.

I could ponder using XSL or something else to post-process the HTML
generated by Org, so circumventing the limitation.  This would be adding
an unwelcome layer of complexity.  I like to perceive Org as a tool
which much simplify my life! :-).

François



Re: [O] org-babel-C-ensure-main-wrap fails unless I add exit(0)

2012-04-05 Thread Eric Schulte
Dov Grobgeld dov.grobg...@gmail.com writes:

 Oops. I sawthat  I wrote do not get any error though I meant do not get
 any resulting output.


Would this alternate version work (without requiring stdlib.h)?

(defun org-babel-C-ensure-main-wrap (body)
  Wrap body in a \main\ function call if none exists.
  (if (string-match ^[ \t]*[intvod]+[ \t\n\r]*main[ \t]*(.*) body)
  body
(format int main() {\n%s\nreturn(0);\n}\n body)))

Thanks,


 On Wed, Apr 4, 2012 at 11:13, Dov Grobgeld dov.grobg...@gmail.com wrote:

 When running a babel C session under Linux/gcc I do not get any error
 unless I add exit(0) as part of the C-code snippet. For some to me not
 understood reason my program exits with error code=4, which is caught by
 org-babel-eval and the printed output is not inserted into my buffer . I
 solved this by adding `#include stdlib.h` and `exit(0);` as part of
 org-babel-C-ensure-main-wrap .

 Should I prepare this as patch?

 Regards,
 Dov



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



Re: [O] org-babel-C-ensure-main-wrap fails unless I add exit(0)

2012-04-05 Thread Dov Grobgeld
Sure. They should be equivalent. (In C++ return is prefered as it calls
destructors. But anyone relying on this when using C++ in org-mode should
imnsho get a permanent ban from ever using C/C++ ;-).

Regards,
Dov

On Thu, Apr 5, 2012 at 17:56, Eric Schulte eric.schu...@gmx.com wrote:

 Dov Grobgeld dov.grobg...@gmail.com writes:

  Oops. I sawthat  I wrote do not get any error though I meant do not
 get
  any resulting output.
 

 Would this alternate version work (without requiring stdlib.h)?

 (defun org-babel-C-ensure-main-wrap (body)
  Wrap body in a \main\ function call if none exists.
  (if (string-match ^[ \t]*[intvod]+[ \t\n\r]*main[ \t]*(.*) body)
  body
(format int main() {\n%s\nreturn(0);\n}\n body)))

 Thanks,

 
  On Wed, Apr 4, 2012 at 11:13, Dov Grobgeld dov.grobg...@gmail.com
 wrote:
 
  When running a babel C session under Linux/gcc I do not get any error
  unless I add exit(0) as part of the C-code snippet. For some to me not
  understood reason my program exits with error code=4, which is caught by
  org-babel-eval and the printed output is not inserted into my buffer . I
  solved this by adding `#include stdlib.h` and `exit(0);` as part of
  org-babel-C-ensure-main-wrap .
 
  Should I prepare this as patch?
 
  Regards,
  Dov
 
 

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



Re: [O] Default prewarning time for each deadline

2012-04-05 Thread Manish
On Thu, Apr 5, 2012 at 2:12 PM, Karl Voit wrote:
 Hi!

 Is there a way to define a default pre-warning time string for new
 DEADLINE (only) timestamps?

Have you considered setting org-deadline-warning-days?  It sets the
default warning period for DEADLINE items.

HTH
-- 
Manish



[O] Current patches for XEmacs

2012-04-05 Thread Michael Sperber

https://github.com/mikesperber/org-mode

has two patches for org-mode that are needed to get org-mode
superficially working on XEmacs:

https://github.com/mikesperber/org-mode/commit/18a83ce61fb420e85987e77f8506c01023a22c16

* org.el (org-kill-line): Access `visual-line-mode' only if it's
bound.

https://github.com/mikesperber/org-mode/commit/b088bfff32d024ec67fcf8ee0812244128198d93

* org-footnote.el (org-footnote-normalize): Correctly pass keyword
arguments to `org-export-preprocess-string'.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla




Re: [O] Current patches for XEmacs

2012-04-05 Thread Bastien
Hi Michael,

Michael Sperber sper...@deinprogramm.de writes:

 https://github.com/mikesperber/org-mode

 has two patches for org-mode that are needed to get org-mode
 superficially working on XEmacs:

Thanks for this.

Can you send each patch in a separate email using 
`git format-patch'?

Thanks!

-- 
 Bastien



Re: [O] Default prewarning time for each deadline

2012-04-05 Thread Karl Voit
* Manish mailtomanish.sha...@gmail.com wrote:
 On Thu, Apr 5, 2012 at 2:12 PM, Karl Voit wrote:
 Hi!

 Is there a way to define a default pre-warning time string for new
 DEADLINE (only) timestamps?

 Have you considered setting org-deadline-warning-days?  It sets the
 default warning period for DEADLINE items.

When I set org-deadline-warning-days to 0, I do not get warnings
even for DEADLINE strings containing a desired warning definition
like -3d :-(

-- 
Karl Voit




Re: [O] MobileOrg setup

2012-04-05 Thread John Hendy
On Thu, Apr 5, 2012 at 8:11 AM, Jason F. McBrayer jmcb...@carcosa.net wrote:
 On Wed, 4 Apr 2012 22:16:50 -0500, John Hendy wrote:

 Well, I've made progress. I just turned off the webdav user/password
 stuff and it worked fine. I'm not really worried about that, as it's
 within the corporate firewall, but it still puzzles me that a
 browser on the tablet could access the path with a user and password
 prompt but MobileOrg couldn't, despite being setup with the same
 information.


 Have you tried turning the webdav authentication back on and
 connecting to the dav share with cadaver, the command-line webdav
 client? That's what I used to test my MobileOrg staging setup (though
 now I use the ssh backend rather than webdav).

When it was enabled, I tested it with cadaver. That was the only way I
knew I'd set up WebDAV correctly since I have no experience with it :)
The Arch Wiki had a section on testing and so I persisted until
successful. So, yes, confusing -- cadaver worked, the browser on the
host worked after inputting username/password into a popup, and the
same for the browser on the tablet. Only org-mobile said it couldn't
access the checksum.dat file.

Thanks for the suggestion,
John


 --
 +---+
 | Jason F. McBrayer jmcb...@carcosa.net                     |
 | If someone conquers a thousand times a thousand others in |
 | battle, and someone else conquers himself, the latter one |
 | is the greatest of all conquerors. --- The Dhammapada     |




Re: [O] How could I mix COMMENT and TODO?

2012-04-05 Thread suvayu ali
On Thu, Apr 5, 2012 at 13:34, François Pinard pin...@iro.umontreal.ca wrote:
 I would also like to keep my TODO entries for this topic in the same
 file, and these are usually not to be published either.  However, TODO
 seems to be ignored whenever it is on or under a COMMENT header.  When I
 comment a TODO entry, the TODO gets un-highlighted, and the entry
 scheduling disappears from the agenda.

Just use the noexport tag on the parent tree with the TODOs.


* Tasks:noexport:
** TODO foo
** TODO bar


-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] ATTR_HTML for a clickable image, howto?

2012-04-05 Thread Samuel Wales
On 2012-04-02, Bastien b...@gnu.org wrote:
 I mean a better description of all possible properties for any
 syntactic element.  It should be clear by just skimming through
 the link above.

Makes sense.

 Good to know.  We will try to keep things as backward compatible as
 possible.  There is no plan to destroy existing code anyway.

Very good news.

Thanks.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com



Re: [O] [bug] void-variable org-special-blocks-line when exporting to HTML

2012-04-05 Thread Vladimir Lomov
Hello,
** Bastien [2012-04-05 12:31:37 +0200]:

 Hi Sébastien,

 Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 On Org-mode version 7.8.08 (release_7.8.07.217.gcf3b.dirty),
 I just experienced this when exporting to HTML:

 I cannot reproduce this.  Please provide the minimal setup for
 reproducing this bug -- thanks!

This sounds similar to
http://article.gmane.org/gmane.emacs.orgmode/54278

(sorry I don't know other way to refer to message in mailing list).

---
WBR, Vladimir Lomov

-- 
Extraordinary claims demand extraordinary proof.  There are many examples
of outsiders who eventually overthrew entrenched scientific orthodoxies,
but they prevailed with irrefutable data.  More often, egregious findings
that contradict well-established research turn out to be artifacts.  I have
argued that accepting psychic powers, reincarnation, cosmic conciousness,
and the like, would entail fundamental revisions of the foundations of
neuroscience.  Before abandoning materialist theories of mind that have paid
handsome dividends, we should insist on better evidence for psi phenomena
than presently exists, especially when neurology and psychology themselves
offer more plausible alternatives.
-- Barry L. Beyerstein, The Brain and Conciousness:
   Implications for Psi Phenomena.



Re: [O] How could I mix COMMENT and TODO?

2012-04-05 Thread François Pinard
suvayu ali fatkasuvayu+li...@gmail.com writes:

 François Pinard pin...@iro.umontreal.ca wrote:
 I would also like to keep my TODO entries for this topic in the same
 file, and these are usually not to be published either.

 Just use the noexport tag on the parent tree with the TODOs.

 * Tasks:noexport:
 ** TODO foo
 ** TODO bar

Excellent!  Thanks a lot for remembering me this feature (I read about
it a while ago, then forgot).  It even works fine if we directly use:

 * TODO foo :noexport:
 * TODO bar :noexport:

I much prefer this :noexport: tag to the COMMENT feature, and I changed
them all.  I also fully re-merged my split files, so everything is now
in its proper place.  Happiness! :-)

François


P.S. A tiny chat follows.

In my very first tries with Org, a few months ago, I put all Org files
into the agenda, to discover that Org was very, very slow.  So, I
changed it all and collected all agenda and TODO into three files only,
holding lots of links to all other Org files where the information
really was.  Org recovered all its speed.  And besides, to repair the
lost search capabilities, I kludged M-x rgrep so it could search all Org
files and reveal contents when visiting hits.  Well, the reveal does
not always work, but yet, the quicker search is constantly useful to me.

Currently, having put TODOs back in their proper Org files and declaring
them as agenda files, 38 agenda files are taken out from 360 Org files.
Even if slightly less speedy than 3 agenda files, this is still very
bearable: Org does not crawl.  The way Org handles org-agenda-files as
a string naming a file is really convenient to me, it eases the writing
of external programs acting on them all.  All in all, very satisfactory!




Re: [O] Problem with exporting TAB key

2012-04-05 Thread Vladimir Lomov
Hello,
** Nick Dokos [2012-04-05 00:13:10 -0400]:

 Vladimir Lomov lomov...@gmail.com wrote:

 #+TITLE: Problem with exporting TAB key
 #+AUTHOR: Vladimir Lomov

 * How to make TAB key to be exported from ORG document?

 Consider the following example:
 #+name: ex1
 #+BEGIN_SRC sh :exports code
 sort -t  -k 3 -o file2 file1
 sort -t  -k 3 -o file3 file
 #+END_SRC

 How I inserting the TAB key in example: for first line I use =C-q
 C-I=, for second line I use =C-q TAB=, but in tangled file and in
 exported HTML document it is NOT a TAB just spaces.

 How to force export and tangle functions not to convert TAB to spaces?


 You can't: org-export-preprocess-string (in lisp/org-exp.el) contains a
 call to untabify:

   (untabify (point-min) (point-max))

 which converts tabs to spaces, no questions asked. I don't know why that
 is, so maybe Bastien or Carsten can tell us the reason.

 If you are feeling adventurous, you might want to try commenting out
 that call and see what, if anything, breaks.

Just tried, I commented that line in org-exp.el, run Emacs open ORG file
export it to HTML and tangle it. HTML document has spaces instead of TAB
as well as shell file.

If there is no other way to preserve TAB in tangled file (I only concern
with tanlged file) I will use another symbol to separate fields.

 * COMMENT

 #+BEGIN_SRC sh :tangle ex.sh :shebang #!/bin/bash :noweb yes
 ex1
 #+END_SRC

---
WBR, Vladimir Lomov

-- 
College:
The fountains of knowledge, where everyone goes to drink.



Re: [O] layout org-babel menu WAS: About org-babel menu

2012-04-05 Thread Torsten Wagner
Hi,

for me the biggest trouble with babel is to remember the possible
keywords in the header for different languages.
There were a lot of ongoing syntax change which did not make it easier
for me to remember all this.
Thus a menu which is organised by languages offering all possible
settings for each language would be very helpful.
|
Python
||
|  export - code - result - both - none
||
|  tangle - no - yes- filename
|   |
|  result - value - output
|  |
| ...
|
...

Not sure how effectual this would be in a main menu. It would be
definitely awesome in a context menu

That would be (copied from worg) [*] indicates cursor position

#+NAME: factorial
#+BEGIN_SRC haskell [*] :results silent :exports code :var n=0

a context menu would appear presenting all possible header arguments for haskell

#+NAME: factorial
#+BEGIN_SRC haskell :results [*] :exports code :var n=0

a context menu presenting all possible values for the header argument
:results in haskell
I guess that together with the possibility to call this menu by
keyboard strokes or alternatively show the same infos in the
minibuffer would be a great win for babel and it would make many
questions here on the list unnecessary.
Furthermore, any change or extension in the syntax for a certain
language would be directly reflected to the end-user. E.g., If I
suddenly see the menu entry :exports 3dprint, I would be curious and
check it out on worg and the manual ;)

Totti



On 5 April 2012 21:44, Eric Schulte eric.schu...@gmx.com wrote:
 Rainer M Krug r.m.k...@gmail.com writes:

 On 28/03/12 01:07, Bastien wrote:
 Hi Rainer,

 Rainer M Krug r.m.k...@gmail.com writes:

 So I would see it as a useful way of promoting babel (and therefore 
 org-mode) and also as a
 nice reminder of less frequently (but nevertheless usefull) functionality.

 Agreed.

 Is anyone volunteering for listing the items in such a menu for Babel?

 If so, I'm willing to implement this.
 OK - let me start this.

 Org
 |
 + Babel
   |
   + edit
   |  |
   |  + open surce buffer (that C-c ')
   |  + insert source block skeleton
   |  + ...
   |  + ...
   |
   + tangle
   |  |
   |  + tangle buffer
   |  + inverse tangle
   |  + ...
   |  + ...
   |
   + evaluate
   |  |
   |  + evaluate code block
   |  + evaluate subtree
   |  + ...
   |  + ...
   |  + ...
   |  + ...
   |
   + help
   |  |
   |  + Link to info help on header arguments
   |  + Link to info help on how to enable languages
   |  + URL to language specific help on worg
   |  + ...
   |  + ...


 So - At the moment this is a skeleton of the babel menu - Comments? 
 forgotten commands (I assume
 many?


 Hi Rainer,

 Thanks for starting this.  It looks like a great skeleton.  Here are a
 couple of comments which I hope are helpful.

 To find more publicly available Babel function you can do C-c C-v h in
 an Org-mode buffer or run the org-babel-describe-bindings command

 There are two high level sub-menus which I may suggest be added to the
 above, namely languages and library of babel, which could list
 information on available languages and list library of babel functions
 respectively.

 I'm not sure how menus are normally used, specifically how Emacs breaks
 functionality between the menu, configuration and help sub-systems.  It
 is possible that because of such boundaries both the help and
 languages submenus may not be appropriate.

 Two other pieces of menu content which occur to me are a list of the
 code blocks available in the current buffer including some information
 on each block (e.g., name, arguments,), and a way to show the user what
 the current file wide header arguments are -- note: there already exists
 a function for displaying this information on the code block level
 `org-babel-view-source-block-info' which may be sufficient.

 Cheers,



 I'm not convince we should have a menu item to (de)activate each language 
 though -- more a menu
 that exposes the basics.

 Agreed.

 Cheers,

 Rainer





 Thanks,


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




Re: [O] Filling a paragraph without filling SCHEDULED line

2012-04-05 Thread Stuart McLean
Hello Bastien,

I tried out `org-fill-paragraph' and it seems to work exactly the way
I would like.
Perhaps some people would prefer to have the scheduled line filled
with the text,
but I find this way makes the scheduled line stand out, and it is
easier to delete
without having to re-fill.

Thank you so much for the fix.

All the best,

Stuart

On 4/3/12, Bastien b...@gnu.org wrote:
 Hi Stuart,

 Thanks for raising this issue.

 I implemented an exception in `org-fill-paragraph' that takes care of
 handling your case correctly.  Please test and confirm this works okay
 for you.

 Best,

 --
  Bastien




Re: [O] buffer-local org-agenda-files embedded agenda-view

2012-04-05 Thread Mirko Vukovic
On Tue, Apr 3, 2012 at 1:55 AM, Bastien b...@gnu.org wrote:

 Hi Mirko,

 Mirko Vukovic mirko.vuko...@gmail.com writes:

  I would like to have a buffer (and the associated file) that contain the
 agenda
  view for a few select files.  Is that possible?
 
  They way it might work (in pseudo-code  using babel)
 
   begin org file
  #+org-agenda-files: file-1.org file-2.org file-3.org ;; these are full
 files
 
 
  #+begin local-agenda-view
  TODO: file-1
  IN-PROGRESS: file-2
  COMPLETE: file-3
  #+end local-agenda-view
 
   end org file

 Agenda views rely on two things: a list of selected items, a display
 mechanism for these items in a dedicated buffer (either one single
 buffer, or several buffers when using sticky agenda views.)

 What you're asking for would be possible if the list of items were
 stored somewhere else than in a dedicated buffer -- which is not the
 case right now (see also my recent reply to Manuel.)

  So, when visiting the above file, or executing C-c C-c, the
 org-agenda-files
  would be refreshed, as would be the local-agenda-view block.  In this
 example,
  the agenda-view is non-standard.
 
  So, is the following possible
  - buffer local agenda-files that are set in the declarations
  - embedded agenda view
  - view customized as shown above
 
  If that is not possible, what variables  functions would I need to
  look at?

 You can try to digg the idea of `org-agenda-listing' further.

 Good luck!

 --
  Bastien


Thanks Bastien,

Did you mean `org-agenda-list'?

Mirko


[O] Notes when clocking out on item

2012-04-05 Thread Kyle Sexton
Is it possible to be prompted for a note about what was done when
clocking out for an item (but not marking it DONE)?  Sometimes I'll be
working all day on a task and would like to keep track of what I do when
clocking out, instead of a big list of clock-in/out times.

Thanks in advance.

-- 
Kyle Sexton



Re: [O] Notes when clocking out on item

2012-04-05 Thread Nick Dokos
Kyle Sexton k...@mocker.org wrote:

 Is it possible to be prompted for a note about what was done when
 clocking out for an item (but not marking it DONE)?  Sometimes I'll be
 working all day on a task and would like to keep track of what I do when
 clocking out, instead of a big list of clock-in/out times.
 
 Thanks in advance.
 

The manual says:

,
| `C-c C-x C-o (`org-clock-out')'
|  Stop the clock (clock-out).  This inserts another timestamp at the
|  same location where the clock was last started.  It also directly
|  computes the resulting time in inserts it after the time range as
|  `= HH:MM'.  See the variable `org-log-note-clock-out' for the
|  possibility to record an additional note together with the
|  clock-out timestamp(4).  
`

(info (org) Clocking commands)

Nick



Re: [O] Notes when clocking out on item

2012-04-05 Thread Kyle Sexton
Nick Dokos nicholas.do...@hp.com writes:

 The manual says:

 ,
 | `C-c C-x C-o (`org-clock-out')'
 |  Stop the clock (clock-out).  This inserts another timestamp at the
 |  same location where the clock was last started.  It also directly
 |  computes the resulting time in inserts it after the time range as
 |  `= HH:MM'.  See the variable `org-log-note-clock-out' for the
 |  possibility to record an additional note together with the
 |  clock-out timestamp(4).  
 `

 (info (org) Clocking commands)


Thanks, my apropos search for org-clock didn't seem to hit on
org-log-note-clock-out.  I'll have to start using info more (but apropos
is so nice!)  I should know by now that all my questions about emacs can
be answered by just knowing where to look in emacs. :)


-- 
Kyle Sexton



Re: [O] Bug: Tag Completion Not Prompting for all tags

2012-04-05 Thread Matt Lundin
Hi Bastien,

Bastien b...@gnu.org writes:

 Hi Mike,

 Mike McLean mike.mcl...@pobox.com writes:

 8 Type tag_ followed by TAB

 The expected result is a completion list of tag_a and tag_b, this
 does not work and the Minibuffer prompts [No match]

 Fixed.

 Note that if I were to remove the single characters
 for tag_a and tag_b completion works for those two but not for
 the Personal tag from the file

 Fixed.

 Shouldn't free tag entry always show all possible tags, regardless of
 the setting of or use of fast tag completion?

 I think so -- thanks a lot for the detailed report.

This change (commit acc7a0b2) has the effect of adding buffer tags to
the fast tag completion window (and assigning them arbitrary shortcuts).
Historically, only tags explicitly defined in org-tag-alist or via an
in-buffer heading show up in the fast tag completion window. In
addition, tags now show up in the window twice with different shortcuts
(once if defined in org-tag-alist, and once if they appear in the
buffer).

Best,
Matt