Re: [Orgmode] Smart(er) word wrapping with org-mode and visual-line-mode

2010-01-14 Thread Carsten Dominik


On Jan 10, 2010, at 8:09 PM, Martin Pohlack wrote:


Hi Carsten and Matthew,

On 08.01.2010 18:24, Carsten Dominik wrote:

On Jan 6, 2010, at 4:25 PM, Martin Pohlack wrote:

I just tried this out (only for headlines up to now) and it seems to
work great.

Are there any plans to integrate something like this into upstream?
Especially the wrapping of headlines would enable extensive tag  
usage.


I have been thinking about that, but not arrived at a conclusion.   
One
thing is the interaction with org-indent-mode.  That mode already  
does

the wrapping for headlines correctly by adding `wrap-prefix', and it
will look really good if you set the variable word-wrap to t.


Ah, I wasn't aware of that.  I think the documentation to org-indent
doesn't mention wrapping (14.6 A cleaner outline view).  How about
something like this:

 org-indent-mode also sets the wrap-prefix property, such that
 visual-line-mode (or purely setting word-wrap) wraps long lines
 (including headlines) correctly indented.


I have added this, thank you very much for not only asking
for improvement but actually formulating the sentence and
pointing out where it should go.


[...]'m using Matthew's module right now for two reasons.

* I had some trouble configuring org-indent-mode to only handle
 line-wrapping for headlines, i.e., it shall only set wrap-prefix and
 do nothing else.  It always wanted to indent my headlines and body
 texts additionally.  Is this possible?


Not yet.  One way would be to make setting org-indent-indentation-per- 
level

to 0, but that currently does not work.



* Also, emacs segfaulted deterministically after globally collapsing
 all trees with org-indent-mode active.  I have to look into this ...

Cheers,
Martin


- 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: refiling

2010-01-14 Thread Carsten Dominik


On Jan 13, 2010, at 8:07 PM, John Rakestraw wrote:


Richard Riley writes:



That is fine and as expected. My point is more that I am unable to
file to linux.org/general since it has elements filed there. It  
offers

me to select an actual existing org item as opposed to letting me
store the rewritten item to linux.org/general.


Not sure I understand you here, so this might not be helpful. However,
when I do what I think you're trying to do, hitting the space bar  
after
"linux.org/general" is in the mini-buffer allows me to save directly  
to

"linux.org/general."


Do you need to press SPACE, or does RET also do the trick?
Because, as Manish points out in another message, SPC should
really be allowed as a character in a new headline you define.
Apparently right now it is not allowed as it is treated as
a completion command.

Could you please test if, in your setup, RET works as well?

Thanks.

- Carsten


This assumes that :level and/or :maxlevel are set
appropriately in the org-refile-targets variable.

--
John Rakestraw


___
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] Re: Error when exporting to LaTeX

2010-01-14 Thread Carsten Dominik

Hi Sebastian,

On Jan 14, 2010, at 12:15 PM, Sébastien Vauban wrote:


Hi all,

Sébastien Vauban wrote:


Here a problem when exporting such a file:


--8<---cut here---start->8---
#+MACRO: rest {\leavevmode \leaders \hrule height 0.7pt\hfill} \\

Nombre de la escuela de idiomas: {{{rest}}}
Nombre y apellidos del estudiante: {{{rest}}}
--8<---cut here---end--->8---


The `rest' macro is for filling the rest of the current line with an
horizontal rule.

It needs to be enclosed between accolades.


The macro just does text replacement, so the LaTeX exporter
sees naked braces which it escapes as it should.  In fact there seems
to be a bug causing the opening "{" not to be escaped - I have just
fixed that, I hope.

Org-mode buffers are not LaTeX buffers, so braces are seen as just
characters that should appear in print, unless they surround the
arguments of a LaTeX macro.

So you probably could write

  #+LaTeX_HEADER: \def\same#1{#1}
  #+MACRO: rest \same{{\leavevmode \leaders \hrule height 0.7pt 
\hfill} \\}


  Nombre de la escuela de idiomas: {{{rest}}}
  Nombre y apellidos del estudiante: {{{rest}}}


However, I think it is must better and more stable to write:

  #+LaTeX_HEADER: \newcommand{\rest}{{\leavevmode \leaders \hrule  
height 0.7pt\hfill} \\}


  Nombre de la escuela de idiomas: \rest
  Nombre y apellidos del estudiante: \rest

Don't forget that LaTeX is the most powerful macro processor here,
so just use its capabilities.

HTH

- 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] Timeline View Ouput for a Project

2010-01-14 Thread Xiaolong Tang
Hi all,

I am in the case of keep tracking of my development on a project in org-mode.
Suppose that I have a project called "lambda". Preferably I set up a file 
"lambda.org" for this project. 

Each day I may push more TODO lists into the project while making some progress 
on those TODO lists set up before (All of the TODO lists are with the same tag, 
for example, "lambda"). In order to report my performance, each time I start to 
work on the project, I check in by "C-c C-x C-i", namely, clock-in, and check 
out by "C-c C-x C-o", namely, clock-out. So far so good with the org-mode. 

Next, I expect to have the per day report of the project in terms of the items 
and the daily time length I spend on these times. In my mind, the view looks 
like something as below:

Monday 11 January 2010 
  Scheduled [Headline] 
  TODO [Headline]   [Time Length] :@lambda::
  TODO [Headline]   [Time Length] :@lambda::
  ...
Tuesday12 January 2010
  Scheduled [Headline] 
  TODO [Headline]   [Time Length] :@lambda::
  TODO [Headline]   [Time Length] :@lambda::
  ...
...

The timeline view of a single org file does not fit, and neither does the 
agenda view with clock report. So, I am wondering how I can achieve to have the 
daily report on a project. If my mental model on a project tracking does not 
make much sense, is there any suggestions or advices for using Org-mode to keep 
track of the development of a project?

Thanks,

  Xiaolong


___
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


Bug: [Orgmode] bug in latex export [6.34b]

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

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

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


I exported the following example test.org to latex, the content between
\begin{multicols}{2} and \end{multicols} hadn't been replaced with
latex code.

-test.org
#-*- mode: org; coding: utf-8 -*-
#+LATEX_HEADER: \usepackage{multicol}

* title

\begin{multicols}{2}

** subtitle

1. first
2. second

\end{multicols}
-end of test.org

I got the following result

-test.tex
% Created 2010-01-15 Fri 13:51
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{amssymb}
\usepackage{hyperref}
\usepackage{multicol}

\title{test}
\author{}
\date{15 January 2010}

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}

\section{title}
\label{sec-1}


\begin{multicols}{2}

**  subtitle

1. first
2. second

\end{multicols}

\end{document}
-end of test.tex

Emacs  : GNU Emacs 23.1.90.1 (i386-mingw-nt5.1.2600)
 of 2009-12-16 on BREPNB
Package: Org-mode version 6.34b

current state:
==
(setq
 org-log-done t
 org-agenda-skip-scheduled-if-deadline-is-shown t
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-special-ctrl-a/e t
 org-agenda-files '("~/org/todo.org" "~/org/refile.org")
 org-startup-truncated nil
 org-agenda-skip-timestamp-if-done t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-agenda-text-search-extra-files '(agenda-archives)
 org-special-ctrl-k t
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-agenda-skip-scheduled-if-done t
 org-latex-to-pdf-process '("xelatex -interaction nonstopmode %s"
"xelatex -interaction nonstopmode %s")
 org-export-preprocess-hook '(org-export-blocks-preprocess
org-export-bibtex-preprocess)
 org-agenda-diary-file "~/org/todo.org"
 org-tab-first-hook '(org-hide-block-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-clock-sound "d:/sound/Ringtone.mp3"
 org-todo-keywords '((sequence "TODO(t)" "WAIT(w@/!)" "FUTURE(f)" "|"
"DONE(d!/!)" "NOTE(n@)" "CANCELED(c@/!)"))
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-default-notes-file "refile.org"
 org-directory "~/org/"
 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-use-speed-commands t
 org-mode-hook '(turn-on-org-cdlatex
 (lambda nil (org-add-hook (quote
change-major-mode-hook) (quote org-show-block-all) (quote append)
(quote local)))
 (lambda nil (visual-line-mode 1) (auto-complete-mode
1) (auto-complete-mode-maybe)))
 org-agenda-ndays 1
 org-refile-targets '((org-agenda-files :level . 1) (nil :level . 1))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-fast-tag-selection-single-key 'expert
 org-agenda-skip-deadline-if-done t
 org-deadline-string "DUE:"
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp nil
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-remember-templates '(("todo" 116 "* TODO %?\n%U\n%a" nil bottom nil)
  ("note" 110 "* NOTE %?\n%U\n%a"
"~/org/todo.archive" "Notes" nil)
  ("diary" 100 "* %t %?" "~/org/todo.org" date-tree)
  ("appointment" 97 "* %^T %^{Event} -
%^{Place}\n%?\n%U" nil bottom nil))
 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)
 )


-- 
Kind regards,

Tian Qiu


___
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] odd table behavior

2010-01-14 Thread Carsten Dominik


On Jan 14, 2010, at 5:03 PM, David Ellis wrote:

I haven't used tables much so please forgive me if this is a dumb  
question.


I thought if I typed the following:

|this|is|a|test|
|will tables work?|

and I pressed the enter key with the cursor at the end of the second
line, the tables would reformat. This doesn't seem to be working
anymore for me. If I press the  key that reformats.


This is a special exception with the ENTER key.  At the end
of a line in a table it always makes a new line, because this
is pretty much the only way to split a table into two, for example.

Manish and Chris have already explained everything else.

- Carsten




I am using GNU Emacs 23.1.1on Windows with org version 6.33f.

I also noticed that if I type |- at the beginning of a line and then
hit return, it remains |-. If I press , it works correctly.

First of all, am I correct that return should reformat. If so, what
should I check to try to fix this.

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


- 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] Global agenda views creates lots of buffers.

2010-01-14 Thread Carsten Dominik


On Jan 14, 2010, at 4:17 PM, Óscar Fuentes wrote:


I have quite a few org files in org-agenda-files. When a global agenda
view is displayed (the Global TODO, for instance) org-mode visits all
the files and keeps the buffer for each of them. I'll prefer this
behavior:

for each file in org-agenda-files
   have we a buffer containing it?
 no -> create a buffer and visit it
   do our stuff (gather TODO items, etc)
   if we were not visiting the file
 kill the buffer that contains it.

Is there a reason for keeping all those buffers around?


The reason is that org makes links from the agenda to the files
using markers, and markers die when the buffer is closed.

What could be possible is throwing away all buffers that
have not produced an entry.  However, I have worked with the
assumption that once you start the agenda you might run more
agenda commands, so keeping the buffers removes the overhead
of reopening many files again and again.

As Darlan has said, you can exit the agenda with "x" to get
rid of all buffers that where created to make the agenda
and have not been modified since making them.

HTH

- 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] Global agenda views creates lots of buffers.

2010-01-14 Thread Darlan Cavalcante Moreira

I don't know if there is a reason, but pressing "x" in the agenda will close all
org buffers that were opened by the agenda. The files that you opened yourself
won't be closed.

Maybe the reason is that if you change anything in the agenda these org files
would have to be opened in order to be modified. Therefore it is better to keep
them opened.

- Darlan

At Thu, 14 Jan 2010 16:17:43 +0100,
Óscar Fuentes  wrote:
> 
> I have quite a few org files in org-agenda-files. When a global agenda
> view is displayed (the Global TODO, for instance) org-mode visits all
> the files and keeps the buffer for each of them. I'll prefer this
> behavior:
> 
> for each file in org-agenda-files
> have we a buffer containing it?
>   no -> create a buffer and visit it
> do our stuff (gather TODO items, etc)
> if we were not visiting the file
>   kill the buffer that contains it.
> 
> Is there a reason for keeping all those buffers around?
> 
> -- 
> Óscar
> 
> 
> 
> ___
> 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] odd table behavior

2010-01-14 Thread Chris Randle

Hi David

David Ellis wrote:

I thought if I typed the following:

>

|this|is|a|test|
|will tables work?|

and I pressed the enter key with the cursor at the end of the second
line, the tables would reformat. This doesn't seem to be working
anymore for me. If I press the  key that reformats.


The table will reformat if you press the enter key at the end of the 
line (after "work?") without typing the closing bar "|".


Pressing enter *inside* any cell will reformat the table and move down 
to the next cell, but not if you're outside of the grid.


Also, C-c C-c anywhere within the table block (even if outside of the 
grid, as in your example) will reformat, keeping the cursor in its 
current position.


--
Chris Randle


___
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: how to unschedule a task in agenda view?

2010-01-14 Thread Eric S Fraga
At Thu, 14 Jan 2010 19:42:51 +0100,
Carsten Dominik wrote:
> 
> Hi Eric and others,  I have improved he documentation in all mentioned
> places.
> 
> Also, I have made `C-u B s' bulk-unschedule stuff.
> 
> HTH
> 
> - Carsten

Thanks!


___
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] Re: org-babel-R and windows ?

2010-01-14 Thread Sébastien Vauban
Hi Dan,

Dan Davison wrote:
> Sébastien Vauban  writes:
>> Dan Davison wrote:
>>> "d.tchin"  writes:
 Dan Davison  stats.ox.ac.uk> writes:
>
> The org-babel default is to invoke R as an external shell command, and I
> think this is what is causing the problem. It requires that the emacs
> function shell-command can use the string "R" to invoke an R process,
> i.e. the R installation and the shell path must be such that this is the
> case.

 Thank you for the information and explanation. It seems that the problem
 comes from the windows shell.

 I try the following :  I explicitely told emacs to use bash
 with the following instructions :
 (setq explicit-shell-file-name "C:/msys/1.0/bin/bash.exe")
 (setq shell-file-name explicit-shell-file-name)

 It works with bash.
>>>
>>> Thanks for that, I've stored your solution in the org-babel development
>>> repo with a view to modifying our code so that these probloems are
>>> minimised in the future, and we'll also make sure the documentation
>>> addresses this.
>>
>> I'm a Windows user *and* an Ubuntu user for years, now, with one single
>> common `.emacs' file for both OS.
>>
>> Therefore, I'll show you what I have in my `.emacs':
>>
>> ;;*** [ 41.1 Single Shell
>>
>> ;; for single shell commands
>> (setq shell-file-name "bash")  ;; must be in the `PATH' (Windows users)
>>
>>
>> ;;*** [ 41.2 Interactive Shell
>>
>> ;; for the interactive (sub)shell
>> (setq explicit-shell-file-name shell-file-name)
>>
>> Almost the same, except the order (not important) and the fact that bash is
>> written in its simplest form: no hard-coded path, and no `.exe' suffix, so
>> that it works for both Win32 and Linux.
>>
>> The only thing to do, for Windows users, is ensure that `bash.exe'
>> (generally located in `C:\cygwin\bin') is in the Windows PATH environment
>> variable.
>>
>> I would advice keeping such a construct, instead of full paths.
>
> Thanks Seb,
>
> That's really helpful.

You're (more than) welcome. My goal is the same as yours: making this whole
stuff more open, more easy, more powerful, and more reliable. Do I miss
something? ;-))


> I'm really ignorant about this Windows stuff. So let me get the basics
> straight: is it the case that, if a user does *not* have a UNIX emulation
> environment installed under Windows (e.g. cygwin, msys, mingw?) then there
> is no way that org-babel external shell evaluation is going to work? Or does
> that statement need to be qualified according to language (R, shell, ruby,
> ...)? I.e., when a Windows user just has emacs and the native windows/dos
> shell, are these things just not going to work?

I have to be honest. I will give more impressions than facts, for the simple
reason that Cygwin is well implanted in my Windows, and that for more than 10
years now: I began using Emacs in 1999, and have Cygwin bundled with it since
then (as Windows is pretty useless without a better shell than `cmd.exe').

So, trying to answer your question, I would split it in two parts:

- calling scripts,
- calling applications with some data or description.

First case: script written for the shell. Without cygwin, your interpreter is
`cmd.exe', so pretty limited. And, here, we come back to one question I had
some weeks ago about which interpreter is chosen when executing the snippet:
bash, Zsh, etc. Same problem here, with a third possible command interpreter.

Second case: "applications" like R, ditaa, etc. There, I don't see any problem
for calling them with some data to feed them. The only real condition is that
the program must be found in the PATH (or the full path to the executable has
to be given).

Am I answering you in the intended way?  Do you want me to make some tests?
Don't hesitate...

Best regards,
  Seb

-- 
Sébastien Vauban



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


Re: [Orgmode] org-entry-get bugs etc.

2010-01-14 Thread Carsten Dominik


On Jan 14, 2010, at 12:09 AM, Samuel Wales wrote:


I ran into a bug in which org-entry-get returns the wrong
value.  It brought up some other points.

1) org-entry-get of "TODO" returns the wrong value when
   there is a lower case version of a todo kw on a
   headline.  Example:

   * neowhen

   I have "NEOWHEN" as a todo kw.

   What it returns is "neowhen".  What I think it should
   return is the value for a blank state.  Currently, this
   value is nil.


Thanks for you patient work to find these places.  I have
fixed this one as well, just like you earlier discoveries.


2) This is the 5th bug that I have reported of this type.
   In all 5 cases, the lower case version of a todo kw at
   the beginning of a headline caused incorrect behavior.
   This suggests separate matches.  At least as a
   possibility.


Yes, these are all individual matches, unfortunately.



   This in turn suggests to me that it might be possible
   to refactor org.  By this I mean create a wrapper to do
   the matching and call that wrapper in all of those
   places.  I wish I could help here, but I cannot.



This is possible, but a huge amount of work which might
introduce more bugs.  I think we really have caught most
of these now, thanks to you.



3) For the user, I think it is more convenient to use
   org-entry-get for metadata than to parse manually.
   This is a useful function.


Yes, it is, and now it also is reasonably fast.  It used to
be ridiculously slow for all the meta-data properties.  But
now this is acceptable, thanks to a recent change.



4) Perhaps Lisp keywords can be allowed instead of strings
   for speed.  For example,

 (org-entry-get point-or-marker :todo)

   Instead of:

 (org-entry-get point-or-marker "TODO")

   I don't know if it would be significant.


I don't think it makes a measurable difference for speed.



5) This isn't directly related, but the value for a blank
   state is currently nil, not "".  I have not thought
   about this deeply, but as nil is not a string, it is a
   special case (i.e. the only state that is not a
   string).  In my experience, special cases in return
   values cause complicated code, because calling code
   needs to special-case the special case instead of
   merely composing, funcalling, or applying.  Perhaps
   it's too late to change that.  Or perhaps there is a
   special reason to use nil.  But seems worth mentioning
   just in case it triggers an idea.



This goes both ways!  I often have to check if there is a
todo keyword, so for me the nil value is convenient. Otherwise I
would have to test

  (and todo (not (equal todo "")))

For the normal properties, the difference between nil
and "" is actually significant.  nil means the keyword is
not there, "" means it is there but the value is empty.

Thanks, as always, for your thoughtful contributions.

- 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: how to unschedule a task in agenda view?

2010-01-14 Thread Carsten Dominik
Hi Eric and others,  I have improved he documentation in all mentioned  
places.


Also, I have made `C-u B s' bulk-unschedule stuff.

HTH

- Carsten

On Jan 14, 2010, at 1:56 PM, Eric S Fraga wrote:


At Thu, 14 Jan 2010 13:47:14 +0100,
Benjamin Andresen wrote:

I do have a question: is this anywhere in the manual?


It's commented on here: (info "(org)Inserting deadline/schedule")
Also here, (in org-mode): C-h k C-c C-s


Ah, true!  But in agenda view, the help information is:

,
| C-c C-s runs the command org-agenda-schedule, which is an  
interactive

| compiled Lisp function in `org-agenda.el'.
|
| It is bound to C-c C-s,   
| .
|
| (org-agenda-schedule arg)
|
| Schedule the item at point.
`

so there is no mention of the argument here (i.e. here we have "arg"
with no explanation which maybe should have given me a hint...).  In
any case, it would be good to have both help entries the same?


If not, it might be worth adding, say:

to the entry on C-c C-s in section 10.5 of the org-manual and to C-c
C-d if the same applies to deadlines?


Good question... I don't know how often you should repeat the same
information at different places to make looking up stuff easier.


True.  There is a point of diminishing return.

For me, at least, if the same information had been available in the
help entry for the key sequence in the agenda view as in normal org
mode, I would have found it as that's the first thing I do tend to
check.

Thanks,
eric


___
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] bug in source code referencing?

2010-01-14 Thread Carsten Dominik

Hi Martin, thanks for the report and in particular the
bisection - this makes things *so* infinitely much easier for me.

This bug is fixed now.

- Carsten

On Jan 14, 2010, at 12:01 PM, Martin G. Skjæveland wrote:


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


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

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


Hi,

I pulled a fresh copy of org-mode this morning and noticed that  
references to source code line numbers no longer work as they used  
to. Instead of displaying the number of the line with the label, the  
label is displayed.


Exporting the following example, retrieved from the online  
documentation (http://orgmode.org/manual/Literal-examples.html),


-start
#+BEGIN_SRC emacs-lisp -n -r
 (save-excursion  (ref:sc)
 (goto-char (point-min))   (ref:jump)
#+END_SRC

 In line [[(sc)]] we remember the current position.  [[(jump)][Line  
(jump)]] jumps to point-min.

-end

gives me in latex export

-start
\begin{verbatim}
1:  (save-excursion
2:  (goto-char (point-min))
\end{verbatim}

 In line \hyperref[(sc)]{(sc)} we remember the current position.  
\hyperref[(jump)]{Line (jump)}

 jumps to point-min.
-end

Is this a bug or am I doing something wrong?

Thanks!
Martin


Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
of 2009-09-27 on palmer, modified by Debian
Package: Org-mode version 6.34a (release_6.34a.1.gbb94)

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

org-after-todo-state-change-hook '(org-clock-out-if-current)
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-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-use-speed-commands t
org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 )
org-confirm-elisp-link-function 'yes-or-no-p
org-occur-hook '(org-first-headline-recenter)
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)
)



___
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: Partial tags match in custom agenda?

2010-01-14 Thread Paul Mead
Martin Pohlack  writes:

> Hi Paul,
>
> You can do regexp matching on tags.  My agenda tags all start with ag_
> (for people), agM_ (meetings) or agC_ (calls).
>
> This snippet from my org-agenda-custom-commands shows how to use this:
>
> (tags "{^ag[MC]_.*}-maybe-TODO=\"\"-SCHEDULED>\"\""
>   ((org-agenda-overriding-header "Agendas (regular):")
>(org-agenda-sorting-strategy
> '(tag-up))
>(org-agenda-skip-function
> '(org-agenda-skip-subtree-if 'regexp "^\\*+ 
> \\(DONE\\|CANC\\|CONT\\|PROJ\\|MAYBE\\) "
> (tags "{^ag_.*}-maybe-TODO=\"\"-SCHEDULED>\"\""
>   ((org-agenda-overriding-header "Agendas (non-regular):")
>(org-agenda-sorting-strategy
> '(tag-up))
>(org-agenda-skip-function
> '(org-agenda-skip-subtree-if 'regexp "^\\*+ 
> \\(DONE\\|CANC\\|CONT\\|PROJ\\|MAYBE\\) "
>
> Cheers,
> Martin

Thanks Martin, this has been very useful - I didn't know about the
regexp thing, I'm sure I'm going to use it elsewhere!

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] [babel] Re: org-babel-R and windows ?

2010-01-14 Thread Dan Davison
Sébastien Vauban  writes:

> Hi Dan,
>
> Dan Davison wrote:
>> "d.tchin"  writes:
>>> Dan Davison  stats.ox.ac.uk> writes:
 The org-babel default is to invoke R as an external shell command, and I
 think this is what is causing the problem. It requires that the emacs
 function shell-command can use the string "R" to invoke an R process, i.e.
 the R installation and the shell path must be such that this is the case.
>>>
>>> Thank you for the information and explanation. It seems that the problem
>>> comes from the windows shell.
>>>
>>> I try the following :  I explicitely told emacs to use bash
>>> with the following instructions :
>>> (setq explicit-shell-file-name "C:/msys/1.0/bin/bash.exe")
>>> (setq shell-file-name explicit-shell-file-name)
>>>
>>> It works with bash.
>>
>> Thanks for that, I've stored your solution in the org-babel development repo
>> with a view to modifying our code so that these probloems are minimised in
>> the future, and we'll also make sure the documentation addresses this.
>
> I'm a Windows user *and* an Ubuntu user for years, now, with one single common
> `.emacs' file for both OS.
>
> Therefore, I'll show you what I have in my `.emacs':
>
> ;;*** [ 41.1 Single Shell
>
> ;; for single shell commands
> (setq shell-file-name "bash")  ;; must be in the `PATH' (Windows users)
>
>
> ;;*** [ 41.2 Interactive Shell
>
> ;; for the interactive (sub)shell
> (setq explicit-shell-file-name shell-file-name)
>
> Almost the same, except the order (not important) and the fact that bash is
> written in its simplest form: no hard-coded path, and no `.exe' suffix, so
> that it works for both Win32 and Linux.
>
> The only thing to do, for Windows users, is ensure that `bash.exe' (generally
> located in `C:\cygwin\bin') is in the Windows PATH environment variable.
>
> I would advice keeping such a construct, instead of full paths.

Thanks Seb,

That's really helpful. I'm really ignorant about this Windows stuff. So
let me get the basics straight: is it the case that, if a user does
*not* have a UNIX emulation environment installed under Windows
(e.g. cygwin, msys, mingw?) then there is no way that org-babel external
shell evaluation is going to work? Or does that statement need to be
qualified according to language (R, shell, ruby, ...)? I.e., when a
Windows user just has emacs and the native windows/dos shell, are these
things just not going to work?

Dan

>
> Best regards,
>   Seb


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


Re: [Orgmode] odd table behavior

2010-01-14 Thread Manish
On Thu, Jan 14, 2010 at 9:33 PM, David Ellis wrote:
> I haven't used tables much so please forgive me if this is a dumb question.
>
> I thought if I typed the following:
>
> |this|is|a|test|
> |will tables work?|
>
> and I pressed the enter key with the cursor at the end of the second
> line, the tables would reformat. This doesn't seem to be working
> anymore for me. If I press the  key that reformats.
>
> I am using GNU Emacs 23.1.1on Windows with org version 6.33f.
>
> I also noticed that if I type |- at the beginning of a line and then
> hit return, it remains |-. If I press , it works correctly.
>
> First of all, am I correct that return should reformat.

I don't think so.  I don't recall tables ever functioning that way.
Did they behave this way earlier?

> If so, what should I check to try to fix this.

May be you can rebind org-cycle to another key if TAB is inconvenient,
say C-j or something?  But I guess that is not what you need.

-- 
Manish


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


[Orgmode] odd table behavior

2010-01-14 Thread David Ellis
I haven't used tables much so please forgive me if this is a dumb question.

I thought if I typed the following:

|this|is|a|test|
|will tables work?|

and I pressed the enter key with the cursor at the end of the second
line, the tables would reformat. This doesn't seem to be working
anymore for me. If I press the  key that reformats.

I am using GNU Emacs 23.1.1on Windows with org version 6.33f.

I also noticed that if I type |- at the beginning of a line and then
hit return, it remains |-. If I press , it works correctly.

First of all, am I correct that return should reformat. If so, what
should I check to try to fix this.

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


[Orgmode] Global agenda views creates lots of buffers.

2010-01-14 Thread Óscar Fuentes
I have quite a few org files in org-agenda-files. When a global agenda
view is displayed (the Global TODO, for instance) org-mode visits all
the files and keeps the buffer for each of them. I'll prefer this
behavior:

for each file in org-agenda-files
have we a buffer containing it?
  no -> create a buffer and visit it
do our stuff (gather TODO items, etc)
if we were not visiting the file
  kill the buffer that contains it.

Is there a reason for keeping all those buffers around?

-- 
Óscar



___
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] Hierarchical checkbox summary works on one machine but not another

2010-01-14 Thread Darlan Cavalcante Moreira

As I understand, the cookie in "Total Food" should actually say [0/0], since
Fruits, Vegetables and Drinks are not checkboxes. At least this is how it works
for me with TODO items.

- Darlan Cavalcante Moreira
  
At Thu, 14 Jan 2010 11:43:20 + (UTC),
Charles Cave  wrote:
> 
> The following hierarchical list structure has checkbox
> statistics "cookies" at a top level as well as the 2nd level.
> 
> I use org-mode 6.34 on Windows XP on both my home and office PCs.
> 
> I am stumped that the following structure updates the cookies
> correctly on  my work machine as follows.
> 
> + Total Food [6/8]
>1. Fruit [3/3]
>   - [X]  Bananas
>   - [X] Oranges
>   - [X] Grapes
>2. Vegetables [1/2]
>   - [X] Carrots 
>   - [ ] Potatoes
>3. Drinks [2/3]
>   - [X] Water
>   - [ ] Coffee
>   - [X] Wine
> 
> but ignores the structure on the home computer:
> 
> + Total Food [3/3]   <--- should say [6/8]
>1. Fruit [3/3]
>   - [X]  Bananas
>   - [X] Oranges
>   - [X] Grapes
>2. Vegetables [2/2]
>   - [X] Carrots 
>   - [X] Potatoes
>3. Drinks [3/3]
>   - [X] Water
>   - [X] Coffee
>   - [X] Wine
> 
> 
> I cleaned out the elisp folder on the home machine and reinstalled
> org-mode, but I can't understand the difference.  Is there
> a customisation variable apart from org-hierarchical-checkbox-statistics?
> 
> Thakns
> Charles
> 
> 
> 
> ___
> 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] Partial tags match in custom agenda?

2010-01-14 Thread Martin Pohlack
Hi Paul,

Paul Mead wrote:
> Hi
> 
> I have a convention in my org file which uses @name as a gtd-type
> 'agenda' item, so if an action is related to Liz, I tag it with @liz for
> example. 
> 
> Is there any way of matching that '@' in setting up a custom agenda
> view? I'd like if possible to have a block agenda view which lists all
> of my @liz, @bob, @joe - type items in one view, rather than having to
> maintain a list of all the possible names in the block agenda setup.

You can do regexp matching on tags.  My agenda tags all start with ag_
(for people), agM_ (meetings) or agC_ (calls).

This snippet from my org-agenda-custom-commands shows how to use this:

(tags "{^ag[MC]_.*}-maybe-TODO=\"\"-SCHEDULED>\"\""
  ((org-agenda-overriding-header "Agendas (regular):")
   (org-agenda-sorting-strategy
'(tag-up))
   (org-agenda-skip-function
'(org-agenda-skip-subtree-if 'regexp "^\\*+ 
\\(DONE\\|CANC\\|CONT\\|PROJ\\|MAYBE\\) "
(tags "{^ag_.*}-maybe-TODO=\"\"-SCHEDULED>\"\""
  ((org-agenda-overriding-header "Agendas (non-regular):")
   (org-agenda-sorting-strategy
'(tag-up))
   (org-agenda-skip-function
'(org-agenda-skip-subtree-if 'regexp "^\\*+ 
\\(DONE\\|CANC\\|CONT\\|PROJ\\|MAYBE\\) "

Cheers,
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] bug in source code referencing?

2010-01-14 Thread Martin G. Skjæveland
Sure! This is the first time I have used (and heard of) git bisect, so I 
hope this is correct. Here is the "answer" from the bisect operation, 
below is the 'git bisect log' output.


Martin

f444c8cd679dc488b1016074f1eb25c7c1b6f1af is first bad commit
commit f444c8cd679dc488b1016074f1eb25c7c1b6f1af
Author: Carsten Dominik 
Date:   Wed Dec 16 19:36:56 2009 +0100

Export: Do not check for protectedness at the end of a line

:04 04 173536d8b0725a0a50373c20c15a27bf0e5e2649 
1213cc80e934d100803a7dae0afdb7dc7026b2ee M	lisp



$ git bisect log
git bisect start
# bad: [bb949518d29e26f5dea88d7284d7fa61b2a31f96] tweak to source-name 
LaTeX export

git bisect bad bb949518d29e26f5dea88d7284d7fa61b2a31f96
# good: [2b528343557b4ff08af8efb283f01b5d231a7fc4] Release 6.33
git bisect good 2b528343557b4ff08af8efb283f01b5d231a7fc4
# good: [fe9ac47afc736091fd8538faf929c9fec05a66d3] Archiving: Fix bug 
when archiving all DONE children in odd-level file

git bisect good fe9ac47afc736091fd8538faf929c9fec05a66d3
# bad: [1e32a42a780f8e0679f3bdfafd9b69f5b63601f3] Merge commit 
'bernt/clock-in'

git bisect bad 1e32a42a780f8e0679f3bdfafd9b69f5b63601f3
# bad: [567c753f8bae77d3c572da3851aa76b4c13c6fa4] LaTeX export: Only 
define a caption for longtable if there is one

git bisect bad 567c753f8bae77d3c572da3851aa76b4c13c6fa4
# good: [cfb2550bbadde8669f586dcfda2fd928cbbd4f5a] New hooks for 
external support for allowed property values

git bisect good cfb2550bbadde8669f586dcfda2fd928cbbd4f5a
# good: [4d4d3ea74548f761fc58029e0a21769c317537e4] Incorporate fix from 
downstream Emacs

git bisect good 4d4d3ea74548f761fc58029e0a21769c317537e4
# good: [093fe010171d27534f3056cf0dc8dec6ec8dd847] Cleanup empty lines 
in itemize environments

git bisect good 093fe010171d27534f3056cf0dc8dec6ec8dd847
# bad: [f444c8cd679dc488b1016074f1eb25c7c1b6f1af] Export: Do not check 
for protectedness at the end of a line

git bisect bad f444c8cd679dc488b1016074f1eb25c7c1b6f1af
# good: [7062a884107fd8ab261fc098096a7d5918b40229] Match TODO keywords 
case-sensitively

git bisect good 7062a884107fd8ab261fc098096a7d5918b40229
$


Carsten Dominik wrote:

Hi Martin,

could I ask you to use "git bisect" it identify the commit when this 
went wrong?  That would be most helpful!


Thanks

- Carsten

On Jan 14, 2010, at 12:01 PM, Martin G. Skjæveland wrote:


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

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

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


Hi,

I pulled a fresh copy of org-mode this morning and noticed that 
references to source code line numbers no longer work as they used to. 
Instead of displaying the number of the line with the label, the label 
is displayed.


Exporting the following example, retrieved from the online 
documentation (http://orgmode.org/manual/Literal-examples.html),


-start
#+BEGIN_SRC emacs-lisp -n -r
 (save-excursion  (ref:sc)
 (goto-char (point-min))   (ref:jump)
#+END_SRC

 In line [[(sc)]] we remember the current position.  [[(jump)][Line 
(jump)]] jumps to point-min.

-end

gives me in latex export

-start
\begin{verbatim}
1:  (save-excursion
2:  (goto-char (point-min))
\end{verbatim}

 In line \hyperref[(sc)]{(sc)} we remember the current position. 
\hyperref[(jump)]{Line (jump)}

 jumps to point-min.
-end

Is this a bug or am I doing something wrong?

Thanks!
Martin


Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
of 2009-09-27 on palmer, modified by Debian
Package: Org-mode version 6.34a (release_6.34a.1.gbb94)

current state:
==
(setq
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
org-after-todo-state-change-hook '(org-clock-out-if-current)
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-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-use-speed-commands t
org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 )
org-confirm-elisp-link-function 'yes-or-no-p
org-occur-hook '(org-first-headline-recent

[Orgmode] Re: how to unschedule a task in agenda view?

2010-01-14 Thread Paul Mead
Eric S Fraga  writes:

> Hello,
>
> the short question is: how can I easily unschedule a task when in the
> agenda view?  C-c C-s allows me to re-schedule (as do shifted arrow
> keys) but sometimes I simply want to remove the schedule entry for the
> item.
>
C-u C-c C-s?


___
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] how to unschedule a task in agenda view?

2010-01-14 Thread Eric S Fraga
At Thu, 14 Jan 2010 18:07:34 +0530,
Manish wrote:
> 
> There is a hook "org-after-todo-state-change-hook" that is called
> after the state of a TODO item is changed.  So may be org-schedule can
> be called to remove the SCHEDULED time on state change to WAITING?
> 
> http://orgmode.org/worg/org-configs/org-hooks.php#sec-1.13

This works like a charm:

--8<---cut here---start->8---
(add-hook 'org-after-todo-state-change-hook
  '(lambda ()
 ;; remove the scheduled date/time if present as the activity is no 
longer mine
 ;; based on a suggestion by Manish on the org-mode mailing list
 (if (string= state "WAITING") (org-schedule t
--8<---cut here---end--->8---

Thanks again,
eric


___
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: how to unschedule a task in agenda view?

2010-01-14 Thread Eric S Fraga
At Thu, 14 Jan 2010 18:14:40 +0530,
Manish wrote:
> On Thu, Jan 14, 2010 at 6:07 PM, Eric S Fraga  wrote:
> > I do have a question: is this anywhere in the manual?
> 
> Section 8.3.1, para 2

Okay:

* TODO I must get more effective in my use of Emacs info mode!
  SCHEDULED: Like, now!

Thanks!


___
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: how to unschedule a task in agenda view?

2010-01-14 Thread Eric S Fraga
At Thu, 14 Jan 2010 13:47:14 +0100,
Benjamin Andresen wrote:
> > I do have a question: is this anywhere in the manual?
> 
> It's commented on here: (info "(org)Inserting deadline/schedule")
> Also here, (in org-mode): C-h k C-c C-s

Ah, true!  But in agenda view, the help information is:

,
| C-c C-s runs the command org-agenda-schedule, which is an interactive
| compiled Lisp function in `org-agenda.el'.
| 
| It is bound to C-c C-s,   
| .
| 
| (org-agenda-schedule arg)
| 
| Schedule the item at point.
`

so there is no mention of the argument here (i.e. here we have "arg"
with no explanation which maybe should have given me a hint...).  In
any case, it would be good to have both help entries the same?

> > If not, it might be worth adding, say:
> >
> > to the entry on C-c C-s in section 10.5 of the org-manual and to C-c
> > C-d if the same applies to deadlines?
> 
> Good question... I don't know how often you should repeat the same
> information at different places to make looking up stuff easier.

True.  There is a point of diminishing return.  

For me, at least, if the same information had been available in the
help entry for the key sequence in the agenda view as in normal org
mode, I would have found it as that's the first thing I do tend to
check.

Thanks,
eric


___
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: how to unschedule a task in agenda view?

2010-01-14 Thread Benjamin Andresen
Hey Eric,

Eric S Fraga  writes:

> At Thu, 14 Jan 2010 11:41:55 +,
> Paul Mead wrote:
>> 
>> Eric S Fraga  writes:
>> 
>> > Hello,
>> >
>> > the short question is: how can I easily unschedule a task when in the
>> > agenda view?  C-c C-s allows me to re-schedule (as do shifted arrow
>> > keys) but sometimes I simply want to remove the schedule entry for the
>> > item.
>> >
>> C-u C-c C-s?
>
> D'uh.Works perfectly.
>
> Thanks for the speedy response.
>
> I do have a question: is this anywhere in the manual?

It's commented on here: (info "(org)Inserting deadline/schedule")
Also here, (in org-mode): C-h k C-c C-s

> If not, it might be worth adding, say:
>
> to the entry on C-c C-s in section 10.5 of the org-manual and to C-c
> C-d if the same applies to deadlines?

Good question... I don't know how often you should repeat the same
information at different places to make looking up stuff easier.

And I don't know if info files can have more specific links than just
nodes. The same way org does it with an isearch text on top.

br,
benny


___
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: how to unschedule a task in agenda view?

2010-01-14 Thread Manish
On Thu, Jan 14, 2010 at 6:07 PM, Eric S Fraga  wrote:
[...]
>> > keys) but sometimes I simply want to remove the schedule entry for the
>> > item.
>> >
>> C-u C-c C-s?
>
> D'uh.    Works perfectly.
>
> Thanks for the speedy response.
>
> I do have a question: is this anywhere in the manual?

Section 8.3.1, para 2

-- 
Manish


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


Re: [Orgmode] how to unschedule a task in agenda view?

2010-01-14 Thread Eric S Fraga
At Thu, 14 Jan 2010 18:07:34 +0530,
Manish wrote:
> 
> On Thu, Jan 14, 2010 at 4:56 PM, Eric S Fraga wrote:
> [...]
> > Ideally, it would be nice if one could attach actions (beyond logbook
> > recording) to todo state changes, actions like "unschedule this item
> > when switching to WAITING state" and I'm sure there are others...  but
> > having this capability is not critical of course.
> 
> There is a hook "org-after-todo-state-change-hook" that is called
> after the state of a TODO item is changed.  So may be org-schedule can
> be called to remove the SCHEDULED time on state change to WAITING?
> 
> http://orgmode.org/worg/org-configs/org-hooks.php#sec-1.13
> 
> Best,
> -- 
> Manish

I just *knew* that org-mode would already support what I wanted.  Why
I didn't think of looking at the hooks, I'm not sure.  Thanks for this
pointer.  I'm off to play with it!


___
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] how to unschedule a task in agenda view?

2010-01-14 Thread Manish
On Thu, Jan 14, 2010 at 4:56 PM, Eric S Fraga wrote:
[...]
> Ideally, it would be nice if one could attach actions (beyond logbook
> recording) to todo state changes, actions like "unschedule this item
> when switching to WAITING state" and I'm sure there are others...  but
> having this capability is not critical of course.

There is a hook "org-after-todo-state-change-hook" that is called
after the state of a TODO item is changed.  So may be org-schedule can
be called to remove the SCHEDULED time on state change to WAITING?

http://orgmode.org/worg/org-configs/org-hooks.php#sec-1.13

Best,
-- 
Manish


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


[Orgmode] Re: how to unschedule a task in agenda view?

2010-01-14 Thread Eric S Fraga
At Thu, 14 Jan 2010 11:41:55 +,
Paul Mead wrote:
> 
> Eric S Fraga  writes:
> 
> > Hello,
> >
> > the short question is: how can I easily unschedule a task when in the
> > agenda view?  C-c C-s allows me to re-schedule (as do shifted arrow
> > keys) but sometimes I simply want to remove the schedule entry for the
> > item.
> >
> C-u C-c C-s?

D'uh.Works perfectly.

Thanks for the speedy response.

I do have a question: is this anywhere in the manual?  If not, it
might be worth adding, say:

--8<---cut here---start->8---
With an argument, this command unschedules the item.
--8<---cut here---end--->8---

to the entry on C-c C-s in section 10.5 of the org-manual and to C-c
C-d if the same applies to deadlines?


___
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 in source code referencing?

2010-01-14 Thread Carsten Dominik

Hi Martin,

could I ask you to use "git bisect" it identify the commit when this  
went wrong?  That would be most helpful!


Thanks

- Carsten

On Jan 14, 2010, at 12:01 PM, Martin G. Skjæveland wrote:


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


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

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


Hi,

I pulled a fresh copy of org-mode this morning and noticed that  
references to source code line numbers no longer work as they used  
to. Instead of displaying the number of the line with the label, the  
label is displayed.


Exporting the following example, retrieved from the online  
documentation (http://orgmode.org/manual/Literal-examples.html),


-start
#+BEGIN_SRC emacs-lisp -n -r
 (save-excursion  (ref:sc)
 (goto-char (point-min))   (ref:jump)
#+END_SRC

 In line [[(sc)]] we remember the current position.  [[(jump)][Line  
(jump)]] jumps to point-min.

-end

gives me in latex export

-start
\begin{verbatim}
1:  (save-excursion
2:  (goto-char (point-min))
\end{verbatim}

 In line \hyperref[(sc)]{(sc)} we remember the current position.  
\hyperref[(jump)]{Line (jump)}

 jumps to point-min.
-end

Is this a bug or am I doing something wrong?

Thanks!
Martin


Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
of 2009-09-27 on palmer, modified by Debian
Package: Org-mode version 6.34a (release_6.34a.1.gbb94)

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

org-after-todo-state-change-hook '(org-clock-out-if-current)
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-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-use-speed-commands t
org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 )
org-confirm-elisp-link-function 'yes-or-no-p
org-occur-hook '(org-first-headline-recenter)
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)
)



___
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] Hierarchical checkbox summary works on one machine but not another

2010-01-14 Thread Charles Cave
The following hierarchical list structure has checkbox
statistics "cookies" at a top level as well as the 2nd level.

I use org-mode 6.34 on Windows XP on both my home and office PCs.

I am stumped that the following structure updates the cookies
correctly on  my work machine as follows.

+ Total Food [6/8]
   1. Fruit [3/3]
  - [X]  Bananas
  - [X] Oranges
  - [X] Grapes
   2. Vegetables [1/2]
  - [X] Carrots 
  - [ ] Potatoes
   3. Drinks [2/3]
  - [X] Water
  - [ ] Coffee
  - [X] Wine

but ignores the structure on the home computer:

+ Total Food [3/3]   <--- should say [6/8]
   1. Fruit [3/3]
  - [X]  Bananas
  - [X] Oranges
  - [X] Grapes
   2. Vegetables [2/2]
  - [X] Carrots 
  - [X] Potatoes
   3. Drinks [3/3]
  - [X] Water
  - [X] Coffee
  - [X] Wine


I cleaned out the elisp folder on the home machine and reinstalled
org-mode, but I can't understand the difference.  Is there
a customisation variable apart from org-hierarchical-checkbox-statistics?

Thakns
Charles



___
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: how to unschedule a task in agenda view?

2010-01-14 Thread Benjamin Andresen
Hey Eric,

Eric S Fraga  writes:

> Hello,
>
> the short question is: how can I easily unschedule a task when in the
> agenda view?  C-c C-s allows me to re-schedule (as do shifted arrow
> keys) but sometimes I simply want to remove the schedule entry for the
> item.

C-u C-c C-s on the item in the agenda will remove the SCHEDULED entry.

I know of no way to Bulk UnSchedule things though. The best bet you have
for that scenario is to use a keyboard macro. Obvious drawbacks to this
is that you have to manually skip entries that you don't want
UnScheduled. This is where bulk actions shine.

> Thanks,
> eric

br,
benny


___
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] how to unschedule a task in agenda view?

2010-01-14 Thread Eric S Fraga
Hello,

the short question is: how can I easily unschedule a task when in the
agenda view?  C-c C-s allows me to re-schedule (as do shifted arrow
keys) but sometimes I simply want to remove the schedule entry for the
item.



(only read the following if you wish to know about my GTD approach)

The longer motivating reason for wanting this is that the need arises
from how I handle my list of todo items.  In my default TODO sequence,
one of the entries is WAITING (aka delegated to somebody else, the one
benefit of having a team of people working for me ;-).  When I switch
a todo item to this state from TODO or INPROGRESS, where I had
scheduled the activity for some date (usually the current date), I
would like to unschedule it.  The activity is now somebody else's
responsibility for the time being so I don't want to have it visible!
(I may still have a deadline attached to it, of course).

John Wiegley's tutorial (which is excellent!) addresses the issue of
delegation by scheduling the task for himself to remind him to ping
the person responsible for the task now.  I could do this (and do do
this sometimes) but I would rather not in general.

I've gone through the manual, the mailing list and the other tutorials
but have missed any easy solution to this.  Obviously, I can simply
visit the item in the org file and delete the schedule entry but I'm
always loathe to leave the agenda view if I don't have to!

Ideally, it would be nice if one could attach actions (beyond logbook
recording) to todo state changes, actions like "unschedule this item
when switching to WAITING state" and I'm sure there are others...  but
having this capability is not critical of course.

Thanks,
eric


___
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: Error when exporting to LaTeX

2010-01-14 Thread Sébastien Vauban
Hi all,

Sébastien Vauban wrote:
>
> Here a problem when exporting such a file:
>
--8<---cut here---start->8---
#+MACRO: rest {\leavevmode \leaders \hrule height 0.7pt\hfill} \\

Nombre de la escuela de idiomas: {{{rest}}}
Nombre y apellidos del estudiante: {{{rest}}}
--8<---cut here---end--->8---
>
> The `rest' macro is for filling the rest of the current line with an
> horizontal rule.
>
> It needs to be enclosed between accolades.
>
> Though, it wrongly gets translated into:
>
--8<---cut here---start->8---
Nombre de la escuela de idiomas: {\leavevmode \leaders \hrule height 
0.7pt\hfill\} \\
Nombre y apellidos del estudiante: {\leavevmode \leaders \hrule height 
0.7pt\hfill\} \\
--8<---cut here---end--->8---
>
> Notice the backslash in front of the final accolade.

I tried a workaround, using replacement constructions for the accolades:
- \bgroup ... \egroup
- \begingroup ... \endgroup

Though they are correctly translated, they don't provide the required result:
the horizontal filling rules just don't show up!

Any idea how to circumvent this?

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] Partial tags match in custom agenda?

2010-01-14 Thread Paul Mead
Hi

I have a convention in my org file which uses @name as a gtd-type
'agenda' item, so if an action is related to Liz, I tag it with @liz for
example. 

Is there any way of matching that '@' in setting up a custom agenda
view? I'd like if possible to have a block agenda view which lists all
of my @liz, @bob, @joe - type items in one view, rather than having to
maintain a list of all the possible names in the block agenda setup.

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


[Orgmode] bug in source code referencing?

2010-01-14 Thread Martin G. Skjæveland

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

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

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


Hi,

I pulled a fresh copy of org-mode this morning and noticed that 
references to source code line numbers no longer work as they used to. 
Instead of displaying the number of the line with the label, the label 
is displayed.


Exporting the following example, retrieved from the online documentation 
(http://orgmode.org/manual/Literal-examples.html),


-start
#+BEGIN_SRC emacs-lisp -n -r
  (save-excursion  (ref:sc)
  (goto-char (point-min))   (ref:jump)
#+END_SRC

  In line [[(sc)]] we remember the current position.  [[(jump)][Line 
(jump)]] jumps to point-min.

-end

gives me in latex export

-start
\begin{verbatim}
1:  (save-excursion
2:  (goto-char (point-min))
\end{verbatim}

  In line \hyperref[(sc)]{(sc)} we remember the current position. 
\hyperref[(jump)]{Line (jump)}

  jumps to point-min.
-end

Is this a bug or am I doing something wrong?

Thanks!
Martin


Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
 of 2009-09-27 on palmer, modified by Debian
Package: Org-mode version 6.34a (release_6.34a.1.gbb94)

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 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-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-use-speed-commands t
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 )
 org-confirm-elisp-link-function 'yes-or-no-p
 org-occur-hook '(org-first-headline-recenter)
 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)
 )



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


[Orgmode] Re: org-babel-R and windows ?

2010-01-14 Thread Sébastien Vauban
Hi Dan,

Dan Davison wrote:
> "d.tchin"  writes:
>> Dan Davison  stats.ox.ac.uk> writes:
>>> The org-babel default is to invoke R as an external shell command, and I
>>> think this is what is causing the problem. It requires that the emacs
>>> function shell-command can use the string "R" to invoke an R process, i.e.
>>> the R installation and the shell path must be such that this is the case.
>>
>> Thank you for the information and explanation. It seems that the problem
>> comes from the windows shell.
>>
>> I try the following :  I explicitely told emacs to use bash
>> with the following instructions :
>> (setq explicit-shell-file-name "C:/msys/1.0/bin/bash.exe")
>> (setq shell-file-name explicit-shell-file-name)
>>
>> It works with bash.
>
> Thanks for that, I've stored your solution in the org-babel development repo
> with a view to modifying our code so that these probloems are minimised in
> the future, and we'll also make sure the documentation addresses this.

I'm a Windows user *and* an Ubuntu user for years, now, with one single common
`.emacs' file for both OS.

Therefore, I'll show you what I have in my `.emacs':

--8<---cut here---start->8---
;;*** [ 41.1 Single Shell

;; for single shell commands
(setq shell-file-name "bash")  ;; must be in the `PATH' (Windows users)


;;*** [ 41.2 Interactive Shell

;; for the interactive (sub)shell
(setq explicit-shell-file-name shell-file-name)
--8<---cut here---end--->8---

Almost the same, except the order (not important) and the fact that bash is
written in its simplest form: no hard-coded path, and no `.exe' suffix, so
that it works for both Win32 and Linux.

The only thing to do, for Windows users, is ensure that `bash.exe' (generally
located in `C:\cygwin\bin') is in the Windows PATH environment variable.

I would advice keeping such a construct, instead of full paths.

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