Re: [Orgmode] An Org-mode clone for Vim

2010-11-06 Thread Carsten Dominik

Hi Herbert,

this looks pretty amazing - I had no feeling for how much would
be possible in vim.  I believe that this will make some people
quite happy, and I also think that it is a smart move
to avoid publishing headaches by calling out to Emacs.
I too like the number of hidden lines instead of ellipses
for the outlining and some other little things.  I hope
that you'll keep us up to date here - it looks like we
will be able to learn a few things from your work.

Congratulations

- Carsten

On Nov 5, 2010, at 8:39 PM, Herbert Sitz wrote:

I've been working on a Vim plugin that is file-compatible with Org- 
mode and that
clones a good subset of features.  It's gotten to the point where  
I'd like to
put it up on Github and see if anyone wants to use it and/or help  
develop it
with me.  So far I've implemented a good subset of Org's  
functionality and,
though it has a few rough edges, right now it could be perfectly  
usable for
certain people out there who prefer Vim as a text editor, but who  
have been
drawn to Emacs' Org-mode because of its features.  My project isn't  
at the point
where it has all the features or the polish of Org-mode, but many  
Org-mode users
use only a small subset of Org.  For people who prefer Vim and have  
subsets

coinciding with my project it could be an option.

I've made a video showing what it looks like and demonstrating some  
of the basic
outlining stuff.  I just uploaded it to Vimeo, and it tells me it  
will be
available for viewing in a couple hours (i.e., around 3:15pm PST  
today, Friday

Nov. 5,2010).  When available it will be viewable at this link:
http://vimeo.com/16543959

For someone who asks, 'Why would you bother to do this for Vim when  
it's already

done in Emacs?, I would have these responses:

1.  A lot of people don't like Emacs.  It is of course an insanely  
powerful
piece of software, but a lot of people can never get accustomed to  
the chord-key
command system, or if they do get semi-accustomed they don't like it  
or it

causes them physical pain.
2.  Some people are of the opinion that, while Emacs is admittedly a  
great
operating system/development environment, it lacks a decent text  
editor.  ;)
3.  Emacs and Vim (or Vim and Emacs) are king and queen atop the  
pile of text
editors.  What one has the other should have to, to the extent  
possible.
4.  I consider myself a Vim person, but I moved to Org-mode and  
Emacs myself
(made almost palatable to me by Viper and Vimpulse) because I wanted  
to be able
to publish outlines to PDF and HTML.  Vim has a couple decent  
outliners but
nobody has bothered to create good export systems for quality  
output.  I had
written some (non-publishing-related) extensions for one of the Vim  
outliners

and I knew it wouldn't be that hard to write something in Vim that was
file-compatible with Org-mode, which would then be able to publish  
to PDF and
HTML simply by calling out to an Emacs server.  This was my original  
goal and

it's done and works great.
5.  As I did some work I became more curious about all the task  
management and
organization features in Org-mode, and how they might be implemented  
in Vim.  So
I started coding up stuff for the various Org searches, agenda  
views, sparse
trees, column views, date management, etc.  This is actually fun to  
do and Vim
is well-suited for doing it.  So I've kept going.  I'm hoping  
someone else might

have an interest in doing this with me.
6. As I said in 5., developing this stuff is fun.

That's about it.  If there's any interest I'll do more videos  
showing how other
Org-mode features have been implemented in the Vim plugin, and where  
they stand

right now in the Vim plugin compared to Org-mode.

Regards,

Herb Sitz
Seattle, WA




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



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


[Orgmode] Re: COMMENTed Radio Targets: Any comments?

2010-11-06 Thread Jambunathan K

Hello Matt

 For stable links to particular headlines, I would recommend CUSTOM_IDs
 over radio targets. E.g.,

I am raising these questions or bugs or even aberrations as a result of
my work on OpenOffice. 

IOW, I am not looking at 'using them as a feature' but to 'understand
them as a feature' and 'cross-checking' my OpenOffice's exporter against
the HTML exporter.

So the question of swithching to custom-ids doesn't arise in my case. 

Jambunathan K.

Matt Lundin m...@imapmail.org writes:

 Jambunathan K kjambunat...@gmail.com writes:

 I am noticing Some inconsistencies with commented out 'Radioed
 Targets'. Example is down below. Comments are welcome ...

 In the generated HTML,

 1. The section titled 'Radioed Target' is not exported because it is
commented out.
 2. References to 'Radioed Target' still get exported as link. It
points to self.

 I am not sure what the right behaviour should be ...

 AFAIK, there are no tests in the exporter to determine whether the
 target of such a link actually exists. 

 * Links
 ** Targets
 *** COMMENT Radioed Target
 ** References
 *** References to Radioed Links
 This section has references to Radioed Target.

 For stable links to particular headlines, I would recommend CUSTOM_IDs
 over radio targets. E.g.,

 * Links
 ** Targets
:PROPERTIES:
:CUSTOM_ID: target
:END:
 ** References
 *** References to Radioed Links
 This section has references to Radioed Target.

 Best,
 Matt

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


[Orgmode] Re: [Babel] Executing sh code within sessions

2010-11-06 Thread Sébastien Vauban
Hi Eric,

Eric Schulte wrote:
 Yes, I've noticed the shell session evaluation problems as well. I think one
 possible solution is for us to move from the current schema of echoing a
 babel-specific marker to indicate that evaluation has completed (which isn't
 working very well and is fairly ugly to boot) and move towards something
 more like what Dan has done with R, where the output is written to a file,
 and we check for that file to be created to signal the end of session based
 evaluation.

Will that handle ssh remote execution?  I still have no clue to do that via
the sh code blocks, but that's what I'm targetting to. Therefore, the need for
a session.:

1. code block to open the ssh connection
2. code block with some code
3. code block with other code
4. code block with logout


 This is certainly something that needs to be addressed, however I for one
 won't have any time over the next week (I'm attending a conference).

 Rest assured this issue is in our inbox. :)

OK, I stop pressuring you ;-)  No, really, I hope you wouldn't feel it like
that.

#+begin_src note
Anyway, next week, I won't have much time either: all the free time will go
into demolishing (part of) my house, before big works scheduled (or
DEADLINEd?) in Feb...
#+end_src

Thanks a lot for your continuous support.

Best regards,
  Seb

-- 
Sébastien Vauban


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


[Orgmode] Check for broken links in org-mode?

2010-11-06 Thread Magnus Nilsson
Dear all,

Is there any nice way to check for broken links of different kinds in org
files?

For example by parsing the file and reporting the lines with broken links in
a separate buffer so they can be fixed one after another?  If not, I imagine
this is possible to implement (at least to some extent) as a lisp-function.
What do you all think? :)

My incentive for having this function is the following:
I have started using org mode to organize things at work.
One of the nice uses of org-mode is to keep link reminders together with my
notes, so that I quickly can find where information is located when I need
to retrieve it months/years later.
However, paths to where I keep files may be renamed as projects develop,
servers are changed, or as I brainstorm my way through different projects.
As my org-files can be quite large now, I have no way of remembering which
links I need to rename.
It would be great to (org-check-for-broken-links optional org-files-list)
once in a while to keep links up-to-date.  This could make it easier for me
and perhaps the next person that sometime will take over my job.
___
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] ELPA + gnuwin32 tar (Issues, Help with packaging)

2010-11-06 Thread Jambunathan K


 Thanks for trying out ELPA.

 May I ask you what version of Emacs you use and what OS you run on?
 Sorry I shuld have mentioned that. It's GNU Emacs 24.0.50.1
 (i386-mingw-nt6.1.7600) of 2010-10-18 on windows 7 Home Premium

 There is a comment in the package manager that there is a dependency on
 GNU tar. May be the tar binary that you are running is not GNU tar
 compatible
 I use the one from gnuwin32. It says tar (GNU tar) 1.22.

On my own machine I have issues while using gnuwin32 tar for
extraction. I encounter *no* errors while using Cygwin tar (See the
enclosed logs down below)

While running the following command:
- tar -xOf org-20101101.tar org-20101101/org-pkg.el

the error reporter in my setup is:
, [error with gnuwin32 tar on my machine]
| tar: Header contains \200\000\000\000\000'\347\033 where octal uid_t
| value expected
`

while the error encountered in your setup is:
, [error with gnuwin32 as reported by you]
| tar: Archive value 297315 is out of gid_t range 0..65535
`

The thing that seems common in both these errors is that it relates to
the username and groupnames (uid_t and gid_t). This has something to do
with how tar archives are created on build machine.

I don't have much experience with packaging. I am dumping my analysis
hoping that someone would offer a quick fix for the problem.

For the sake of reference, here is how the elpa archives are built.

,
| pkg:
| [...]
|   rm -rf org-$(PKG_TAG) org-$(PKG_TAG).tar
|   $(MKDIR) org-$(PKG_TAG)
|   cp -r $(PKG_FILES) org-$(PKG_TAG)
|   echo (define-package \org\ \$(PKG_TAG)\ \$(PKG_DOC)\ 
$(PKG_REQ))  org-$(PKG_TAG)/org-pkg.el
|   tar cf org-$(PKG_TAG).tar org-$(PKG_TAG) --remove-files
`


, [Using GnuWin32 tar is problematic]
| C:\Program Files\GnuWin32\bintar --version
| tar (GNU tar) 1.13
| 
| Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc.
| This is free software; see the source for copying conditions.  There is NO
| warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
| 
| Written by John Gilmore and Jay Fenlason.
| 
| C:\Program Files\GnuWin32\bintar -xOf org-20101101.tar
| org-20101101/org-pkg.el 
| 
| tar: Header contains \200\000\000\000\000'\347\033 where octal uid_t
| value expected (define-package org 20101101 Outline-based notes
| management and organizer nil) tar: Error exit delayed from previous
| errors
`

, [Using Cygwin tar is smooth]
| 
| bash-3.2$ tar --version
| tar (GNU tar) 1.23
| Packaged by Cygwin (1.23-1)
| Copyright (C) 2010 Free Software Foundation, Inc.
| License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
| This is free software: you are free to change and redistribute it.
| There is NO WARRANTY, to the extent permitted by law.
| 
| Written by John Gilmore and Jay Fenlason.
| 
| bash-3.2$ tar -xOf org-20101101.tar org-20101101/org-pkg.el
| 
| (define-package org 20101101 Outline-based notes management and
| organizer nil)
| 
`


 Debugger entered--Lisp error: (error Can't read whole string)
   signal(error (Can't read whole string))
   error(Can't read whole string)
   package-read-from-string(tar: Archive value 297315 is out of gid_t range 
 0..65535\n(define-package \org\ \20101101\ \Outline-based notes 
 management and organizer\ nil)\ntar: Exiting with failure status due to 
 previous errors\n)
   (progn (setq default-directory ~/tmp/) (package-read-from-string 
 (shell-command-to-string (concat tar -xOf org-20101101.tar 
 org-20101101/org-pkg.el
   eval((progn (setq default-directory ~/tmp/) (package-read-from-string 
 (shell-command-to-string (concat tar -xOf org-20101101.tar 
 org-20101101/org-pkg.el)
   eval-last-sexp-1(nil)
   eval-last-sexp(nil)

Jambunthan K.

___
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: ELPA + gnuwin32 tar (Issues, Help with packaging)

2010-11-06 Thread Jambunathan K

For the sake of record, file attributes of ELPA tar as is distributed
now:

,
| 
| bash-3.2$ tar tvf org-20101101.tar  | head
| drwxr-xr-x cdominik/pg1095168 0 2010-11-01 12:30 org-20101101/
| -rw-r--r-- cdominik/pg1095168 17889 2010-11-01 12:30 org-20101101/ob-tangle.el
| -rw-r--r-- cdominik/pg1095168 45603 2010-11-01 12:30 
org-20101101/org-remember.el
| -rw-r--r-- cdominik/pg1095168  8294 2010-11-01 12:30 
org-20101101/org-bibtex.el
| -rw-r--r-- cdominik/pg1095168  1417 2010-11-01 12:30 org-20101101/ob-matlab.el
| 
`

Jambunathan K.

 Thanks for trying out ELPA.

 May I ask you what version of Emacs you use and what OS you run on?
 Sorry I shuld have mentioned that. It's GNU Emacs 24.0.50.1
 (i386-mingw-nt6.1.7600) of 2010-10-18 on windows 7 Home Premium

 There is a comment in the package manager that there is a dependency on
 GNU tar. May be the tar binary that you are running is not GNU tar
 compatible
 I use the one from gnuwin32. It says tar (GNU tar) 1.22.

 On my own machine I have issues while using gnuwin32 tar for
 extraction. I encounter *no* errors while using Cygwin tar (See the
 enclosed logs down below)

 While running the following command:
 - tar -xOf org-20101101.tar org-20101101/org-pkg.el

 the error reporter in my setup is:
 , [error with gnuwin32 tar on my machine]
 | tar: Header contains \200\000\000\000\000'\347\033 where octal uid_t
 | value expected
 `

 while the error encountered in your setup is:
 , [error with gnuwin32 as reported by you]
 | tar: Archive value 297315 is out of gid_t range 0..65535
 `

 The thing that seems common in both these errors is that it relates to
 the username and groupnames (uid_t and gid_t). This has something to do
 with how tar archives are created on build machine.

 I don't have much experience with packaging. I am dumping my analysis
 hoping that someone would offer a quick fix for the problem.

 For the sake of reference, here is how the elpa archives are built.

 ,
 | pkg:
 | [...]
 | rm -rf org-$(PKG_TAG) org-$(PKG_TAG).tar
 | $(MKDIR) org-$(PKG_TAG)
 | cp -r $(PKG_FILES) org-$(PKG_TAG)
 | echo (define-package \org\ \$(PKG_TAG)\ \$(PKG_DOC)\ 
 $(PKG_REQ))  org-$(PKG_TAG)/org-pkg.el
 | tar cf org-$(PKG_TAG).tar org-$(PKG_TAG) --remove-files
 `


 , [Using GnuWin32 tar is problematic]
 | C:\Program Files\GnuWin32\bintar --version
 | tar (GNU tar) 1.13
 | 
 | Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, 
 Inc.
 | This is free software; see the source for copying conditions.  There is NO
 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 | 
 | Written by John Gilmore and Jay Fenlason.
 | 
 | C:\Program Files\GnuWin32\bintar -xOf org-20101101.tar
 | org-20101101/org-pkg.el 
 | 
 | tar: Header contains \200\000\000\000\000'\347\033 where octal uid_t
 | value expected (define-package org 20101101 Outline-based notes
 | management and organizer nil) tar: Error exit delayed from previous
 | errors
 `

 , [Using Cygwin tar is smooth]
 | 
 | bash-3.2$ tar --version
 | tar (GNU tar) 1.23
 | Packaged by Cygwin (1.23-1)
 | Copyright (C) 2010 Free Software Foundation, Inc.
 | License GPLv3+: GNU GPL version 3 or later 
 http://gnu.org/licenses/gpl.html.
 | This is free software: you are free to change and redistribute it.
 | There is NO WARRANTY, to the extent permitted by law.
 | 
 | Written by John Gilmore and Jay Fenlason.
 | 
 | bash-3.2$ tar -xOf org-20101101.tar org-20101101/org-pkg.el
 | 
 | (define-package org 20101101 Outline-based notes management and
 | organizer nil)
 | 
 `


 Debugger entered--Lisp error: (error Can't read whole string)
   signal(error (Can't read whole string))
   error(Can't read whole string)
   package-read-from-string(tar: Archive value 297315 is out of gid_t range 
 0..65535\n(define-package \org\ \20101101\ \Outline-based notes 
 management and organizer\ nil)\ntar: Exiting with failure status due to 
 previous errors\n)
   (progn (setq default-directory ~/tmp/) (package-read-from-string 
 (shell-command-to-string (concat tar -xOf org-20101101.tar 
 org-20101101/org-pkg.el
   eval((progn (setq default-directory ~/tmp/) (package-read-from-string 
 (shell-command-to-string (concat tar -xOf org-20101101.tar 
 org-20101101/org-pkg.el)
   eval-last-sexp-1(nil)
   eval-last-sexp(nil)

 Jambunthan K.

 ___
 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] [Bug?] Mark subtrees and inline tasks

2010-11-06 Thread Nicolas Goaziou
Hello,

 Sébastien Vauban writes:

 To select this subtree, I use =C-c @=.

 It does its job, except that it never selects the last line. OK;
 just C-x C-x, add a line, and that's it. Feature? Bug?

Feature. If you want to grab the last line too, use
(org-end-of-subtree nil t)

 Same problem, though more problematic IMHO, with the inline tasks.

 *** Check how the selection works 
 I'd expect the END line to be selected as well. It's not. 
 *** END

Here is a suggestion of patch creating a new function org-mark-subtree
(and not using the outline one).

Tell me if it works for you.

Regards,

-- Nicolas

From b2267d2e4ef40a0d0d6e8c9a789e835b5cde6036 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou n.goaz...@gmail.com
Date: Sat, 6 Nov 2010 10:10:22 +0100
Subject: [PATCH] Handle inline tasks when marking a subtree

* org-inlinetask.el (org-inlinetask-goto-beginning): new function
* org-inlinetask.el (org-inlinetask-goto-end): new function
* org.el (org-mark-subtree): new command
* org.el (org-speed-commands-default, org-mode-map): make use of new command
---
 lisp/org-inlinetask.el |   24 
 lisp/org.el|   25 -
 2 files changed, 48 insertions(+), 1 deletions(-)

diff --git a/lisp/org-inlinetask.el b/lisp/org-inlinetask.el
index c000999..fc0d932 100644
--- a/lisp/org-inlinetask.el
+++ b/lisp/org-inlinetask.el
@@ -147,6 +147,30 @@ If prefix arg NO-STATE is set, ignore 
`org-inlinetask-default-state'.
  (and (re-search-forward ^\\*+[ \t]+ nil t)
   (progn (beginning-of-line) (looking-at task-end-re)))
 
+(defun org-inlinetask-goto-beginning ()
+  Go to the beginning of the inline task at point.
+  (end-of-line)
+  (re-search-backward (format ^\\*\\{%d,\\} org-inlinetask-min-level) nil t)
+  (when (org-looking-at-p (format ^\\*\\{%d,\\} END 
org-inlinetask-min-level))
+(re-search-backward
+ (format ^\\*\\{%d,\\} org-inlinetask-min-level) nil t)))
+
+(defun org-inlinetask-goto-end ()
+  Go to the end of the inline task at point.
+  (cond
+   ((org-looking-at-p (format ^\\*\\{%d,\\} END org-inlinetask-min-level))
+(forward-line 1))
+   ((org-looking-at-p (format ^\\*\\{%d,\\}  org-inlinetask-min-level))
+(forward-line 1)
+(when (org-inlinetask-in-task-p)
+  (re-search-forward
+   (format ^\\*\\{%d,\\} END org-inlinetask-min-level) nil t)
+  (forward-line 1)))
+   (t
+(re-search-forward
+ (format ^\\*\\{%d,\\} END org-inlinetask-min-level) nil t)
+(forward-line 1
+
 (defvar htmlp)  ; dynamically scoped into the next function
 (defvar latexp) ; dynamically scoped into the next function
 (defun org-inlinetask-export-handler ()
diff --git a/lisp/org.el b/lisp/org.el
index 201dd87..905fabc 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16433,6 +16433,7 @@ BEG and END default to the buffer boundaries.
 (org-defkey org-mode-map \C-c\C-xf'org-footnote-action)
 (org-defkey org-mode-map \C-c\C-x\C-mg'org-mobile-pull)
 (org-defkey org-mode-map \C-c\C-x\C-mp'org-mobile-push)
+(org-defkey org-mode-map \C-c@ 'org-mark-subtree)
 (org-defkey org-mode-map [?\C-c (control ?*)] 'org-list-make-subtree)
 ;;(org-defkey org-mode-map [?\C-c (control ?-)] 
'org-list-make-list-from-subtree)
 
@@ -16506,7 +16507,7 @@ BEG and END default to the buffer boundaries.
 (^ . org-sort)
 (w . org-refile)
 (a . org-archive-subtree-default-with-confirmation)
-(. . outline-mark-subtree)
+(. . org-mark-subtree)
 (Clock Commands)
 (I . org-clock-in)
 (O . org-clock-out)
@@ -18653,6 +18654,28 @@ which make use of the date at the cursor.
   (message
Entry marked for action; press `k' at desired date in agenda or calendar))
 
+(defun org-mark-subtree ()
+  Mark the current subtree.
+This puts point at the start of the current subtree, and mark at the end.
+
+If point is in an inline task, mark that task instead.
+  (interactive)
+  (let ((inline-task-p
+(and (featurep 'org-inlinetask)
+ (org-inlinetask-in-task-p)))
+   (beg))
+(cond
+ (inline-task-p (org-inlinetask-goto-beginning))
+ ((org-at-heading-p) (beginning-of-line))
+  ;; else go back to previous heading
+ (t (outline-previous-visible-heading 1)))
+(setq beg (point))
+(ifinline-task-p
+   (org-inlinetask-goto-end)
+  (org-end-of-subtree))
+(push-mark (point) nil t)
+(goto-char beg)))
+
 ;;; Paragraph filling stuff.
 ;; We want this to be just right, so use the full arsenal.
 
-- 
1.7.3.2

___
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: An Org-mode clone for Vim

2010-11-06 Thread Detlef Steuer

On Fri, 5 Nov 2010 19:39:56 + (UTC)
Herbert Sitz hs...@nwlink.com wrote:

 I've been working on a Vim plugin that is file-compatible with Org-mode and 
 that
 clones a good subset of features.  It's gotten to the point where I'd like to
 put it up on Github and see if anyone wants to use it and/or help develop it
 with me.  So far I've implemented a good subset of Org's functionality and,
 though it has a few rough edges, right now it could be perfectly usable for
 certain people out there who prefer Vim as a text editor, but who have been
 drawn to Emacs' Org-mode because of its features.  My project isn't at the 
 point
 where it has all the features or the polish of Org-mode, but many Org-mode 
 users
 use only a small subset of Org.  For people who prefer Vim and have subsets
 coinciding with my project it could be an option.
 
 I've made a video showing what it looks like and demonstrating some of the 
 basic
 outlining stuff.  I just uploaded it to Vimeo, and it tells me it will be
 available for viewing in a couple hours (i.e., around 3:15pm PST today, Friday
 Nov. 5,2010).  When available it will be viewable at this link:
 http://vimeo.com/16543959
 

Wow! 

There is another reason, why this can be very, very useful: If you work in a 
team it becomes very hard to introduce a file format which more or less 
requires emacs. I.e. I have a colleague who has vim hard coded into his brain. 
He never ever would think about starting to use emacs. Now, may be, I can 
convince him to collaborate in orgmode structured files. That alone is worth 
the effort.  

Furthermore it may be useful to use vim over ssh+screen for simple access to 
your orgmode files even if you use the full power at your desk.

Was there a link somewhere to try it out? Would be nice!

Did you reach a point where it interacts with vim's R plugin? That's quite 
usabel nowadays.

Thank you for sharing!

Detlef

 For someone who asks, 'Why would you bother to do this for Vim when it's 
 already
 done in Emacs?, I would have these responses:
 
 1.  A lot of people don't like Emacs.  It is of course an insanely powerful
 piece of software, but a lot of people can never get accustomed to the 
 chord-key
 command system, or if they do get semi-accustomed they don't like it or it
 causes them physical pain.
 2.  Some people are of the opinion that, while Emacs is admittedly a great
 operating system/development environment, it lacks a decent text editor.  ;)
 3.  Emacs and Vim (or Vim and Emacs) are king and queen atop the pile of text
 editors.  What one has the other should have to, to the extent possible.
 4.  I consider myself a Vim person, but I moved to Org-mode and Emacs myself
 (made almost palatable to me by Viper and Vimpulse) because I wanted to be 
 able
 to publish outlines to PDF and HTML.  Vim has a couple decent outliners but
 nobody has bothered to create good export systems for quality output.  I had
 written some (non-publishing-related) extensions for one of the Vim outliners
 and I knew it wouldn't be that hard to write something in Vim that was
 file-compatible with Org-mode, which would then be able to publish to PDF and
 HTML simply by calling out to an Emacs server.  This was my original goal and
 it's done and works great.
 5.  As I did some work I became more curious about all the task management and
 organization features in Org-mode, and how they might be implemented in Vim.  
 So
 I started coding up stuff for the various Org searches, agenda views, sparse
 trees, column views, date management, etc.  This is actually fun to do and Vim
 is well-suited for doing it.  So I've kept going.  I'm hoping someone else 
 might
 have an interest in doing this with me.
 6. As I said in 5., developing this stuff is fun.
 
 That's about it.  If there's any interest I'll do more videos showing how 
 other
 Org-mode features have been implemented in the Vim plugin, and where they 
 stand
 right now in the Vim plugin compared to Org-mode.
 
 Regards,
 
 Herb Sitz
 Seattle, WA 
 
 
 
 
 ___
 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] [Bug?] Mark subtrees and inline tasks

2010-11-06 Thread Nicolas Goaziou
Well, use this version instead.

It will avoid compilation problems.

 Sébastien Vauban writes:

 To select this subtree, I use =C-c @=.

 It does its job, except that it never selects the last line. OK;
 just C-x C-x, add a line, and that's it. Feature? Bug?

 Feature. If you want to grab the last line too, use
 (org-end-of-subtree nil t)

 Same problem, though more problematic IMHO, with the inline tasks.

 *** Check how the selection works I'd expect the END
 line to be selected as well. It's not. *** END

 Here is a suggestion of patch creating a new function
 org-mark-subtree (and not using the outline one).

 Tell me if it works for you.

Regards,

-- Nicolas

From 8fcf73648f722e2aa8c539bdda433daab1edce6e Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou n.goaz...@gmail.com
Date: Sat, 6 Nov 2010 10:10:22 +0100
Subject: [PATCH] Handle inline tasks when marking a subtree

* org-inlinetask.el (org-inlinetask-goto-beginning): new function
* org-inlinetask.el (org-inlinetask-goto-end): new function
* org.el (org-mark-subtree): new command
* org.el (org-speed-commands-default, org-mode-map): make use of new command
---
 lisp/org-inlinetask.el |   24 
 lisp/org.el|   29 -
 2 files changed, 52 insertions(+), 1 deletions(-)

diff --git a/lisp/org-inlinetask.el b/lisp/org-inlinetask.el
index c000999..fc0d932 100644
--- a/lisp/org-inlinetask.el
+++ b/lisp/org-inlinetask.el
@@ -147,6 +147,30 @@ If prefix arg NO-STATE is set, ignore 
`org-inlinetask-default-state'.
  (and (re-search-forward ^\\*+[ \t]+ nil t)
   (progn (beginning-of-line) (looking-at task-end-re)))
 
+(defun org-inlinetask-goto-beginning ()
+  Go to the beginning of the inline task at point.
+  (end-of-line)
+  (re-search-backward (format ^\\*\\{%d,\\} org-inlinetask-min-level) nil t)
+  (when (org-looking-at-p (format ^\\*\\{%d,\\} END 
org-inlinetask-min-level))
+(re-search-backward
+ (format ^\\*\\{%d,\\} org-inlinetask-min-level) nil t)))
+
+(defun org-inlinetask-goto-end ()
+  Go to the end of the inline task at point.
+  (cond
+   ((org-looking-at-p (format ^\\*\\{%d,\\} END org-inlinetask-min-level))
+(forward-line 1))
+   ((org-looking-at-p (format ^\\*\\{%d,\\}  org-inlinetask-min-level))
+(forward-line 1)
+(when (org-inlinetask-in-task-p)
+  (re-search-forward
+   (format ^\\*\\{%d,\\} END org-inlinetask-min-level) nil t)
+  (forward-line 1)))
+   (t
+(re-search-forward
+ (format ^\\*\\{%d,\\} END org-inlinetask-min-level) nil t)
+(forward-line 1
+
 (defvar htmlp)  ; dynamically scoped into the next function
 (defvar latexp) ; dynamically scoped into the next function
 (defun org-inlinetask-export-handler ()
diff --git a/lisp/org.el b/lisp/org.el
index 201dd87..515764a 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -3555,6 +3555,8 @@ Normal means no org-mode-specific context.
  org-agenda (optional end))
 (declare-function org-inlinetask-remove-END-maybe org-inlinetask ())
 (declare-function org-inlinetask-in-task-p org-inlinetask ())
+(declare-function org-inlinetask-goto-beginning org-inlinetask ())
+(declare-function org-inlinetask-goto-end org-inlinetask ())
 (declare-function org-indent-mode org-indent (optional arg))
 (declare-function parse-time-string parse-time (string))
 (declare-function org-attach-reveal org-attach (optional if-exists))
@@ -16433,6 +16435,7 @@ BEG and END default to the buffer boundaries.
 (org-defkey org-mode-map \C-c\C-xf'org-footnote-action)
 (org-defkey org-mode-map \C-c\C-x\C-mg'org-mobile-pull)
 (org-defkey org-mode-map \C-c\C-x\C-mp'org-mobile-push)
+(org-defkey org-mode-map \C-c@ 'org-mark-subtree)
 (org-defkey org-mode-map [?\C-c (control ?*)] 'org-list-make-subtree)
 ;;(org-defkey org-mode-map [?\C-c (control ?-)] 
'org-list-make-list-from-subtree)
 
@@ -16506,7 +16509,7 @@ BEG and END default to the buffer boundaries.
 (^ . org-sort)
 (w . org-refile)
 (a . org-archive-subtree-default-with-confirmation)
-(. . outline-mark-subtree)
+(. . org-mark-subtree)
 (Clock Commands)
 (I . org-clock-in)
 (O . org-clock-out)
@@ -18653,6 +18656,30 @@ which make use of the date at the cursor.
   (message
Entry marked for action; press `k' at desired date in agenda or calendar))
 
+(defun org-mark-subtree ()
+  Mark the current subtree.
+This puts point at the start of the current subtree, and mark at the end.
+
+If point is in an inline task, mark that task instead.
+  (interactive)
+  (let ((inline-task-p
+(and (featurep 'org-inlinetask)
+ (org-inlinetask-in-task-p)))
+   (beg))
+;; Get beginning of subtree
+(cond
+ (inline-task-p (org-inlinetask-goto-beginning))
+ ((org-at-heading-p) (beginning-of-line))
+ (t (outline-previous-visible-heading 1)))
+(setq beg (point))
+;; Get end of it
+(ifinline-task-p
+   

[Orgmode] Re: publishing a drawer

2010-11-06 Thread Łukasz Stelmach
Christian Moe m...@christianmoe.com writes:

 On 11/3/10 12:48 PM, Łukasz Stelmach wrote:
 Hello.

 Is it possible to publish drawer's content during export (both HTML and
 LaTeX)? I am creating a presentation with S5 and I'd love to have
 :LOGBOOK: (or :NOTES:) published asdiv class=notes/div  (or
 \note{} for Beamer).


 The following ought to work, but doesn't for Latex. Code improvements
 welcome.

 * Set option to include drawers in export

 : #+OPTIONS: d:t

 For some reason, this doesn't work for me with Latex export. I've
 filed a bug report.

 * Customize drawer export

 Make org-export-format-drawer-function point to a custom function,
 e.g. like this for your exact case (improvements welcome):

 #+begin_src emacs-lisp
   (defun my-org-export-format-drawer (name content backend)
[...]

Looks quite promising :-) I will surely try it. Thanks.

-- 
Miłego dnia,
Łukasz Stelmach


___
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] An Org-mode clone for Vim

2010-11-06 Thread Jean-Marie Gaillourdet
Hi, 

congratulation to such an excellent project!

Herbert Sitz hs...@nwlink.com writes:

 I've been working on a Vim plugin that is file-compatible with Org-mode and 
 that
 clones a good subset of features.  It's gotten to the point where I'd like to
 put it up on Github and see if anyone wants to use it and/or help develop it
 with me.  So far I've implemented a good subset of Org's functionality and,
 though it has a few rough edges, right now it could be perfectly usable for
 certain people out there who prefer Vim as a text editor, but who have been
 drawn to Emacs' Org-mode because of its features.  My project isn't at the 
 point
 where it has all the features or the polish of Org-mode, but many Org-mode 
 users
 use only a small subset of Org.  For people who prefer Vim and have subsets
 coinciding with my project it could be an option.

 I've made a video showing what it looks like and demonstrating some of the 
 basic
 outlining stuff.  I just uploaded it to Vimeo, and it tells me it will be
 available for viewing in a couple hours (i.e., around 3:15pm PST today, Friday
 Nov. 5,2010).  When available it will be viewable at this link:
 http://vimeo.com/16543959

 For someone who asks, 'Why would you bother to do this for Vim when it's 
 already
 done in Emacs?, I would have these responses:

 1.  A lot of people don't like Emacs.  It is of course an insanely powerful
 piece of software, but a lot of people can never get accustomed to the 
 chord-key
 command system, or if they do get semi-accustomed they don't like it or it
 causes them physical pain.
 2.  Some people are of the opinion that, while Emacs is admittedly a great
 operating system/development environment, it lacks a decent text editor.  ;)
 3.  Emacs and Vim (or Vim and Emacs) are king and queen atop the pile of text
 editors.  What one has the other should have to, to the extent possible.
 4.  I consider myself a Vim person, but I moved to Org-mode and Emacs myself
 (made almost palatable to me by Viper and Vimpulse) because I wanted to be 
 able
 to publish outlines to PDF and HTML.  Vim has a couple decent outliners but
 nobody has bothered to create good export systems for quality output.  I had
 written some (non-publishing-related) extensions for one of the Vim outliners
 and I knew it wouldn't be that hard to write something in Vim that was
 file-compatible with Org-mode, which would then be able to publish to PDF and
 HTML simply by calling out to an Emacs server.  This was my original goal and
 it's done and works great.

I complete understand your point here, I did the tiniest possible bit of
org-mode emulation in vim, by my self. After more then 10 years of
emacs, I came to realize they beauty and efficiency of the modal input
model used by vim. Since then, I've tried to either make emacs behave
like vim or to make vim behave like emacs. My current approach is to use
emacs with viper+vimpulse+viper-in-more-modes+self_written adaptions and
there are still many things which require to type long chords of
shortcuts. 

I am looking forward to try your vim plugin, since I still use vim for
quick editing tasks.

 5.  As I did some work I became more curious about all the task management and
 organization features in Org-mode, and how they might be implemented in Vim.  
 So
 I started coding up stuff for the various Org searches, agenda views, sparse
 trees, column views, date management, etc.  This is actually fun to do and Vim
 is well-suited for doing it.  So I've kept going.  I'm hoping someone else 
 might
 have an interest in doing this with me.
 6. As I said in 5., developing this stuff is fun.

 That's about it.  If there's any interest I'll do more videos showing how 
 other
 Org-mode features have been implemented in the Vim plugin, and where they 
 stand
 right now in the Vim plugin compared to Org-mode.

I am definitly interested. Keep up the good work. 

Regards,
  Jean-Marie


___
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] An Org-mode clone for Vim

2010-11-06 Thread Jean-Marie Gaillourdet
Hi Ryan, 

A. Ryan Reynolds a.ryan.reyno...@gmail.com writes:

 onethingwell.org just finished a week's worth of coverage on vim
 outliners. I don't use vim, so I'm not particularly invested, but
 introducing another one to the vim people might be a hard sell; there
 already seem to be quite a number of options available on that
 platform. On the other hand, if you can replicate all of Org's
 features I've no doubt you'll succeed in winning them over! And in any
 case, doing something for fun is a reward by itself.

I've tried most vim outliners in spring. And I doubt it'll be a hard
sell. Most of them were dead or simply not comparable
to org's easy and intuitive way of outlining. 

For example, TVO -- The Vim Outliner [1] -- , which is most often referenced
as the standard and most powerfull vim outliner plugin, is basically
dead. Last release happened in 2006. 

Regards,
  Jean-Marie

[1] http://bike-nomad.com/vim/vimoutliner.html

___
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: COMMENTed Radio Targets: Any comments?

2010-11-06 Thread Matt Lundin
Hi Jambunathan,

Jambunathan K kjambunat...@gmail.com writes:

 For stable links to particular headlines, I would recommend CUSTOM_IDs
 over radio targets. E.g.,

 I am raising these questions or bugs or even aberrations as a result of
 my work on OpenOffice. 

 IOW, I am not looking at 'using them as a feature' but to 'understand
 them as a feature' and 'cross-checking' my OpenOffice's exporter against
 the HTML exporter.

 So the question of swithching to custom-ids doesn't arise in my case. 


Thanks for clarifying. I misunderstood the context of the request. I
think it would by helpful to mention such context (i.e., work on the
OpenOffice exporter) in the original post.

FWIW, the following commenting syntax correctly inserts an invisible
target in the html:

--8---cut here---start-8---
* Heading
# atarget
** Subheading
atarget 
--8---cut here---end---8---

exports as...

--8---cut here---start-8---
div id=outline-container-1 class=outline-2
h2 id=sec-1a name=atarget id=atarget/aspan 
class=section-number-21/span Heading /h2
div class=outline-text-2 id=text-1


/div

div id=outline-container-1_1 class=outline-3
h3 id=sec-1_1span class=section-number-31.1/span Subheading /h3
div class=outline-text-3 id=text-1_1

pa href=#sec-1atarget/a 
/p
--8---cut here---end---8---

Using the COMMENT keyword, by contrast, creates an orphaned link, as you
note.

 I see two options (that I think are consistent):

 1. In the Org file, references to 'Radioed Target' is still linkified
and clicking on it takes me to the right heading (although it is
COMMENTed out)
   
The corresponding thing for the HTML exporter is to 'ignore' the
COMMENT tag on the headline and (still) export it with refrences to
that headline as internal links.

 2. The exported HTML doesn't contain the radioed headline. So
references to radioed text shouldn't be linkified.

I vote for #2. I expect org-export to clobber anything with a COMMENT
keyword. But if the radio target is clobbered, then words pointing to it
should not be linkified. 

Note: I'm referring here only to automatic radio targets of the
triple-bracket variety. If the user explicitly inserts links such
as [[atarget]], they should remain even if the target does not exist.

Best,
Matt

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


[Orgmode] Searching the closest time-stamp and pose to its heading

2010-11-06 Thread Kiwon Um
Dear orgmode team and users,

I'm now writing a time journal function using org-mode. And I have a
question for this.

When there are many timestamps in buffer, how can I put my cursor on the
heading having the time-stamp closest to the current time or a given
time.

For instance, there are org contents as follows:

...
*** Item1
   CLOCK: [2010-11-06 Sat 16:45]--[2010-11-06 Sat 17:00] =  15

*** Item2
   CLOCK: [2010-11-06 Sat 17:00]--[2010-11-06 Sat 17:15] =  15

*** Item3
   CLOCK: [2010-11-06 Sat 17:15]--[2010-11-06 Sat 17:30] =  15
...

When the current time is [2010-11-06 Sat 17:03], I want to write elisp
codes moving the cursor to the Item2 heading.

I would really appreciate it if you could give any codes or information
for this. Thanks.

Sincerely,
Kiwon Um

___
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] AM/PM support on the agenda timegrid

2010-11-06 Thread Christopher Allan Webber
Based on off-list contact, apparently at least one other person is using
this, so FYI I pushed another commit which resolves an issue where there
was no space between the time and the event.  That's fixed now, things
look correct now like:

Saturday6 November 2010
   8:00AM 
  ccommons:9:00AM-11:00AM Some weekend work  :work::
  10:00AM 
  12:00PM 
   2:00PM 
   4:00PM 
   6:00PM 
   8:00PM 

If there's any adjustments I would need to make to get this merged into
master, let me know.

Christopher Allan Webber cweb...@dustycloud.org writes:

 Hello all,

 I get distracted parsing 24-hour-time into 12-hour AM/PM style time.  So
 I added support for AM/PM style time on the agenda timegrid.

 git clone git://dustycloud.org/org-mode -b ampm

 (Check out the ampm branch.)

 Then:

 #+BEGIN_SRC emacs-lisp
 (setq org-agenda-timegrid-use-ampm t)
 #+END_SRC

 Then just reload the agenda and you're good!


 ___
 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] Bug?: 7.02/7.3 - Unable to set `org-capture-templates' in a

2010-11-06 Thread Anupam Sengupta
Hi All,

I have been facing this problem since version 7.02/7.3.  I am using GNU
Emacs 23.2.50 on OSX.

I use a _separate_ file for saving the settings using the Custom
interface.  This includes all org-mode settings and templates, and have
been working well till 7.01h.

*However*, after upgrading to 7.02, I found that the capture templates
are *not* getting set from the custom-file, which does contain the
correct template (info (Emacs) Saving Customizations).

The basic problem is that the `org-capture-templates' variable is set as
`nil' on load, and `describe-variable' returns a 'nil' as well.

On accessing the variable using `customize-variable', the custom
interface displays an empty value, and the message:

Value Changed outside of Customize.

I have tested this behavior using org-7.02, using a bare-bone test setup
which just loads the org-mode, and an empty test.org file.  

The init.el is given below:

,
|  ;;; Define some variables for use later
|  (defvar my-emacs-dir  ~/.emacs.d/)
|  (defvar my-lisp-dir   (concat my-emacs-dir elisp/))
|  (defvar my-customizations-dir (concat my-emacs-dir customizations/))
|  (setq custom-file (concat my-customizations-dir emacs-custom.el))
|  (load custom-file)
| 
|  (message Setting orgmode stuff)
|  (setq load-path
|  (cons (expand-file-name (concat my-lisp-dir org-7.02/lisp)) 
load-path))
| 
|  (setq load-path
|  (cons (expand-file-name (concat my-lisp-dir 
org-7.02/contrib/lisp)) load-path))
| 
|  (add-to-list 'auto-mode-alist '(\\.org$ . org-mode))
| 
|  (require 'org-install)
|  (setq org-default-notes-file ~/test.org)
| 
|  (define-key global-map \C-ca  'org-agenda)
|  (define-key global-map \C-cc  'org-capture)
`


The corresponding emacs-custom.el (comments elided) is:

,
|  (custom-set-variables
|   '(org-capture-templates (quote ((n Next Action entry
|   (file+headline ~/org/test.org INBOX) * TODO %^{Heading})
`


As noted above, even though the `org-capture-templates' has been set
correctly in the emacs-custom.el, this setting is *not loaded* and the
variable remains `nil'.

If the variable is set in the init.el file *itself*, then it *does* get
loaded correctly.  E.g., in the init.el content, if the lines are
changed to:

,
|  (require 'org-install)
|  (setq org-default-notes-file ~/test.org)
|  
|(setq org-capture-templates 
|  (quote ((n Next Action entry (file+headline
|  ~/org/test.org INBOX) * TODO %^{Heading}
`


Then `org-capture' is able to correctly access the templates.

I have currently reverted back to 7.01h, as I have quite a few
customized templates, and don't want to stop using the customization
mechanism to setup / modify the somewhat complex templates.

Any help is very much appreciated.  Prior to this, I did not quite
realize how addicted I have become to the remember/capture method!


Regards,
-- 
Anupam Sengupta


___
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-Babel - Clojure Lazy Sequences Bug

2010-11-06 Thread Eric Schulte
Hi Rick,

I've noticed this as well.  I'm not the original author of ob-clojure.el
(Joel Boehland is), so I'm not sure how the clojure interaction
currently works, although I know it makes heavy usage of slime.  There
must be an existing mechanism used by slime to unroll these lazy
evaluations, for example in the repl (range 10) *is* expanded

user (range 10)
(0 1 2 3 4 5 6 7 8 9)

I'm using clojure extensively in my studies so I have all the more
reason to try to figure this out.  I'll put this on my stack.

BTW: I've noticed that I am unable to get Clojure code blocks to play
nicely with existing slime sessions, say for example I have some large
piece of data in scope in a slime sessions and I'd like to access that
data from a clojure code block and dump some analysis to an Org-mode
document.  I have not yet found out how to make this work.  If you have,
I'd love to hear how, otherwise I'll look into this as well.

Best -- Eric

Having just looked at this quickly, the following function over-defines
`org-babel-execute:clojure' s.t.  the body of the code block is sent to
the superior list in the same manner as when calling `slime-eval-defun'
from within a .clj file.  While this doesn't handle starting up clojure
instances or differentiate between session and external evaluation it
should fix the issues mentioned above and could be the beginning of a
permanent solution.

#+begin_src emacs-lisp
  (defun org-babel-execute:clojure (body params)
(with-temp-buffer
  (insert body)
  (read
   (slime-eval
`(swank:interactive-eval-region 
  ,(buffer-substring-no-properties (point-min) (point-max)))
#+end_src

which then results in

#+begin_src clojure
  (map (fn [el] (list el (* el el))) (range 10))
#+end_src

evaluating to

#+results:
| 0 |  0 |
| 1 |  1 |
| 2 |  4 |
| 3 |  9 |
| 4 | 16 |
| 5 | 25 |
| 6 | 36 |
| 7 | 49 |
| 8 | 64 |
| 9 | 81 |

Rick Moynihan rick.moyni...@gmail.com writes:

 I have the following org file:

 #+BEGIN_SRC clojure
 (range 10)
 #+END_SRC

 #+results:
 : clojure.lang.lazy...@f35bf8c6

 Where as I would expect to see the sequence.  Evaluating the code
 inside a doall doesn't seem to do anything either:

 #+BEGIN_SRC clojure
 (doall (range 10))
 #+END_SRC

 #+results:
 : clojure.lang.lazy...@f35bf8c6

 Is there any parameter I can pass to the block to get the code to
 execute in a doall and return the sequence values rather than the
 lazy-seq object itself?

 R.

 ___
 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] [PATCH] AM/PM support on the agenda timegrid

2010-11-06 Thread Carsten Dominik

Hi Christopher,

can I convince you to use am and pm instead of AM and PM?  The  
capitals hurt my eyes :)


- Carsten

On Nov 6, 2010, at 12:45 PM, Christopher Allan Webber wrote:

Based on off-list contact, apparently at least one other person is  
using
this, so FYI I pushed another commit which resolves an issue where  
there

was no space between the time and the event.  That's fixed now, things
look correct now like:

Saturday6 November 2010
  8:00AM 
 ccommons:9:00AM-11:00AM Some weekend  
work  :work::

 10:00AM 
 12:00PM 
  2:00PM 
  4:00PM 
  6:00PM 
  8:00PM 

If there's any adjustments I would need to make to get this merged  
into

master, let me know.

Christopher Allan Webber cweb...@dustycloud.org writes:


Hello all,

I get distracted parsing 24-hour-time into 12-hour AM/PM style  
time.  So

I added support for AM/PM style time on the agenda timegrid.

git clone git://dustycloud.org/org-mode -b ampm

(Check out the ampm branch.)

Then:

#+BEGIN_SRC emacs-lisp
(setq org-agenda-timegrid-use-ampm t)
#+END_SRC

Then just reload the agenda and you're good!


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


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



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


Re: [Orgmode] Broken CUSTOMID links

2010-11-06 Thread Carsten Dominik


On Nov 5, 2010, at 6:53 PM, Jambunathan K wrote:



Note the 'H:1' in options line. Export this to HTML. Note that  
CUSTOMID

link is broken. A snippet of relevant HTML section is attached
below.

Change 'H:1' to 'H:3' note that there is no more brokenness.

Possible root cause: When headlines are turned to list 'extra-targets'
are not identified correctly.


That is correct - Org does not assign IDs or names to list items,
so it has no place to link to.  This could probably be fixed - anyone  
would

like to fix this?

- Carsten



(This bug is unrelated to any of the previous internal link bugs  
that I

have reported)

# Input file

#+OPTIONS:   H:1

* Links
** Targets

*** Fuzzy Target

*** Target with CUSTOMID
  :PROPERTIES:
  :CUSTOM_ID: aabbccddeeff
  :END:

*** Dedicated Target
#   Dedicated Target

*** Radioed Target

** References

*** References to Fuzzy Target
  This is a link to [[Fuzzy Target]].

*** References to CUSTOMID links
  This link to  [[#aabbccddeeff][CUSTOMID Target]] is broken.

*** References to Dedicated Target
  There is a link to nodesc [[Dedicated Target]] here. There is a link
  to [[Dedicated%20Target][Jump to Dedicated Target]] here.

*** References to Radioed Links
  This section has references to Radioed Target. One more reference
  to Radioed Target.



#+begin_src html
!-- Headline defined here --
ul
  li id=sec-1_1_2
a name=sec-1_1_2 id=sec-1_1_2
/a
Target with CUSTOMID
br/
  /li
/ul

!-- Headline referenced here   --
ul
  li id=sec-1_2_2
References to CUSTOMID links
br/
This link to
a href=#aabbccddeeff
  CUSTOMID Target
/a
is broken.
  /li
/ul
#+end_src


Jambunathan K.

___
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] Re: Clock report (R from the agenda)

2010-11-06 Thread Carsten Dominik


On Nov 4, 2010, at 11:39 AM, Sébastien Vauban wrote:


Hi Carsten,

Carsten Dominik wrote:

you should now be able to use `C-u R' to achieve this.


OK.


The lighter in the mode line will then switch from Clock to  
Clock{},


A detail: I'd eventually would have written Clock/ to remind the  
/ used

for applying the filters.


I did use {} because the current filter is actually listed in the mode  
line, surrounded by {}.




Another: could we append, in the modeline, the tags (or their  
abbrev, such as

w for work) used in the filtered view?


The filter *is* shown in the mode line.  Just not as part of the Clock  
lighter.






and the current tags filtering should apply to the clock table in the
agenda.

Please test this and report back.


Only minor thing: while the logged lines are correctly shown or made  
invisible
in the grid time, you need to refresh the table with g for it to  
display the

correct values.

Until that, what's above is not in sync' with what's in the table.  
Isn't there

a way to make this refresh happen automatically?


That would be possible.  However, the whole idea of filtering
is to be *very* fast, it works by hiding lines that are
already in the buffer.  Doing a refresh for
each change in filter would be time consuming.  So I'd say
having to refresh by hand if the clock is showing filtered
stuff is the smaller evil.



BTW,


: | File | L | Headline | Time|  |
: |--+---+--+-+--|
: |  |   | *Total time* | *10:15* |  |
: |--+---+--+-+--|
: | Clock-Report.org |   | *File time*  | *10:15* |  |
: | Clock-Report.org | 1 | Work | 8:09|  |
: | Clock-Report.org | 2 | Client A | | 3:23 |
: | Clock-Report.org | 2 | Client B | | 4:46 |
: | Clock-Report.org | 1 | Personal | 2:06|  |
: | Clock-Report.org | 2 | DONE Lunch with Mary | | 2:06 |


Nice new layout. Much clearer for the levels...


Yes, I think so to.  Try :compact t, that is also nice, I think.

Thanks!

- Carsten



| File | Headline | Time|  |
|--+--+-+--|
|  | ALL *Total time* | *10:15* |  |
|--+--+-+--|
| Clock-Report.org | *File time*  | *10:15* |  |
|  | Work | 8:09|  |
|  | \__ Client A | | 3:23 |
|  | \__ Client B | | 4:46 |
|  | Personal | 2:06|  |
|  | \__ DONE Lunch with Mary | | 2:06 |

Thanks *a lot* for your time!
 Seb

--
Sébastien Vauban


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



___
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 + Ditaa EPS + input charset

2010-11-06 Thread Mikael Brännström
Hi Michel,

Currently DitaaEps uses the default charset. You can override this by
adding the following java option:

java -Dfile.encoding=ISO-8859-15 ...

Actually the DitaaEps is simply plain Ditaa plus an implementation
of the Java Graphics2D that outputs EPS data instead of raster data.
Thus it is simple to upgrade the ditaa addons to the new version of
ditaa, or simply include it into standard ditaa.

Regards
Mikael Brännström


2010/11/6 Michel Briand michelbri...@free.fr:
 Hello,
 (I'm not subscribed to the list)

 I've setup Org Mode to use the Ditaa provided by Mikael Brännström.

 In orgmode/contrib/scripts I've done:
 $ mv ditaa.jar ditaa.jar.dist
 $ cp extract dir/DitaaEps.jar ditaa.jar
 $ cp extract dir/ditaa0_6b.jar .

 Launched a new Org Mode export. It worked nicely.

 Now I'm adding text in iso-8859-15 into some boxes of the ditaa block.
 (My document is in this charset)

 Apparently this could come from:

 - Org Mode sending malformed text to ditaa eps

 - ditaa eps does not handle correctly those charset

 Anyone has an idea ? A solution ?

 By the way ditaa provided by Org Mode (git clone / git co release_7.3)
 is working nicely with iso-8859-15 characters !


 Best regards,
  Michel


___
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 Mode + Ditaa EPS + input charset

2010-11-06 Thread Michel Briand
Hello,
(I'm not subscribed to the list)

I've setup Org Mode to use the Ditaa provided by Mikael Brännström.

In orgmode/contrib/scripts I've done:
$ mv ditaa.jar ditaa.jar.dist
$ cp extract dir/DitaaEps.jar ditaa.jar
$ cp extract dir/ditaa0_6b.jar .

Launched a new Org Mode export. It worked nicely.

Now I'm adding text in iso-8859-15 into some boxes of the ditaa block.
(My document is in this charset)

Apparently this could come from:

- Org Mode sending malformed text to ditaa eps

- ditaa eps does not handle correctly those charset

Anyone has an idea ? A solution ?

By the way ditaa provided by Org Mode (git clone / git co release_7.3)
is working nicely with iso-8859-15 characters !


Best regards,
  Michel

___
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] clock report shows link literally?

2010-11-06 Thread Carsten Dominik


On Nov 5, 2010, at 3:07 AM, Liang Wang wrote:


Hi,

After I upgrade orgmode to latest version, clock report shows link
text literally.

For example,

  [[file:/home/liang/gtd/todo.org::Task...

Unfortunately, in this way, I can not see what this task actually is.
I have to temporarily disable link in clock report.

Is this desired behavior or a bug?


I am always amazed when people are friendly enough to ask if such
an abvious bug might be meant as desired behavior.

I have fixed this.  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


Re: [Orgmode] Re: An Org-mode clone for Vim

2010-11-06 Thread Eric S Fraga
Detlef Steuer detlef.ste...@gmx.de writes:

 On Fri, 5 Nov 2010 19:39:56 + (UTC)
 Herbert Sitz hs...@nwlink.com wrote:

 I've been working on a Vim plugin that is file-compatible with
 Org-mode and that clones a good subset of features.

This is fantastic news!  Although I have been using emacs for 25+ years,
I have been using vi longer... and I still have hjkl burned into my
neural pathways as the correct way to move around in a file.  Although
I'm unlikely to move away from emacs for most work, being able to use vi
to manipulate my org files would be liberating and particularly useful
because:

 Furthermore it may be useful to use vim over ssh+screen for simple
 access to your orgmode files even if you use the full power at your
 desk.

I currently use ssh to connect to my office computer from my Android
phone and then start emacs within screen.  It would be faster and easier
to use vi, especially because the modal system is more suited for the
type of on-screen keyboard you get on these phones.

I look forward to being able to try this soon!

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.02trans (release_7.3.28.g8744.dirty)

___
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] agenda restriction locks and searching all nodes quickly

2010-11-06 Thread Carsten Dominik

Hi SAmuel,

On Nov 6, 2010, at 12:47 AM, Samuel Wales wrote:

Having trouble with setting a restriction lock and also with  
searching quickly.


Can somebody kindly respond to the questions in the comments below?


(defun alpha-org-agenda-parent-subtree ()
 Show agenda for all tasks in subtree above point.  This means
all /siblings/ of point and everything beneath them.

If the region is active, operate only on the region.

You can get a fast sorted view with this command.  In this
example, the agenda will show tasks under my subtree.

 * top level 1 -- not shown
   * my subtree -- shown
 * TODO a
 * some other headline | (- point is here)
   * TODO [#A] b
 * top level 2 -- not shown

If you sort by priority, b will sort above a.

This allows you to organize nodes hierarchically instead of
keeping things at the same level merely to allow sorting.

 (interactive)
 (save-excursion
   ;;unwind-protect
   (if (not (org-up-heading-safe))
   (message top level is nyi)
 ;;is this the right way to do it?  i tried
 ;;(let (org-agenda-overriding-restriction ...
 ;;
 ;;how do i make this work for the active region?
 (org-agenda-set-restriction-lock 'subtree)
 ;;is there a less kludgey way to specify all tasks in the  
restriction?

 ;;more importantly, what is the absolutely /fastest/ way?


I guess you could remember start and end of the region
and the implement a skipping function the checks if the
match is in the range.  If you are in a large file, this
would still be somewhat wasteful.

The fastest way for a region would be (untested)

(setq org-agenda-restrict t)
(setq org-agenda-overriding-restriction 'region)
(put 'org-agenda-files 'org-restrict
 (list (buffer-file-name (buffer-base-buffer
(move-marker org-agenda-restrict-begin (region-beginning))
(move-marker org-agenda-restrict-end (region-end))




 ;;
 ;;this seems to take forever even for a single node
 (org-search-view nil {.}


Try a tags/property match with LEVEL0, that
should be more efficient.





Thanks.

Samuel

--
Q: How many CDC scientists does it take to change a lightbulb?
A: You only think it's dark. [CDC has denied a deadly serious
disease for 25 years]
==
HIV-like virus: http://www.wpinstitute.org/xmrv/index.html -- PLEASE  
DONATE

===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard  
MLV paper.


___
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] [PATCH] AM/PM support on the agenda timegrid

2010-11-06 Thread Christopher Allan Webber
And I'm indifferent, am/pm works for me :)

Pushed a patch.

Carsten Dominik carsten.domi...@gmail.com writes:

 Hi Christopher,

 can I convince you to use am and pm instead of AM and PM?  The
 capitals hurt my eyes :)

 - Carsten

 On Nov 6, 2010, at 12:45 PM, Christopher Allan Webber wrote:

 Based on off-list contact, apparently at least one other person is
 using
 this, so FYI I pushed another commit which resolves an issue where
 there
 was no space between the time and the event.  That's fixed now, things
 look correct now like:

 Saturday6 November 2010
   8:00AM 
  ccommons:9:00AM-11:00AM Some weekend work
 :work::
  10:00AM 
  12:00PM 
   2:00PM 
   4:00PM 
   6:00PM 
   8:00PM 

 If there's any adjustments I would need to make to get this merged
 into
 master, let me know.

 Christopher Allan Webber cweb...@dustycloud.org writes:

 Hello all,

 I get distracted parsing 24-hour-time into 12-hour AM/PM style
 time.  So
 I added support for AM/PM style time on the agenda timegrid.

 git clone git://dustycloud.org/org-mode -b ampm

 (Check out the ampm branch.)

 Then:

 #+BEGIN_SRC emacs-lisp
 (setq org-agenda-timegrid-use-ampm t)
 #+END_SRC

 Then just reload the agenda and you're good!


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

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

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


[Orgmode] Re: Bug?: 7.02/7.3 - Unable to set `org-capture-templates'in a

2010-11-06 Thread Anupam Sengupta
Anupam Sengupta anupamsg at gmail.com writes:


 I use a _separate_ file for saving the settings using the Custom
 interface.  This includes all org-mode settings and templates, and have
 been working well till 7.01h.
 
 *However*, after upgrading to 7.02, I found that the capture templates
 are *not* getting set from the custom-file, which does contain the
 correct template (info (Emacs) Saving Customizations).
 
 The basic problem is that the `org-capture-templates' variable is set as
 `nil' on load, and `describe-variable' returns a 'nil' as well.
 

...

Found a solution to the problem.  This has to do with order of setting the
custom-file and loading it (needs to be done *after* the org-install). 

I.e., the order in init.el needs to be:

 ...

 (require 'org-install)
 (setq org-default-notes-file ~/test.org)

 (define-key global-map \C-ca  'org-agenda)
 (define-key global-map \C-cc  'org-capture)

 ...
 ;; Needs to be done after org-mode is loaded
 (setq custom-file (concat my-customizations-dir emacs-custom.el))
 (load custom-file)


This allows the `org-capture-templates' saved in the separate emacs-custom.el 
file to be correctly loaded.  Note that this behavior is from 7.02/7.3, and 
probably has to do with the custom-autoload definition of this variable in
org-install.el.


Hope this explanation helps.

Regards,
-- 
Anupam Sengupta



___
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