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

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

Dan Davison wrote:
 d.tchin d.tc...@voila.fr writes:
 Dan Davison davison at 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


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

2010-01-14 Thread Benjamin Andresen
Hey Eric,

Eric S Fraga ucec...@ucl.ac.uk 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] 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


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] 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 ucec...@ucl.ac.uk 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.  blush  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] 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\today\
  ((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\today\
  ((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] 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 charles.c...@gmail.com 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


[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


[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 TAB 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 TAB, 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


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 TAB 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 TAB, 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


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

2010-01-14 Thread Dan Davison
Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi Dan,

 Dan Davison wrote:
 d.tchin d.tc...@voila.fr writes:
 Dan Davison davison at 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


[Orgmode] Re: Partial tags match in custom agenda?

2010-01-14 Thread Paul Mead
Martin Pohlack m...@os.inf.tu-dresden.de 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\today\
   ((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\today\
   ((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] 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


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] 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 TAB 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 TAB, 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


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


[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


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] 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