Re: [Rejected] Patchwork: [Rejected] [Orgmode] Testpatch, please ignore

2010-07-20 Thread Sebastian Rose
Carsten Dominik  writes:
> Patch 162 (http://patchwork.newartisans.com/patch/162/) is now Rejected.
>
> This relates to the following submission:
>
> http://mid.gmane.org/%3C20100720103733.CFF221A867D9%40carsten-dominiks-macbook-pro.local%3E
>
> Here is the original message containing the patch:
>
> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: Patchwork: [Rejected] [Orgmode] Testpatch, please ignore
> Date: Tue, 20 Jul 2010 15:37:33 -
> From: Carsten Dominik 
> X-Patchwork-Id: 162
> Message-Id: <20100720103733.cff221a86...@carsten-dominiks-macbook-pro.local>
> To: emacs-orgmode@gnu.org
>
> Patch 161 (http://patchwork.newartisans.com/patch/161/) is now Rejected.
>
> This relates to the following submission:
>
> http://mid.gmane.org/%3C43BDD4E9-1517-422B-9DB1-651E75FF2FE1%40gmail.com%3E
>
> Here is the original message containing the patch:
>
> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Testpatch, please ignore
> Date: Tue, 20 Jul 2010 15:26:01 -
> From: Carsten Dominik 
> X-Patchwork-Id: 161
> Message-Id: <43bdd4e9-1517-422b-9db1-651e75ff2...@gmail.com>
> To: emacs-org list 
>
> patch to test pw messages
>
>
> diff --git a/lisp/org.el b/lisp/org.el
> index 2ad7ce1..684f380 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -1,4 +1,5 @@
>   ;;; org.el --- Outline-based notes management and organizer
> +
>   ;; Carstens outline-mode for keeping track of everything.
>   ;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
>   ;;   Free Software Foundation, Inc.
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Looks promising :-D


  Sebastian

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


Re: [Orgmode] Development setup (was: Org-mode release 7.01)

2010-07-20 Thread Sebastian Rose
Carsten Dominik  writes:

> Hi Sebastian,
>
> I would like to fix this as well but have not yet had the time to
> do so and I am being hampered by my limited knowledge of python
> and of the patchwork server.
>
> This will change, but I don't know how fast.
>
> - Carsten


Ok.  Good to hear!

Tanks

  Sebastian



> On Jul 20, 2010, at 2:01 AM, Sebastian Rose wrote:
>
>> Hi Carsten and John,
>>
>>
>>> Also, I need to shout out my gratitude to the increasing number of
>>> volunteers in the project.
>>>
>>> John Wiegley's patchwork server has done wonders for streamlining the
>>> process of reviewing and applying patches.  I have applied dozens of
>>> patches though this process, just in the last week.
>>>
>>> The issue tracker by David Maus has finally brought some structure
>>> into the stream of ideas and reports on this mailing list, at a
>>> moment when I was about to falter under the amount of work
>>> maintaining this project means for me.  Frankly,  right now I
>>> don't know how I would do things without David's competent and
>>> efficient help - he has effectively and silently become
>>> co-maintainer of this project.
>>
>>
>> The new technique drives me crazy.  To me, it feels frustrating compared
>> to the direct means of "the good old times".
>>
>>
>> Now, that the release is done, it's time to speak about the next decade
>> of Org mode developing ;)
>>
>>
>>
>> A minute ago I got 5 mails like this one here:
>>
>>
>> Subject:
>>
>> "Patchwork: Patch 150 Accepted"
>>
>> Body:
>>
>>Patch 145 (http://patchwork.newartisans.com/patch/145/) is now Accepted.
>>
>>This relates to the following submission:
>>
>>
>> http://mid.gmane.org/%3C1279347713-29950-1-git-send-email-dmaus%40ictsoc.de%3E
>>
>>
>>
>>
>> This current mechanism might help the maintainers as it's automated, but
>> for me it's hard to follow.
>>
>> I often delete mails suggesting patches I don't apprehend.  I then get
>> those dangling "Patchwork: ..." messages.  I simply don't want to gather
>> all those mails from this high traffic list, just to now to which
>> issue the accepted patches belong.
>>
>> I don't want to click the link(s) in those mails and wait for my browser
>> to load either.
>>
>>
>> Suggestions:
>>
>> 1.) Could the original mail (the one including the actual patch, even if
>>modified) be attached to the autogenerated email, please?
>>This should be at the very bottom of the mail, because of length and
>>priority.
>>
>> 2.) And how about the subject?  The OP's subject is what I read on the
>>patchwork server.  Why can't that be (part of) the subject of the
>>"Accepted" message? E.g.:
>>
>>[Orgmode] [ACCEPTED] org-capture with LISP function template
>>
>>Maybe something that works on gmane et al, too.
>>
>> 3.) If there are annotations to the patch,  would it be possible to
>>include that comment in that automated message?  I don't now how the
>>patch is switched to accepted on the patchwork server.  But a simple
>>textarea field and appropriate POST variable would do, wouldn't it?
>>
>>
>>
>> This is all information available on the patchwork server.  So I hope
>> it's just changing a few lines of code?
>>
>> I sometimes receive mails from bugzilla servers, concerning bug reports
>> I wrote years ago.  I never had that problem to understand what those
>> mails were trying to tell me.
>>
>>
>> Thanks for considering this.
>>
>>
>> Best wishes
>>
>>  Sebastian
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> - Carsten

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


Re: [Orgmode] [BABEL] Seemless editing of Babel Blocks

2010-07-20 Thread Eric Schulte
Hi Jambunathan,

I like the idea of displaying the begin/end_src lines as commented
sections in the org-edit-special code buffer, and then potentially using
them to change the values of the begin/end_src lines in the original
org-mode buffer after exiting the src-edit buffer.  It would be very
cool to be able to edit header arguments while editing source code.  It
may be hard to implement, but could be worth the effort.

I'm afraid I don't see how the code snippet you pasted below could be
applied, could you reformat it as a patch to Org-mode with usage
instructions?

As for different key-bindings for exiting src edit buffers, you could
certainly setup your own in your personal configuration using the
org-src-mode-hook.

Thanks for the neat idea -- Eric

Jambunathan K  writes:

> I am presenting a code snippet that would make editing of babel blocks
> quite seemless. The editor parallels (inline!) editing of table
> blocks. A suitable variation thereof could be considered for inclusion
> in the core distribution.
>
> Few other suggestions:
> 1. While invoking babel editor, offer babel guard lines as comment
>blocks in the native mode.
>
> 2. On saving code blocks, do the reverse.
>
> For example, in case of emacs-lisp
>
> #+begin_src emacs_lisp:
> (message "Hello World")
> #+end_src
>
> could be offered as:
>
> ;; begin_src emacs_lisp:
> (message "Hello World")
> ;; end_src
>
> One could then add say a ':tangle ...' directive and have it persisted
> as 
>
> #+begin_src emacs_lisp: :tangle HelloWorld.el
> (message "Hello World")
> #+end_src
>
> 2. Is it possible to do org-edit-src-exit with more 'natural'
>keybinding like C-x C-w or C-x C-s. Furthermore, C-x C-w could fix
>up '#+srcname: ' directive as well.
>
>
> ;; CODE SNIPPET   
>
> ;; make org-cycle look for babel blocks
> ((org-at-babel-p)
>  (call-interactively 'org-edit-special))
>
> ;; A semicolon followed by  would invoke the babel editor.
> ;; A tab within the babel block would invoke the babel editor.
>
> (defconst org-babel-invoke-editor-regexp "^[ \t]*\\(;\\)"
>   "Detect beginning of babel src code")
>
> (defun org-at-babel-p () 
>   ""
>   (beginning-of-line 1)
>
>   (cond 
>((looking-at org-babel-invoke-editor-regexp)
> (unless  (org-babel-where-is-src-block-head)
>   (insert  "#+begin_src emacs-lisp :\n\n")
> 
>   (insert  "#+end_src")
>   (kill-line)
>   (forward-line  -1)
>   t)
> )
>
>((org-babel-where-is-src-block-head) t)
>(t nil)
>)
>   )
>

I have no idea how/where the above could be applied.

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

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


Re: [Orgmode] [babel] feature request - tangle-and-evaluate-tangled-file

2010-07-20 Thread Eric Schulte
Hi Rainer,

I see the problem.  When ess-load-file is called an even number of
times, it results in flip-flopped buffers.  I'm not sure of a good
solution here, aside from possibly tangling to a 3rd file, e.g.

#+begin_src R :tangle /tmp/nothing.R
 y <- 9
#+end_src

to ensure a good final balance.  Alternately you could try wrapping the
ess-load-file call in save-window-excursion, which will inhibit it's
ability to change buffers -- and result in the *R* window taking over
your frame.

#+begin_src emacs-lisp :results silent :tangle no
  (add-hook 'org-babel-post-tangle-hook
(lambda () (save-window-excursion (ess-load-file 
(buffer-file-name)
#+end_src

Sorry I can't be of more help.

Best -- Eric

Rainer M Krug  writes:

> Hi Eric
>
> I just discovered a "switching of buffers" when tangling the following
> org file with the new org-babel-post-tangle-hook.
>
> Otherwise it is working perfectly now.
>
>
> #
> ** tangle R and load
>   :PROPERTIES:
>   :tangle:   to-load.r
>   :END:
>
> evaluate this
> #+begin_src emacs-lisp :results silent :tangle no
>   (add-hook 'org-babel-post-tangle-hook
> (lambda () (ess-load-file (buffer-file-name
> #+end_src
>
> then tangle
>
> #+begin_src R :comments yes
>  x <- 8
> #+end_src
> t
> #+begin_src R
>  y <- 9
> #+end_src
>
> #+begin_src R :tangle file2.R
>  y <- 9
> #+end_src
>
> A second buffer will open with the R session.
> If you tangle a second time, these buffers are switching, i.e. where the
> .org buffer was is the R buffer and vice-versa.
> #

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


Re: [Orgmode] imenu support for babel blocks

2010-07-20 Thread Eric Schulte
Hi David,

I've never used imenu myself, but that sounds useful.  I'd recommend
using the following rather than building your own regexp

--8<---cut here---start->8---
(push (list "Source code chunks"
org-babel-src-name-w-name-regexp 2)
  imenu-generic-expression)
--8<---cut here---end--->8---

You're right that the Org-mode imenu setup looks fairly complex, and is
probably overwriting your simple expression above.  Unfortunately I
don't know much about imenu and I'm now sure how a code block menu fits
into the existing Org-mode imenu support.

Best -- Eric

"David O'Toole"  writes:

> I tried the following to get an Imenu composed of babel blocks, so that you
> could browse/jump to blocks. But it doesn't seem to work, I'm guessing that
> something about how org-mode builds the imenu-generic-expression overwrites
> my entry. Is there a hook (or could there be a hook added) that allows me to
> imenu-ify more constructs?
>
>   (push (list "Source code chunks"
> "^#\\+\\(source:\\|srcname:\\|function:\\) \\(.*\\)$" 2)
> imenu-generic-expression)
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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


[Orgmode] org-timeline and diary/calendar

2010-07-20 Thread Martin Steffen


Hi,

is there a way to include diary entries (i.e., entries in an
emacs-calendar file) into the org timeline?


I have set 

   (setq org-agenda-include-diary t)


which incluse the diary to the agenda-day view; but it seems that in the
timeline it is not included.


Thanks, Martin




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


Re: [Orgmode] "Invalid capture target specification"

2010-07-20 Thread Nick Dokos
Dave Mason  wrote:

> On Tue, Jul 20, 2010 at 2:30 PM, Dave Mason  wrote:
> > On Tue, Jul 20, 2010 at 2:13 PM, Nick Dokos  wrote:
> >> Dave Mason  wrote:
> >>
> >>> I'm trying to get the new org-capture set up. I did as the docs suggest
> >>> and imported my remember templates - then I removed the remember
> >>> elements from my .emacs except for making the C-cr keystroke point to
> >>> capture.
> >>>
> >>> However, now when I M-x org-capture - I get "Invalid capture target
> >>> specification" error.
> >>>
> >>> I don't understand the message - help?
> >>>
> >>>
> >>
> >> org-capture tried to figure out where the capture should be stored
> >> (which file, which headline etc) and failed (in the function
> >> org-capture-set-target-location).
> >>
> >> Probably an error in your spec for org-capture-templates. Do
> >>
> >>         C-h v org-capture-templates
> >>
> >> and post the value you get.
> >
> >
> > Oh, interesting - it says the value is nil
> >
> 
> So I suppose the issue here is that
> org-capture-import-remember-templates  didn't work for me - though
> after I did it I viewed them with customize-variable and they all
> seemed to be in order.
> 
> Guess I will need to recreate them.
> 

Did you save it after you viewed it? The import sets the variable
for the current session, but it needs to be saved in some initialization
file for future sessions. Just click on 'Save for future sessions'.

Nick

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


Re: [Orgmode] "Invalid capture target specification"

2010-07-20 Thread Dave Mason
On Tue, Jul 20, 2010 at 2:30 PM, Dave Mason  wrote:
> On Tue, Jul 20, 2010 at 2:13 PM, Nick Dokos  wrote:
>> Dave Mason  wrote:
>>
>>> I'm trying to get the new org-capture set up. I did as the docs suggest
>>> and imported my remember templates - then I removed the remember
>>> elements from my .emacs except for making the C-cr keystroke point to
>>> capture.
>>>
>>> However, now when I M-x org-capture - I get "Invalid capture target
>>> specification" error.
>>>
>>> I don't understand the message - help?
>>>
>>>
>>
>> org-capture tried to figure out where the capture should be stored
>> (which file, which headline etc) and failed (in the function
>> org-capture-set-target-location).
>>
>> Probably an error in your spec for org-capture-templates. Do
>>
>>         C-h v org-capture-templates
>>
>> and post the value you get.
>
>
> Oh, interesting - it says the value is nil
>

So I suppose the issue here is that
org-capture-import-remember-templates  didn't work for me - though
after I did it I viewed them with customize-variable and they all
seemed to be in order.

Guess I will need to recreate them.

Thanks for your help.


Dave

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


Re: [Orgmode] "Invalid capture target specification"

2010-07-20 Thread Dave Mason
On Tue, Jul 20, 2010 at 2:13 PM, Nick Dokos  wrote:
> Dave Mason  wrote:
>
>> I'm trying to get the new org-capture set up. I did as the docs suggest
>> and imported my remember templates - then I removed the remember
>> elements from my .emacs except for making the C-cr keystroke point to
>> capture.
>>
>> However, now when I M-x org-capture - I get "Invalid capture target
>> specification" error.
>>
>> I don't understand the message - help?
>>
>>
>
> org-capture tried to figure out where the capture should be stored
> (which file, which headline etc) and failed (in the function
> org-capture-set-target-location).
>
> Probably an error in your spec for org-capture-templates. Do
>
>         C-h v org-capture-templates
>
> and post the value you get.


Oh, interesting - it says the value is nil


Dave

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


Re: [Orgmode] "Invalid capture target specification"

2010-07-20 Thread Nick Dokos
Dave Mason  wrote:

> I'm trying to get the new org-capture set up. I did as the docs suggest
> and imported my remember templates - then I removed the remember
> elements from my .emacs except for making the C-cr keystroke point to
> capture.
> 
> However, now when I M-x org-capture - I get "Invalid capture target
> specification" error.
> 
> I don't understand the message - help?
> 
> 

org-capture tried to figure out where the capture should be stored
(which file, which headline etc) and failed (in the function
org-capture-set-target-location).

Probably an error in your spec for org-capture-templates. Do

 C-h v org-capture-templates

and post the value you get.

Nick


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


Re: [Orgmode] LaTeX export error with images (was: Bug: Export error with images with no caption [6.36trans (release_6.36.509.g9e9b)])

2010-07-20 Thread Carsten Dominik


On Jul 20, 2010, at 7:53 PM, Tassilo Horn wrote:


On Tuesday 20 July 2010 18:00:34 Carsten Dominik wrote:

Hi Carsten,


I have lost track here,

could you please resubmit the report with any details you can give?


No need to track this further.  I just checked with the latest  
version,

and the LaTeX beamer export works again.


Great, thanks.

- Carsten




Bye,
Tassilo


On Jul 5, 2010, at 2:08 PM, Tassilo Horn wrote:


Tassilo Horn  writes:

Hi!


I did some git bisection, and the last working version is commit
3b5351c7da59da3685f8233c252b1506166d35f3, so it seems Eric's commit
5edefbba269db8e717bd2b40778786b08af3f7a1 introduced the bug.


In the meantime, I became aware of the fact that this bug has
nothing to
do with having a caption for images, so the subject is (was) a bit
misleading.

Bye,
Tassilo


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


- Carsten






- Carsten




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


[Orgmode] inline image with link to other than images in html export?

2010-07-20 Thread Xiao-Yong Jin
Hi,

So the following can be used to show a thumbnail which links
to another image when exporting to html.

  [[file:highres.jpg][file:thumb.jpg]]

Is it possible for the link not to be restricted to image
files only?  Such that the following

  [[OTHER LINK][file:image.jpg]]

would produce a link to OTHER LINK on the inlined image.jpg
when exported to html.


Thanks,
Xiao-Yong
-- 
Jc/*__o/*
X<\ * (__
Y*/\  <

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


Re: [Orgmode] OT: Python help

2010-07-20 Thread Xiao-Yong Jin
On Tue, 20 Jul 2010 14:08:32 +0100, Peter Westlake wrote:

> On Tue, 20 Jul 2010 16:58 +0530, "Puneeth"  wrote:
> Here's a Pythonic way to do it, tested:

>   import re

>   my_string = "Hello\nWorld"
>   pattern = re.compile('^',re.MULTILINE)
>   my_new_string = re.sub(pattern, '> ', my_string)

> This still might not be quite right, as it will turn "Hello\nWorld\n"
> into "> Hello\n> World\n> ". Avoid that by using a negative lookahead
> for the end of the string:

>   my_string = "Hello\n\nWorld\n"
>   pattern = re.compile('^(?!\Z)',re.MULTILINE)
>   my_new_string = re.sub(pattern, '> ', my_string)
>   print my_new_string

> gives:

>> Hello
>> 
>> World

Although python does not recommend TIMTOWTDI, but I would
use the following function

  s = lambda str: ''.join(['< ' + s for s in str.splitlines(True)])
  s("Hello\n\nWorld\n")

I think it is much nicer and clearer to me -- probably
because I use a lot of haskell.  And the following is the
function s in haskell

  s = unlines . map ("< " ++) . lines

Just my 2c.
-- 
Jc/*__o/*
X<\ * (__
Y*/\  <

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


Re: [Orgmode] LaTeX export error with images (was: Bug: Export error with images with no caption [6.36trans (release_6.36.509.g9e9b)])

2010-07-20 Thread Tassilo Horn
On Tuesday 20 July 2010 18:00:34 Carsten Dominik wrote:

Hi Carsten,

> I have lost track here,
> 
> could you please resubmit the report with any details you can give?

No need to track this further.  I just checked with the latest version,
and the LaTeX beamer export works again.

Bye,
Tassilo

> On Jul 5, 2010, at 2:08 PM, Tassilo Horn wrote:
> 
> > Tassilo Horn  writes:
> >
> > Hi!
> >
> >> I did some git bisection, and the last working version is commit
> >> 3b5351c7da59da3685f8233c252b1506166d35f3, so it seems Eric's commit
> >> 5edefbba269db8e717bd2b40778786b08af3f7a1 introduced the bug.
> >
> > In the meantime, I became aware of the fact that this bug has  
> > nothing to
> > do with having a caption for images, so the subject is (was) a bit
> > misleading.
> >
> > Bye,
> > Tassilo
> >
> >
> > ___
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 
> - Carsten
> 
> 
> 
> 

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


[Orgmode] "Invalid capture target specification"

2010-07-20 Thread Dave Mason
I'm trying to get the new org-capture set up. I did as the docs suggest
and imported my remember templates - then I removed the remember
elements from my .emacs except for making the C-cr keystroke point to
capture.

However, now when I M-x org-capture - I get "Invalid capture target
specification" error.

I don't understand the message - help?


Thanks!

Dave

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


Re: [Orgmode] Bug: Org-publish needs to catch error [6.36trans]

2010-07-20 Thread Carsten Dominik

Hi Aidan,

we are still waiting for the backtrace.

- Carsten

On Jul 8, 2010, at 11:32 AM, Aidan Gauland wrote:


I am trying to use Org-mode and publish to create a website and forgot
to specify the publishing directory for a project (in
org-publish-project-alist).  I thought I had encountered a severe  
bug in
Org-publish when I was dumped into the debugger when I tried to  
publish
my project.  I suppose this is not so much a bug as it is an error  
that

should be detected and handled more elegantly (i.e. by Org-publish,
instead of the Emacs debugger) ;-).

Regards,
Aidan Gauland

Emacs  : GNU Emacs 24.0.50.5 (x86_64-unknown-linux-gnu, GTK+ Version  
2.20.1)

of 2010-07-05 on dimension8
Package: Org-mode version 6.36trans

current state:
==
(setq
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- 
vars)

org-metaup-hook '(org-babel-load-in-session-maybe)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
org-export-latex-format-toc-function 'org-export-latex-format-toc- 
default

org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-export-first-hook '(org-beamer-initialize-open-trackers)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
drawers

org-cycle-show-empty-lines

org-optimize-window-after-visibility-change)
org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
org-mode-hook '(#[nil "\300\301\302\303\304$\207"
	 [org-add-hook change-major-mode-hook org-show-block-all  
append local] 5]

 #[nil 
"\300\301\302\303\304$\207"
	 [org-add-hook change-major-mode-hook org-babel-show-result- 
all

append local] 5]
 
org-babel-result-hide-spec org-babel-hide-all-hashes)
org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash- 
at-point

org-babel-execute-src-block-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src
org-babel-exp-inline-src-blocks))
org-occur-hook '(org-first-headline-recenter)
org-from-is-user-regexp "\\"
org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix- 
toc

org-beamer-auto-fragile-frames

 
org-beamer-place-default-actions-for-lists)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-export-blocks '((src org-babel-exp-src-blocks nil) (comment
org-export-blocks-format-comment t)

 (ditaa org-export-blocks-format-ditaa nil) (dot
org-export-blocks-format-dot nil))
)

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


- Carsten




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


[Orgmode] web site bug

2010-07-20 Thread Robert Klein

Hi,

on the web site, the link to the HTML version of the compact guide
actually links to the full manual.

(http://orgmode.org/index.html#sec-4_1 first link)

Best regards
Robert

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


Re: [Orgmode] LaTeX export error with images (was: Bug: Export error with images with no caption [6.36trans (release_6.36.509.g9e9b)])

2010-07-20 Thread Carsten Dominik

Hi Tassilo,

I have lost track here,

could you please resubmit the report with any details you can give?

Thanks

- Carsten

On Jul 5, 2010, at 2:08 PM, Tassilo Horn wrote:


Tassilo Horn  writes:

Hi!


I did some git bisection, and the last working version is commit
3b5351c7da59da3685f8233c252b1506166d35f3, so it seems Eric's commit
5edefbba269db8e717bd2b40778786b08af3f7a1 introduced the bug.


In the meantime, I became aware of the fact that this bug has  
nothing to

do with having a caption for images, so the subject is (was) a bit
misleading.

Bye,
Tassilo


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


- Carsten




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


Re: [Orgmode] italics regexp

2010-07-20 Thread Carsten Dominik


On Jul 7, 2010, at 9:56 PM, Samuel Wales wrote:


I need an re to match italics the way org does.  I did not find it in
the code as it is mixed in with other emphasis.  Anybody have an re or
code to highlight italics (and perhaps the others) in non-org buffers?


Here it is:





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


Re: [Orgmode] Re: Tables and environment with parameters

2010-07-20 Thread Carsten Dominik

Hi Sebastian,

This is now fixed, thank you for your report.

- Carsten

On Jul 12, 2010, at 9:49 PM, Sébastien Vauban wrote:


Hi Carsten Dominik,

Carsten Dominik wrote:

Carsten Dominik wrote:

On Jun 28, 2010, at 4:30 PM, Sébastien Vauban wrote:

Carsten Dominik wrote:

On Jun 23, 2010, at 11:30 PM, Sébastien Vauban wrote:

Since one of the last updates -- I guess --, I now have a  
problem
exporting the tables: I see the meta-tags in the PDF output!  
Very new...


Though, in the meanwhile, note that this is not as bad as it  
could be: in
fact, I'd love to be able to print (when I want it, though) some  
of the

table meta-information, such as table name and formulas.

That'd be great to see that, at certain times, in the output PDF  
-- would

we be able to customize its font size or so.

What do you think?


What do you think of that idea for debugging purpose, or for giving  
more info

back to the reader?


What I called "meta-tags" are the two lines `#+ATTR_LaTeX:' and `#  
+TBLFM:'

that weren't visible in the PDF before... Maybe I should say "table
properties".

So, as I said, for checking purpose, or for giving more  
information (about
the formulas) to the reader, that's no so bad to see that, when  
asked for.


Of course, it should be formatted properly, and not interpreted as  
pure
LaTeX. In my example, in the PDF, Brutes is written in subscript  
because of

the underscore in front of it.


this might have been fixed, can you please check?


Just updated ([2010-07-12 Mon 21:38]).

Still not OK for the tables enclosed in =org-special-blocks=, well  
OK for the

other ones:

--8<---cut here---start->8---
*** Autres frais professionnels

#+BEGIN_changemargin {-4.2cm}{0cm}
 #+TBLNAME: AutresFPNVE
 #+ATTR_LaTeX: align=lr
 |   |  | Montant total  
(\EUR) | Taux amort (\%) | Part pro. (\%) | Déduc (\%) | NVE (\EUR) |
 |---+-- 
+--+-+ 
++|
 |   | Documentation et formation   | 
51.05 | |||   0.00 |
 |   | Communications GSM   |
831.16 | 100 | 25 |100 | 207.79 |
 |   | Internet (Dommel)|
167.88 | 100 | 33 |100 |  55.40 |
 |   | Fournitures à amortir (ordinateur + GSM) |
762.51 |  33 | 80 |100 | 201.30 |
 |   | Restaurant   |
304.70 | 100 |100 | 69 | 210.24 |
 |---+-- 
+--+-+ 
++|
 |   | Total 
|  | | 
||1062.02 |
 | ^ |   
|  | | 
||  Total |
 #+TBLFM: $7=$3*$4*$5*$6/100;%. 
2f 
::@2 
$ 
3 
= 
51.05 
::@3 
$ 
3 
= 
9.00 
+ 
184.88 
+ 
51.22 
+ 
201.82 
+ 
45.67 
+ 
69.03 
+ 
62.93 
+54.16+38.87+39.77+36.35+37.46::@4$3=12*13.99::@6$3=146.50+158.20;%. 
2f::@7$7=vsum(@-...@-ii);%.2f

#+END_changemargin

 Above this text, below the table, there is a line printed out in  
the PDF

 with the formula...

 #+TBLNAME: AutresFPNVEDeux
 #+ATTR_LaTeX: align=lr
 |   |  | Montant total  
(\EUR) | Taux amort (\%) | Part pro. (\%) | Déduc (\%) | NVE (\EUR) |
 |---+-- 
+--+-+ 
++|
 |   | Documentation et formation   | 
51.05 | |||   0.00 |
 |   | Communications GSM   |
831.16 | 100 | 25 |100 | 207.79 |
 |   | Internet (Dommel)|
167.88 | 100 | 33 |100 |  55.40 |
 |   | Fournitures à amortir (ordinateur + GSM) |
762.51 |  33 | 80 |100 | 201.30 |
 |   | Restaurant   |
304.70 | 100 |100 | 69 | 210.24 |
 |---+-- 
+--+-+ 
++|
 |   | Total 
|  | | 
||1062.02 |
 | ^ |   
|  | | 
||  Total |
 #+TBLFM: $7=$3*$4*$5*$6/100;%

Re: [Orgmode] export to latex book ?

2010-07-20 Thread Nick Dokos
John Hendy  wrote:

> On Tue, Jul 20, 2010 at 9:55 AM, Piter_  wrote:
> 
> Hi all
> I try to export my org file into Latex book by adding:
> #+LaTeX_CLASS: book
> bu I get:
> org-export-latex-set-initial-vars: No definition for class `book ' in 
> `org-export-latex-classes'
> But if I go into Org->Customize I can see it there.
> What can be wrong?
> Thanks.
> Petro.
>
> P.S. It actually does not work with #+LaTeX_CLASS:article.
> Only if I remove #+LaTeX_CLASS: from file.
> ... 
> Post back with your findings on this and someone should be able to
> help you out. I just upgraded from 6.35 -> 7.01 last night and nothing
> has changed for me. I'm thinking this has to do with your LaTeX
> install but could very possibly be wrong...
> 
> 

Looks like an org error, not a latex error, at this point (although 
of course the latex installation may be busted as well). I presume 
that when you (Piter) export to latex, there is no .tex output file
produced, correct?

In either case, probably the best way to proceed is to get a backtrace
and post that: see section 1.4, "Feedback", in the Org manual. If there
*is* a .tex output file, then post that as well.

Cheers,
Nick


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


[Orgmode] Re: Behavior of Gnus when called from an hyperlink

2010-07-20 Thread Tassilo Horn
Bernt Hansen  writes:

Hi Bernt,

> I have an IMAP server on my local 100MB/sec network and one of my
> (spam) folders has 148200 messages in it.  If I link to one of those
> messages in Gnus, close Gnus, and access the link from org-mode it
> finds the email in 13 seconds (8 seconds if Gnus is already open which
> is how I normally leave it running)
>
> If you are accessing your mail server on a slower network then that
> will adversely affect your response times.

No, that shouldn't affect the total time that much, at least in this
case.  It's only one request and one reply that go over the net.  The 5
minutes searching are what really matters, and that's only on the
server.

> Mirroring your mail server with offline imap or some other tool and
> linking to the local mirror might help your access times.

If Sébastien's admins tell him that they cannot get the search faster,
that would be a good investment.  I recommend Dovecot as server and
OfflineIMAP for synchronizing the local with possibly many remote
accounts/servers.  Dovecot has plugins even to do index every mail
completely, and then you can use Gnus' nnir backend to perform searches
for arbitrary text in the mails (including text in the bodies) in nearly
instant time.

But of course, that adds another layer of indirection requiring some
configs.  IMO, when you often rename/create/delete IMAP folders,
OfflineIMAP doesn't do to well, at least in my limited experiences.
It's designed to never ever loose mail (which is surely most important),
but when deleting folders on the local Dovecot using Gnus, the deletion
never propagated to the remote server and the next synchronization
fetched the deleted folder again from the remote side...

Bye,
Tassilo


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


Re: [Orgmode] question about date-tree

2010-07-20 Thread Carsten Dominik


On Jul 19, 2010, at 11:46 PM, Eric S Fraga wrote:

On Mon, 19 Jul 2010 08:10:49 -0400, "Emin.shopper Martinian.shopper"  
 wrote:


Dear Experts,

I really like the date-tree feature of org-remember and use it to  
plan

my daily agenda. Often I want to plan things in the future and fill
out an entry for a couple of weeks hence. It's slightly annoying to
try to remember the day of week and date so that it will match the
date-tree format.




Is there a function/utility/suggestion for prepopulating a month's
worth of date-tree daily nodes?

Thanks,
-Emin

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


I know this doesn't actually answer your question but what I do is
simply bring up the agenda view and then insert an entry in the right
day using "i d".  This will create a date-tree entry if you've set the
right variable, specifically org-agenda-diary-file to point to the
date-tree file.



Well,

this is hard because org-capture places the entry *before* you
get a chance to set those dates.

- Carsten



However, I also would like org-capture to handle this situation...
for instance, I would sometimes like todo entries that I define with
org-capture to be placed in a date tree structure for either of the
scheduled or deadline dates that todo entry is initially defined with.
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




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


[Orgmode] export to latex book ?

2010-07-20 Thread Piter_
Hi all
I try to export my org file into Latex book by adding:
#+LaTeX_CLASS: book
bu I get:
org-export-latex-set-initial-vars: No definition for class `book ' in
`org-export-latex-classes'
But if I go into Org->Customize I can see it there.
What can be wrong?
Thanks.
Petro.

P.S. It actually does not work with #+LaTeX_CLASS:article.
Only if I remove #+LaTeX_CLASS: from file.
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Behavior of Gnus when called from an hyperlink

2010-07-20 Thread Bernt Hansen


Sébastien Vauban 
writes:

> Hi David, Tassilo and Nick,
>
> David Maus wrote:
>> Tassilo Horn wrote:
> [...@mundaneum] />nc -vv mail imap

> Did twice the same request. Did take twice 5 mins...

> In my case, the culprit seems well to be our mail server, then.
>
>> Couldn't find this information in the tread: Is it slow for a particular
>> message or slow on Inbox.work in general?
>
> I answered this in the early beginning of the thread: time taken for opening
> the link seems to be (linearly?) dependant on the size of the mail groups.
>
> In INBOX.mc (the group for all work-related emails, containing ~27,000
> emails), it takes ~5 mins to open a link from Org.
>
> In other normally-sized groups (a couple of 100's of emails), it took a couple
> of seconds (> 10 s).
>
> Maybe a problem is that I keep all of my emails (but the spams...) since the
> beginning: now, over 140,000 emails entered my INBOX -- only the spams left
> it.
>
> What would be your pieces of advice in such a case? Do I need to test
> something extra? Get a local imap server? Others (like asking for fixing the
> search on our Courier mail server)?
>
> Best regards,
>   Seb

Hi Sébastien,

I have an IMAP server on my local 100MB/sec network and one of my (spam)
folders has 148200 messages in it.  If I link to one of those messages
in Gnus, close Gnus, and access the link from org-mode it finds the
email in 13 seconds (8 seconds if Gnus is already open which is how I
normally leave it running)

If you are accessing your mail server on a slower network then that will
adversely affect your response times.

Mirroring your mail server with offline imap or some other tool and
linking to the local mirror might help your access times.  I've never
used that myself but others have reported success with this.

I also keep all of my emails except for SPAM which I clear out
periodically (it seems I'm due for that again ;)

Regards,
Bernt



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


Re: [Orgmode] org-refile-targets: excluding archived

2010-07-20 Thread Carsten Dominik


On Jul 20, 2010, at 9:43 AM, Paul Mead wrote:


Hi

is there any way of excluding archived items from org-refile-targets?
I've looked at the docstring and can't figure out how to exclude
specific tags.


Please take a look at the variable org-refile-target-verify-function.

Greetings

- Carsten



Thanks
Paul


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


- Carsten




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


Re: [Orgmode] [PATCH] Copying marked agenda entries to new buffer

2010-07-20 Thread Carsten Dominik


On Jul 20, 2010, at 10:21 AM, i...@s-hahn.de wrote:


Hello,

this is a repost of a patch vom may, which has not been recognized
in any way.


I'm using org-mode (with gtd) since a year for work an private task
management. It's great.

For work I'm missing one function. I have all my notes on computer,
but in most of my meetings I'm without my computer and so I want to
print the notes before going to the meeting. Because I tagged all my
entries I can show an agenda buffer with all relevant entries. But I
did not found any possibility to print the complete entries displayed
in agenda buffer.

I modified org-agenda.el and added a command to the bulk command to
copy all marked entries to a new buffer which can be printed.

Is there any other possibility to do this?


Maybe note quite what you want, but

(setq org-agenda-add-entry-text-maxlines 20)

does something like tis directly in the agenda, also
for printing with org-write-agenda.

You can also set that variable in the option section of a custom
command, to only get it for that specific command.

- Carsten



Stefan


Stefan-W. Hahn (1):
 Added command in org-agenda-bulk-action to copy marked entries to a
   new buffer.

doc/org.texi   |2 ++
lisp/org-agenda.el |   30 +-
2 files changed, 31 insertions(+), 1 deletions(-)

--
1.7.2.rc2

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


- Carsten




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


[Orgmode] Re: highlight confusion in agenda

2010-07-20 Thread Tassilo Horn
Michael Gilbert  writes:

Hi Michael,

>>> But although I am not very mouse-oriented, as an Aquamacs user I
>>> find that the line where the mouse happens to be hovering (not
>>> having selected anything) is mostly highlighted in exactly the same
>>> was as the selected line. This is a cause of frequent error on my
>>> part. I only notice this in the agenda, not in other files.
>>> 
>>> Is there any way to turn off the latter effect?
>> 
>> Untested:
>> 
>> (add-hook 'org-finalize-agenda-hook
>>   (lambda () (remove-text-properties
>> (point-min) (point-max) '(mouse-face t
>> 
>> This might also turn off the mouse bindings in the agenda, at least
>> some of them.  But maybe this is actually also what you'd like to
>> have
>
> Tested. Fantastic. Doesn't disable mouse-bindings completely, but
> totally solves my problem. Thank you so much.

A littlebit less radical solution would be to change either the
`hl-line' or the `highlight' face so that they don't look identical.  Do
do that, do

  M-x customize-face hl-line RET

or

  M-x customize-face highlight RET

Bye,
Tassilo


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


Re: [Orgmode] highlight confusion in agenda

2010-07-20 Thread Michael Gilbert
>> I have a frequent navigation issue in the agenda and I'm curious if anyone 
>> else deals with this or has a solution. Like many users I have the currently 
>> selected line in the agenda set to be highlighted (an absolute lifesaver). 
>> But although I am not very mouse-oriented, as an Aquamacs user I find that 
>> the line where the mouse happens to be hovering (not having selected 
>> anything) is mostly highlighted in exactly the same was as the selected 
>> line. This is a cause of frequent error on my part. I only notice this in 
>> the agenda, not in other files.
>> 
>> Is there any way to turn off the latter effect?
> 
> Untested:
> 
> (add-hook 'org-finalize-agenda-hook
>   (lambda () (remove-text-properties
>  (point-min) (point-max) '(mouse-face t
> 
> This might also turn off the mouse bindings in the agenda, at least some of 
> them.
> But maybe this is actually also what you'd like to have


Tested. Fantastic. Doesn't disable mouse-bindings completely, but totally 
solves my problem. Thank you so much.

— M


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


Re: [Orgmode] Org-mode release 7.01

2010-07-20 Thread Peter Westlake
On Mon, 19 Jul 2010 08:43 +0200, "Carsten Dominik"
 wrote:
> Hi everyone,
> 
> I have just released version 7.01 of Org mode.

Splendid! The upgrade from org-remember to org-capture was painless too.
I took out org-remember-insinuate as well as the other remember and
org-remember bits, and it works without a hitch.

Thank you to Carsten and all the volunteers!

Peter.

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


Re: [Orgmode] Org-Mode button

2010-07-20 Thread Bastien
Ulf Stegemann  writes:

> Advocating Org-Mode is always a noble cause. In order to do so, I've put
> together a "created with Org-Mode" button which is displayed on my
> website. Although I'm far from being a designer type of guy, you may
> want to have a look at http://ulf.zeitform.de/images/org-mode.png. Of
> course you are very welcome to use that button yourself or come up with
> an improved version.

Adopted!  Thanks for this neat idea.

-- 
 Bastien

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


Re: [Orgmode] OT: Python help

2010-07-20 Thread Peter Westlake


On Tue, 20 Jul 2010 16:58 +0530, "Puneeth"  wrote:
> On Tue, Jul 20, 2010 at 4:50 PM, Puneeth  wrote:
> > On Tue, Jul 20, 2010 at 4:43 PM, Carsten Dominik  wrote:
> >> Please show me the full line of code, I am currently editing a python 
> >> script
> >> without any knowledge of python...
> >
> > my_string = "Hello\nWorld"
> > my_new_string = my_string.replace("\n", "\n> ")
> 
> Sorry, this code (obviously) doesn't prepend ">" to the first line
> Add this line to do that.
> 
> my_new_string = "> " + my_new_string

Here's a Pythonic way to do it, tested:

  import re

  my_string = "Hello\nWorld"
  pattern = re.compile('^',re.MULTILINE)
  my_new_string = re.sub(pattern, '> ', my_string)

This still might not be quite right, as it will turn "Hello\nWorld\n"
into "> Hello\n> World\n> ". Avoid that by using a negative lookahead
for the end of the string:

  my_string = "Hello\n\nWorld\n"
  pattern = re.compile('^(?!\Z)',re.MULTILINE)
  my_new_string = re.sub(pattern, '> ', my_string)
  print my_new_string

gives:

  > Hello
  >
  > World


Peter.

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


Re: [Orgmode] OT: Python help

2010-07-20 Thread Carsten Dominik


On Jul 20, 2010, at 3:08 PM, Peter Westlake wrote:




On Tue, 20 Jul 2010 16:58 +0530, "Puneeth"   
wrote:

On Tue, Jul 20, 2010 at 4:50 PM, Puneeth  wrote:
On Tue, Jul 20, 2010 at 4:43 PM, Carsten Dominik   
wrote:
Please show me the full line of code, I am currently editing a  
python script

without any knowledge of python...


my_string = "Hello\nWorld"
my_new_string = my_string.replace("\n", "\n> ")


Sorry, this code (obviously) doesn't prepend ">" to the first line
Add this line to do that.

my_new_string = "> " + my_new_string


Here's a Pythonic way to do it, tested:

 import re

 my_string = "Hello\nWorld"
 pattern = re.compile('^',re.MULTILINE)
 my_new_string = re.sub(pattern, '> ', my_string)

This still might not be quite right, as it will turn "Hello\nWorld\n"
into "> Hello\n> World\n> ". Avoid that by using a negative lookahead
for the end of the string:

 my_string = "Hello\n\nWorld\n"
 pattern = re.compile('^(?!\Z)',re.MULTILINE)
 my_new_string = re.sub(pattern, '> ', my_string)
 print my_new_string

gives:


Hello

World



Peter.



Great.  I learned something today.  Thanks!

- Carsten


- Carsten




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


Re: [Orgmode] highlight confusion in agenda

2010-07-20 Thread Carsten Dominik


On Jul 20, 2010, at 2:52 PM, Michael Gilbert wrote:


Hi —

I have a frequent navigation issue in the agenda and I'm curious if  
anyone else deals with this or has a solution. Like many users I  
have the currently selected line in the agenda set to be highlighted  
(an absolute lifesaver). But although I am not very mouse-oriented,  
as an Aquamacs user I find that the line where the mouse happens to  
be hovering (not having selected anything) is mostly highlighted in  
exactly the same was as the selected line. This is a cause of  
frequent error on my part. I only notice this in the agenda, not in  
other files.


Is there any way to turn off the latter effect?


Untested:

(add-hook 'org-finalize-agenda-hook
   (lambda () (remove-text-properties
   (point-min) (point-max) '(mouse-face t

This might also turn off the mouse bindings in the agenda, at least  
some of them.

But maybe this is actually also what you'd like to have

- Carsten


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


[Orgmode] highlight confusion in agenda

2010-07-20 Thread Michael Gilbert
Hi —

I have a frequent navigation issue in the agenda and I'm curious if anyone else 
deals with this or has a solution. Like many users I have the currently 
selected line in the agenda set to be highlighted (an absolute lifesaver). But 
although I am not very mouse-oriented, as an Aquamacs user I find that the line 
where the mouse happens to be hovering (not having selected anything) is mostly 
highlighted in exactly the same was as the selected line. This is a cause of 
frequent error on my part. I only notice this in the agenda, not in other files.

Is there any way to turn off the latter effect?

TIA

— Michael


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


[Orgmode] [BABEL] Seemless editing of Babel Blocks

2010-07-20 Thread Jambunathan K

I am presenting a code snippet that would make editing of babel blocks
quite seemless. The editor parallels (inline!) editing of table
blocks. A suitable variation thereof could be considered for inclusion
in the core distribution.

Few other suggestions:
1. While invoking babel editor, offer babel guard lines as comment
   blocks in the native mode.
   
2. On saving code blocks, do the reverse.
   
For example, in case of emacs-lisp
   
#+begin_src emacs_lisp:
(message "Hello World")
#+end_src

could be offered as:

;; begin_src emacs_lisp:
(message "Hello World")
;; end_src

One could then add say a ':tangle ...' directive and have it persisted
as 

#+begin_src emacs_lisp: :tangle HelloWorld.el
(message "Hello World")
#+end_src

2. Is it possible to do org-edit-src-exit with more 'natural'
   keybinding like C-x C-w or C-x C-s. Furthermore, C-x C-w could fix
   up '#+srcname: ' directive as well.

   
;; CODE SNIPPET   

;; make org-cycle look for babel blocks
((org-at-babel-p)
 (call-interactively 'org-edit-special))

;; A semicolon followed by  would invoke the babel editor.
;; A tab within the babel block would invoke the babel editor.

(defconst org-babel-invoke-editor-regexp "^[ \t]*\\(;\\)"
  "Detect beginning of babel src code")

(defun org-at-babel-p () 
  ""
  (beginning-of-line 1)

  (cond 
   ((looking-at org-babel-invoke-editor-regexp)
(unless  (org-babel-where-is-src-block-head)
  (insert  "#+begin_src emacs-lisp :\n\n")

  (insert  "#+end_src")
  (kill-line)
  (forward-line  -1)
  t)
)

   ((org-babel-where-is-src-block-head) t)
   (t nil)
   )
  )

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


[rejected] [Orgmode] Testpatch 2, please ignore

2010-07-20 Thread Carsten Dominik
Patch 163 (http://patchwork.newartisans.com/patch/163/) is now "rejected".


Maintaner comment: I did not like this patch

This relates to the following submission:

http://mid.gmane.org/%3CCA4869E9-8D39-4C37-8DBE-391724484E9D%40gmail.com%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Testpatch 2, please ignore
> Date: Tue, 20 Jul 2010 15:39:21 -
> From: Carsten Dominik 
> X-Patchwork-Id: 163
> Message-Id: 
> To: emacs-org list 
> 
> patch to test pw messages
> 
> 
> diff --git a/lisp/org.el b/lisp/org.el
> index 2ad7ce1..684f380 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -1,4 +1,5 @@
> ;;; org.el --- Outline-based notes management and organizer
> +
> ;; Carstens outline-mode for keeping track of everything.
> ;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
> ;;   Free Software Foundation, Inc.
> 

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


[rejected] [Orgmode] Testpatch 2, please ignore

2010-07-20 Thread Carsten Dominik
Patch 163 (http://patchwork.newartisans.com/patch/163/) is now "rejected".

This relates to the following submission:

http://mid.gmane.org/%3CCA4869E9-8D39-4C37-8DBE-391724484E9D%40gmail.com%3E

Maintaner comment: I did not like this patch

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Testpatch 2, please ignore
> Date: Tue, 20 Jul 2010 15:39:21 -
> From: Carsten Dominik 
> X-Patchwork-Id: 163
> Message-Id: 
> To: emacs-org list 
> 
> patch to test pw messages
> 
> 
> diff --git a/lisp/org.el b/lisp/org.el
> index 2ad7ce1..684f380 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -1,4 +1,5 @@
> ;;; org.el --- Outline-based notes management and organizer
> +
> ;; Carstens outline-mode for keeping track of everything.
> ;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
> ;;   Free Software Foundation, Inc.
> 

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


[Orgmode] Re: Behavior of Gnus when called from an hyperlink

2010-07-20 Thread Tassilo Horn
Sébastien Vauban 
writes:

Hi Sébastien,

>> My main account uses Courier on Debian, too and search for a
>> particular message id within ~7000 messages is quite fast.
>
> In my case, the culprit seems well to be our mail server, then.

Yes, but not you've learned much about profiling and debugging
elisp. ;-)

> What would be your pieces of advice in such a case? Do I need to test
> something extra? Get a local imap server? Others (like asking for
> fixing the search on our Courier mail server)?

I'd definitively drop a mail to the admins.  Searching for a message-id
is quite a common task, so that should be as fast as possible.  And I'm
pretty sure Courier has some option to index at least the message-ids.

I used at least Dovecot and Cyrus IMAP servers, and both support such a
feature.  I'd really wonder if Courier didn't support that.

Bye,
Tassilo


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


[Orgmode] Re: Org-mode release 7.01

2010-07-20 Thread Bernt Hansen
David Maus  writes:

> Markus Heller wrote:
>>Erik Iverson  writes:
>

 I assumed I had to switch to the maint branch in order to get the 7.01
 release.  How could I have done this while staying on the master branch?
>>>
>>> Basically, as long as you're on master, you'll always have the latest
>>> and greatest, which may or may not be what you want.
>
>>I am confused now.  Carsten said is his announcement that master did NOT
>>contain the 7.01 release:
>

The only thing in maint that is not in master is the change of the
version number in the sources.  You won't find the commit that sets the
version number to 7.01 on the master branch but all of the other
interesting changes are there.

> Okay, maybe these pictures will clarify: Org mode is developed in a
> branch called "master".  All new changes are done here so with A, B, C
> etc. representing changes to Org mode's source code the development
> looks like this:
>
> ,
> |  +---++---++---++---++---++---++---+
> | [master] | A |--->| B |--->| C |--->| D |--->| E |--->| F |--->| G |--->
> |  +---++---++---++---++---++---++---+
> `
>
> Now let's say at the source code being at patch B the stable version
> 7.01 is released.  In this case we create a new branch called "maint"
> that starts at patch B:
>
> ,
> |  +---++---++---++---++---++---++---+
> | [master] | A |--->| B |--->| C |--->| D |--->| E |--->| F |--->| G |---> ...
> |  +---++---++---++---++---++---++---+
> | :
> | :
> |   +---+
> | [maint]   | B |
> |   +---+
> `
>
> Currently "release is on maint" means that the branch [maint]
> represents the state of Org mode's sources at the time when the
> release 7.01 was made.
>
> Example: Org 7.01 was released after commit (change)
> a760c250a5585656567275c743cced6c4e652573.  The branch [maint]
> currently contains the source code as it was right after this change.[1]
> The branch [master] was at this point in time in the same state but
> has already proceeded with fresh new patches.
>
> So, 7.01 is indeed /not/ on master, because master is where all new
> things go in and has already proceeded (patch C, D etc. in the
> picture).  And [maint] will never be merged to [master], because all
> changes will be done in [master].
>
> It's the other way round: If a bug is fixed in [master] that is known
> to be present in [maint], the fix will be first made in [master] and
> than in [maint].  So if E is a fix for a bug that is present before B
> (read: in [master] and [maint]), we apply the fix in [maint], too.

It's actually easier to apply a fix that is intended to go in both
master and maint on a topic branch for the bugfix that is rooted at a
commit common to both maint and master (your [B] on the master branch, A
in the description below) and then merge that commit into both master
and maint since you only have to create the commit once.


 o -- o -- A -- o -- o -- o -- C  master
\
 Bmaint

Create the fix (F) at A

 o -- o -- A -- o -- o -- o -- C  master
   |\
   | Bmaint
   |
   F  bugfix

and merge the fix into maint

 o -- o -- A -- o -- o -- o -- C  master
   |\
   | B -- M   maint
   | /
   F/ bugfix

and into master

 o -- o -- A -- o -- o -- o -- C -- D  master
   |\  /
   | B -- M   /maint
   | /   /
   F/   /  bugfix
\  /
 \/

-Bernt

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


[rejected] [Orgmode] Testpatch 2, please ignore

2010-07-20 Thread Carsten Dominik
Patch 163 (http://patchwork.newartisans.com/patch/163/) is now rejected.

This relates to the following submission:

http://mid.gmane.org/%3CCA4869E9-8D39-4C37-8DBE-391724484E9D%40gmail.com%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Testpatch 2, please ignore
> Date: Tue, 20 Jul 2010 15:39:21 -
> From: Carsten Dominik 
> X-Patchwork-Id: 163
> Message-Id: 
> To: emacs-org list 
> 
> patch to test pw messages
> 
> 
> diff --git a/lisp/org.el b/lisp/org.el
> index 2ad7ce1..684f380 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -1,4 +1,5 @@
> ;;; org.el --- Outline-based notes management and organizer
> +
> ;; Carstens outline-mode for keeping track of everything.
> ;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
> ;;   Free Software Foundation, Inc.
> 

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


Re: [Orgmode] OT: Python help

2010-07-20 Thread Puneeth
On Tue, Jul 20, 2010 at 4:50 PM, Puneeth  wrote:
> On Tue, Jul 20, 2010 at 4:43 PM, Carsten Dominik  wrote:
>> Please show me the full line of code, I am currently editing a python script
>> without any knowledge of python...
>
> my_string = "Hello\nWorld"
> my_new_string = my_string.replace("\n", "\n> ")

Sorry, this code (obviously) doesn't prepend ">" to the first line
Add this line to do that.

my_new_string = "> " + my_new_string

> HTH,
> Puneeth
>



-- 
Puneeth

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


Re: [Orgmode] OT: Python help

2010-07-20 Thread Carsten Dominik


On Jul 20, 2010, at 1:20 PM, Puneeth wrote:

On Tue, Jul 20, 2010 at 4:43 PM, Carsten Dominik   
wrote:


On Jul 20, 2010, at 1:03 PM, Giovanni Ridolfi wrote:


Carsten Dominik  writes:


a python question:  How do I prefix every line in a multiline  
string
with a string.  For example, I would like to add "> " before all  
lines

in a string


how about replacing "\n" with "\n > " ?


Please show me the full line of code, I am currently editing a  
python script

without any knowledge of python...


my_string = "Hello\nWorld"
my_new_string = my_string.replace("\n", "\n> ")


Thanks, that does work.

- Carsten


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


Re: [Orgmode] OT: Python help

2010-07-20 Thread Giovanni Ridolfi
Carsten Dominik  writes:

> On Jul 20, 2010, at 1:03 PM, Giovanni Ridolfi wrote:
>
>> Carsten Dominik  writes:
>>
>>
>>> a python question:  How do I prefix every line in a multiline string
>>> with a string.  For example, I would like to add "> " before all
>>> lines
>>> in a string
>>
>> how about replacing "\n" with "\n > " ?
>
> Please show me the full line of code, I am currently editing a python
> script without any knowledge of python...
>
> :(

Carsten , I do not know python as well :-/


I found:
1. from python docs: http://docs.python.org/library/string.html

string.replace(str, old, new[, maxreplace])

Return a copy of string str with all occurrences of substring old replaced by 
new. If the optional argument maxreplace is given, the first maxreplace 
occurrences are replaced.

2.  while googling:

"Python like this:

python -c 'import sys; print sys.stdin.read().replace("\n", " ")' < days.txt"

http://linux.dsplabs.com.au/rmnl-remove-new-line-characters-tr-awk-perl-sed-c-cpp-bash-python-xargs-ghc-ghci-haskell-sam-ssam-p65/

3. also: http://bytes.com/topic/python/answers/721547-replace-characters-string

# >>> s = "sex_m-designer_bw-size_42"
# >>> s = s.replace('_', '=')
# >>> s = s.replace('-', '&')
# >>> s
# 'sex=m&designer=bw&size=42'

4.  
http://stackoverflow.com/questions/930303/python-string-cleanup-manipulation-accented-characters


name-of-the-string.replace(' ', '.') # replace spaces with periods

hth 
Giovanni

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


[Rejected] [Orgmode] Testpatch 2, please ignore

2010-07-20 Thread Carsten Dominik
Patch 163 (http://patchwork.newartisans.com/patch/163/) is now Rejected.

This relates to the following submission:

http://mid.gmane.org/%3CCA4869E9-8D39-4C37-8DBE-391724484E9D%40gmail.com%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Testpatch 2, please ignore
> Date: Tue, 20 Jul 2010 15:39:21 -
> From: Carsten Dominik 
> X-Patchwork-Id: 163
> Message-Id: 
> To: emacs-org list 
> 
> patch to test pw messages
> 
> 
> diff --git a/lisp/org.el b/lisp/org.el
> index 2ad7ce1..684f380 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -1,4 +1,5 @@
> ;;; org.el --- Outline-based notes management and organizer
> +
> ;; Carstens outline-mode for keeping track of everything.
> ;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
> ;;   Free Software Foundation, Inc.
> 

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


Re: [Orgmode] OT: Python help

2010-07-20 Thread Puneeth
On Tue, Jul 20, 2010 at 4:43 PM, Carsten Dominik  wrote:
>
> On Jul 20, 2010, at 1:03 PM, Giovanni Ridolfi wrote:
>
>> Carsten Dominik  writes:
>>
>>
>>> a python question:  How do I prefix every line in a multiline string
>>> with a string.  For example, I would like to add "> " before all lines
>>> in a string
>>
>> how about replacing "\n" with "\n > " ?
>
> Please show me the full line of code, I am currently editing a python script
> without any knowledge of python...

my_string = "Hello\nWorld"
my_new_string = my_string.replace("\n", "\n> ")

HTH,
Puneeth

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


Re: [Orgmode] OT: Python help

2010-07-20 Thread Carsten Dominik


On Jul 20, 2010, at 1:03 PM, Giovanni Ridolfi wrote:


Carsten Dominik  writes:



a python question:  How do I prefix every line in a multiline string
with a string.  For example, I would like to add "> " before all  
lines

in a string


how about replacing "\n" with "\n > " ?


Please show me the full line of code, I am currently editing a python  
script without any knowledge of python...


:(

- Carsten


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


Re: [Orgmode] OT: Python help

2010-07-20 Thread Giovanni Ridolfi
Carsten Dominik  writes:


> a python question:  How do I prefix every line in a multiline string
> with a string.  For example, I would like to add "> " before all lines
> in a string

how about replacing "\n" with "\n > " ?

Giovanni

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


[Orgmode] OT: Python help

2010-07-20 Thread Carsten Dominik

Hi there,

a python question:  How do I prefix every line in a multiline string
with a string.  For example, I would like to add "> " before all lines  
in a string


Thanks

- Carsten




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


[Rejected] Patchwork: [Rejected] [Orgmode] Testpatch, please ignore

2010-07-20 Thread Carsten Dominik
Patch 162 (http://patchwork.newartisans.com/patch/162/) is now Rejected.

This relates to the following submission:

http://mid.gmane.org/%3C20100720103733.CFF221A867D9%40carsten-dominiks-macbook-pro.local%3E

Here is the original message containing the patch:

Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: Patchwork: [Rejected] [Orgmode] Testpatch, please ignore
Date: Tue, 20 Jul 2010 15:37:33 -
From: Carsten Dominik 
X-Patchwork-Id: 162
Message-Id: <20100720103733.cff221a86...@carsten-dominiks-macbook-pro.local>
To: emacs-orgmode@gnu.org

Patch 161 (http://patchwork.newartisans.com/patch/161/) is now Rejected.

This relates to the following submission:

http://mid.gmane.org/%3C43BDD4E9-1517-422B-9DB1-651E75FF2FE1%40gmail.com%3E

Here is the original message containing the patch:

Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: [Orgmode] Testpatch, please ignore
Date: Tue, 20 Jul 2010 15:26:01 -
From: Carsten Dominik 
X-Patchwork-Id: 161
Message-Id: <43bdd4e9-1517-422b-9db1-651e75ff2...@gmail.com>
To: emacs-org list 

patch to test pw messages


diff --git a/lisp/org.el b/lisp/org.el
index 2ad7ce1..684f380 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1,4 +1,5 @@
  ;;; org.el --- Outline-based notes management and organizer
+
  ;; Carstens outline-mode for keeping track of everything.
  ;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
  ;;   Free Software Foundation, Inc.

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


[Orgmode] Testpatch 2, please ignore

2010-07-20 Thread Carsten Dominik

patch to test pw messages

diff --git a/lisp/org.el b/lisp/org.el
index 2ad7ce1..684f380 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1,4 +1,5 @@
;;; org.el --- Outline-based notes management and organizer
+
;; Carstens outline-mode for keeping track of everything.
;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
;;   Free Software Foundation, Inc.






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


Patchwork: [Rejected] [Orgmode] Testpatch, please ignore

2010-07-20 Thread Carsten Dominik
Patch 161 (http://patchwork.newartisans.com/patch/161/) is now Rejected.

This relates to the following submission:

http://mid.gmane.org/%3C43BDD4E9-1517-422B-9DB1-651E75FF2FE1%40gmail.com%3E

Here is the original message containing the patch:

Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: [Orgmode] Testpatch, please ignore
Date: Tue, 20 Jul 2010 15:26:01 -
From: Carsten Dominik 
X-Patchwork-Id: 161
Message-Id: <43bdd4e9-1517-422b-9db1-651e75ff2...@gmail.com>
To: emacs-org list 

patch to test pw messages


diff --git a/lisp/org.el b/lisp/org.el
index 2ad7ce1..684f380 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1,4 +1,5 @@
  ;;; org.el --- Outline-based notes management and organizer
+
  ;; Carstens outline-mode for keeping track of everything.
  ;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
  ;;   Free Software Foundation, Inc.

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


[Orgmode] Testpatch, please ignore

2010-07-20 Thread Carsten Dominik

patch to test pw messages

diff --git a/lisp/org.el b/lisp/org.el
index 2ad7ce1..684f380 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1,4 +1,5 @@
 ;;; org.el --- Outline-based notes management and organizer
+
 ;; Carstens outline-mode for keeping track of everything.
 ;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
 ;;   Free Software Foundation, Inc.






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


Re: [Orgmode] Estimate ranges in column view

2010-07-20 Thread Michael Gauland
Great news, Carsten--still works correctly.

Thanks for the chance to contribute!

--Mike

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


[Orgmode] [PATCH] Added command in org-agenda-bulk-action to copy marked entries to a new buffer.

2010-07-20 Thread info
To print all org items which are shown in agenda buffer, a new command has been
added to org-agenda-bulk-action which copies all marked enntries to an new 
buffer.

Signed-off-by: Stefan-W. Hahn 
---
 doc/org.texi   |2 ++
 lisp/org-agenda.el |   30 +-
 2 files changed, 31 insertions(+), 1 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 27d1874..5bbb5d1 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -7857,6 +7857,8 @@ these special timestamps.
 @example
 r  @r{Prompt for a single refile target and move all entries.  The entries}
@r{will no longer be in the agenda, refresh (@kbd{g}) to bring them back.}
+c  @r{Copy all marked entries to the buffer *org-temp*. If the buffer does not}
+   @r{exist it will be created.}
 $  @r{Archive all selected entries.}
 A  @r{Archive entries by moving them to their respective archive siblings.}
 t  @r{Change TODO state.  This prompts for a single TODO keyword and}
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 191ee52..0eabe09 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7466,13 +7466,38 @@ This will remove the markers, and the overlays."
   (setq org-agenda-bulk-marked-entries nil)
   (org-agenda-bulk-remove-overlays (point-min) (point-max)))
 
+(defun org-agenda-copy-marked-items ()
+  "Copy all marked items to buffer *org-temp*. If buffer does not
+exist, create it."
+  (let* ((marker (or (org-get-at-bol 'org-hd-marker)
+(org-agenda-error)))
+(buffer (marker-buffer marker))
+(dbuf (get-buffer-create "*org-temp*")))
+(with-current-buffer buffer
+  (save-excursion
+   (save-restriction
+ (widen)
+ (goto-char marker)
+ (org-copy-subtree 1)
+ (set-buffer dbuf)
+ (org-mode)
+ (widen)
+ (goto-char (point-max))
+ (if (not (bolp)) (newline))
+ (org-paste-subtree 1)
+ (show-all)
+ (when (featurep 'org-inlinetask)
+   (org-inlinetask-remove-END-maybe))
+ (message "Copied to \"%s\"" (buffer-name dbuf))
+ (switch-to-buffer dbuf))
+
 (defun org-agenda-bulk-action (&optional arg)
   "Execute an remote-editing action on all marked entries.
 The prefix arg is passed through to the command if possible."
   (interactive "P")
   (unless org-agenda-bulk-marked-entries
 (error "No entries are marked"))
-  (message "Bulk: [r]efile [$]archive [A]rch->sib [t]odo [+/-]tag [s]chedule 
[d]eadline")
+  (message "Bulk: [r]efile [c]opy [$]archive [A]rch->sib [t]odo [+/-]tag 
[s]chedule [d]eadline")
   (let* ((action (read-char-exclusive))
 (org-log-refile (if org-log-refile 'time nil))
 (entries (reverse org-agenda-bulk-marked-entries))
@@ -7500,6 +7525,9 @@ The prefix arg is passed through to the command if 
possible."
   (setq cmd (list 'org-agenda-refile nil (list 'quote rfloc) t)
redo-at-end t))
 
+ ((equal action ?c)
+  (setq cmd '(org-agenda-copy-marked-items)))
+
  ((equal action ?t)
   (setq state (org-icompleting-read
   "Todo state: "
-- 
1.7.2.rc2

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


[Orgmode] [PATCH] Copying marked agenda entries to new buffer

2010-07-20 Thread info
Hello,

this is a repost of a patch vom may, which has not been recognized
in any way.


I'm using org-mode (with gtd) since a year for work an private task
management. It's great.

For work I'm missing one function. I have all my notes on computer,
but in most of my meetings I'm without my computer and so I want to
print the notes before going to the meeting. Because I tagged all my
entries I can show an agenda buffer with all relevant entries. But I
did not found any possibility to print the complete entries displayed
in agenda buffer.

I modified org-agenda.el and added a command to the bulk command to
copy all marked entries to a new buffer which can be printed.

Is there any other possibility to do this?

Stefan


Stefan-W. Hahn (1):
  Added command in org-agenda-bulk-action to copy marked entries to a
new buffer.

 doc/org.texi   |2 ++
 lisp/org-agenda.el |   30 +-
 2 files changed, 31 insertions(+), 1 deletions(-)

-- 
1.7.2.rc2

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


Re: [Orgmode] [babel] html export of R data frame

2010-07-20 Thread Thomas S. Dye


On Jul 19, 2010, at 5:13 PM, Vikas Rawal wrote:



Is this what you want?

#+BEGIN_SRC R :results value :exports both


Indeed. Except that, in the functional mode, org-babel shows me output
of only the last command, and not the intermediate commands.

I am not too happy with that. When I do my data analysis, sometimes a
program gives out several outputs. Let me see how would I handle that
in the functional mode.

Thanks anyway,

Vikas




Aloha Vikas,

Here is one way to see intermediate values in functional mode.

#+srcname: vikas-x
#+begin_src R
 x<-c(1:5)
#+end_src

#+results: vikas-x
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |

#+srcname: vikas-y
#+begin_src R :var x=vikas-x
 y<-x^2
#+end_src

#+results: vikas-y
|  1 |
|  4 |
|  9 |
| 16 |
| 25 |

#+BEGIN_SRC R :results value :var x= vikas-x :var y= vikas-y :exports  
both

 data.frame(x,y)
#+END_SRC

#+results:
| 1 |  1 |
| 2 |  4 |
| 3 |  9 |
| 4 | 16 |
| 5 | 25 |

All the best,
Tom

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


Re: [Orgmode] [babel] feature request - tangle-and-evaluate-tangled-file

2010-07-20 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Eric

I just discovered a "switching of buffers" when tangling the following
org file with the new org-babel-post-tangle-hook.

Otherwise it is working perfectly now.


#
** tangle R and load
  :PROPERTIES:
  :tangle:   to-load.r
  :END:

evaluate this
#+begin_src emacs-lisp :results silent :tangle no
  (add-hook 'org-babel-post-tangle-hook
(lambda () (ess-load-file (buffer-file-name
#+end_src

then tangle

#+begin_src R :comments yes
 x <- 8
#+end_src
t
#+begin_src R
 y <- 9
#+end_src

#+begin_src R :tangle file2.R
 y <- 9
#+end_src

A second buffer will open with the R session.
If you tangle a second time, these buffers are switching, i.e. where the
.org buffer was is the R buffer and vice-versa.
#



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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

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

iEYEARECAAYFAkxFVosACgkQoYgNqgF2egpctwCfVc6cKfOYQ0P6xhoZfM3LGpxc
ZZcAoIGUfXWtrm0n7EAVxT4v5/QbouI8
=UFZe
-END PGP SIGNATURE-

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


RE: [Orgmode] Re: Org-mode release 7.01

2010-07-20 Thread Colin Fraizer
Love the new capture!  Thank you, Carsten and other contributors for
continuing to making my working life better.

Best regards,
--Colin Fraizer
Indianapolis, IN, USA(, Earth)

-Original Message-
From: emacs-orgmode-bounces+orgmode=cfraizer@gnu.org
[mailto:emacs-orgmode-bounces+orgmode=cfraizer@gnu.org] On Behalf Of
Matt Lundin
Sent: Monday, July 19, 2010 8:48 AM
To: Carsten Dominik
Cc: emacs-orgmode Mailinglist
Subject: [Orgmode] Re: Org-mode release 7.01

Carsten Dominik  writes:

> This is a major release, and we have worked months on getting
> it together.  Most important is of cause the complete integration
> of Org Babel into  Org mode.  Many thanks to Eric Schulte and
> Dan Davison who have worked tirelessly to make this happen.
> Thomas S. Dye gets credit here as well because he did a lot of
> work on documentation and function/variable docstrings.

Thanks, Carsten, for another brilliant release! And a special thanks to
Eric Schulte for taking into account my concerns about security and
org-babel and for finding a very graceful solution.

Best,
Matt

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


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


[Orgmode] org-refile-targets: excluding archived

2010-07-20 Thread Paul Mead
Hi

is there any way of excluding archived items from org-refile-targets?
I've looked at the docstring and can't figure out how to exclude
specific tags.

Thanks
Paul


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


Re: [Orgmode] org capture: use org-default-notes-file

2010-07-20 Thread Carsten Dominik


On Jul 20, 2010, at 3:09 AM, StephenL wrote:


Using the latest and greatest 7.01...

Is it possible to use the variable org-default-notes-file in the org  
capture settings?


I have a lot of org capture templates and I would rather set the  
file in one location then have to set it for each template. I would  
think it is possible with the org-default-notes-file, but no matter  
how I try to use it in the template it doesn't work. I get errors  
such as expecting stringp.


See below. I would like to do something similar to the todo entry  
and not the note entry where I need to explicitly specify the file.


This should now work.  If the file is either nil (not recommended
because then the customize interface does not work) or the empty string,
org-default-notes-file will be used instead.

- Carsten



Thanks for any help.

Stephen


;;; Org Capture
(setq org-default-notes-file (concat org-directory "/refile.org"))
(define-key global-map (kbd "C-c c") 'org-capture)

(setq org-capture-templates
 '(("t" "todo" entry (file+headline org-default-notes-file "ToDo")  
"* TODO %?\n  %U\n ")
   ("n" "note" entry (file+headline "/Users/stephen/Dropbox/org/ 
refile.org" "Notes") "* %?\n  %U\n ")

))


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


- Carsten




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


[Orgmode] Patchwork: Patch 159 Accepted

2010-07-20 Thread Carsten Dominik
Patch 159 (http://patchwork.newartisans.com/patch/159/) is now Accepted.

This relates to the following submission:

http://mid.gmane.org/%3C87r5izxkfp.fsf%40gmail.com%3E

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


Re: [Orgmode] Development setup (was: Org-mode release 7.01)

2010-07-20 Thread Carsten Dominik


On Jul 20, 2010, at 4:32 AM, Erik Iverson wrote:






Suggestions:

1.) Could the original mail (the one including the actual patch,  
even if

modified) be attached to the autogenerated email, please?
This should be at the very bottom of the mail, because of  
length and

priority.

2.) And how about the subject?  The OP's subject is what I read on  
the

patchwork server.  Why can't that be (part of) the subject of the
"Accepted" message? E.g.:

[Orgmode] [ACCEPTED] org-capture with LISP function template

Maybe something that works on gmane et al, too.

3.) If there are annotations to the patch,  would it be possible to
include that comment in that automated message?  I don't now  
how the
patch is switched to accepted on the patchwork server.  But a  
simple
textarea field and appropriate POST variable would do, wouldn't  
it?


4) If traffic warrants it and as more users join this list  
generating more posts... perhaps a new list called emacs-orgmode-dev  
for development related work?


This proposal has come up in the past, but so far the conclusion
always has been that we still prefer to keep things together.
I guess with modern email readers with filtering, high volumne
mailing lists do not present a big issue.

May people already prefix email subject with [PATCH] or "Bug:",
which helps in filtering.

- Carsten


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


Re: [Orgmode] Development setup (was: Org-mode release 7.01)

2010-07-20 Thread Carsten Dominik

Hi Sebastian,

I would like to fix this as well but have not yet had the time to
do so and I am being hampered by my limited knowledge of python
and of the patchwork server.

This will change, but I don't know how fast.

- Carsten

On Jul 20, 2010, at 2:01 AM, Sebastian Rose wrote:


Hi Carsten and John,



Also, I need to shout out my gratitude to the increasing number of
volunteers in the project.

John Wiegley's patchwork server has done wonders for streamlining the
process of reviewing and applying patches.  I have applied dozens of
patches though this process, just in the last week.

The issue tracker by David Maus has finally brought some structure
into the stream of ideas and reports on this mailing list, at a
moment when I was about to falter under the amount of work
maintaining this project means for me.  Frankly,  right now I
don't know how I would do things without David's competent and
efficient help - he has effectively and silently become
co-maintainer of this project.



The new technique drives me crazy.  To me, it feels frustrating  
compared

to the direct means of "the good old times".


Now, that the release is done, it's time to speak about the next  
decade

of Org mode developing ;)



A minute ago I got 5 mails like this one here:


Subject:

"Patchwork: Patch 150 Accepted"

Body:

   Patch 145 (http://patchwork.newartisans.com/patch/145/) is now  
Accepted.


   This relates to the following submission:

   
http://mid.gmane.org/%3C1279347713-29950-1-git-send-email-dmaus%40ictsoc.de%3E




This current mechanism might help the maintainers as it's automated,  
but

for me it's hard to follow.

I often delete mails suggesting patches I don't apprehend.  I then get
those dangling "Patchwork: ..." messages.  I simply don't want to  
gather

all those mails from this high traffic list, just to now to which
issue the accepted patches belong.

I don't want to click the link(s) in those mails and wait for my  
browser

to load either.


Suggestions:

1.) Could the original mail (the one including the actual patch,  
even if

   modified) be attached to the autogenerated email, please?
   This should be at the very bottom of the mail, because of length  
and

   priority.

2.) And how about the subject?  The OP's subject is what I read on the
   patchwork server.  Why can't that be (part of) the subject of the
   "Accepted" message? E.g.:

   [Orgmode] [ACCEPTED] org-capture with LISP function template

   Maybe something that works on gmane et al, too.

3.) If there are annotations to the patch,  would it be possible to
   include that comment in that automated message?  I don't now how  
the
   patch is switched to accepted on the patchwork server.  But a  
simple

   textarea field and appropriate POST variable would do, wouldn't it?



This is all information available on the patchwork server.  So I hope
it's just changing a few lines of code?

I sometimes receive mails from bugzilla servers, concerning bug  
reports

I wrote years ago.  I never had that problem to understand what those
mails were trying to tell me.


Thanks for considering this.


Best wishes

 Sebastian

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


- Carsten




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