Re: [O] saving state of buffer

2013-03-21 Thread Marcin Borkowski
Dnia 2013-03-21, o godz. 07:58:51
Carsten Dominik  napisał(a):

> 
> On 20.3.2013, at 19:28, 42 147  wrote:
> 
> > > (require 'saveplace)
> > > (setq-default save-place t)
> > 
> > > works for me. It just opens the place where I had the point,
> > > nothing more, but that's what I need most.
> > 
> > This is more convenient than Emacs bookmarks, but still breaks
> > org-mode to a certain extent: all non top-level headlines below
> > point are hidden. At least for me.
> 
> Org-mode has very precise control for situations when a jump into
> invisible text happens, for example by isearch or by bookmark-jump or
> saveplace.  Take a look at the variable org-show-siblings and set a
> special context for bookmark-jump, that should do it.  This will work
> for both saveplace and bookmarks.
> 
> You can do this with customize, or just like this:
> 
> (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
> 
> There are companion variables, they are all in the customization
> group org-reveal-context.

After almost 2 years on TeX.SE and more than 3 years on BGG, what I
probably lack most in mailing lists is an upvote/thumb up button... :)

> - Carsten

Regards,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] python sessions

2013-03-21 Thread Andreas Röhler

Am 21.03.2013 02:56, schrieb Gary Oberbrunner:

Hi Gary,

great if you can make it work for you.

Nonetheless, still thinking

let-var session in

org-babel-execute:python

needs the fix.

Best,

Andreas



Re: [O] python sessions

2013-03-21 Thread Bastien
Hi Andreas,

Andreas Röhler  writes:

> Nonetheless, still thinking
>
> let-var session in
>
> org-babel-execute:python
>
> needs the fix.

I've not been following this thread, can you send a patch with
the fix and the reason for it?  Thanks in advance!

-- 
 Bastien



Re: [O] Copying subtrees with footnotes

2013-03-21 Thread Christian Moe

Bastien writes:
> Instead of adapting those function, I'd have a function to inline
> external footnotes--and vice versa.  This function would be helpful 
> in this case but in other situations too.

+1!

Yours,
Christian



Re: [O] python sessions

2013-03-21 Thread Andreas Röhler

Am 21.03.2013 08:43, schrieb Bastien:

Hi Andreas,

Andreas Röhler  writes:


Nonetheless, still thinking

let-var session in

org-babel-execute:python

needs the fix.


I've not been following this thread, can you send a patch with
the fix and the reason for it?  Thanks in advance!



Hi Bastien,

unfortunately my org-environment isn't ready yet for developing.
Might take some time, but I'm on it.
Unless someone else sends that probably trivial patch meanwhile

Best,

Andreas





Re: [O] [BUG] ob-sql.el: probably an extra paren

2013-03-21 Thread Achim Gratz

Am 20.03.2013 14:47, schrieb Bastien:


If anyone knows how to setup an automated tests framework for Org,
feel free to go ahead, we will use it and monitor broken tests to
see what's wrong in the code or in the tests or in the environment
running the tests.


We already have one, what Nick and Sebastien are asking is not to push 
commits that are known to not pass the tests.



Testing is a nice habit to have, but let's not make it a coercive
pre-requisit before pushing patches.


Why not?  Any broken commits make automatic bisecting impossible and 
they are a constant source of irritation for folks who forget to test 
their new Org pulls before using or installing them.



My whole thinking here is well captured by Rich Hickey:


The citation you gave doesn't even apply to the question at hand.  It is 
about writing tests, not using the tests you already have.



Regards,
--
Achim.

(on the road :-)




Re: [O] Errors on start up when loading ox-md and ox-beamer (seems caused by recent commit)

2013-03-21 Thread Achim Gratz

Am 20.03.2013 16:16, schrieb John Hendy:

 From the descriptions, I don't understand the difference between:
- make- build Org ELisp and all documentation
- make autoloads  - create org-loaddefs.el to load Org in-place

Is =make= *also* making autoloads, and =make autoloads= is *only*
making the autoload files?


Yes.

To be more precise, plain "make" does whatever is defined as the default 
target.  Unless you do something about it (and you probably should so 
you can be lazy and have plain "make" do whatever you usually want to be 
done), this is equivalent to "make oldorg".



Regards,
--
Achim.

(on the road :-)




Re: [O] [BUG] ob-sql.el: probably an extra paren

2013-03-21 Thread Sebastien Vauban
Hi Bastien,

Bastien wrote:
> "Sebastien Vauban" writes:
>> Nick Dokos wrote:
>>> Can we please make it an invariable practice to run `make test' before
>>> every push?
>>
>> Isn't it possible to put such in some sort of Git pre-commit hook (or
>> pre-push hook), so that it gets automatically enforced?
>
> If anyone knows how to setup an automated tests framework for Org, feel free
> to go ahead, we will use it and monitor broken tests to see what's wrong in
> the code or in the tests or in the environment running the tests.
>
> Testing is a nice habit to have, but let's not make it a coercive
> pre-requisit before pushing patches.
>
> My whole thinking here is well captured by Rich Hickey:
>
>   http://codequarterly.com/2011/rich-hickey/
>
>   Fogus: You have been known to speak out against test-driven development.
>   Do you mind elaborating on your position?
>
>   Hickey: I never spoke out ‘against’ TDD. What I have said is, life is
>   short and there are only a finite number of hours in a day. So, we have to
>   make choices about how we spend our time. If we spend it writing tests,
>   that is time we are not spending doing something else. Each of us needs to
>   assess how best to spend our time in order to maximize our results, both
>   in quantity and quality. If people think that spending fifty percent of
>   their time writing tests maximizes their results—okay for them. I’m sure
>   that’s not true for me—I’d rather spend that time thinking about my
>   problem. I’m certain that, for me, this produces better solutions, with
>   fewer defects, than any other use of my time. A bad design with a complete
>   test suite is still a bad design.

The text you mention refers about time to write extra test suites. I was
referring to simply have "make test" _run_ before being able to push commits.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] saving state of buffer

2013-03-21 Thread 42 147
Thanks David, but what Carsten suggested completely resolved my problem (it
applies not just to bookmarks; it fully preserves my buffer's folded state
after adding Christoph's code to my .emacs). But I should also thank you
for finding the words I struggled to find ("folded state").

I feel honored that royalty stepped into the discussion.

Herzlichen Dank,

42


2013/3/21 Carsten Dominik 

>
> On 20.3.2013, at 19:28, 42 147  wrote:
>
> > (require 'saveplace)
> > (setq-default save-place t)
>
> > works for me. It just opens the place where I had the point, nothing
> > more, but that's what I need most.
>
> This is more convenient than Emacs bookmarks, but still breaks org-mode to
> a certain extent: all non top-level headlines below point are hidden. At
> least for me.
>
>
> Org-mode has very precise control for situations when a jump into
> invisible text happens, for example by isearch or by bookmark-jump or
> saveplace.  Take a look at the variable org-show-siblings and set a special
> context for bookmark-jump, that should do it.  This will work for both
> saveplace and bookmarks.
>
> You can do this with customize, or just like this:
>
> (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
>
> There are companion variables, they are all in the customization group
> org-reveal-context.
>
> - Carsten
>


Re: [O] saving state of buffer

2013-03-21 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21/03/13 10:05, 42 147 wrote:
> Thanks David, but what Carsten suggested completely resolved my problem (it 
> applies not just to
> bookmarks; it fully preserves my buffer's folded state after adding 
> Christoph's code to my
> .emacs).

Good - May I suggest, that you write a step - by step howto and mail it here or 
even add it to
worg? This would be a useful addition.

> But I should also thank you for finding the words I struggled to find 
> ("folded state").

And we have to thank you for this useful question!

Cheers,

Rainer

> 
> I feel honored that royalty stepped into the discussion.
> 
> Herzlichen Dank,
> 
> 42
> 
> 
> 2013/3/21 Carsten Dominik  >
> 
> 
> On 20.3.2013, at 19:28, 42 147 mailto:aeus...@gmail.com>> 
> wrote:
> 
>>> (require 'saveplace) (setq-default save-place t)
>> 
>>> works for me. It just opens the place where I had the point, nothing more, 
>>> but that's what
>>> I need most.
>> 
>> This is more convenient than Emacs bookmarks, but still breaks org-mode to a 
>> certain extent:
>> all non top-level headlines below point are hidden. At least for me.
>> 
> 
> Org-mode has very precise control for situations when a jump into invisible 
> text happens, for 
> example by isearch or by bookmark-jump or saveplace.  Take a look at the 
> variable 
> org-show-siblings and set a special context for bookmark-jump, that should do 
> it.  This will 
> work for both saveplace and bookmarks.
> 
> You can do this with customize, or just like this:
> 
> (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
> 
> There are companion variables, they are all in the customization group 
> org-reveal-context.
> 
> - Carsten
> 
> 


- -- 
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 Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRStGHAAoJENvXNx4PUvmCgRMH/2XsE18ysYpwvEFr9dB8Peek
91vSz/YddFROCFO+B2kd8hAT404j1IGR1MKp0cyEgh3bIAvnKxWIMzK42WaWjNf+
SqxJrtwy6Q1m4fwCMeaegReYxc5kJN5CUC3inCXuYgqvWAEgWQOE+9+xq3j0LEOD
pcA084O5rx2JzS4Fo/FeuvB3TuVqcpobkFYM5r89+7WSfDhy+04kp581xzcH4oBr
JISGbfd17RFEIabgTAYkyJKQLMRY6BVFY8WSGQALT+ggSEAiYytYbHoTZUUfnfS2
UlwlTCgCn3xfc1QCBTv09YKVB+xOurtqL3tbfnj7CY3eATJz1YMtOoqyVMLJ68Y=
=cEvT
-END PGP SIGNATURE-



Re: [O] saving state of buffer

2013-03-21 Thread Carsten Dominik

On 21 mrt. 2013, at 10:23, Rainer M Krug  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 21/03/13 10:05, 42 147 wrote:
>> Thanks David, but what Carsten suggested completely resolved my problem (it 
>> applies not just to
>> bookmarks; it fully preserves my buffer's folded state after adding 
>> Christoph's code to my
>> .emacs).
> 
> Good - May I suggest, that you write a step - by step howto and mail it here 
> or even add it to
> worg? This would be a useful addition.

I guess it would make a good FAQ entry.

I also think that maybe the current default is not good,
show-siblings should probably default to t for bookmark jump.

- Carsten

> 
>> But I should also thank you for finding the words I struggled to find 
>> ("folded state").
> 
> And we have to thank you for this useful question!
> 
> Cheers,
> 
> Rainer
> 
>> 
>> I feel honored that royalty stepped into the discussion.
>> 
>> Herzlichen Dank,
>> 
>> 42
>> 
>> 
>> 2013/3/21 Carsten Dominik > >
>> 
>> 
>> On 20.3.2013, at 19:28, 42 147 > > wrote:
>> 
 (require 'saveplace) (setq-default save-place t)
>>> 
 works for me. It just opens the place where I had the point, nothing more, 
 but that's what
 I need most.
>>> 
>>> This is more convenient than Emacs bookmarks, but still breaks org-mode to 
>>> a certain extent:
>>> all non top-level headlines below point are hidden. At least for me.
>>> 
>> 
>> Org-mode has very precise control for situations when a jump into invisible 
>> text happens, for 
>> example by isearch or by bookmark-jump or saveplace.  Take a look at the 
>> variable 
>> org-show-siblings and set a special context for bookmark-jump, that should 
>> do it.  This will 
>> work for both saveplace and bookmarks.
>> 
>> You can do this with customize, or just like this:
>> 
>> (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
>> 
>> There are companion variables, they are all in the customization group 
>> org-reveal-context.
>> 
>> - Carsten
>> 
>> 
> 
> 
> - -- 
> 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 Thunderbird - http://www.enigmail.net/
> 
> iQEcBAEBAgAGBQJRStGHAAoJENvXNx4PUvmCgRMH/2XsE18ysYpwvEFr9dB8Peek
> 91vSz/YddFROCFO+B2kd8hAT404j1IGR1MKp0cyEgh3bIAvnKxWIMzK42WaWjNf+
> SqxJrtwy6Q1m4fwCMeaegReYxc5kJN5CUC3inCXuYgqvWAEgWQOE+9+xq3j0LEOD
> pcA084O5rx2JzS4Fo/FeuvB3TuVqcpobkFYM5r89+7WSfDhy+04kp581xzcH4oBr
> JISGbfd17RFEIabgTAYkyJKQLMRY6BVFY8WSGQALT+ggSEAiYytYbHoTZUUfnfS2
> UlwlTCgCn3xfc1QCBTv09YKVB+xOurtqL3tbfnj7CY3eATJz1YMtOoqyVMLJ68Y=
> =cEvT
> -END PGP SIGNATURE-




Re: [O] saving state of buffer

2013-03-21 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21/03/13 10:28, Carsten Dominik wrote:
> 
> On 21 mrt. 2013, at 10:23, Rainer M Krug  wrote:
> 
> On 21/03/13 10:05, 42 147 wrote:
 Thanks David, but what Carsten suggested completely resolved my problem 
 (it applies not
 just to bookmarks; it fully preserves my buffer's folded state after 
 adding Christoph's
 code to my .emacs).
> 
> Good - May I suggest, that you write a step - by step howto and mail it here 
> or even add it to 
> worg? This would be a useful addition.
> 
>> I guess it would make a good FAQ entry.

Haven't thought about these - they would even be better then worg.

> 
>> I also think that maybe the current default is not good, show-siblings 
>> should probably
>> default to t for bookmark jump.

Would make much sense - I assume that would then open the location when doing a 
search - replace.

Cheers,

Rainer

> 
>> - Carsten
> 
> 
 But I should also thank you for finding the words I struggled to find 
 ("folded state").
> 
> And we have to thank you for this useful question!
> 
> Cheers,
> 
> Rainer
> 
 
 I feel honored that royalty stepped into the discussion.
 
 Herzlichen Dank,
 
 42
 
 
 2013/3/21 Carsten Dominik >>> >
 
 
 On 20.3.2013, at 19:28, 42 147 >>> > wrote:
 
>> (require 'saveplace) (setq-default save-place t)
> 
>> works for me. It just opens the place where I had the point, nothing 
>> more, but that's
>> what I need most.
> 
> This is more convenient than Emacs bookmarks, but still breaks org-mode 
> to a certain
> extent: all non top-level headlines below point are hidden. At least for 
> me.
> 
 
 Org-mode has very precise control for situations when a jump into 
 invisible text happens,
 for example by isearch or by bookmark-jump or saveplace.  Take a look at 
 the variable 
 org-show-siblings and set a special context for bookmark-jump, that should 
 do it.  This
 will work for both saveplace and bookmarks.
 
 You can do this with customize, or just like this:
 
 (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
 
 There are companion variables, they are all in the customization group
 org-reveal-context.
 
 - Carsten
 
 
> 
> 
> 

- -- 
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 Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRStYGAAoJENvXNx4PUvmCOYQH/iun7nUB4Wr4KJXwGuCJizgW
7h7565oAlV0ka6JONGG03xnxh0PvZCrj3Ns7xE6kitLeVZ0oIEa8Wp1I4eMGX1PI
qXGnTuJ/nwVtpdn9geswCM11Rfz3KdlBWUz6zYFUXrD1GVaEyXBJPj2j0H1N27RD
6pK0IS3T7pnuycIpmqzEU5aWAkgK01sB3mIs5JYvnMGfoV0ZXLGcVplqXO0Hc3XR
P1Ea/uzzWSSKgJWGSlB9ELVC1sZg8xPqjM/vWPG2U+/fp3VfJ2aeJJc9v87mq3li
YI8Z4fYKO00oKv+quEOGWyDr0bO3w9PjJGAWmlw0cFu9UzxU4pRAmHR+XyTTCOc=
=y9LZ
-END PGP SIGNATURE-



Re: [O] saving state of buffer

2013-03-21 Thread Carsten Dominik

On 21 mrt. 2013, at 10:05, 42 147  wrote:

> Thanks David, but what Carsten suggested completely resolved my problem (it
> applies not just to bookmarks; it fully preserves my buffer's folded state
> after adding Christoph's code to my .emacs).

I don't think it preserves a state.  It constructs one, and you happen to like 
it. :)

- Carsten


> But I should also thank you
> for finding the words I struggled to find ("folded state").
> 
> I feel honored that royalty stepped into the discussion.
> 
> Herzlichen Dank,
> 
> 42
> 
> 
> 2013/3/21 Carsten Dominik 
> 
> On 20.3.2013, at 19:28, 42 147  wrote:
> 
>> > (require 'saveplace)
>> > (setq-default save-place t)
>> 
>> > works for me. It just opens the place where I had the point, nothing 
>> > more, but that's what I need most.
>> 
>> This is more convenient than Emacs bookmarks, but still breaks org-mode to
>> a certain extent: all non top-level headlines below point are hidden. At
>> least for me.
>> 
> 
> Org-mode has very precise control for situations when a jump into invisible 
> text happens, for example by isearch or by bookmark-jump or saveplace.  Take 
> a look at the variable org-show-siblings and set a special context for 
> bookmark-jump, that should do it.  This will work for both saveplace and 
> bookmarks.
> 
> You can do this with customize, or just like this:
> 
> (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
> 
> There are companion variables, they are all in the customization group 
> org-reveal-context.
> 
> - Carsten
> 



Re: [O] saving state of buffer

2013-03-21 Thread 42 147
> Good - May I suggest, that you write a step - by step howto and mail it here 
> or even add it to
> worg? This would be a useful addition.

I adapted this thread the best I could. Feel free to do with it what you
wish.

QUESTION

How do I restore the state of my buffer where I left it?

ANSWER

When Emacs first visits an Org file, the global state is set to
OVERVIEW, i.e., only the top level headlines are visible.

If you wish Emacs to restore the position of point where you left it in
your previous session, add the following code to your .emacs:

(require 'saveplace)
(setq-default save-place t)

If you wish Org-mode to restore the folded state of the buffer (not just
the position of point), you can either use customize, or add the following
to .emacs:

(setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))

If you use customize, take look at the variable org-show-siblings and set a
special context for bookmark-jump. This will work for both saveplace and
bookmarks.

Org-mode has very precise control for situations when a jump into invisible
text happens, for example by isearch or by bookmark-jump or saveplace.
There are companion variables, and they are all in the customization group
org-reveal-context.

2013/3/21 Rainer M Krug 

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 21/03/13 10:28, Carsten Dominik wrote:
> >
> > On 21 mrt. 2013, at 10:23, Rainer M Krug  wrote:
> >
> > On 21/03/13 10:05, 42 147 wrote:
>  Thanks David, but what Carsten suggested completely resolved my
> problem (it applies not
>  just to bookmarks; it fully preserves my buffer's folded state after
> adding Christoph's
>  code to my .emacs).
> >
> > Good - May I suggest, that you write a step - by step howto and mail it
> here or even add it to
> > worg? This would be a useful addition.
> >
> >> I guess it would make a good FAQ entry.
>
> Haven't thought about these - they would even be better then worg.
>
> >
> >> I also think that maybe the current default is not good, show-siblings
> should probably
> >> default to t for bookmark jump.
>
> Would make much sense - I assume that would then open the location when
> doing a search - replace.
>
> Cheers,
>
> Rainer
>
> >
> >> - Carsten
> >
> >
>  But I should also thank you for finding the words I struggled to find
> ("folded state").
> >
> > And we have to thank you for this useful question!
> >
> > Cheers,
> >
> > Rainer
> >
> 
>  I feel honored that royalty stepped into the discussion.
> 
>  Herzlichen Dank,
> 
>  42
> 
> 
>  2013/3/21 Carsten Dominik  carsten.domi...@gmail.com>>
> 
> 
>  On 20.3.2013, at 19:28, 42 147  aeus...@gmail.com>> wrote:
> 
> >> (require 'saveplace) (setq-default save-place t)
> >
> >> works for me. It just opens the place where I had the point,
> nothing more, but that's
> >> what I need most.
> >
> > This is more convenient than Emacs bookmarks, but still breaks
> org-mode to a certain
> > extent: all non top-level headlines below point are hidden. At least
> for me.
> >
> 
>  Org-mode has very precise control for situations when a jump into
> invisible text happens,
>  for example by isearch or by bookmark-jump or saveplace.  Take a look
> at the variable
>  org-show-siblings and set a special context for bookmark-jump, that
> should do it.  This
>  will work for both saveplace and bookmarks.
> 
>  You can do this with customize, or just like this:
> 
>  (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
> 
>  There are companion variables, they are all in the customization group
>  org-reveal-context.
> 
>  - Carsten
> 
> 
> >
> >
> >
>
> - --
> 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 Thunderbird - http://www.enigmail.net/
>
> iQEcBAEBAgAGBQJRStYGAAoJENvXNx4PUvmCOYQH/iun7nUB4Wr4KJXwGuCJizgW
> 7h7565oAlV0ka6JONGG03xnxh0PvZCrj3Ns7xE6kitLeVZ0oIEa8Wp1I4eMGX1PI
> qXGnTuJ/nwVtpdn9geswCM11Rfz3KdlBWUz6zYFUXrD1GVaEyXBJPj2j0H1N27RD
> 6pK0IS3T7pnuycIpmqzEU5aWAkgK01sB3mIs5JYvnMGfoV0ZXLGcVplqXO0Hc3XR
> P1Ea/uzzWSSKgJWGSlB9ELVC1sZg8xPqjM/vWPG2U+/fp3VfJ2aeJJc9v87mq3li
> YI8Z4fYKO00oKv+quEOGWyDr0bO3w9PjJGAWmlw0cFu9UzxU4pRAmHR+XyTTCOc=
> =y9LZ
> -END PGP SIGNATURE-
>


Re: [O] Timestamp practices?

2013-03-21 Thread Samuel Loury
Thorsten Jolitz  writes:

> Lawrence Bottorff  writes:
>
>> I'm trying to give each header entry a timestamp.
>
> This is from Bernt Hansen and automagically inserts a timestamp each
> time you insert a new header - if you want so. 
> If not, you can toggle the behaviour. Nice.
>
> ,
> | (defvar bh/insert-inactive-timestamp t)
> | 
> | (defun bh/toggle-insert-inactive-timestamp ()
> |   (interactive)
> |   (setq bh/insert-inactive-timestamp (not bh/insert-inactive-timestamp))
> |   (message "Heading timestamps are %s"
> |(if bh/insert-inactive-timestamp "ON" "OFF")))
> | 
> | (defun bh/insert-inactive-timestamp ()
> |   (interactive)
> |   (org-insert-time-stamp nil t t nil nil nil))
> | 
> | (defun bh/insert-heading-inactive-timestamp ()
> |   (save-excursion
> | (when bh/insert-inactive-timestamp
> |   (org-return)
> |   (org-cycle)
> |   (bh/insert-inactive-timestamp
> | 
> | (add-hook 'org-insert-heading-hook
> | 'bh/insert-heading-inactive-timestamp 'append)
> `-
>
> ,-
> | (global-set-key (kbd " T") 'bh/toggle-insert-inactive-timestamp)
> | (global-set-key (kbd " t") 'bh/insert-inactive-timestamp)
> `-
>
> -- 
> cheers,
> Thorsten
>
>

Moreover, if you also use org-capture. You may precise a timestamp to be
put in the captured template. IIRC, This is also inspired from Bernt's
configuration.

╭
│ (add-to-list 'org-capture-templates
│ '("t" "Todo Item" entry (file+headline 
(expand-file-name "todo.org" org-directory) "Refile") "* TODO %?
│   :LOGBOOK:
│   - Captured   %U
│   :END:
│ "
│:kill-buffer
│)
│   )
╰
The useful part here is the %U. (see info:org#Template expansion).

This is of course to adjust according to your needs.

-- 
Konubinix
GPG Key: 7439106A
Fingerprint: 5993 BE7A DA65 E2D9 06CE  5C36 75D2 3CED 7439 106A


pgp5Yimd_s0P1.pgp
Description: PGP signature


[O] LaTeX mode+ org-open-at-point (minor mode)

2013-03-21 Thread Uwe Brauer
Hello


Are there any plans for a org-link-minor-mode which I could call in any
mode and which would display an org link

As [Email from Joe Foo: submit] and not as 

[[gnus:nnimap%2BUCMgmail:INBOX#514ad2ef.1070...@ucm.es][Email from Joe Foo: 
submit]]
  

Rationale:

Storing and navigating to org links is one of the features I use quite a
bit. It would be extremely useful to have such a feature in LaTeX mode,
especially links to mail messages. I know I can just insert these links
and navigate to them, however the links, in a LaTeX buffer, are not as
nicely displayed as in a org mode. I also know that I can embed latex
code into a org buffer, however this is not what I am looking for. 

regards

Uwe Brauer 




Re: [O] saving state of buffer

2013-03-21 Thread Carsten Dominik
This is nice, does anyone of you have write permissions on Work to add this?

- Carsten

On 21 mrt. 2013, at 11:16, 42 147  wrote:

> > Good - May I suggest, that you write a step - by step howto and mail it 
> > here or even add it to
> > worg? This would be a useful addition.
> I adapted this thread the best I could. Feel free to do with it what you wish.
> 
> QUESTION
> 
> How do I restore the state of my buffer where I left it?
> 
> ANSWER
> 
> When Emacs first visits an Org file, the global state is set to
> OVERVIEW, i.e., only the top level headlines are visible.
> 
> If you wish Emacs to restore the position of point where you left it in
> your previous session, add the following code to your .emacs:
> 
> (require 'saveplace)
> (setq-default save-place t)
> 
> If you wish Org-mode to restore the folded state of the buffer (not just
> the position of point), you can either use customize, or add the following
> to .emacs:
> 
> (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
> 
> If you use customize, take look at the variable org-show-siblings and set a
> special context for bookmark-jump. This will work for both saveplace and
> bookmarks.
> 
> Org-mode has very precise control for situations when a jump into invisible
> text happens, for example by isearch or by bookmark-jump or saveplace.
> There are companion variables, and they are all in the customization group
> org-reveal-context.
> 
> 2013/3/21 Rainer M Krug 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 21/03/13 10:28, Carsten Dominik wrote:
> >
> > On 21 mrt. 2013, at 10:23, Rainer M Krug  wrote:
> >
> > On 21/03/13 10:05, 42 147 wrote:
>  Thanks David, but what Carsten suggested completely resolved my problem 
>  (it applies not
>  just to bookmarks; it fully preserves my buffer's folded state after 
>  adding Christoph's
>  code to my .emacs).
> >
> > Good - May I suggest, that you write a step - by step howto and mail it 
> > here or even add it to
> > worg? This would be a useful addition.
> >
> >> I guess it would make a good FAQ entry.
> 
> Haven't thought about these - they would even be better then worg.
> 
> >
> >> I also think that maybe the current default is not good, show-siblings 
> >> should probably
> >> default to t for bookmark jump.
> 
> Would make much sense - I assume that would then open the location when doing 
> a search - replace.
> 
> Cheers,
> 
> Rainer
> 
> >
> >> - Carsten
> >
> >
>  But I should also thank you for finding the words I struggled to find 
>  ("folded state").
> >
> > And we have to thank you for this useful question!
> >
> > Cheers,
> >
> > Rainer
> >
> 
>  I feel honored that royalty stepped into the discussion.
> 
>  Herzlichen Dank,
> 
>  42
> 
> 
>  2013/3/21 Carsten Dominik   >
> 
> 
>  On 20.3.2013, at 19:28, 42 147   > wrote:
> 
> >> (require 'saveplace) (setq-default save-place t)
> >
> >> works for me. It just opens the place where I had the point, nothing 
> >> more, but that's
> >> what I need most.
> >
> > This is more convenient than Emacs bookmarks, but still breaks org-mode 
> > to a certain
> > extent: all non top-level headlines below point are hidden. At least 
> > for me.
> >
> 
>  Org-mode has very precise control for situations when a jump into 
>  invisible text happens,
>  for example by isearch or by bookmark-jump or saveplace.  Take a look at 
>  the variable
>  org-show-siblings and set a special context for bookmark-jump, that 
>  should do it.  This
>  will work for both saveplace and bookmarks.
> 
>  You can do this with customize, or just like this:
> 
>  (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
> 
>  There are companion variables, they are all in the customization group
>  org-reveal-context.
> 
>  - Carsten
> 
> 
> >
> >
> >
> 
> - --
> 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 Thunderbird - http://www.enigmail.net/
> 
> iQEcBAEBAgAGBQJRStYGAAoJENvXNx4PUvmCOYQH/iun7nUB4Wr4KJXwGuCJizgW
> 7h7565oAlV0ka6JONGG03xnxh0PvZCrj3Ns7xE6kitLeVZ0oIEa8Wp1I4eMGX1PI
> qXGnTuJ/nwVtpdn9geswCM11Rfz3KdlBWUz6zYFUXrD1GVaEyXBJPj2j0H1N27RD
> 6pK0IS3T7pnuycIpmqzEU5aWAkgK01sB3mIs5JYvnMGfoV0ZXLGcVplqXO0Hc3XR
> P1Ea/uzzWSSKgJWGSlB9ELVC1sZg8xPqjM/vWPG2U+/fp3VfJ2aeJJc9v87mq3li
> YI8Z4fYKO00oKv+quEOGWyDr0bO3w9PjJGA

Re: [O] saving state of buffer

2013-03-21 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21/03/13 12:02, Carsten Dominik wrote:
> This is nice, does anyone of you have write permissions on Work to add this?

I should have, but I have never done it.

Rainer

> 
> - Carsten
> 
> On 21 mrt. 2013, at 11:16, 42 147  > wrote:
> 
>>> Good - May I suggest, that you write a step - by step howto and mail it 
>>> here or even add it
>>> to worg? This would be a useful addition.
>> I adapted this thread the best I could. Feel free to do with it what you 
>> wish.
>> 
>> QUESTION
>> 
>> How do I restore the state of my buffer where I left it?
>> 
>> ANSWER
>> 
>> When Emacs first visits an Org file, the global state is set to OVERVIEW, 
>> i.e., only the top
>> level headlines are visible.
>> 
>> If you wish Emacs to restore the position of point where you left it in your 
>> previous
>> session, add the following code to your .emacs:
>> 
>> (require 'saveplace) (setq-default save-place t)
>> 
>> If you wish Org-mode to restore the folded state of the buffer (not just the 
>> position of
>> point), you can either use customize, or add the following to .emacs:
>> 
>> (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
>> 
>> If you use customize, take look at the variable org-show-siblings and set a 
>> special context
>> for bookmark-jump. This will work for both saveplace and bookmarks.
>> 
>> Org-mode has very precise control for situations when a jump into invisible 
>> text happens, for
>> example by isearch or by bookmark-jump or saveplace. There are companion 
>> variables, and they
>> are all in the customization group org-reveal-context.
>> 
>> 2013/3/21 Rainer M Krug mailto:r.m.k...@gmail.com>>
>> 
> On 21/03/13 10:28, Carsten Dominik wrote:
> 
>> On 21 mrt. 2013, at 10:23, Rainer M Krug > >
>> wrote:
> 
>> On 21/03/13 10:05, 42 147 wrote:
> Thanks David, but what Carsten suggested completely resolved my problem 
> (it applies
> not just to bookmarks; it fully preserves my buffer's folded state after 
> adding
> Christoph's code to my .emacs).
> 
>> Good - May I suggest, that you write a step - by step howto and mail it here 
>> or even add it
>> to worg? This would be a useful addition.
> 
>>> I guess it would make a good FAQ entry.
> 
> Haven't thought about these - they would even be better then worg.
> 
> 
>>> I also think that maybe the current default is not good, show-siblings 
>>> should probably 
>>> default to t for bookmark jump.
> 
> Would make much sense - I assume that would then open the location when doing 
> a search -
> replace.
> 
> Cheers,
> 
> Rainer
> 
> 
>>> - Carsten
> 
> 
> But I should also thank you for finding the words I struggled to find 
> ("folded
> state").
> 
>> And we have to thank you for this useful question!
> 
>> Cheers,
> 
>> Rainer
> 
> 
> I feel honored that royalty stepped into the discussion.
> 
> Herzlichen Dank,
> 
> 42
> 
> 
> 2013/3/21 Carsten Dominik  
> >>
> 
> 
> On 20.3.2013, at 19:28, 42 147  
> >> wrote:
> 
>>> (require 'saveplace) (setq-default save-place t)
>> 
>>> works for me. It just opens the place where I had the point, nothing 
>>> more, but
>>> that's what I need most.
>> 
>> This is more convenient than Emacs bookmarks, but still breaks org-mode 
>> to a certain 
>> extent: all non top-level headlines below point are hidden. At least for 
>> me.
>> 
> 
> Org-mode has very precise control for situations when a jump into 
> invisible text
> happens, for example by isearch or by bookmark-jump or saveplace.  Take a 
> look at the
> variable org-show-siblings and set a special context for bookmark-jump, 
> that should do
> it.  This will work for both saveplace and bookmarks.
> 
> You can do this with customize, or just like this:
> 
> (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
> 
> There are companion variables, they are all in the customization group 
> org-reveal-context.
> 
> - Carsten
> 
> 
> 
> 
> 
> 
>> 
>> 
> 

- -- 
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 Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRSu5FAAoJENvXNx4PUvmCjUwH/RUIVrrAJXxiPlC2Kv32+K7X
MAC6mLb+NFsXLLq4ErJXv

Re: [O] saving state of buffer

2013-03-21 Thread Carsten Dominik

On 21 mrt. 2013, at 12:25, Rainer M Krug  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 21/03/13 12:02, Carsten Dominik wrote:
>> This is nice, does anyone of you have write permissions on Work to add this?
> 
> I should have, but I have never done it.

Well, you can try, or else I'll do it.

- Carsten

> 
> Rainer
> 
>> 
>> - Carsten
>> 
>> On 21 mrt. 2013, at 11:16, 42 147 > > wrote:
>> 
 Good - May I suggest, that you write a step - by step howto and mail it 
 here or even add it
 to worg? This would be a useful addition.
>>> I adapted this thread the best I could. Feel free to do with it what you 
>>> wish.
>>> 
>>> QUESTION
>>> 
>>> How do I restore the state of my buffer where I left it?
>>> 
>>> ANSWER
>>> 
>>> When Emacs first visits an Org file, the global state is set to OVERVIEW, 
>>> i.e., only the top
>>> level headlines are visible.
>>> 
>>> If you wish Emacs to restore the position of point where you left it in 
>>> your previous
>>> session, add the following code to your .emacs:
>>> 
>>> (require 'saveplace) (setq-default save-place t)
>>> 
>>> If you wish Org-mode to restore the folded state of the buffer (not just 
>>> the position of
>>> point), you can either use customize, or add the following to .emacs:
>>> 
>>> (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
>>> 
>>> If you use customize, take look at the variable org-show-siblings and set a 
>>> special context
>>> for bookmark-jump. This will work for both saveplace and bookmarks.
>>> 
>>> Org-mode has very precise control for situations when a jump into invisible 
>>> text happens, for
>>> example by isearch or by bookmark-jump or saveplace. There are companion 
>>> variables, and they
>>> are all in the customization group org-reveal-context.
>>> 
>>> 2013/3/21 Rainer M Krug mailto:r.m.k...@gmail.com>>
>>> 
>> On 21/03/13 10:28, Carsten Dominik wrote:
>> 
>>> On 21 mrt. 2013, at 10:23, Rainer M Krug >> >
>>> wrote:
>> 
>>> On 21/03/13 10:05, 42 147 wrote:
>> Thanks David, but what Carsten suggested completely resolved my problem 
>> (it applies
>> not just to bookmarks; it fully preserves my buffer's folded state after 
>> adding
>> Christoph's code to my .emacs).
>> 
>>> Good - May I suggest, that you write a step - by step howto and mail it 
>>> here or even add it
>>> to worg? This would be a useful addition.
>> 
 I guess it would make a good FAQ entry.
>> 
>> Haven't thought about these - they would even be better then worg.
>> 
>> 
 I also think that maybe the current default is not good, show-siblings 
 should probably 
 default to t for bookmark jump.
>> 
>> Would make much sense - I assume that would then open the location when 
>> doing a search -
>> replace.
>> 
>> Cheers,
>> 
>> Rainer
>> 
>> 
 - Carsten
>> 
>> 
>> But I should also thank you for finding the words I struggled to find 
>> ("folded
>> state").
>> 
>>> And we have to thank you for this useful question!
>> 
>>> Cheers,
>> 
>>> Rainer
>> 
>> 
>> I feel honored that royalty stepped into the discussion.
>> 
>> Herzlichen Dank,
>> 
>> 42
>> 
>> 
>> 2013/3/21 Carsten Dominik > 
>> >>
>> 
>> 
>> On 20.3.2013, at 19:28, 42 147 > 
>> >> wrote:
>> 
 (require 'saveplace) (setq-default save-place t)
>>> 
 works for me. It just opens the place where I had the point, nothing 
 more, but
 that's what I need most.
>>> 
>>> This is more convenient than Emacs bookmarks, but still breaks org-mode 
>>> to a certain 
>>> extent: all non top-level headlines below point are hidden. At least 
>>> for me.
>>> 
>> 
>> Org-mode has very precise control for situations when a jump into 
>> invisible text
>> happens, for example by isearch or by bookmark-jump or saveplace.  Take 
>> a look at the
>> variable org-show-siblings and set a special context for bookmark-jump, 
>> that should do
>> it.  This will work for both saveplace and bookmarks.
>> 
>> You can do this with customize, or just like this:
>> 
>> (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
>> 
>> There are companion variables, they are all in the customization group 
>> org-reveal-context.
>> 
>> - Carsten
>> 
>> 
>> 
>> 
>> 
>> 
>>> 
>>> 
>> 
> 
> - -- 
> 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 

Re: [O] saving state of buffer

2013-03-21 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21/03/13 12:38, Carsten Dominik wrote:
> 
> On 21 mrt. 2013, at 12:25, Rainer M Krug  wrote:
> 
> On 21/03/13 12:02, Carsten Dominik wrote:
 This is nice, does anyone of you have write permissions on Work to add 
 this?
> 
> I should have, but I have never done it.
> 
>> Well, you can try, or else I'll do it.

I could, and I would (I was looking for an excuse for a long time), but I have 
no time before
middle next week. I can put it into my TODO items for then.

I just relised, I was only registered to repo.or.cz - but I will register as 
described at

http://orgmode.org/worg/worg-git.html

If it should be up earlier, please feel free to do it.

Cheers,

Rainer


> 
>> - Carsten
> 
> 
> Rainer
> 
 
 - Carsten
 
 On 21 mrt. 2013, at 11:16, 42 147 >>> > wrote:
 
>> Good - May I suggest, that you write a step - by step howto and mail it 
>> here or even
>> add it to worg? This would be a useful addition.
> I adapted this thread the best I could. Feel free to do with it what you 
> wish.
> 
> QUESTION
> 
> How do I restore the state of my buffer where I left it?
> 
> ANSWER
> 
> When Emacs first visits an Org file, the global state is set to OVERVIEW, 
> i.e., only
> the top level headlines are visible.
> 
> If you wish Emacs to restore the position of point where you left it in 
> your previous 
> session, add the following code to your .emacs:
> 
> (require 'saveplace) (setq-default save-place t)
> 
> If you wish Org-mode to restore the folded state of the buffer (not just 
> the position
> of point), you can either use customize, or add the following to .emacs:
> 
> (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
> 
> If you use customize, take look at the variable org-show-siblings and set 
> a special
> context for bookmark-jump. This will work for both saveplace and 
> bookmarks.
> 
> Org-mode has very precise control for situations when a jump into 
> invisible text
> happens, for example by isearch or by bookmark-jump or saveplace. There 
> are companion
> variables, and they are all in the customization group org-reveal-context.
> 
> 2013/3/21 Rainer M Krug mailto:r.m.k...@gmail.com>>
> 
 On 21/03/13 10:28, Carsten Dominik wrote:
 
> On 21 mrt. 2013, at 10:23, Rainer M Krug  > wrote:
 
> On 21/03/13 10:05, 42 147 wrote:
 Thanks David, but what Carsten suggested completely resolved my 
 problem (it
 applies not just to bookmarks; it fully preserves my buffer's folded 
 state after
 adding Christoph's code to my .emacs).
 
> Good - May I suggest, that you write a step - by step howto and mail it 
> here or even
> add it to worg? This would be a useful addition.
 
>> I guess it would make a good FAQ entry.
 
 Haven't thought about these - they would even be better then worg.
 
 
>> I also think that maybe the current default is not good, show-siblings 
>> should
>> probably default to t for bookmark jump.
 
 Would make much sense - I assume that would then open the location when 
 doing a search - 
 replace.
 
 Cheers,
 
 Rainer
 
 
>> - Carsten
 
 
 But I should also thank you for finding the words I struggled to find 
 ("folded 
 state").
 
> And we have to thank you for this useful question!
 
> Cheers,
 
> Rainer
 
 
 I feel honored that royalty stepped into the discussion.
 
 Herzlichen Dank,
 
 42
 
 
 2013/3/21 Carsten Dominik >>> 
 >>
 
 
 On 20.3.2013, at 19:28, 42 147 >>> 
 >> wrote:
 
>> (require 'saveplace) (setq-default save-place t)
> 
>> works for me. It just opens the place where I had the point, nothing 
>> more,
>> but that's what I need most.
> 
> This is more convenient than Emacs bookmarks, but still breaks 
> org-mode to a
> certain extent: all non top-level headlines below point are hidden. 
> At least
> for me.
> 
 
 Org-mode has very precise control for situations when a jump into 
 invisible text 
 happens, for example by isearch or by bookmark-jump or saveplace.  
 Take a look at
 the variable org-show-siblings and set a special context for 
 bookmark-jump, that
 should do it.  This will work for bo

[O] Seems that commit 'e8742b78e0a982a7fca0bf25b4f3551be58660ef' breaks html output

2013-03-21 Thread Vladimir Lomov
Hello,

Seems that commit 'e8742b78e0a982a7fca0bf25b4f3551be58660ef' breaks
code blocks output: they are indented with all other text that is
wrong.

As I understand this is intended, that commit mentions 'org-html-indent'
variable but IMHO it is strange that this option is on by default or
alternatively code works bad with source blocks while exporting.

Also I see strange extra space at bottom of any source block (pre tag)
but this may be unrelated with that commit.

---
WBR, Vladimir Lomov

-- 
The Seventh Commandments for Technicians:
Work thou not on energized equipment, for if thou dost, thy fellow
workers will surely buy beers for thy widow and console her in other
ways.



[O] :EXPORT_FILE_NAME: in new exporter possible?

2013-03-21 Thread Rainer Stengele
Hi,

Exporting to HTML I cannot get EXPORT_FILE_NAME to work:

:PROPERTIES:
:VISIBILITY: folded
#+SETUPFILE: ~/org/GLOBAL_SETUP_DIPLAN.org
#+CATEGORY: ROB
:EXPORT_FILE_NAME:
//max2008/diplan/0PROJEKT/Kunden/ROB/Status-ROB-Electronic-20130321b.html
:END:

:EXPORT_FILE_NAME: entry is in one line.

Is this still possible with the new exporter?
How to deal with spaces in filepaths?

Thanks,
Rainer

Org-mode version 8.0-pre (release_8.0-pre-147-gfbb30a)




Re: [O] Seems that commit 'e8742b78e0a982a7fca0bf25b4f3551be58660ef' breaks html output

2013-03-21 Thread Bastien
Hi Vladimir,

Vladimir Lomov  writes:

> Seems that commit 'e8742b78e0a982a7fca0bf25b4f3551be58660ef' breaks
> code blocks output: they are indented with all other text that is
> wrong.
>
> As I understand this is intended, that commit mentions 'org-html-indent'
> variable but IMHO it is strange that this option is on by default or
> alternatively code works bad with source blocks while exporting.

Yes, it should be nil by default, this is now the case, thanks!

> Also I see strange extra space at bottom of any source block (pre tag)
> but this may be unrelated with that commit.

Maybe check the default CSS for this.

HTH,

-- 
 Bastien



Re: [O] [BUG] ob-sql.el: probably an extra paren

2013-03-21 Thread Bastien
Hi Achim,

Achim Gratz  writes:

>> If anyone knows how to setup an automated tests framework for Org,
>> feel free to go ahead, we will use it and monitor broken tests to
>> see what's wrong in the code or in the tests or in the environment
>> running the tests.
>
> We already have one, 

The test are not automatic, they are manually triggered, so we don't
have an "automated tests framework" -- or am I misunderstanding what
an automated test framework is?

> what Nick and Sebastien are asking is not to push
> commits that are known to not pass the tests.

This I 100% agree with.  I don't push commits that are known to me as
not passing the tests :)

>> Testing is a nice habit to have, but let's not make it a coercive
>> pre-requisit before pushing patches.
>
> Why not?  Any broken commits make automatic bisecting impossible and they
> are a constant source of irritation for folks who forget to test their new
> Org pulls before using or installing them.
>
>> My whole thinking here is well captured by Rich Hickey:
>
> The citation you gave doesn't even apply to the question at hand.  It is
> about writing tests, not using the tests you already have.

It is about life being short and time being spent on testing vs
coding.

If you can come up with a pre-push hook that is clever enough to
distinguish trivial-and-safe changes against those who need to be
tested, please submit one.  A trivial-and-safe change is either:

- a change against non-code files;
- a change in docstring.

I don't think this is easy to do.

Rich message wrt tests is: "Life is short, decide whether you want to
spend it on testing or coding" -- so I think it's relevant here.  

I often have only 10 minutes at hand, make a few trivial changes, and
push.  For me, a mandatory pre-push hook running the test suite would
be a useless burden for 50% of my commits.  This would irritate me.

We might agree to disagree on this.

-- 
 Bastien



Re: [O] saving state of buffer

2013-03-21 Thread Carsten Dominik
Here is a patch that would change the default values for bookmark-jump and 
saveplace.
Bastien, what do you think?

- Carsten

diff --git a/lisp/org.el b/lisp/org.el
index bf74afd..1d48338 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -916,7 +916,7 @@ contexts.  See `org-show-hierarchy-above' for valid 
contexts."
   :group 'org-reveal-location
   :type org-context-choice)
 
-(defcustom org-show-siblings '((default . nil) (isearch t))
+(defcustom org-show-siblings '((default . nil) (isearch t) (bookmark-jump t))
   "Non-nil means show all sibling heading when revealing a location.
 Org-mode often shows locations in an org-mode file which might have
 been invisible before.  When this is set, the sibling of the current entry


On 21 mrt. 2013, at 12:59, Rainer M Krug  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 21/03/13 12:38, Carsten Dominik wrote:
>> 
>> On 21 mrt. 2013, at 12:25, Rainer M Krug  wrote:
>> 
>> On 21/03/13 12:02, Carsten Dominik wrote:
> This is nice, does anyone of you have write permissions on Work to add 
> this?
>> 
>> I should have, but I have never done it.
>> 
>>> Well, you can try, or else I'll do it.
> 
> I could, and I would (I was looking for an excuse for a long time), but I 
> have no time before
> middle next week. I can put it into my TODO items for then.
> 
> I just relised, I was only registered to repo.or.cz - but I will register as 
> described at
> 
> http://orgmode.org/worg/worg-git.html
> 
> If it should be up earlier, please feel free to do it.
> 
> Cheers,
> 
> Rainer
> 
> 
>> 
>>> - Carsten
>> 
>> 
>> Rainer
>> 
> 
> - Carsten
> 
> On 21 mrt. 2013, at 11:16, 42 147  > wrote:
> 
>>> Good - May I suggest, that you write a step - by step howto and mail it 
>>> here or even
>>> add it to worg? This would be a useful addition.
>> I adapted this thread the best I could. Feel free to do with it what you 
>> wish.
>> 
>> QUESTION
>> 
>> How do I restore the state of my buffer where I left it?
>> 
>> ANSWER
>> 
>> When Emacs first visits an Org file, the global state is set to 
>> OVERVIEW, i.e., only
>> the top level headlines are visible.
>> 
>> If you wish Emacs to restore the position of point where you left it in 
>> your previous 
>> session, add the following code to your .emacs:
>> 
>> (require 'saveplace) (setq-default save-place t)
>> 
>> If you wish Org-mode to restore the folded state of the buffer (not just 
>> the position
>> of point), you can either use customize, or add the following to .emacs:
>> 
>> (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))
>> 
>> If you use customize, take look at the variable org-show-siblings and 
>> set a special
>> context for bookmark-jump. This will work for both saveplace and 
>> bookmarks.
>> 
>> Org-mode has very precise control for situations when a jump into 
>> invisible text
>> happens, for example by isearch or by bookmark-jump or saveplace. There 
>> are companion
>> variables, and they are all in the customization group 
>> org-reveal-context.
>> 
>> 2013/3/21 Rainer M Krug mailto:r.m.k...@gmail.com>>
>> 
> On 21/03/13 10:28, Carsten Dominik wrote:
> 
>> On 21 mrt. 2013, at 10:23, Rainer M Krug > > wrote:
> 
>> On 21/03/13 10:05, 42 147 wrote:
> Thanks David, but what Carsten suggested completely resolved my 
> problem (it
> applies not just to bookmarks; it fully preserves my buffer's folded 
> state after
> adding Christoph's code to my .emacs).
> 
>> Good - May I suggest, that you write a step - by step howto and mail it 
>> here or even
>> add it to worg? This would be a useful addition.
> 
>>> I guess it would make a good FAQ entry.
> 
> Haven't thought about these - they would even be better then worg.
> 
> 
>>> I also think that maybe the current default is not good, show-siblings 
>>> should
>>> probably default to t for bookmark jump.
> 
> Would make much sense - I assume that would then open the location when 
> doing a search - 
> replace.
> 
> Cheers,
> 
> Rainer
> 
> 
>>> - Carsten
> 
> 
> But I should also thank you for finding the words I struggled to find 
> ("folded 
> state").
> 
>> And we have to thank you for this useful question!
> 
>> Cheers,
> 
>> Rainer
> 
> 
> I feel honored that royalty stepped into the discussion.
> 
> Herzlichen Dank,
> 
> 42
> 
> 
> 2013/3/21 Carsten Dominik  
> >>
> 
>>>

Re: [O] Unwanted scrolls from org-agenda-todo

2013-03-21 Thread Miro Bezjak
Ok. Thanks for the info.

Regards,
Miro



On Thu, Mar 21, 2013 at 12:10 AM, Bastien  wrote:

> Hi Miro,
>
> Miro Bezjak  writes:
>
> > `org-agenda-todo' seems to scroll (up or down - depending on how
> > you're looking at it) in a way to make the task, currently marked as
> > DONE, be the first line in the window.
> >
> > I briefly looked at source code of `org-agenda-todo' but could find
> > anything odd. Though, I'm, by far, not an expert.
> >
> > So, got any clues?
>
> This is a bug in 7.9.3f which have been fixed in master, you'll be
> able to get rid of it by updating to 8.0.  Sooonish.
>
> --
>  Bastien
>


Re: [O] [BUG] ob-sql.el: probably an extra paren

2013-03-21 Thread Nicolas Richard
Bastien  writes:
> I often have only 10 minutes at hand, make a few trivial changes, and
> push.  For me, a mandatory pre-push hook running the test suite would
> be a useless burden for 50% of my commits.  This would irritate me.

orgmode.org could run a post-receive hook and report any failure to the
committer ? I don't know if orgmode.org can run the testsuite though.

-- 
N.




Re: [O] :EXPORT_FILE_NAME: in new exporter possible?

2013-03-21 Thread Eric Abrahamsen
Rainer Stengele  writes:

> Hi,
>
> Exporting to HTML I cannot get EXPORT_FILE_NAME to work:
>
> :PROPERTIES:
> :VISIBILITY: folded
> #+SETUPFILE: ~/org/GLOBAL_SETUP_DIPLAN.org
> #+CATEGORY: ROB
> :EXPORT_FILE_NAME:
> //max2008/diplan/0PROJEKT/Kunden/ROB/Status-ROB-Electronic-20130321b.html
> :END:
>
> :EXPORT_FILE_NAME: entry is in one line.

Tangential to the actual problem here, when I opened this message in
gnus, my minibuffer showed me two copies of the error:

Cannot read file "/home/eric/org/GLOBAL_SETUP_DIPLAN.org"

Should I be a little worried that a #+SETUPFILE command in a news
message I receive tries to load an arbitrary filepath on my local
machine??




[O] Problem with C-u > and g

2013-03-21 Thread John Wiegley
If I use C-u > to hide a category of tasks from the agenda, and then refresh
the agenda with 'g', it will show me only the category I had hidden!  In other
words, it inverts the meaning of the hiding.

John



Re: [O] saving state of buffer

2013-03-21 Thread Thomas S. Dye
42 147  writes:

>> Good - May I suggest, that you write a step - by step howto and mail
>> it here or even add it to
>> worg? This would be a useful addition.
>
> I adapted this thread the best I could. Feel free to do with it what you
> wish.
>
> QUESTION
>
> How do I restore the state of my buffer where I left it?
>
> ANSWER
>
> When Emacs first visits an Org file, the global state is set to
> OVERVIEW, i.e., only the top level headlines are visible.
>
> If you wish Emacs to restore the position of point where you left it in
> your previous session, add the following code to your .emacs:
>
> (require 'saveplace)
> (setq-default save-place t)
>
> If you wish Org-mode to restore the folded state of the buffer (not just
> the position of point), you can either use customize, or add the following
> to .emacs:
>
> (setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))

This doesn't work for me:

Debugger entered--Lisp error: (wrong-type-argument listp t)
  mapcar(#[(f) "T  \306\n!\204\n:\203\307\n\"\202\n*\211\203`\310\f
\"\203`\311\312
\"\311\313
\"D\306\n!\203B\314\n\"\202\\\n\203O\314\315\n#\202\\\203Z@\202\\*\202a
\306\n!\204y\n:\203y\307\n\"\202z\n*\206\200
C\306\n!\203\223\314\n\"\202\255\n\203\240\314\315\n#\202\255\203\253@\202\255,\207"
 [i *orgtbl-efmt* fmt efmt orgtbl-exp-regexp f functionp plist-get string-match 
match-string 1 2 apply format args *orgtbl-fmt* *orgtbl-default-fmt*] 6] 
(bookmark-jump . t))
  orgtbl-format-line((bookmark-jump . t))
  orgtbl-format-section(nil)
  orgtbl-to-generic(((default) (isearch t) (bookmark-jump . t)) 
(:remove-newlines t :tstart nil :tend nil :hline "|---" :sep " | " :lstart "| " 
:lend " |" :fmt (lambda (cell) (format "%s" cell
  orgtbl-to-orgtbl(((default) (isearch t) (bookmark-jump . t)) (:fmt (lambda 
(cell) (format "%s" cell
  org-babel-insert-result(((default) (isearch t) (bookmark-jump . t)) 
("replace") ("emacs-lisp" "(require 'saveplace)\n(setq-default save-place 
t)\n(setq org-show-siblings '((default) (isearch t) (bookmark-jump . t)))" 
((:comments . "") (:shebang . "") (:cache . "no") (:padline . "") (:noweb . 
"yes") (:tangle . "yes") (:exports . "code") (:results . "replace") (:session . 
"none") (:padnewline . "yes") (:hlines . "yes") (:colnames . "no") 
(:result-type . value) (:result-params "replace") (:rowname-names) 
(:colname-names)) "" nil 0) nil 0 "emacs-lisp")
  org-babel-execute-src-block(nil ("emacs-lisp" "(require 
'saveplace)\n(setq-default save-place t)\n(setq org-show-siblings '((default) 
(isearch t) (bookmark-jump . t)))" ((:comments . "") (:shebang . "") (:cache . 
"no") (:padline . "") (:noweb . "yes") (:tangle . "yes") (:exports . "code") 
(:results . "replace") (:session . "none") (:padnewline . "yes") (:hlines . 
"yes") (:colnames . "no") (:result-type . value) (:result-params "replace") 
(:rowname-names) (:colname-names)) "" nil 0))
  org-babel-execute-src-block-maybe()
  org-babel-execute-maybe()
  org-babel-execute-safely-maybe()
  run-hook-with-args-until-success(org-babel-execute-safely-maybe)
  org-ctrl-c-ctrl-c(nil)
  call-interactively(org-ctrl-c-ctrl-c nil nil)

All the best,
Tom


-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] [BUG] ob-sql.el: probably an extra paren

2013-03-21 Thread Yagnesh Raghava Yakkala

Hello Bastien,

We can use travis-ci for automated tests, I just run tests for org-mode¹ on 
travis
with emacs-snapshot. Magit has been setup recently to run tests for multiple
emacs versions² (emacs23, emacs24 and snapshot). travis has a facility to send
mails if a test fails. 

I see you have org-mode repo on your github account, all we need to do put a
post recieve hook to mirror org-mode repo to github.

we can adopt magit script³ to org-mode as it won't be synced to emacs
trunk.

what do you think?

Thanks.,

¹  https://travis-ci.org/yyr/org-mode/builds/5692183
²  https://travis-ci.org/magit/magit
³  https://github.com/magit/magit/blob/master/.travis.yml

-- 
ఎందరో మహానుభావులు అందరికి వందనములు.
YYR



Re: [O] Problem with C-u > and g

2013-03-21 Thread Bastien
Hi John,

"John Wiegley"  writes:

> If I use C-u > to hide a category of tasks from the agenda, and then refresh
> the agenda with 'g', it will show me only the category I had hidden!  In other
> words, it inverts the meaning of the hiding.

This has been recently fixed in master.

Thanks for reporting this,

-- 
 Bastien



Re: [O] Errors after upgrading emacs to 24.3.1 and org to 7.9.4

2013-03-21 Thread Eric S Fraga
Chris Henderson  writes:

> I have upgraded emacs from version 24 to 24.3.1 via homebrew on os x
> mountain lion and every time I start emacs I get error:
>
> error: Invalid face, modeline

modeline changed to mode-line a while back although probably sometime
between 24 and 24.3.1 (I track emacs-snapshot).  It could be that you
have a custom face set that depends on modeline?
-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1199-g3a0e55




Re: [O] [BUG] ob-sql.el: probably an extra paren

2013-03-21 Thread Bastien
Hello Yagnesh,

Yagnesh Raghava Yakkala  writes:

> We can use travis-ci for automated tests, I just run tests for org-mode¹ on 
> travis
> with emacs-snapshot. Magit has been setup recently to run tests for multiple
> emacs versions² (emacs23, emacs24 and snapshot). travis has a facility to send
> mails if a test fails. 

Great!

> I see you have org-mode repo on your github account, all we need to do put a
> post recieve hook to mirror org-mode repo to github.
>
> we can adopt magit script³ to org-mode as it won't be synced to emacs
> trunk.
>
> what do you think?

I think this would be *fantastic*.  I have no time for this at the
moment, but anyone willing to help setting this up would be my hero.

Really :)

This is efficient and not intrusive.

To give another argument about why I think a pre-push hook on the
developer's side is wrong, imagine this scenario:

- developer A pushes a commit, all tests pass
- developer B works on latest HEAD assuming all tests pass
- he wants to push his commits but the tests fail
- he naturally thinks it's a problem with *his* changes
- ... but it is not ...
- M-x doctor RET

This happened for real: recently some tests passed under Emacs <24.3
but failed under Emacs >=24.3.  If we had a pre-push hook, I would not
even be able to push the fix, I would have to deactive the hook first.

Best,

-- 
 Bastien



Re: [O] Slowdown when editing tables with horizontal lines

2013-03-21 Thread Bastien
Peder Stray  writes:

> It happens from time to time, but not always... And I think it may be
> related to rainbow-mode for some reason. I'll try to enable debug
> when it happens the next time to see where it hangs.

All right, thanks for letting us know!

-- 
 Bastien



Re: [O] [BUG] ob-sql.el: probably an extra paren

2013-03-21 Thread Achim Gratz

Am 21.03.2013 14:41, schrieb Bastien:

The test are not automatic, they are manually triggered, so we don't
have an "automated tests framework" -- or am I misunderstanding what
an automated test framework is?


What you probably have in mind is a continuous integration framework 
that triggers the test framework.



This I 100% agree with.  I don't push commits that are known to me as
not passing the tests :)


The cavalier attitude is not funny, smiley or not.


It is about life being short and time being spent on testing vs
coding.


No, this is about doing it right or doing it twice.

I have a fairly slow machine, but running "make test" or even "make 
test-dirty" with all tests enabled has not consumed an appreciable 
amount of my lifetime and probably never will.  It has however saved me 
some pushes that had incomplete commits or some "obviously safe" last 
minute changes that turned out not to be or triggered some unexpected 
behaviour someplace else.  I have also spent a good deal of time weeding 
out false positives from bisects that could have been automated if one 
could assume that each commit was always passing its tests.



If you can come up with a pre-push hook that is clever enough to
distinguish trivial-and-safe changes against those who need to be
tested, please submit one.  A trivial-and-safe change is either:

- a change against non-code files;
- a change in docstring.

I don't think this is easy to do.


It is also a waste of time and not necessary.  Simply run the tests on 
each commit touching lisp/ and testing/ and reject the data from the 
push if any test fails.  Not sure if Jason wants to put this on the 
server, though.



Regards,
--
Achim.

(on the road :-)




Re: [O] [BUG] ob-sql.el: probably an extra paren

2013-03-21 Thread Bastien
There is no need to be unpleasant and to describe my attitude as
"cavalier".

Please see my reply to Yagnesh.  

It clearly describes a situation where automatically running tests
with a pre-push hook would be a problem.

-- 
 Bastien



[O] tests with travis-ci (was: [BUG] ob-sql.el: probably an extra paren)

2013-03-21 Thread Yagnesh Raghava Yakkala

Hello Bastien,

On Mar 22 2013, Bastien  wrote:

> I think this would be *fantastic*.  I have no time for this at the
> moment, but anyone willing to help setting

travis is trivial enough to start using right away. I can make a patch for that.

> This is efficient and not intrusive.
>
> To give another argument about why I think a pre-push hook on the
> developer's side is wrong, imagine this scenario:
>
> - developer A pushes a commit, all tests pass
> - developer B works on latest HEAD assuming all tests pass
> - he wants to push his commits but the tests fail
> - he naturally thinks it's a problem with *his* changes
> - ... but it is not ...
> - M-x doctor RET
>
> This happened for real: recently some tests passed under Emacs <24.3
> but failed under Emacs >=24.3.  If we had a pre-push hook, I would not
> even be able to push the fix, I would have to deactive the hook first.

IIUC, it can't be done with travis. After little googling around, I found that
such a conditional committing can be made if we have a continuous integration
server (eg: jenkins) is installed and setup on org-mode server.

How about using travis first.?

Thanks.,
-- 
ఎందరో మహానుభావులు అందరికి వందనములు.
YYR



Re: [O] Different spacing in html output compared to info and pdf

2013-03-21 Thread Nicolas Goaziou
Hello,

Bastien  writes:

> the attached (dirty) patch fixes it.  It's clearly not the right
> approach, though.  I hope Nicolas can have a look soon, as the problem
> affect all uses of snippets in macros.

What about the following patch?

The export framework usually treats differently empty string from nil
output. Only in the former blank lines/white spaces are preserved. With
this patch it will not be possible anymore to make this distinction with
export snippets.

What do you think?

I'll add some tests in test-ox.el if this patch is to be applied.


Regards,

-- 
Nicolas Goaziou
>From 9fed50f6760aa34a426981d3606285c090ffd5bd Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou 
Date: Thu, 21 Mar 2013 20:08:24 +0100
Subject: [PATCH] ox: White spaces after export snippets are never ignored

* lisp/ox.el (org-export-data): White spaces after export snippets are
  never ignored.

Back-end developers should pay attention to the fact that white spaces
before and after an ignored export snippet now are accumulated in the
output.
---
 lisp/ox.el | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/lisp/ox.el b/lisp/ox.el
index a545bb9..160f73f 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -2062,8 +2062,12 @@ Return transcoded string."
 			 (eq (plist-get info :with-archived-trees) 'headline)
 			 (org-element-property :archivedp data)))
 		(let ((transcoder (org-export-transcoder data info)))
-		  (and (functionp transcoder)
-		   (funcall transcoder data nil info
+		  (or (and (functionp transcoder)
+			   (funcall transcoder data nil info))
+		  ;; Export snippets never return a nil value so
+		  ;; that white spaces following them are never
+		  ;; ignored.
+		  (and (eq type 'export-snippet) ""
 	   ;; Element/Object with contents.
 	   (t
 		(let ((transcoder (org-export-transcoder data info)))
-- 
1.8.2



Re: [O] Bug formatting source code in new latex exporter

2013-03-21 Thread Nicolas Goaziou
Hello,

Rick Frankel  writes:

> There is a bug with ox-latex and long listings. If the listing has a
> label (name) or caption, it is wrapped in a '\begin{listing}[H]'
> block. This causes listings longer than one page to be truncated if
> they have labels, which means you can't have callable code longer than
> one page (~40 lines for US Letter paper) and print it with minted.
>
> The problem is on line 2178 of ox-latex:
>  
>   (when (or label caption)
>
> should probably be:
>
>   (when caption
>
>
> An example document is below.

This is a limitation from floats. But wrapping code within a listings
environment is, IMO, the right thing to do, otherwise, cross-references
will not work.

A hack around this would be to drop the environment when source code
exceeds 30 lines, but that's cheesy for sure.

Or, maybe, drop the environment when there's only the label, but only
when there is no cross-reference pointing to the src-block within the
whole parse-tree.


Regards,

-- 
Nicolas Goaziou



Re: [O] Unescape :help-echo in links

2013-03-21 Thread Florian Beck
Bastien  writes:

> Can you resend it as a proper patch with a changelog?

Like this?

>From ca9c612208a2528a27b648973cfbf6e8d0801f94 Mon Sep 17 00:00:00 2001
From: Florian Beck 
Date: Thu, 21 Mar 2013 21:15:50 +0100
Subject: [PATCH] Unescape :help-echo for links

* lisp/org.el (org-activate-bracket-links): remove escapes
 from help string

TINYCHANGE

---
 lisp/org.el |5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 7aac63b..3fbd549 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5806,10 +5806,7 @@ by a #."
   (if (and (re-search-forward org-bracket-link-regexp limit t)
 	   (not (org-in-src-block-p)))
   (let* ((hl (org-match-string-no-properties 1))
-	 (help (concat "LINK: " hl))
-	 ;; FIXME: Above we should remove the escapes.  But that
-	 ;; requires another match, protecting match data, a lot
-	 ;; of overhead for font-lock.
+	 (help (concat "LINK: " (save-match-data (org-link-unescape hl
 	 (ip (org-maybe-intangible
 		  (list 'invisible 'org-link
 			'keymap org-mouse-map 'mouse-face 'highlight
-- 
1.7.10.4



-- 
Florian Beck


Re: [O] tests with travis-ci

2013-03-21 Thread Bastien
Hi Yagnesh,

Yagnesh Raghava Yakkala  writes:

> travis is trivial enough to start using right away. I can make a
> patch for that.

Thanks in advance for this.

> IIUC, it can't be done with travis. After little googling around, I found that
> such a conditional committing can be made if we have a continuous integration
> server (eg: jenkins) is installed and setup on org-mode server.

Yes.  The limitation of the pre-push hook comes from the fact that
various developers may have various testing environments, no one
should be prevented from pushing by the fact that tests do not pass
for someone else.

> How about using travis first.?

I fully agree.  Let me know if there is anything I should do.

Best,

-- 
 Bastien



[O] Macro expansion to control beamer template

2013-03-21 Thread Florian Adamsky
Hello,

at the moment I revise my course lectures and of course I use org-mode
for that. I was searching for an easy way to create fullframe. After
searching a bit in the mailing list, I found out that the 8.0-pre with
its new beamer exporter already has this functionality. Therefore I
switch to the current git-version. Wonderful work by the way! 

I created a beamer template file that I control with macros. My
org-mode config file has the following snippet:

(add-to-list 'org-latex-classes
(list "beamer" 
  (file-string (concat custom-basedir "templates/beamer.tex")) 
  '("\\section{%s}" ."\\section*{%s}") 
  '("\\subsection{%s}" . "\\subsection*{%s}")
  '("\\subsubsection{%s}" . "\\subsubsection*{%s}")))


The beamer.tex file contains snippets like that:

\documentclass[xetex,aspectratio={{{BEAMERRATIO}}}]{beamer}

[...]

\newcommand{\myEmail}{\urlEMAIL}
\newcommand{\myUrl}{\urlURL}
\newcommand{\myShortConf}SHORTCONF
\newcommand{\myLongConf}LONGCONF

This does not work anymore. After searching a bit in the ml archive I
have read that the macro is not as powerful as before. The macro works
only in the org file and not in my template file. What is the best way
to work around this problem?

Thanks in Advance.

Best
-- 
Florian Adamsky
http://florian.adamsky.it/



Re: [O] [RFC] Org version of the Org manual

2013-03-21 Thread Nicolas Goaziou
Hello,

Achim Gratz  writes:

> Hi Tom,
>
> I have a patch that should fix your problems with some characters in
> macro expansions:
>
>
> From 27b22d17f629a50bd485a0320dac45616d7ceb7f Mon Sep 17 00:00:00 2001
> From: Achim Gratz 
> Date: Sun, 17 Mar 2013 10:20:10 +0100
> Subject: [PATCH] fix macro expansion with separators and backslashes
>
> * lisp/org-element.el (org-element-macro-parser): Do not try to
>   "repair bad splits", only split at the correct places.
> * lisp/org-macro.el (org-macro-expand): Do not try to interpret the
>   macro replacement text as a regex.
>
> Allow to write macros like {{{kbd(\\)}}} and {{{kbd(\\,)}}} and expand
> them correctly.  A backslash at the end of an argument was incorrectly
> trying to cons the next argument (which may not exist).
> ---
>  lisp/org-element.el | 16 +---
>  lisp/org-macro.el   |  2 +-
>  2 files changed, 6 insertions(+), 12 deletions(-)
>
> diff --git a/lisp/org-element.el b/lisp/org-element.el
> index ba2461a..337cad0 100644
> --- a/lisp/org-element.el
> +++ b/lisp/org-element.el
> @@ -3117,20 +3117,14 @@ (defun org-element-macro-parser ()
> (post-blank (progn (goto-char (match-end 0))
>(skip-chars-forward " \t")))
> (end (point))
> -   (args (let ((args (org-match-string-no-properties 3)) args2)
> +   (args (let ((args (org-match-string-no-properties 3)))
> (when args
>   ;; Do not use `org-split-string' since empty
>   ;; strings are meaningful here.
> - (setq args (split-string args ","))
> - (while args
> -   (while (string-match "\\'" (car args))
> - ;; Repair bad splits, when comma is protected,
> -;; and thus not a real separator.
> - (setcar (cdr args) (concat (substring (car args) 0 -1)
> -"," (nth 1 args)))
> - (pop args))
> -   (push (pop args) args2))
> - (mapcar 'org-trim (nreverse args2))
> + (setq args (replace-regexp-in-string "," "\000" args))
> + (setq args (replace-regexp-in-string "\000" "," args))
> + (setq args (split-string args "\000"))
> + (mapcar 'org-trim args)

I suggest the following code instead, which allows to escape the
escaping backslash so the comma is not escaped:

  (args (mapcar 'org-trim
(split-string
 (replace-regexp-in-string
  "\\(+\\)?\\(,\\)"
  (lambda (str)
(let ((slashes (match-string 1 str)))
  (if (or (not slashes) (evenp (length slashes))) "\\1\000"
(concat (make-string (1- (length slashes)) ?\\) ","
  (org-match-string-no-properties 3))
 "\000")))

What do you think about it?

> @@ -137,7 +137,7 @@ (defun org-macro-expand (macro templates)
> (org-element-property :args macro))
>;; No argument: remove place-holder.
>""))
> -template)))
> +template nil 'literal)))

I agree on that part.

Also, a test or two should be added to "test-org-element/macro-parser"
in test-org-element.el.


Regards,

-- 
Nicolas Goaziou



Re: [O] Macro expansion to control beamer template

2013-03-21 Thread Sebastien Vauban
Hello Florian,

Florian Adamsky wrote:
> at the moment I revise my course lectures and of course I use org-mode
> for that. I was searching for an easy way to create fullframe. After
> searching a bit in the mailing list, I found out that the 8.0-pre with
> its new beamer exporter already has this functionality. Therefore I
> switch to the current git-version. Wonderful work by the way! 
>
> I created a beamer template file that I control with macros. My
> org-mode config file has the following snippet:
>
> (add-to-list 'org-latex-classes
> (list "beamer" 
>   (file-string (concat custom-basedir "templates/beamer.tex")) 
>   '("\\section{%s}" ."\\section*{%s}") 
>   '("\\subsection{%s}" . "\\subsection*{%s}")
>   '("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
>
>
> The beamer.tex file contains snippets like that:
>
> \documentclass[xetex,aspectratio={{{BEAMERRATIO}}}]{beamer}
>
> [...]
>
> \newcommand{\myEmail}{\urlEMAIL}
> \newcommand{\myUrl}{\urlURL}
> \newcommand{\myShortConf}SHORTCONF
> \newcommand{\myLongConf}LONGCONF
>
> This does not work anymore. After searching a bit in the ml archive I
> have read that the macro is not as powerful as before. The macro works
> only in the org file and not in my template file. What is the best way
> to work around this problem?

Would an INCLUDE in the Org file do the work for you?

Would you agree with such a solution (having to explicitly put one extra line
in all your Org Beamer files)?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] latex figure scaling question, backward compatibility and outdated manual

2013-03-21 Thread Nicolas Goaziou
Hello,

Thomas Alexander Gerds  writes:

> I was learning about this by guessing around for some time ... it is
> surprisingly hard to edebug the export process (any hints?).

This is a bit vague.

> next, the following educated guess does not work:
>
> #+ATTR_LaTeX: :width 5cm :angle 90

This is because :angle is not recognized as a special keyword. Unless it
is implemented in `org-latex--inline-image', it should go in the
miscellaneous :options keyword, e.g.

  #+attr_latex: :width 5cm :options angle=90

> instead one needs to say
>
> #+ATTR_LaTeX: :width 5cm,angle 90

Well, that works but only as a side-effect.


Regards,

-- 
Nicolas Goaziou



[O] [BUG] [ODT] Annotations break paragraphs

2013-03-21 Thread Christian Moe

Hi,

Paragraphs currently break around ODT annotations when they
shouldn't. Annotations are a useful feature of the ODT exporter:

  There is an annotation by the original author here
  #+BEGIN_ANNOTATION
I never meant to break this paragraph.
  #+END_ANNOTATION
  in the middle of the paragraph.

The expected result would be one paragraph, with the annotation
displayed as a comment in the page margin, anchored after the word
"here".

The new exporter adds paragraph breaks around the anchor for the
marginal comment. This is the wrong behavior in all cases. These
comments are meant to be anchored inside paragraphs that are not meant
to be broken. (Using a fresh Org-mode version 8.0-pre on Emacs 24.3.1.)

The old exporter simply wrapped the contents of the annotation block
(plus date/author info) in
"\n%s\n" within the
paragraph. 

The ODT exporter's annotation blocks are a bit of a special case. They
use special-block syntax. But they're not really blocks, since they're
supposed to live inside other blocks (paragraphs). I suppose that doesn't
agree well with the new exporter.

Yours,
Christian








Re: [O] [Out-of-Thread] Re: [RFC] Org syntax (draft)

2013-03-21 Thread Nicolas Goaziou
Hello,

Carsten Dominik  writes:

> First of all, we should not see Org as just another plain text markup
> language (no offense meant, I am sure, and none taken). Because of its
> unique treatment of source code inclusion, source code markup, and
> executability, it is very much unique, I think.

Indeed. Or, to put it differently, an external tool wishing to export an
/any/ Org document has to implement Babel in addition to the parser.

> For example, every users setup has some dependency of parser behavior
> on external variables: todo keywords. The way this is fixed in the
> sense that we can guarantee a stable parsing of such a system is to
> tell people that including the TODO keyword definitions with a #+TODO
> line into the file. So you can have a global setting in a global
> customization variable to make things easy for yourself and get good
> behavior in every new file you open, but you can stabilize a file for
> the parser with in-buffer settings when you need compatibility for
> other users.
>
> There are a few exceptions that Nicolas has pointed out in this
> thread. The COMMENT keyword is one. We could define an in-buffer
> setting for it, or we could just fix it, the pain here would be
> minimal.

I think we should only add in-buffer settings for important parts of Org
syntax (e.g. TODO keywords). A hard-coded value for small details like
COMMENT keyword or EFFORT property is good enough, IMO.

> The reason why the emphasis regexp components were made configurable
> in the first place is because when the feature was introduced, I had
> no idea what would work, and I redesigned this part several times
> over. Emphasis is a very heuristic system, the character that are
> allowed before and after the markers are necessarily a compromise, and
> we will always find people for who the chosen selection will not work.
>
> That is why I would like to argue for keeping this part hackable, even
> if I agree that the official definition should be fixed. Keeping this
> variable a customize variable invites changes also by people who do
> not really know what they are doing. Turning it into a defvar or
> defconst and somewhere document how to hack around the restriction if
> you really need to sounds like a good solution for me.

We can also use a very simple and tolerant regexp (e.g. =[^\000]+=), and
introduce a syntax to escape markers for fine-grained control.

> Nicolas, I would assume that your wish to disallow customization is
> focused on the regexp components, and the marker characters for
> emphasis, but not on the possibility to change the in-buffer face that
> is being used to highlight the stuff in the buffer?

That's correct.


Regards,

-- 
Nicolas Goaziou



Re: [O] RFC: inheritance of export attributes

2013-03-21 Thread Nicolas Goaziou
Hello,

Aaron Ecay  writes:

> I have noticed a difficulty with :results table drawer babel blocks.  It
> isn’t possible to put ATTR_LATEX keywords on the table in that case.  If
> they are placed outside of the drawer, they apply to the drawer and not
> the table.  If they are placed inside it, they will be deleted when the
> block is reevaluated.

What about evaluating it, inserting the attr_latex keyword, and then
disabling evaluation for that block?

> Would it be possible for ATTR_FOO attributes to be inherited by child
> elements, so that this case would work?  It would solve this problem,
> and also allow things like:
>
> #+ATTR_LATEX: :width 200px
> :DRAWER:
> # several images, all of which should be 200 px wide
> :END:
>
> I thought I would ask for comments, since this might break other things
> in ways I’m not thinking of.

I understand the interest for the problem at hand, but, generally
speaking, I tend to think it could lead to confusion.

Attributes inheritance is but a hack used to parametrize inline images,
until we agree on a proper link syntax including its own attributes.

Another way to solve the problem would be to let Babel generate
attributes from source code with a specific keyword, e.g.:

  #+begin_src :results table :attr-latex ":align lll"
  ...
  #+end_src


Regards,

-- 
Nicolas Goaziou



Re: [O] Macro expansion to control beamer template

2013-03-21 Thread Florian Adamsky
Dear Sebastien,

On Thu, 21 Mar 2013 22:10:26 +0100 Sebastien Vauban wrote:

> > I created a beamer template file that I control with macros. My
> > org-mode config file has the following snippet:
> >
> > (add-to-list 'org-latex-classes
> > (list "beamer" 
> >   (file-string (concat custom-basedir "templates/beamer.tex")) 
> >   '("\\section{%s}" ."\\section*{%s}") 
> >   '("\\subsection{%s}" . "\\subsection*{%s}")
> >   '("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
> >
> >
> > The beamer.tex file contains snippets like that:
> >
> > \documentclass[xetex,aspectratio={{{BEAMERRATIO}}}]{beamer}
> >
> > [...]
> >
> > \newcommand{\myEmail}{\urlEMAIL}
> > \newcommand{\myUrl}{\urlURL}
> > \newcommand{\myShortConf}SHORTCONF
> > \newcommand{\myLongConf}LONGCONF
> >
> > This does not work anymore. After searching a bit in the ml archive
> > I have read that the macro is not as powerful as before. The macro
> > works only in the org file and not in my template file. What is the
> > best way to work around this problem?
> 
> Would an INCLUDE in the Org file do the work for you?
> 
> Would you agree with such a solution (having to explicitly put one
> extra line in all your Org Beamer files)?

Good idea! I think I can live with one addition line, when I will
customize org-beamer-insert-options-template :) I'll give it a try
tomorrow.

Thanks for the tip!

Best
-- 
Florian Adamsky
http://florian.adamsky.it/



Re: [O] tests with travis-ci

2013-03-21 Thread Yagnesh Raghava Yakkala

[CC'ed to Yann Hodique to acknowledge him]

Hello Bastien,

I am attaching a patch, please have a look. (especially change in org-test.el)

It is directly copied from Magit (with one minor change). It uses Yann's
virtualenv-emacs¹ python package which creates multiple emacs environments.

> Let me know if there is anything I should do.

1) Mirror org-mode to your github repo (https://github.com/bzg/org-mode) with 
post
   receive hook.
   does org-mode.org server uses gitolite to manage git repos?
   if so https://github.com/miracle2k/gitolite-simple-mirror may be useful. (I
   use it on my server for mirroring)

2) Allow travis to access your org-mode repository (This must be very easy) 
   - Create an account on https://travis-ci.org., just click "sign in with
   github"
   - activate tests org-mode repo at https://travis-ci.org/profile


>From 2666c2ec2a85ca5d68f61b49081d82d1e5165a2d Mon Sep 17 00:00:00 2001
From: Yakkala Yagnesh Raghava 
Date: Fri, 22 Mar 2013 06:37:48 +0900
Subject: [PATCH] * .travis.yml: travis-ci setup (adopted from magit sources).
 * testing/org-test.el: remove requiring ert-x (needed for < emacs-24)

Signed-off-by: Yakkala Yagnesh Raghava 
---
 .travis.yml | 24 
 testing/org-test.el |  1 -
 2 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 .travis.yml

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000..2334034
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,24 @@
+language: python
+python:
+  - "2.7"
+env:
+  matrix:
+- EMACS=emacs
+- EMACS=emacs24
+- EMACS=emacs-snapshot
+before_install:
+  - if [ "$EMACS" = "emacs24" ]; then
+sudo add-apt-repository -y ppa:cassou/emacs &&
+sudo apt-get update -qq &&
+sudo apt-get install -qq emacs24 emacs24-el;
+fi
+  - if [ "$EMACS" = 'emacs-snapshot' ]; then
+  sudo add-apt-repository -y ppa:cassou/emacs &&
+  sudo apt-get update -qq &&
+  sudo apt-get install -qq
+  emacs-snapshot-el emacs-snapshot-gtk emacs-snapshot;
+fi
+  - pip install virtualenv-emacs
+  - virtualenv_install_emacs --with-emacs=`which "$EMACS"`
+script:
+  make test
diff --git a/testing/org-test.el b/testing/org-test.el
index 0c9ca58..5f8dd52 100644
--- a/testing/org-test.el
+++ b/testing/org-test.el
@@ -79,7 +79,6 @@
 	"Parent major mode from which special major modes should inherit."
 	(setq buffer-read-only t)))
 (require 'ert)
-(require 'ert-x)
 (when (file-exists-p
 	   (expand-file-name "jump/jump.el" org-test-dir))
   (require 'jump)
-- 
1.8.1.5


There are few tests failing² with emacs-23, don't know much about them.

Finally, I haven't activated (yet) email option to send an email to author of
the commit if a test fails.

Thanks.,

¹  https://github.com/sigma/virtualenv-emacs
²  https://travis-ci.org/yyr/org-mode (direct link to log: 
https://api.travis-ci.org/jobs/5698864/log.txt?deansi=true)

-- 
ఎందరో మహానుభావులు అందరికి వందనములు.
YYR


Re: [O] :EXPORT_FILE_NAME: in new exporter possible?

2013-03-21 Thread Andreas Leha
Eric Abrahamsen  writes:

> Rainer Stengele  writes:
>
>> Hi,
>>
>> Exporting to HTML I cannot get EXPORT_FILE_NAME to work:
>>
>> :PROPERTIES:
>> :VISIBILITY: folded
>> #+SETUPFILE: ~/org/GLOBAL_SETUP_DIPLAN.org
>> #+CATEGORY: ROB
>> :EXPORT_FILE_NAME:
>> //max2008/diplan/0PROJEKT/Kunden/ROB/Status-ROB-Electronic-20130321b.html
>> :END:
>>
>> :EXPORT_FILE_NAME: entry is in one line.
>
> Tangential to the actual problem here, when I opened this message in
> gnus, my minibuffer showed me two copies of the error:
>
> Cannot read file "/home/eric/org/GLOBAL_SETUP_DIPLAN.org"
>
> Should I be a little worried that a #+SETUPFILE command in a news
> message I receive tries to load an arbitrary filepath on my local
> machine??

It was the same for me and this should definitely not happen.  So, I am
also 'a little worried'.  Is this a problem with my gnus setup or an
orgmode problem?

Regards,
Andreas




Re: [O] :EXPORT_FILE_NAME: in new exporter possible?

2013-03-21 Thread Bastien
Hi Andreas and Eric,

Andreas Leha  writes:

> It was the same for me and this should definitely not happen.  So, I am
> also 'a little worried'.  Is this a problem with my gnus setup or an
> orgmode problem?

This is a problem with Org -- I have a patch for this on my local
branch, but I will push this branch only tomorrow.

Thanks for raising this issue, it's pretty annoying.

-- 
 Bastien



Re: [O] :EXPORT_FILE_NAME: in new exporter possible?

2013-03-21 Thread John Hendy
Can you try using just "file" and "file.html" (but without quotes) and see
I'd it pops out in your working directory ?

Your current path looks like a Windows server share which might be an
issue. Even if not, simplifying the path might be one place to start .

I just successfully exported using the file path setting in a subtree
export this afternoon. (on 8.0-pre)

John
On Mar 21, 2013 8:06 AM, "Rainer Stengele" 
wrote:

> Hi,
>
> Exporting to HTML I cannot get EXPORT_FILE_NAME to work:
>
> :PROPERTIES:
> :VISIBILITY: folded
> #+SETUPFILE: ~/org/GLOBAL_SETUP_DIPLAN.org
> #+CATEGORY: ROB
> :EXPORT_FILE_NAME:
> //max2008/diplan/0PROJEKT/Kunden/ROB/Status-ROB-Electronic-20130321b.html
> :END:
>
> :EXPORT_FILE_NAME: entry is in one line.
>
> Is this still possible with the new exporter?
> How to deal with spaces in filepaths?
>
> Thanks,
> Rainer
>
> Org-mode version 8.0-pre (release_8.0-pre-147-gfbb30a)
>
>
>


[O] orgtbl-to-generic with lfmt (wrong usage or bug)

2013-03-21 Thread Gerhard

Hi,

I was happy to find out about the possibility to convert a table into 
something else, but I struggle with obtaining a particular result. I 
have addresses in a table and want them to be formatted for printing. 
This is where I am so far.


#+ORGTBL: SEND sofar orgtbl-to-generic :lfmt "%s"
| Vorname | Nachname   | Straße  |   PLZ | Ort |
|-++-+---+-|
| Karl| Mustermann | Musterstraße 10 | 12345 | Musterstadt |
| Sofie   | Musterfrau | Ortsstraße 2| 54321 | Meinestadt  |

#+BEGIN RECEIVE ORGTBL sofar
(Vorname Nachname Straße PLZ Ort)
(Karl Mustermann Musterstraße 10 12345 Musterstadt)
(Sofie Musterfrau Ortsstraße 2 54321 Meinestadt)
#+END RECEIVE ORGTBL sofar

But I would like to have

#+BEGIN RECEIVE ORGTBL wished
Vorname Nachname
Straße
PLZ Ort

Karl Mustermann
Musterstraße 10
12345 Musterstadt

Sofie Musterfrau
Ortsstraße 2
54321 Meinestadt
#+END RECEIVE ORGTBL wished

Here (http://www.canonical.org/~kragen/tmp/org-mode-notes) kragen says, 
that it works in orgtbl-mode but not in org-mode.


I would be happy, if you could tell me a way to get what I want. But I 
think also, that the help text on :lfmt in "orgtbl-to-generic" doesn't 
say what happens in my case, so there might be a bug.


:lfmt   Format for entire line, with enough %s to capture all fields.
If this is present, :lstart, :lend, and :sep are ignored.

Regards
Gerhard




Re: [O] Bug formatting source code in new latex exporter

2013-03-21 Thread Rick Frankel
At Thu, 21 Mar 2013 20:26:34 +0100,
Nicolas Goaziou wrote:
> 
> Hello,
> 
> Rick Frankel  writes:
> 
> > The problem is on line 2178 of ox-latex:
> >  
> >   (when (or label caption)
> >
> > should probably be:
> >
> >   (when caption
> >
> This is a limitation from floats. But wrapping code within a listings
> environment is, IMO, the right thing to do, otherwise, cross-references
> will not work.

Personally, I generate a lot of long listings (e.g., complex sql
statements, where i use babel and org to build up a large query) and
not a lot of cross references.

> A hack around this would be to drop the environment when source code
> exceeds 30 lines, but that's cheesy for sure.

> Or, maybe, drop the environment when there's only the label, but only
> when there is no cross-reference pointing to the src-block within the
> whole parse-tree.

That sounds like the most sophisticated approach. Still, as cheesy as
it seems, I think dropping lines of source code is a bigger
problem. The cross reference approach seems clever, but maybe a
simpler approach would simply be to add an ATTR_LaTeX(:longlisting)
and leave it up to the user. Currently, I've hacked my copy of
ox-latex as show above (ignore `label' as a float wrapping specifier).


rick



[O] (org-table-next-row) and # - bug or feature?

2013-03-21 Thread Thorsten Jolitz

Hi List, 

is this a bug or a feature:

in all 4 following examples point is in cell 1x1 when calling 

,---
| M-x org-table-next-row
`---

| A | B |
|   |   |

| 1 | 2 |
|   |   |

| \ | / |
|   |   |

but 

| # | b |
| # |   |


For me at least it breaks a program that looks if e.g. cell 1x1 is
empty, and if it isn't, calls 'org-table-next-row' and then inserts in
new empty cell 2x1.

As it happens, # is among the characters my program tries to insert and
thus it enters an endless loop, since everytime it calls
'org-table-next-row', the new cell in the next-row/same-column will be
filled with # too, and never be empty.

I can't think of a situation where this behaviour could be useful. Its
probably a bug related to the use of '#' as 'comment-start' char in
Org-mode. 

-- 
cheers,
Thorsten





Re: [O] (org-table-next-row) and # - bug or feature?

2013-03-21 Thread Thorsten Jolitz
Thorsten Jolitz  writes:

[following up to my own post]

> in all 4 following examples point is in cell 1x1 when calling 
>
> ,---
> | M-x org-table-next-row
> `---
>
> | A | B |
> |   |   |
>
> | 1 | 2 |
> |   |   |
>
> | \ | / |
> |   |   |
>
> but 
>
> | # | b |
> | # |   |


The problem is actually in these two lines of 'org-table-insert-row':

,-
| (if (string-match "^[ \t]*| *[#$] *|" line)
|(setq new (replace-match (match-string 0 line) t t new)))
`-

looks as if its intentional, but for me this behaviour still seems
buggy. 

-- 
cheers,
Thorsten




Re: [O] Errors after upgrading emacs to 24.3.1 and org to 7.9.4

2013-03-21 Thread Chris Henderson
On Fri, Mar 22, 2013 at 3:38 AM, Eric S Fraga  wrote:
> Chris Henderson  writes:
>
>> I have upgraded emacs from version 24 to 24.3.1 via homebrew on os x
>> mountain lion and every time I start emacs I get error:
>>
>> error: Invalid face, modeline
>
> modeline changed to mode-line a while back although probably sometime
> between 24 and 24.3.1 (I track emacs-snapshot).  It could be that you
> have a custom face set that depends on modeline?

Thanks, I have changed "modeline" to "mode-line" and it's now working fine.



Re: [O] Errors after upgrading emacs to 24.3.1 and org to 7.9.4

2013-03-21 Thread Chris Henderson
On Thu, Mar 21, 2013 at 8:28 AM, Chris Henderson  wrote:
> I have also upgraded org to version 7.9.4 via emacs M-x package-list
> option and now my custom keys don't work: when I press ^C-c it used to
> give me option as to where I want to put something: either project,
> someday/maybe, read and review or tasks. Now I get error: C-c c is
> undefined
>
> (setq org-capture-templates
>'(("t" "Tasks" entry (file+headline "~/org/gtd_home.org" "Tasks")
>   "** %?\n  %i Added:%U")
>  ("p" "Project" entry (file+headline "~/org/gtd_home.org" "Projects")
>   "** %?\n  %i Added:%U")
>  ("r" "Read and Review" entry (file+headline
> "~/org/gtd_home.org" "Read and Review")
>   "** %?\n  %i Added:%U")
>  ("s" "Someday/ Maybe" entry (file+headline
> "~/org/gtd_home.org" "Someday/ Maybe")
>   "** %?\n  %i Added:%U")
>  ("j" "Journal" entry (file+datetree "~/org/journal.org")
>   "* %?\nEntered on %U\n  %i\n  %a")))
>
> ^C-t which used to give me todo, cancel etc. don't seem to work as well:
>
> (setq org-todo-keywords
> '((sequence "TODO(t)" "|" "DONE(d)")
>   (sequence "|" "CANCELED(c)")))
>

I have downgraded org-mode to version 7.9.2 (org-20121217) and my
org-capture (^C-c) is now working fine. Is there any reason why it
doesn't work with the latest version?

Thanks.



Re: [O] tests with travis-ci

2013-03-21 Thread Andreas Röhler

Am 21.03.2013 21:41, schrieb Bastien:
[ ... ]

Yes.  The limitation of the pre-push hook comes from the fact that
various developers may have various testing environments, no one
should be prevented from pushing by the fact that tests do not pass
for someone else.


[ ... ]

Hi,

just to ask about some more aspects:

- Typos often will break it from the beginning, so complete tests must not run 
all every time.
  Will some testing at all is needed to detect the typos...

- org-mode has already a directory testing. It was not obvious for me how to 
make use of it.
  Exists some docu wrt available tests?

- usually you know about the range of changes.
  Limited tests checking certain features seem useful


Best,

Andreas