[Orgmode] Re: cannot enable org-habit

2010-09-02 Thread Noorul Islam K M
Paul Sexton psex...@xnet.co.nz writes:

 Joseph Buchignani joseph.buchignani at gmail.com writes:

 Yes, here is how it looks:
 ...

 Hi Joseph
 The following item has been working fine for me. However I can't see any 
 glaring 
 differences wrt to your example item.


 ** TODO Add MCQs
SCHEDULED: 2010-09-03 Fri .+1d/4d
- State DONE   from TODO   [2010-09-02 Thu 07:51]
- State DONE   from TODO   [2010-08-25 Wed 15:52]
   :PROPERTIES:
   :STYLE: habit
   :LAST_REPEAT: [2010-09-02 Thu 07:51]
   :END:


 Rather than use 'modules' I just have
 (require 'org-habit)
 in my .emacs -- maybe that is worth trying.


For me, Joseph's example works if I use (require 'org-habit). I have not
tried with modules

Thanks and Regards
Noorul

___
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: HTML export of org source blocks

2010-09-02 Thread Noorul Islam K M
Thomas S. Dye t...@tsdye.com writes:

 Aloha all,

 The following example from the Ledger tutorial
 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.php
  doesn't export the #+end_src line:

 #+begin_src org

 ,#+begin_src ledger :cmdline -s bal :results value
 ,!include /tmp/account.ledger
 ,#+end_src

 #+end_src

 As you can see in this example and others in the Ledger tutorial on
 Worg, only the first two lines of the code block make it through the
 exporter.

 Is this a bug or is the source block malformed in some way?


I think you should use BEGIN_EXAMPLE and END_EXAMPLE for this. 

In that case you don't have to use leading ,.

You can check the org files written for babel tutorial

Thanks and Regards
Noorul


___
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] [ANN] List improvement v.2

2010-09-02 Thread Carsten Dominik

Hi everyone,

I have now merged Nicolas' branch into the current master.  Hopefully  
all will go well.

If not, I am sure Nicolas can fix things on short notice.

Thanks to Nicolas for the big chunk of work!

- Carsten

On Jul 22, 2010, at 11:08 PM, Nicolas Goaziou wrote:


Hello,

Here is a new, and probably final feature-wise, suggestion of list
improvement in Org Mode.

Table of Contents
=
1 What is it about again ?
2 Is that all ?
   2.1 Preserving blank lines
   2.2 Timer lists
   2.3 Automatic rules
   2.4 `org-apply-on-list'
3 Where can it be tried ?


1 What is it about again ?
~~~

 I redefined lists in Org Mode. Lists start, as before, at a bullet
 (whose true regexp is at `org-item-beginning-re'), and end at either
 `org-list-end-regexp', a new headline, or, obviously, end of buffer.

 `org-list-end-regexp' is customizable and defaults to 2 blank lines,
 but `org-empty-line-terminates-plain-lists' has precedence over it.
 Moreover, any `org-list-end-regexp' found in special blocks does not
 end list. Here are two examples of valid lists:

 Case 1: `org-list-end-regexp' is at default value


 - First item

   - Sub item

 #+BEGIN_EXAMPLE
 Two blank lines below


 Two blank lines above
 #+END_SRC

   - Last sub item


 List has ended at the beginning of this line.

 Case 2: `org-list-end-regexp' is ^[ \t]*___[ \t]*\n


 - item 1
 - item 2
   - sub-item
   - sub-item 2
 - item 3
 __
 List has ended at the beginning of this line.

 Now, Org Mode knows when a list has ended and how to indent line
 accordingly. In other words, you can `org-return-indent' three times
 to exit a list and be at the right column to go on with the text.

 This new definition is also understood by exporters (LaTeX, DocBook,
 HTML or ASCII) and `org-list-end-regexp' will appear in source as a
 blank line, whatever its value is (as long as it starts with a caret
 and ends with a newline character, as specified in doc-string).

 Another advantage is that you can have two lists of different types
 in a row like in the example below:


 - item
 - item


 1. item
 2. item

 In this example, you can move (or cycle, or indent) items in the
 second list without worrying about changing the first one.

2 Is that all ?


 Yes and no. I tried as much as possible to keep compatibility with
 previous implementation. But, as I was at it, I made a number of
 minor improvements I am now going to describe.

2.1 Preserving blank lines
===

  `org-move-item-up' and `org-move-item-down' will not eat blank
  lines anymore. You can move an item up and down and stay assured
  list will keep its integrity.

  The same is true for `org-sort-list' that would previously collapse
  the list being sorted. Sorting is now safe.

  `org-insert-item', when 'plain-list-item is set to 'auto in
  `org-blank-before-new-entry' (the default, I think), will work hard
  to guess the appropriate number of blank lines to insert before the
  item to come. The function is also much more predictable (in
  previous version, trying to insert an item with point on a blank
  line between 2 items would create a new headline).

2.2 Timer lists


  There are three improvements in timer lists (C-c C-x -).

  1. When a new item is created, it should be properly indented and
 not sticked to column 0 anymore,

  2. When an item is inserted in a pre-existing timer list, it will
 take profit of what has been done to `org-insert-item',

  3. `org-sort-list' can now sort timer lists with the t and T
 commands.

  /Note/: in order to preserve lists integrity, Org Mode will send an
  error if you try to insert a timer list inside a list of another
  type.

2.3 Automatic rules


  I've added sets of rules (applied by default) that can improve
  lists experience. You can deactivate them individually by
  customizing `org-list-automatic-rules'.

  Bullet rule: Some may have noticed that you couldn't obtain *
   as a bullet when cycling a list at column 0 or Org
   would have taken them for headings.

   I extended the idea. Now, * bullet will be changed
   to - if you outdent it to column 0. This and the
   fact that LaTeX exporter now recognizes such lists
   as valid make *-lists very usable.

   In the same register, cycling items of a
   description list will not offer 1. or 1), as
   ordered and description lists are incompatible.

  Checkbox rule: It replaces `org-provide-checkbox-statistics'
 which has become obsolete.

  Indent rule: This set prevents user from breaking his list by
   inadvertence, when indenting or outdenting items
   and sub-trees. Only moves that keep list integrity
   are allowed.

   The main 

Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]

2010-09-02 Thread Carsten Dominik


On Sep 1, 2010, at 12:19 AM, Alan L Tyree wrote:


On Tue, 31 Aug 2010 14:09:58 +0200
Carsten Dominik carsten.domi...@gmail.com wrote:


Hi Aidan,

unfortunately this is difficult to fix in a good way.
I do want to go back to footnotes, because I think there are many
things that do not yet work satisfactorily.  And then I also hope to
address the issue you raised.  For the time being, unfortunately, I
do not have a solution for you.


I also have problems with footnotes. Jan Boecker kindly devised a
work-around using non-printing spaces which is OK, but what I would  
like

is:

Disable footnotes like [2010], but keep footnotes like [fn:2010]


Also on my list of things to fix when I get there

- Carsten



The reason is that I write legal texts that have references to case  
law

that look like: Marreco v Richardson [1908] 2 KB 584. The dates in
square brackets are an essential part of the reference.

f:nil in the Options seems to disable all footnotes rather than just
the [2010] type. The documentation is slightly misleading on this.
Under Export options it says:

f:  turn on/off footnotes like this[1].

I seem to be living more and more in org-mode. Thanks for such great
software!

Alan




- Carsten

On Aug 31, 2010, at 10:38 AM, Aidan Gauland wrote:


It is impossible to have closing brackets in a footnote, because
they are treated as the closing bracket for the foot note.
Example...

* A heading
This is a broken footnote.[fn:: Some book at [42-24].]

This will export to (as ASCII, for example)...
org-fn-bug-example
==

Author: Aidan Gauland
Date: 2010-08-31 20:33:14 NZST


Table of Contents
=
1 A heading


1 A heading

This is a broken footnote.[1].]

This will export to (as ASCII, for example)...

[1] Some book at [42-24

This is how I am required to cite books for my academic essays, so
this
is a pretty serious bug for me (and no doubt other students, as
well).

Regards,
Aidan Gauland

Emacs  : GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+
Version 2.20.1)
of 2010-08-29 on dimension8
Package: Org-mode version 7.01trans

current state:
==
(setq
org-export-latex-after-initial-vars-hook
'(org-beamer-after-initial- vars)
org-agenda-files '(~/uc-files/uc-work.org)
org-agenda-include-diary t
org-completion-use-iswitchb t
org-completion-use-ido t
org-metaup-hook '(org-babel-load-in-session-maybe)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
org-export-latex-format-toc-function 'org-export-latex-format-toc-
default
org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe)
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-export-first-hook '(org-beamer-initialize-open-trackers)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-
drawers
org-cycle-show-empty-lines

org-optimize-window-after-visibility-change)
org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
org-mode-hook '(#[nil \300\301\302\303\304$\207
 
[org-add-hook
change-major-mode-hook org-show-block-all append local] 5]
 #[nil
 #\300
 #\301
 #\302
 #\303
 #\304
 #$
 #\207
 
[org-add-hook
change-major-mode-hook org-babel-show-result- all
append local] 5]
 
org-babel-result-hide-spec
org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook
'(org-babel-hash-at-point org-babel-execute- safely-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src
org-babel-exp-inline-src-blocks))
org-occur-hook '(org-first-headline-recenter)
org-outline-path-complete-in-steps nil
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

 

[Orgmode] Re: More structure on org-hacks.php

2010-09-02 Thread Carsten Dominik


On Sep 1, 2010, at 5:03 PM, Memnon Anon wrote:


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


are you going to implement these changes into org-hacks.org?


Did my first push a few seconds ago.
Didn't want to break anything, but finally realized its VC,


Exactly, don't be a afraid

- Carsten


so it can be
easily reverted anyway; lets see how it will work out...

Memnon








___
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: More structure on org-hacks.php

2010-09-02 Thread Carsten Dominik


On Sep 1, 2010, at 5:03 PM, Memnon Anon wrote:


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


are you going to implement these changes into org-hacks.org?


Did my first push a few seconds ago.
Didn't want to break anything, but finally realized its VC, so it  
can be

easily reverted anyway; lets see how it will work out...


It seems to have worked, thanks a lot!

- 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: svn version number as tag or property?

2010-09-02 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/09/10 22:33, Achim Gratz wrote:
 Rainer M Krug r.m.k...@gmail.com writes:
 
 Hm - I can't find that command (I assume it is a function)? And if how
 can I get the file name of the buffer?
 
 Yes, an elisp function.  You either already know the name of the file
 and insert it as a string or just use another elisp function to ask
 EMACS for it.  Then instead of running a shell script (which you said
 you wanted to avoid) you'll get this information from EMACS.

Yes - that is exactly what I want to do. But I don't have that function
and svn is working from emacs. I have the following functions beginning
with vc-:

Possible completions are:
vc-annotate vc-create-tag
vc-delete-file  vc-diff
vc-dir  vc-finish-logentry
vc-git-grep vc-git-log-view-mode
vc-git-stashvc-git-stash-apply
vc-git-stash-apply-at-point vc-git-stash-delete-at-point
vc-git-stash-menu   vc-git-stash-pop
vc-git-stash-pop-at-point   vc-git-stash-show
vc-git-stash-show-at-point  vc-git-stash-snapshot
vc-insert-headers   vc-merge
vc-mode-linevc-next-action
vc-print-logvc-print-root-log
vc-register vc-rename-file
vc-resolve-conflictsvc-retrieve-tag
vc-revert   vc-revert-buffer
vc-revert-buffer-internal   vc-revision-other-window
vc-rollback vc-root-diff
vc-svn-log-view-modevc-switch-backend
vc-toggle-read-only vc-update
vc-update-change-logvc-version-diff

Is there anything I have to load into emacs (GNU Emacs 23.2.1
(i686-pc-linux-gnu, GTK+ Version 2.20.1) to get that commad?

Attached please find for reference my emacs.org file.

Cheers,

Rainer




 
 
 Achim.
 
 
 ___
 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


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

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

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

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

iEYEARECAAYFAkx/Y0AACgkQoYgNqgF2egr1vwCbBV5Xu8njL/fzfgMOKqJ51dsX
iZYAniQXmNkkQalXE+4ETcyBFZGCy6gg
=AQpb
-END PGP SIGNATURE-
#+TITLE: .emacs file 
#+OPTIONS: toc:nil num:nil ^:nil

* General settings
** Save desktop
#+begin_src emacs-lisp
(desktop-save-mode 1)
#+end_src
** COMMENT Autosave desktop every hour
#+begin_src emacs-lisps
  (run-at-time 00:59 3600 'org-save-all-org-buffers)
#+end_src
** Search path definitions
#+begin_src emacs-lisp
  (add-to-list 'load-path ~/.emacs.d/site-lisp)
#+end_src
* COMMENT CEDET
  See cedet/common/cedet.info for configuration details.
#+begin_src emacs-lisps
   (add-to-list 'load-path ~/.emacs.d/cedet)
   (load-file ~/.emacs.d/cedet/common/cedet.el)
#+end_src
  Optional other options
#+begin_src emacs-lisps
  ;; Enable EDE (Project Management) features
  (global-ede-mode 1)

  ;; Enable EDE for a pre-existing C++ project
  ;; (ede-cpp-root-project NAME :file ~/myproject/Makefile)


  ;; Enabling Semantic (code-parsing, smart completion) features
  ;; Select one of the following:

  ;; * This enables the database and idle reparse engines
  ; (semantic-load-enable-minimum-features)

  ;; * This enables some tools useful for coding, such as summary mode
  ;;   imenu support, and the semantic navigator
  ; (semantic-load-enable-code-helpers)

  ;; * This enables even more coding tools such as intellisense mode
  ;;   decoration mode, and stickyfunc mode (plus regular code helpers)
  ;; (semantic-load-enable-gaudy-code-helpers)

  ;; * This enables the use of Exuberent ctags if you have it installed.
  ;;   If you use C++ templates or boost, you should NOT enable it.
  ;; (semantic-load-enable-all-exuberent-ctags-support)

  ;; Enable SRecode (Template management) minor-mode.
  (global-srecode-minor-mode 1)
#+end_src
* COMMENT Ecb 
#+begin_src emacs-lisps
  (add-to-list 'load-path ~/.emacs.d/ecb)
  (require 'ecb-autoloads)
  (setq ecb-layout-name left3)
  (setq ecb-layout-window-sizes (quote ((left8 (0.23076923076923078 . 
0.23334) (0.23076923076923078 . 0.25) (0.23076923076923078 . 
0.2833) (0.23076923076923078 . 0.21667)) (left3 
(0.22162162162162163 . 0.10344827586206896) (0.22162162162162163 . 
0.46551724137931033) (0.22162162162162163 . 0.41379310344827586)
  (setq ecb-options-version 2.32)
  (setq ecb-toggle-layout-sequence (quote (left9 left14 left3)))
#+end_src
* ESS
** Load ess
#+begin_src emacs-lisp
  (add-to-list 'load-path ~/.emacs.d/ess)
  (load 

[Orgmode] Re: svn version number as tag or property?

2010-09-02 Thread Noorul Islam K M
Rainer M Krug r.m.k...@gmail.com writes:

 On 01/09/10 22:33, Achim Gratz wrote:

 Rainer M Krug r.m.k...@gmail.com writes:
 
 Hm - I can't find that command (I assume it is a function)? And if how
 can I get the file name of the buffer?
 
 Yes, an elisp function.  You either already know the name of the file
 and insert it as a string or just use another elisp function to ask
 EMACS for it.  Then instead of running a shell script (which you said
 you wanted to avoid) you'll get this information from EMACS.

 Yes - that is exactly what I want to do. But I don't have that function
 and svn is working from emacs. I have the following functions beginning
 with vc-:

 Possible completions are:
 vc-annotate   vc-create-tag
 vc-delete-filevc-diff
 vc-dirvc-finish-logentry
 vc-git-grep   vc-git-log-view-mode
 vc-git-stash  vc-git-stash-apply
 vc-git-stash-apply-at-point   vc-git-stash-delete-at-point
 vc-git-stash-menu vc-git-stash-pop
 vc-git-stash-pop-at-point vc-git-stash-show
 vc-git-stash-show-at-pointvc-git-stash-snapshot
 vc-insert-headers vc-merge
 vc-mode-line  vc-next-action
 vc-print-log  vc-print-root-log
 vc-register   vc-rename-file
 vc-resolve-conflicts  vc-retrieve-tag
 vc-revert vc-revert-buffer
 vc-revert-buffer-internal vc-revision-other-window
 vc-rollback   vc-root-diff
 vc-svn-log-view-mode  vc-switch-backend
 vc-toggle-read-only   vc-update
 vc-update-change-log  vc-version-diff

 Is there anything I have to load into emacs (GNU Emacs 23.2.1
 (i686-pc-linux-gnu, GTK+ Version 2.20.1) to get that commad?

Are you trying to use M-x vc-tab?

It might not list that function because it is not interactive.

Use C-h f vc-working-revision

Thanks and Regards
Noorul

___
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 - low] capture with region selected in read only erc buffer

2010-09-02 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Sep 2, 2010, at 1:18 AM, Richard Riley wrote:



If I select a region in, in this case, an erc (emacs irc client)  
buffer

in the read only section and then use my global keys to create a new
item using the following j template while the text is still selected

(j Journal entry
 (file+datetree journal.org)
 * %T %?\n  %i\n  %a)

then I get the following backtrace :-

Debugger entered--Lisp error: (error Capture abort: (text-read- 
only))

 signal(error (Capture abort: (text-read-only)))
 error(Capture abort: %s (text-read-only))
 byte-code(\301\302!\203\n


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


- Carsten




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


Re: [Orgmode] Feature-request documentation request for org-datetree

2010-09-02 Thread Carsten Dominik

Hi,

On Sep 1, 2010, at 1:44 PM, Tim O'Callaghan wrote:


Hi,

I've been poking about trying to understand org-date tree, as It is
essentially an undocumented feature at the moment. am i right in my
understanding that it is only meant as a refile-target structure?

The feature request is to allow the use of ISO week numbers to
structure the year rather than Months.

so a structure something like:
* 2010
*** 2010-W35
* 2010-08-30 Monday
* 2010-08-31 Tuesday
* 2010-09-01 Wednesday
* 2010-09-02 Thursday
* 2010-08-03 Friday
* 2010-08-04 Saturday
* 2010-08-05 Sunday

The week heading is based on the ISO representation,
(http://www.iso.org/iso/date_and_time_format) though i guess some
variant on the ISO week heading might look  be better.


I have personally no love for ISO weeks, but I would accept a patch
which implements a second date tree structure that looks like this

Maybe the capture target could be called file_datetree-isoweek
or something like this...

- Carsten





what other use can it be used for? how are other people using it?

regards,

Tim.

___
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: Orgmode: exporter for taskjuggler

2010-09-02 Thread Christian Egli
Markus Heller helle...@gmail.com writes:

 Hello Christian,

 I'm very interested in using your taskjuggler export from orgmode.
 Unfortunately, I'm on a Windoze box, and getting TJ2 to work is a big
 pain ...  However, TJ3 is fairly straightforward, since it's Ruby, so
 I'm wondering, do you have any plans of including support for TJ3 as
 well?  I know it's still in alpha, but just asking :)

I myself use tj2, so the exporter is tested for that. Initially I had
thought that the exporter was also working for tj3 since the differences
in the syntax are supposedly very minor. But I've had reports by users
that the exporter generates code that doesn't work with tj3.

I just installed tj3 and tested it with a generated tjp file. There are
a number of problems: you need to replace all occurrences of purge
allocations with purge allocate. Also you seem to be required to mark
all milestones explicitly (with milestone). Thirdly you need to
change the report definitions.

- The issue with purge allocate needs to be changed in the exporter
  code. For now you will have to search and replace as mentioned above.

- The milestone issue can be dealt with by assigning the milestone
  property to an item. It would be nicer if this just worked if an item
  doesn't have an effort property.

- The problems with reports can be solved by changing the report
  definition (via customize) 

I'll have to work with the taskjuggler list to see if and what we can do
about these issues, if we can somehow ease the migration.

Hope that helps
Christian

-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland

___
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] Todo item property search

2010-09-02 Thread Chevalier Julien
Hi list

I would like to search for all my todo items along the properties they have or 
not. 

Best example is :
How can i build a sparse tree of all my unscheduled todo items ?

Sparse tree search options don#39;t seam enough and i cant figure out how is 
working the org-agenda-tags-todo-honor-ignore-options

Can anyone help ?

Regards 

Julien  


  ___
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: svn version number as tag or property?

2010-09-02 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/09/10 11:21, Noorul Islam K M wrote:
 Rainer M Krug r.m.k...@gmail.com writes:
 
 On 01/09/10 22:33, Achim Gratz wrote:

 Rainer M Krug r.m.k...@gmail.com writes:

 Hm - I can't find that command (I assume it is a function)? And if how
 can I get the file name of the buffer?

 Yes, an elisp function.  You either already know the name of the file
 and insert it as a string or just use another elisp function to ask
 EMACS for it.  Then instead of running a shell script (which you said
 you wanted to avoid) you'll get this information from EMACS.

 Yes - that is exactly what I want to do. But I don't have that function
 and svn is working from emacs. I have the following functions beginning
 with vc-:

 Possible completions are:
 vc-annotate  vc-create-tag
 vc-delete-file   vc-diff
 vc-dir   vc-finish-logentry
 vc-git-grep  vc-git-log-view-mode
 vc-git-stash vc-git-stash-apply
 vc-git-stash-apply-at-point  vc-git-stash-delete-at-point
 vc-git-stash-menuvc-git-stash-pop
 vc-git-stash-pop-at-pointvc-git-stash-show
 vc-git-stash-show-at-point   vc-git-stash-snapshot
 vc-insert-headersvc-merge
 vc-mode-line vc-next-action
 vc-print-log vc-print-root-log
 vc-register  vc-rename-file
 vc-resolve-conflicts vc-retrieve-tag
 vc-revertvc-revert-buffer
 vc-revert-buffer-internalvc-revision-other-window
 vc-rollback  vc-root-diff
 vc-svn-log-view-mode vc-switch-backend
 vc-toggle-read-only  vc-update
 vc-update-change-log vc-version-diff

 Is there anything I have to load into emacs (GNU Emacs 23.2.1
 (i686-pc-linux-gnu, GTK+ Version 2.20.1) to get that commad?
 
 Are you trying to use M-x vc-tab?
 
 It might not list that function because it is not interactive.
 
 Use C-h f vc-working-revision

AHA - there it is - thanks --- I still have to learn a bit about emacs.

But how can I use it? I would like to have it
1) in the exported org file
2) in the source code file after tangling

Thanks,

Rainer

 
 Thanks and Regards
 Noorul


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

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

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

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

iEYEARECAAYFAkx/dWQACgkQoYgNqgF2egoBxgCeIH/T9B1QWSseyeIv6+zL1VR6
LrIAnA14sSnmnxiXCqiz4tSZKm1Uae7M
=Goav
-END PGP SIGNATURE-

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


[Accepted] [Orgmode] Fix compiler warning

2010-09-02 Thread Carsten Dominik
Patch 252 (http://patchwork.newartisans.com/patch/252/) is now Accepted.

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C87vd6o1n9g.fsf%40noorul.maa.corp.collab.net%3E

Here is the original message containing the patch:

 Content-Type: text/plain; charset=utf-8
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
 Subject: [Orgmode] Fix compiler warning
 Date: Thu, 02 Sep 2010 14:57:15 -
 From: Noorul Islam noo...@noorul.com
 X-Patchwork-Id: 252
 Message-Id: 87vd6o1n9g@noorul.maa.corp.collab.net
 To: emacs-orgmode@gnu.org
 
 org.el : Fix compiler warning.
 
 * lisp/org.el (org-insert-subheading) : Fix compiler warning
   (org-insert-todo-subheading) : Fix compiler warning
 
 TINYCHANGE
 
 Thanks and Regards
 Noorul
 
 
 diff --git a/lisp/org.el b/lisp/org.el
 index d0a2218..67ed452 100644
 --- a/lisp/org.el
 +++ b/lisp/org.el
 @@ -6834,7 +6834,7 @@ Works for outline headings and for plain lists alike.
(org-insert-heading arg)
(cond
 ((org-on-heading-p) (org-do-demote))
 -   ((org-at-item-p) (org-indent-item 1
 +   ((org-at-item-p) (org-indent-item
  
  (defun org-insert-todo-subheading (arg)
Insert a new subheading with TODO keyword or checkbox and demote it.
 @@ -6843,7 +6843,7 @@ Works for outline headings and for plain lists alike.
(org-insert-todo-heading arg)
(cond
 ((org-on-heading-p) (org-do-demote))
 -   ((org-at-item-p) (org-indent-item 1
 +   ((org-at-item-p) (org-indent-item
  
  ;;; Promotion and Demotion
  
 

___
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] TeX commands or source code in org files

2010-09-02 Thread Jörg Hagmann

 Dear list,

Is #+LaTeX: \ATeXCommand the only way to insert LaTeX (or, in my case, 
ConTeXt) commands in an org file?  See the explanations in this minimal 
example:


--minimal example
#+TITLE:  Minimal Example

#+begin_src latex
%contextsetups
\input libertine-en
\setupbodyfont[11pt]
%endcontextsetups
#+end_src

* Heading

As I am using ConTeXt, not LaTeX, I convert the tex-file produced by org to
a ConTeXt type tex-file.  The LaTeX source code above will be moved to the
top of my ConTeXt file and contains the ConTeXt setups.

Commands /in the body of the file/ work if written like this:

#+LaTeX: \MyContextCommand

* Heading

But not, if written like this (uncomment):

##+BEGIN_LaTeX
#\MyContextCommand
##+END_LaTeX

This kills everything down to the next heading

* Heading

The same happens with another begin_src latex block

-end of minimal example--

Of course, I can use #+LaTeX: , also for multiline commands. Just curious.

Thanks, Jörg


___
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] ledger tutorial on Worg

2010-09-02 Thread Sébastien Vauban
Hi Eric(s) and Dan,

Eric S Fraga wrote:
 On Wed, 01 Sep 2010 13:25:35 +0200, Sébastien Vauban 
 wxhgmqzgw...@spammotel.com wrote:
 I have just placed on Worg [1] a short tutorial/example for using
 ledger with babel.  Please have a look and comment etc!

 [1]  http://orgmode.org/worg/org-contrib/babel/languages.php#langs
 
 Being interested a lot in Ledger integration with Org-Babel as well, I have a
 quick remark: instead of including (with explicit full path) the journal
 entries in every code block, can't we use the more natural (at least, to me)
 tangling provided by the Noweb syntax?
 
 Something like:
 
 --8---cut here---start-8---
 * Journal data
 
 #+src_name ledger-journal
 #+begin_src ledger :results silent
 2008/01/03 * (SCORPIOS) SEB VAUBAN
  Assets:Bank:Checking:799979450003   550.00 
 EUR
  Assets:Bank:Transferred
 
 2008/01/01 * ( ) UNKNOWN-PAYEE
  Assets:Bank:Checking:79997945000321.91 
 EUR
  Expenses:Unknown
 #+end_src
 
 * Balance
 
 Give me an overview...
 
 #+srcname: ledger-balance
 #+begin_src ledger :cmdline bal :noweb
 ledger-journal
 #+end_src
 --8---cut here---end---8---

 Yes, I would have thought that this would work. It doesn't fit in naturally
 with how I would like to do things as I have many different blocks of ledger
 entries spread around the file...

I don't understand your argument: why wouldn't you use journal-home blocks
and journal-work blocks for example, or even much more?  What am I missing?

What cannot be done with the noweb syntax in your Org file?  I find it much
better if we can avoid specifying explicit paths, in order to guarantee use
and execution of our Org files by other users, on other (even Windows)
machines, among others.


 In any case, I will try to see why this doesn't work as I have used
 the :noweb approach for other babel codes successfully and cannot see any
 reason why ledger would be different. Added to my todo list... :-)

Thanks...


 Though this should work as far as I understand, it does not yet...

Dan very kindly spotted the following in my example:

 #+src_name ledger-journal
   ^
It looks like a random underscore crept in there.

Thanks...

True that it's a bit confusing to write src sometimes with underscores (as in
begin_src), sometimes not. But that's just a question of habit... Still newbie
as well...

Though, the following does not work yet:

--8---cut here---start-8---
* Test with Org-Babel-Ledger

First evaluate this:

(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   (emacs-lisp . t)
   (latex . t)
   (ledger . t) ;this is the important one for this tutorial
   (sh . t)))

** Journal data

#+srcname ledger-journal
#+begin_src ledger
2008/01/03 * (SCORPIOS ) SEB VAUBAM
Assets:Bank:Checking:77400530   550.00 
EUR
Assets:Bank:Transferred

2008/01/01 * ( ) UNKNOWN-PAYEE
Assets:Bank:Checking:7740053021.91 
EUR
Expenses:Unknown
#+end_src

** Balance

Give me an overview...

#+srcname: ledger-balance
#+begin_src ledger :cmdline bal :noweb yes :session
ledger-journal
#+end_src
--8---cut here---end---8---

failing with message

Error: Failed to locate any transactions; did you specify a valid file with 
-f?

in buffer *Shell Command 

Thanks for the help you already provided to me!

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] Cannot open load file: inf-ruby

2010-09-02 Thread Nathan Neff
I'm having trouble getting ruby scripts to run in org-babel.

I'm running Org 7.01 trans.

With this example, I get the message Cannot load file: inf-ruby after
I press C-c C-c with the cursor on the #+begin_src line

#+begin_src ruby
puts hello world
return 1
#+end_src

I have ruby installed, and can run it from the command line.
I can run the following Python snippet just fine:
#+begin_src python
boo
return 3
#+end_src python

I've tried executing this line in my Scratch buffer and in the same buffer
that my ruby-code is in:


 (org-babel-do-load-languages
  'org-babel-load-languages
  '((R . t)
(ditaa . t)
(dot . t)
(emacs-lisp . t)
(gnuplot . t)
(haskell . nil)
(ocaml . nil)
(python . t)
(ruby . t)
(screen . nil)
(sh . t)
(sql . nil)
(sqlite . t)))

Can someone post a bare-bones setup that can run ruby scripts from
org-babel?

___
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] Specifying left/right margin sizes for pdf documents

2010-09-02 Thread mwnn

 Hi,
How can i specify the left/right margin sizes for the resulting 
*.pdf documents (org-export-as-pdf) in a *.org file.


Regards,
mwnn

___
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 ? invoking display-time causes org mode clocking to go bad

2010-09-02 Thread Antony
 What I have seen is not desirable behavior, but I don't know where the 
issue is.


Here are the details to reproduce.

Start vanilla  emacs
(removed my .emacs and my .emacs.desktop but not my other stuff like
.emacs-places .emacs.bmk .emacs.d).

Says
This is GNU Emacs 23.2.1 (i686-pc-cygwin, GTK+ Version 2.18.6)

Type
C-x f ~/foo.org
seems to start org mode

type
* foo enter

type
C-c C-x C-i
inserts
CLOCK: [2010-09-02 Thu 01:26]
when my windows clock in Win 7 is showing 1:26 AM
They match. My Win 7 is in PST (Pacific) time
So far so good.

Exit emacs

Now do the following

Start vanilla emacs
type
C-x f ~/foo.org

type
* foo enter

type
M-x display-time
modeline shows  7:29 AM
when my PC is showing 1:30AM
They don't match.

Type
C-c C-x C-i
inserts
CLOCK: [2010-09-02 Thu 07:30]
Now the clocking in org mode is gone bad.

Basically it looks like usage of the display-time changes something to 
affect org clock functionality.
Also, I don't understand where the modeline clock value for display-time 
is coming from.

FYI Today is September 2 2010

Org-mode version 6.33x
GNU Emacs 23.2.1 (i686-pc-cygwin, GTK+ Version 2.18.6) of 2010-05-08 on 
laptop


I've been using org mode for about a month now and really like and use 
the clocking feature. Thanks.

The reason I ran into this was I was investigating using
http://funcall.posterous.com/displaying-a-daily-org-mode-agenda-reminder-i

-Antony

___
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: gnash crunch... latex whitespace defaults! + numbering in only some subheadings

2010-09-02 Thread Rafael
Matt Price mopto...@gmail.com writes:

 1) what is te recommended or canonical way to reduce whitespace, not only in
 the margins, but especially between paragraphs?  In particular, I use a lot of
 lists and subheadings; latex puts enormous emounts of whatespace between 
 items,
 and very quickly the syllabus becomes difficult to navigate.  It would be 
 great
 for me if I could make these settings default, too -- I would much rather have
 my paper copies look more word-processor-ish, to ocnform iwth expectations in
 my discipline (history).

Not exactly the canonical way, but I have the following in documents I'm
planning to export to LaTeX to make whitespace bearable:

#+LATEX_HEADER: 
#+LATEX_HEADER: \let\olditemize=\itemize
#+LATEX_HEADER: \def\itemize{
#+LATEX_HEADER: \olditemize
#+LATEX_HEADER: \setlength{\itemsep}{-0.8ex}
#+LATEX_HEADER: }
#+LATEX_HEADER: \let\oldenumerate=\enumerate
#+LATEX_HEADER: \def\enumerate{
#+LATEX_HEADER: \oldenumerate
#+LATEX_HEADER: \setlength{\itemsep}{-0.8ex}
#+LATEX_HEADER: }

___
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: [PATCH] can't :include files in org-publish-project-alist

2010-09-02 Thread Bastien
Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes:

 Yes it was. I forgot to pull. However the part with appending / to b
 might still be valuable at least for building xm regexp. If
 :base-directory is set to ~/dydaktyka (my example) then xm becomes
 ^/home/steelman/dydaktyka[^/]+\.\(org\) which not necessarily makes
 sense. It may go like this

(xm (concat ^ b
 (when (string-match ^[/]$ b) /)
 (if r .+ [^/]+)
  \\.\\( x \\)$)))

:base-directory now allows a directory name with no ending slash.

I did this in a slightly different way than the one you suggest:

,
| (let* ((r (plist-get (cdr prj) :recursive))
| -  (b (expand-file-name (plist-get (cdr prj) :base-directory)))
| +  (b (expand-file-name (file-name-as-directory
| +(plist-get (cdr prj) :base-directory
|(x (or (plist-get (cdr prj) :base-extension) org))
`

Thanks!

-- 
 Bastien

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


Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]

2010-09-02 Thread Alan Tyree
On Thu, Sep 2, 2010 at 6:15 PM, Carsten Dominik
carsten.domi...@gmail.comwrote:


 On Sep 1, 2010, at 12:19 AM, Alan L Tyree wrote:

  On Tue, 31 Aug 2010 14:09:58 +0200
 Carsten Dominik carsten.domi...@gmail.com wrote:

  Hi Aidan,

 unfortunately this is difficult to fix in a good way.
 I do want to go back to footnotes, because I think there are many
 things that do not yet work satisfactorily.  And then I also hope to
 address the issue you raised.  For the time being, unfortunately, I
 do not have a solution for you.


 I also have problems with footnotes. Jan Boecker kindly devised a
 work-around using non-printing spaces which is OK, but what I would like
 is:

 Disable footnotes like [2010], but keep footnotes like [fn:2010]


 Also on my list of things to fix when I get there

Carsten,
Very low priority as far as I am concerned. Be nice, but it is hardly a deal
breaker.

Thanks for great software!

Cheers,
Alan



 - Carsten



 The reason is that I write legal texts that have references to case law
 that look like: Marreco v Richardson [1908] 2 KB 584. The dates in
 square brackets are an essential part of the reference.

 f:nil in the Options seems to disable all footnotes rather than just
 the [2010] type. The documentation is slightly misleading on this.
 Under Export options it says:

 f:  turn on/off footnotes like this[1].

 I seem to be living more and more in org-mode. Thanks for such great
 software!

 Alan



 - Carsten

 On Aug 31, 2010, at 10:38 AM, Aidan Gauland wrote:

  It is impossible to have closing brackets in a footnote, because
 they are treated as the closing bracket for the foot note.
 Example...

 * A heading
 This is a broken footnote.[fn:: Some book at [42-24].]

 This will export to (as ASCII, for example)...
org-fn-bug-example
==

 Author: Aidan Gauland
 Date: 2010-08-31 20:33:14 NZST


 Table of Contents
 =
 1 A heading


 1 A heading
 
 This is a broken footnote.[1].]

 This will export to (as ASCII, for example)...

 [1] Some book at [42-24

 This is how I am required to cite books for my academic essays, so
 this
 is a pretty serious bug for me (and no doubt other students, as
 well).

 Regards,
 Aidan Gauland

 Emacs  : GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+
 Version 2.20.1)
 of 2010-08-29 on dimension8
 Package: Org-mode version 7.01trans

 current state:
 ==
 (setq
 org-export-latex-after-initial-vars-hook
 '(org-beamer-after-initial- vars)
 org-agenda-files '(~/uc-files/uc-work.org)
 org-agenda-include-diary t
 org-completion-use-iswitchb t
 org-completion-use-ido t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-
 default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe
 org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-
 drawers
 org-cycle-show-empty-lines

  org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook
 '(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil \300\301\302\303\304$\207

 [org-add-hook
 change-major-mode-hook org-show-block-all append local] 5]
 #[nil
 #\300
 #\301
 #\302
 #\303
 #\304
 #$
 #\207

 [org-add-hook
 change-major-mode-hook org-babel-show-result- all
 append local] 5]

 org-babel-result-hide-spec
 org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook
 '(org-babel-hash-at-point org-babel-execute- safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src
 org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-outline-path-complete-in-steps nil
 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)
 

[Orgmode] This is probably a misconfiguration rather than a bug, but...

2010-09-02 Thread Tim O'Callaghan
When i try and use org-capture in a buffer, it fails to display the
template menu, and it generates the backtrace below.

It works for org files, but not for some other files.

Tim.

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  directory-file-name(nil)
  (file-name-directory (directory-file-name dirpath))
  (let ((dirname ...) (basename ...)) (list dirname basename))
  org-git-split-dirpath(nil)
  (let ((dirlist ...)) (when (string= ... ) (throw ... nil)) (setq
dir (first dirlist) relpath (concat ... relpath)))
  (while (not (file-exists-p ...)) (let (...) (when ... ...) (setq dir
... relpath ...)))
  (catch (quote toplevel) (while (not ...) (let ... ... ...)) (list
(expand-file-name .git dir) relpath))
  (let ((dir ...) (relpath ...)) (catch (quote toplevel) (while ...
...) (list ... relpath)))
  org-git-gitrepos-p(~/.dotfiles/zemacsen/site-lisp/policy-switch.el)
  (if (org-git-gitrepos-p file) (progn (org-store-link-props :type
git :link ...)))
  (when (org-git-gitrepos-p file) (org-store-link-props :type git
:link (org-git-create-git-link file)))
  (let ((file ...)) (when (org-git-gitrepos-p file)
(org-store-link-props :type git :link ...)))
  (progn (let (...) (when ... ...)))
  (if (buffer-file-name) (progn (let ... ...)))
  (when (buffer-file-name) (let (...) (when ... ...)))
  org-git-store-link()
  run-hook-with-args-until-success(org-git-store-link)
  (cond ((run-hook-with-args-until-success ...) (setq link ... desc
...)) ((equal ... *Org Edit Src Example*) (let ... ... ... ... ...
... ... ...)) ((equal ... ...) (let ... ...)) ((eq major-mode ...)
(let ... ... ...)) ((eq major-mode ...) (setq cpltxt ... link ...)
(org-store-link-props :type w3 :url ...)) ((eq major-mode ...) (setq
cpltxt ... link ...) (org-store-link-props :type w3m :url ...))
((setq search ...) (setq link ...) (setq cpltxt ...)) ((eq major-mode
...) (setq cpltxt ... link ...) (org-store-link-props :type image
:file buffer-file-name)) ((eq major-mode ...) (let ... ... ...)) ((and
... ...) (setq custom-id ...) (cond ... ... ...)) ((buffer-file-name
...) (setq cpltxt ...) (when ... ... ...) (setq link ...))
((interactive-p) (error Cannot link to a buffer which is not visiting
a file)) (t (setq link nil)))
  (let ((outline-regexp ...) link cpltxt desc description search txt
custom-id agenda-link) (cond (... ...) (... ...) (... ...) (... ...)
(... ... ...) (... ... ...) (... ... ...) (... ... ...) (... ...) (...
... ...) (... ... ... ...) (... ...) (t ...)) (if (consp link) (setq
cpltxt ... link ...)) (setq link (or link cpltxt) desc (or desc
cpltxt)) (if (equal desc NONE) (setq desc nil)) (if (and ... link)
(progn ... ... ...) (or agenda-link ...)))
  org-store-link(nil)
  (if (and (boundp ...) org-capture-link-is-already-stored) (plist-get
org-store-link-plist :annotation) (org-store-link nil))
  (let* ((orig-buf ...) (annotation ...) (initial ...) (entry ...))
(when initial (remove-text-properties 0 ... ... initial)) (when
annotation (remove-text-properties 0 ... ... annotation)) (cond (...
...) (... ...) (t ... ... ... ... ... ... ...)))
  (cond ((equal goto ...) (org-capture-goto-target)) ((equal goto ...)
(org-capture-goto-last-stored)) (t (let* ... ... ... ...)))
  org-capture(nil)
  call-interactively(org-capture nil nil)

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


Re: [Orgmode] Deleting EXPERIMENTAL

2010-09-02 Thread Bastien
Ethan ethan.glasser.c...@gmail.com writes:

 There's some code in EXPERIMENTAL (find-links-to-local.el) that causes paredit
 to barf when I open it. This code doesn't do anything, hasn't been touched in
 two years, and it offends my sense of order. Would someone please delete it in
 master?

Done.

-- 
 Bastien

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


Re: [Orgmode] Specifying left/right margin sizes for pdf documents

2010-09-02 Thread Bastien
mwnn mwnn...@gmail.com writes:

 How can i specify the left/right margin sizes for the resulting
 *.pdf documents (org-export-as-pdf) in a *.org file.

Take a look at the geometry package:

  ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/geometry/geometry.pdf

For example:

,
| \usepackage{geometry}
| \geometry{left=1.2in,right=1.2in,top=1.2in,bottom=1.2in}
`

-- 
 Bastien

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


[Orgmode] Re: Specifying left/right margin sizes for pdf documents

2010-09-02 Thread mwnn

 Adding the following lines to my *.org file solved the issue.

#+LATEX_HEADER: \addtolength{\textwidth}{2in}
#+LATEX_HEADER: \addtolength{\hoffset}{-1in}
#+LATEX_HEADER: \addtolength{\voffset}{-1in}

Regards,
mwnn

On 09/02/2010 06:30 PM, mwnn wrote:

 Hi,
How can i specify the left/right margin sizes for the resulting 
*.pdf documents (org-export-as-pdf) in a *.org file.


Regards,
mwnn



___
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] file+olp problem in org-capture.

2010-09-02 Thread Bastien
Carsten Dominik carsten.domi...@gmail.com writes:

 this begins to smell like it should be a FAQ entry :)

Indeed!  I added a FAQ entry for this.

This will be in http://orgmode.org/worg/org-faq.php under this headline: 

  Can I use a variable or a function inside the `org-capture-templates'
  variable?

-- 
 Bastien

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


Re: [Orgmode] [PATCH] Fix typo in org-find-exact-headling-in-buffer

2010-09-02 Thread Bastien
Jambunathan K kjambunat...@gmail.com writes:

 Still thinkling but have no inkling about headling.

I fixed this:

s/org-find-exact-headling-in-buffer/org-find-exact-headline-in-buffer

The org-find-exact-headline-in-buffer function is not to be confused
with org-find-exact-heading-in-directory...  yep, a bit confusing :)

-- 
 Bastien

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


Re: [Orgmode] [PATCH] Fix typo in org-find-exact-headling-in-buffer

2010-09-02 Thread Carsten Dominik


On Sep 2, 2010, at 4:15 PM, Bastien wrote:


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


Still thinkling but have no inkling about headling.


I fixed this:

s/org-find-exact-headling-in-buffer/org-find-exact-headline-in-buffer

The org-find-exact-headline-in-buffer function is not to be confused
with org-find-exact-heading-in-directory...  yep, a bit confusing :)


Ah, there was still one of those left in the wikinodes.  Thanks for  
finding this.


Is anyone actually using the wikinodes module?  I had 0 feedback after I
installed it.


- 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] synctex!! ...syncorg?

2010-09-02 Thread Bastien
Kevin Brubeck Unhammer p.ixiemot...@gmail.com writes:

 But now the obvious question is: does there exist a syncorg to
 transport me back into the org-mode file to the point that corresponds
 to that place in the tex-file? I assume it should be possible since
 org-mode outputs these \label{sec-3.3} things...

Very dumb and stupid proof-of-nothing:

(defun bzg/search-point-in-latex-source ()
  Switch to an Org's sister LaTeX file and find text at point.
  (interactive)
  (let ((txt (buffer-substring 
  (point) (save-excursion (forward-word 3) (point
(lfn (concat (file-name-sans-extension (buffer-file-name)) .tex)))
(find-file-other-window lfn)
(goto-char (point-min))
(search-forward txt)))

But using isearch might be fast enough, isn't it?

After all, it's just text.  

-- 
 Bastien

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


Re: [Orgmode] Possible BUG in org-wikinodes.el

2010-09-02 Thread Bastien
Indraneel Majumdar connect_indran...@yahoo.com writes:

 Is this a typo?
 org-find-exact-headling-in-buffer
 occurs thrice instead of
 org-find-exact-headline-in-buffer

Yes, this has just been fixed.  Thanks!

-- 
 Bastien

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


Re: [Orgmode] cannot enable org-habit

2010-09-02 Thread Bastien
Joseph Buchignani joseph.buchign...@gmail.com writes:

 I presume there ought to be some sort of entry in my agenda, or the k key
 should do something. I get nothing. Here is my setup:

   * org-mode 7.01h
   * emacs file included below.

 The relevant portion is (add-to-list 'org-modules 'org-habit), which I have
 enabled in my .emacs, to no avail.

 What am I missing?

Are you logging your DONE state?

From the manual:

  6. You must also have state logging for the `DONE' state enabled, in
 order for historical data to be represented in the consistency
 graph.  If it's not enabled it's not an error, but the consistency
 graphs will be largely meaningless.

-- 
 Bastien

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


Re: [Orgmode] Cannot open load file: inf-ruby

2010-09-02 Thread Nick Dokos
Nathan Neff nathan.n...@gmail.com wrote:

 I'm having trouble getting ruby scripts to run in org-babel.
 
 I'm running Org 7.01 trans.
 
 With this example, I get the message Cannot load file: inf-ruby after
 I press C-c C-c with the cursor on the #+begin_src line
 

ob-ruby.el says:

,
| ;;; Requirements:
| 
| ;; - ruby and irb executables :: http://www.ruby-lang.org/
| ;; 
| ;; - ruby-mode :: Can be installed through ELPA, or from
| ;;   http://github.com/eschulte/rinari/raw/master/util/ruby-mode.el
| ;;   
| ;; - inf-ruby mode :: Can be installed through ELPA, or from
| ;;   http://github.com/eschulte/rinari/raw/master/util/inf-ruby.el
`

HTH,
Nick

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


Re: [Orgmode] Re: [babel] ledger tutorial on Worg

2010-09-02 Thread Eric Schulte
Hi Seb,

Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

[...]

 Though, the following does not work yet:

 * Test with Org-Babel-Ledger

 First evaluate this:

 (org-babel-do-load-languages
  'org-babel-load-languages
  '((R . t)
(emacs-lisp . t)
(latex . t)
(ledger . t) ;this is the important one for this tutorial
(sh . t)))

 ** Journal data

 #+srcname ledger-journal
   ^
the problem is here.

  #+srcname ledger-journal

should be

  #+srcname: ledger-journal

I find it easiest to use yasnippets to handle the creation of all of my
code blocks to avoid these often tricky to debug minor syntax errors.
See [1] for a collection of org-mode related snippets, most importantly
the block and sb snippets.

Cheers -- Eric

Footnotes: 
[1]  http://github.com/eschulte/yasnippet-org-mode

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


[Orgmode] Org-mode to MS-Word/OOo with vector graphics

2010-09-02 Thread Tom Short
I've tried several approaches to converting org-mode files to MS-Word
or OpenOffice.org that retains vector graphics, especially
encapsulated postscript files. Some options I've tried include docbook
export with docbook2odf (doesn't work with docbook v5) and latex
export with tex4ht (converts graphics to png). 

HTML export with orgmode's html exporter worked the best for me. The
key is to have orgmode's exporter inline EPS (or other vector
graphics) rather than inserting a link. Both MS-Word and
OpenOffice.org can import html in this fashion and pull in the vector
graphics.

Although this isn't org-babel specific, it's convenient to use with
org-babel since there are so many ways to generate graphic files. See
below for an example that uses R to create EPS and windows metafiles
(windows only).

I'm curious to hear if it works for anyone else.

- Tom


#+TITLE: Vector graphic tests
#+BABEL: :session *R* :results output :exports both

This is a test of HTML export with vector graphics that can be read
into MS-Word and OpenOffice.org. We need to tell orgmode's export to
inline EPS and WMF files. Those image files won't be displayed in a
browser, but they will be imported into MS-Word or OpenOffice.org
Writer.

We also need to strip off the XML header line as discussed here

[[http://thread.gmane.org/gmane.emacs.orgmode/26236/focus=26238]]

That's taken care of by the (setq org-export-html-xml-declaration
below.

Note that all of this is based on with Windows XP and R 2.11.1.

#+begin_src emacs-lisp
(setq org-export-html-inline-image-extensions
  '(png jpeg jpg gif ps eps wmf emf))

(setq org-export-html-xml-declaration
  '((html . )
(php . ?php echo \?xml version=\\\1.0\\\ encoding=\\\%s\\\ ?\;
?)))
#+end_src


* EPS

For EPS import into MS-Word 2003, it works fine with the extension
.eps but not always with the extension .ps, so we can't use
org-babel-R's built-in graphics support which defaults to the .ps
extension. OpenOffice.org 3.2 seems to work fine with either
extension.

#+begin_src R  :results value file
  setEPS() # set up the postscript driver for EPS output
  fname = cos.eps
  postscript(fname)
  plot(cos)
  dev.off()
  fname
#+end_src

#+results:
[[file:cos.eps]]


* WMF

The WMF works in MS-Office and in OpenOffice.org. WMF files don't look as
nice as EPS files for printed output, but they sometimes work okay
in powerpoints.

#+begin_src R  :results value file
  fname = sin.wmf
  win.metafile(fname, width = 5, height = 5)
  plot(sin)
  dev.off()
  fname
#+end_src

#+results:
[[file:sin.wmf]]




___
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


[Accepted] [Orgmode] org-protocol default template should be nil

2010-09-02 Thread Bastien Guerry
Patch 249 (http://patchwork.newartisans.com/patch/249/) is now Accepted.

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C878w3m2ua3.fsf%40gmx.de%3E

Here is the original message containing the patch:

 Content-Type: text/plain; charset=utf-8
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
 Subject: [Orgmode] org-protocol default template should be nil
 Date: Wed, 01 Sep 2010 05:15:48 -
 From: Sebastian Rose sebastian_r...@gmx.de
 X-Patchwork-Id: 249
 Message-Id: 878w3m2ua3@gmx.de
 To: Emacs-orgmode mailing list emacs-orgmode@gnu.org
 
 Hi Carsten,
 
 
 this little patch fixes an issue Richard brought up.
 
 We always used the w template as the default for `org-remember' and
 also used it for `org-capture' for historical reasons.
 
 Unfortunately, this breaks, if the user has no w template defined.
 
 The patch below simply set's the custom variable
 `org-protocol-default-template-key' to nil, so the interactive template
 selection is used by default.  This works for both, remember an capture.
 
 I will adjust the docs, once the patch is applied.
 Thanks,
 
   Sebastian
 
 
 diff --git a/lisp/org-protocol.el b/lisp/org-protocol.el
 index 3f240fd..21f28e7 100644
 --- a/lisp/org-protocol.el
 +++ b/lisp/org-protocol.el
 @@ -260,7 +260,7 @@ Here is an example:
:group 'org-protocol
:type '(alist))
  
 -(defcustom org-protocol-default-template-key w
 +(defcustom org-protocol-default-template-key nil
The default org-remember-templates key to use.
:group 'org-protocol
:type 'string)
 

___
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] Cannot open load file: inf-ruby

2010-09-02 Thread Eric Schulte
Hi Nate,

Some languages have requirements on external elisp packages, (e.g. ruby
requires inf-ruby, lisp/clojure require slime, etc...).  There
requirements are listed in the table at [1].  Inf-ruby can be loaded
through ELPA [2], or through the link in the languages table below.

That said, ruby should only be requiring inf-ruby on :session
evaluation, but it was requiring inf-ruby on *every* evaluation.  I've
fixed this so it should now be possible to run non :session ruby code
blocks without having inf-ruby installed.

Best -- Eric

Nathan Neff nathan.n...@gmail.com writes:

 I'm having trouble getting ruby scripts to run in org-babel.

 I'm running Org 7.01 trans.

 With this example, I get the message Cannot load file: inf-ruby after
 I press C-c C-c with the cursor on the #+begin_src line

 #+begin_src ruby
 puts hello world
 return 1
 #+end_src

 I have ruby installed, and can run it from the command line.
 I can run the following Python snippet just fine:
 #+begin_src python
 boo
 return 3
 #+end_src python

 I've tried executing this line in my Scratch buffer and in the same buffer
 that my ruby-code is in:


  (org-babel-do-load-languages
   'org-babel-load-languages
   '((R . t)
 (ditaa . t)
 (dot . t)
 (emacs-lisp . t)
 (gnuplot . t)
 (haskell . nil)
 (ocaml . nil)
 (python . t)
 (ruby . t)
 (screen . nil)
 (sh . t)
 (sql . nil)
 (sqlite . t)))

 Can someone post a bare-bones setup that can run ruby scripts from
 org-babel?

 ___
 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

Footnotes: 
[1]  http://orgmode.org/worg/org-contrib/babel/languages.php

[2]  http://tromey.com/elpa/


___
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: Setting org-agenda-time-grid: My day starts at midnight

2010-09-02 Thread Memnon Anon
Hey ;),

Bastien bastien.gue...@wikimedia.fr writes:

 Memnon Anon gegendosenflei...@googlemail.com writes:
 ;;MAN make sure time is at least 3 characters long or substring will fail
 =  (when ( (length time) 3) (setq time (concat 00 time)))  

 I fixed this in a slightly different way:
 -   (setq time (int-to-string time))
 +   (setq time (format %2d time))

Yes, I see. 
This prevents the error, however have a look at my agenda:

My 'fix':
Day-agenda (W35):
Thursday2 September 2010
   0:00.. 
   2:00.. 
   4:00.. 
   6:00.. 
   8:00.. 
  10:00.. 
  WORK:   11:25-12:00 XX:DUTY:WORK::
  WORK:   12:00-15:00   :DUTY:WORK::
  12:00.. 
  14:00.. 
  16:00.. 
  18:00.. 
  20:00.. 
  22:00.. 
  WORK:   22:15-22:59 [#A] X:DUTY:WORK::
  WORK:   23:00-23:59 TODO [#A] Job: X  :DUTY:WORK::
  23:59.. 
  DUTY:   Scheduled:  TODO [#A]   
:DUTY:REP::HOME:
  MAG:Sched. 3x:  TODO XX :STUDIUM::
  DUTY:   Sched. 2x:  TODO    
:DUTY:REP::HOME:
  DUTY:   Sched. 2x:  TODO XX 
:DUTY:REP::HOME:
  DUTY:   Sched. 2x:  TODO xx  
:DUTY:REP::HOME:DUTY:
  DUTY:   Sched. 2x:  TODO :DUTY::HOME:DUTY:
  FUN:Scheduled:  TODO [#C] xxx   :FUN:REP::
  FUN:Scheduled:  TODO [#C]   :FUN:REP::
  FUN:Scheduled:  TODO [#C] x :FUN:REP::
  FUN:Scheduled:  STARTED [#C] Reading Mail/News  :FUN:REP::
126.% load: 415 minutes to be alloted, 328 minutes free today, -87 minutes 
difference

Your fix:
Day-agenda (W35):
Thursday2 September 2010
   2:00.. 
   4:00.. 
   6:00.. 
   8:00.. 
  10:00.. 
  WORK:   11:25-12:00 DONE x:DUTY:WORK::
  WORK:   12:00-15:00 DONE xxx  :DUTY:WORK::
  12:00.. 
  14:00.. 
  16:00.. 
  18:00.. 
  20:00.. 
  22:00.. 
  WORK:   22:15-22:59 [#A]  :DUTY:WORK::
  WORK:   23:00-23:59 TODO [#A] xxx :DUTY:WORK::
  23:59.. 
  DUTY:   Scheduled:  TODO [#A] x   
:DUTY:REP::HOME:
  MAG:Sched. 3x:  TODO  :STUDIUM::
  DUTY:   Sched. 2x:  TODO xx   :DUTY:REP::HOME:
  DUTY:   Sched. 2x:  TODO  xx  
:DUTY:REP::HOME:
  DUTY:   Scheduled:  TODO [#C]     :DUTY:REP::HOME:
  FUN:Scheduled:  TODO [#C]   :FUN:REP::
  FUN:Scheduled:  TODO [#C]   :FUN:REP::
  FUN:Scheduled:  STARTED [#C] Reading Mail/News  :FUN:REP::
  
126.% load: 415 minutes to be alloted, 327 minutes free today, -88 minutes 
difference


Somehow, no 0:00 line on top, but a line (without hour) printed down at
the bottom of the agenda (above the org-calculate-free-time line).

However, calculations now are fine and thats for me the most important
thing :).

Thanks, 

Memnon

___
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


[Accepted] [Orgmode] Re: html-export mangels mailto: links

2010-09-02 Thread Bastien Guerry
Patch 251 (http://patchwork.newartisans.com/patch/251/) is now Accepted.

Maintainer comment: Applied a slightly modified version: better handling of 
absolute filenames.

This relates to the following submission:

http://mid.gmane.org/%3C87iq2o3b5s.fsf%40noorul.maa.corp.collab.net%3E

Here is the original message containing the patch:

 Content-Type: text/plain; charset=utf-8
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
 Subject: [Orgmode] Re: html-export mangels mailto: links
 Date: Thu, 02 Sep 2010 11:35:43 -
 From: Noorul Islam noo...@noorul.com
 X-Patchwork-Id: 251
 Message-Id: 87iq2o3b5s@noorul.maa.corp.collab.net
 To: Achim Gratz strom...@nexgo.de
 Cc: emacs-orgmode@gnu.org
 
 Achim Gratz strom...@nexgo.de writes:
 
  HTML export removes the mailto:; from a link, which will then be
  interpreted as a local link by the browser.
 
  For an example, see the link to this mailing list in
  ORGWEBPAGE/index.org and the corresponding HTML export on orgmode-org
  (or just the local file).
 
 
 org-html.el : Fix exporting file, mailto, news and ftp protocols.
 
 * lisp/org-html.el (org-html-make-link): (expand-file-name
 ) removes one / from ///path-to-file, so add one. Anything other
 than 'file' type should be exported along with the type.
 
 TINYCHANGE
 
 Thanks and Regards
 Noorul
 
 
 diff --git a/lisp/org-html.el b/lisp/org-html.el
 index 099b2e3..4430768 100644
 --- a/lisp/org-html.el
 +++ b/lisp/org-html.el
 @@ -720,7 +720,7 @@ MAY-INLINE-P allows inlining it as an image.
  ;;Substitute just if original path was absolute.
  ;;(Otherwise path must remain relative)
  (if (file-name-absolute-p path)
 -   (expand-file-name path)
 +   (concat / (expand-file-name path))
 path)))
((string= type )
   (list nil path))
 @@ -756,8 +756,7 @@ MAY-INLINE-P allows inlining it as an image.
(setq thefile
   (let
  ((str (org-export-html-format-href thefile)))
 -   (if (and type (not (string= file type))
 -(org-string-match-p ^// str))
 +   (if (and type (not (string= file type)))
 (concat type : str)
 str)))
  
 

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


Re: [Orgmode] [PATCH] Re: html-export mangels mailto: links

2010-09-02 Thread Bastien
Noorul Islam K M noo...@noorul.com writes:

 org-html.el : Fix exporting file, mailto, news and ftp protocols.

 * lisp/org-html.el (org-html-make-link): (expand-file-name
 ) removes one / from ///path-to-file, so add one. Anything other
 than 'file' type should be exported along with the type.

I applied it -- thanks.

I modified it further so that absolute filenames are exported as
file:///filename links.

-- 
 Bastien

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


Re: [Orgmode] This is probably a misconfiguration rather than a bug, but...

2010-09-02 Thread Carsten Dominik

Looks like a bug in org-git-store-link

- Carsten

On Sep 2, 2010, at 4:15 PM, Tim O'Callaghan wrote:


When i try and use org-capture in a buffer, it fails to display the
template menu, and it generates the backtrace below.

It works for org files, but not for some other files.

Tim.

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
 directory-file-name(nil)
 (file-name-directory (directory-file-name dirpath))
 (let ((dirname ...) (basename ...)) (list dirname basename))
 org-git-split-dirpath(nil)
 (let ((dirlist ...)) (when (string= ... ) (throw ... nil)) (setq
dir (first dirlist) relpath (concat ... relpath)))
 (while (not (file-exists-p ...)) (let (...) (when ... ...) (setq dir
... relpath ...)))
 (catch (quote toplevel) (while (not ...) (let ... ... ...)) (list
(expand-file-name .git dir) relpath))
 (let ((dir ...) (relpath ...)) (catch (quote toplevel) (while ...
...) (list ... relpath)))
 org-git-gitrepos-p(~/.dotfiles/zemacsen/site-lisp/policy-switch.el)
 (if (org-git-gitrepos-p file) (progn (org-store-link-props :type
git :link ...)))
 (when (org-git-gitrepos-p file) (org-store-link-props :type git
:link (org-git-create-git-link file)))
 (let ((file ...)) (when (org-git-gitrepos-p file)
(org-store-link-props :type git :link ...)))
 (progn (let (...) (when ... ...)))
 (if (buffer-file-name) (progn (let ... ...)))
 (when (buffer-file-name) (let (...) (when ... ...)))
 org-git-store-link()
 run-hook-with-args-until-success(org-git-store-link)
 (cond ((run-hook-with-args-until-success ...) (setq link ... desc
...)) ((equal ... *Org Edit Src Example*) (let ... ... ... ... ...
... ... ...)) ((equal ... ...) (let ... ...)) ((eq major-mode ...)
(let ... ... ...)) ((eq major-mode ...) (setq cpltxt ... link ...)
(org-store-link-props :type w3 :url ...)) ((eq major-mode ...) (setq
cpltxt ... link ...) (org-store-link-props :type w3m :url ...))
((setq search ...) (setq link ...) (setq cpltxt ...)) ((eq major-mode
...) (setq cpltxt ... link ...) (org-store-link-props :type image
:file buffer-file-name)) ((eq major-mode ...) (let ... ... ...)) ((and
... ...) (setq custom-id ...) (cond ... ... ...)) ((buffer-file-name
...) (setq cpltxt ...) (when ... ... ...) (setq link ...))
((interactive-p) (error Cannot link to a buffer which is not visiting
a file)) (t (setq link nil)))
 (let ((outline-regexp ...) link cpltxt desc description search txt
custom-id agenda-link) (cond (... ...) (... ...) (... ...) (... ...)
(... ... ...) (... ... ...) (... ... ...) (... ... ...) (... ...) (...
... ...) (... ... ... ...) (... ...) (t ...)) (if (consp link) (setq
cpltxt ... link ...)) (setq link (or link cpltxt) desc (or desc
cpltxt)) (if (equal desc NONE) (setq desc nil)) (if (and ... link)
(progn ... ... ...) (or agenda-link ...)))
 org-store-link(nil)
 (if (and (boundp ...) org-capture-link-is-already-stored) (plist-get
org-store-link-plist :annotation) (org-store-link nil))
 (let* ((orig-buf ...) (annotation ...) (initial ...) (entry ...))
(when initial (remove-text-properties 0 ... ... initial)) (when
annotation (remove-text-properties 0 ... ... annotation)) (cond (...
...) (... ...) (t ... ... ... ... ... ... ...)))
 (cond ((equal goto ...) (org-capture-goto-target)) ((equal goto ...)
(org-capture-goto-last-stored)) (t (let* ... ... ... ...)))
 org-capture(nil)
 call-interactively(org-capture nil nil)

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


- Carsten




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


[Orgmode] Re: [PATCH] can't :include files in org-publish-project-alist

2010-09-02 Thread Łukasz Stelmach
Bastien bastien.gue...@wikimedia.fr writes:

 :base-directory now allows a directory name with no ending slash.

 I did this in a slightly different way than the one you suggest:

 ,
 |   (let* ((r (plist-get (cdr prj) :recursive))
 | -(b (expand-file-name (plist-get (cdr prj) :base-directory)))
 | +(b (expand-file-name (file-name-as-directory
 | +  (plist-get (cdr prj) :base-directory
 |  (x (or (plist-get (cdr prj) :base-extension) org))
 `

Great :-) I didn't know there is the `file-name-as-directory' function.

-- 
Miłego dnia,
Łukasz Stelmach


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


Re: [Orgmode] Re: Setting org-agenda-time-grid: My day starts at midnight

2010-09-02 Thread Bastien
Memnon Anon gegendosenflei...@googlemail.com writes:

 This prevents the error, however have a look at my agenda:

Please pull again, this should be fixed now...

-- 
 Bastien

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


Re: [Orgmode] [PATCH] Fix typo in org-find-exact-headling-in-buffer

2010-09-02 Thread Bastien
Carsten Dominik carsten.domi...@gmail.com writes:

 Is anyone actually using the wikinodes module?  I had 0 feedback after I
 installed it.

FWIW I'm not using it...

-- 
 Bastien

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


Re: [Orgmode] [Patch] org-protocol default template should be nil

2010-09-02 Thread Bastien
Sebastian Rose sebastian_r...@gmx.de writes:

 We always used the w template as the default for `org-remember' and
 also used it for `org-capture' for historical reasons.

 Unfortunately, this breaks, if the user has no w template defined.

 The patch below simply set's the custom variable

Applied, thanks!

 `org-protocol-default-template-key' to nil, so the interactive template
 selection is used by default.  This works for both, remember an capture.

 I will adjust the docs, once the patch is applied.

You can go ahead!

-- 
 Bastien

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


[Orgmode] Org now fontifies code blocks

2010-09-02 Thread Dan Davison
I've just pushed changes which mean that Org now fontifies code in code
blocks. Currently, this is turned on by default, so it would be helpful
if people could report any problems, and opinions as to whether it
should be on or off by default.

To turn it off, use

(setq org-src-fontify-natively nil)

With it off, there are two functions for manually fontifying code
blocks: `org-src-fontify-block' and `org-src-fontify-buffer'.

With it on, on my netbook, there is a slight delay when typing in code
blocks of over 100 lines in length, and this is pronounced in code
blocks of several hundred lines.

Just to be clear, this is fontification only -- no other language major
mode features -- so the default method of editing code is still C-c '
(org-edit-src-code).

Thanks to David O'Toole for the original patch. The final version of the
patch is based on Carsten's suggestions for a more efficient
implementation.

Dan


Dan Davison davi...@stats.ox.ac.uk writes:

 Dan Davison davi...@stats.ox.ac.uk writes:

 David O'Toole dto1...@gmail.com writes:

 I've got a preliminary patch that adds optional native fontification
 for source blocks. It uses the block's declared mode to fontify the
 block text. So now blocks look the way they should, and this opens the
 way to further enhancements.

 Hi David,

 This is great! Here's a patch which allows the src blocks to have
 switches and header args, and also uses `org-src-lang-modes' to find the
 major mode. 

 I'm resending this as a match against the current master branch, and as
 an attachment so that it goes into the patchwork system. I am keeping
 this line of patches in branch `src-block-fontification' at
 git://github.com/dandavison/org-devel.git

 Dan


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


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


[Orgmode] Re: org-mode + pomodoro

2010-09-02 Thread Łukasz Stelmach
Frederic Couchet fcouc...@april.org writes:

 Sergey == Sergey Konoplev gray...@gmail.com writes:

 Sergey Hi all, Are there ways to use Pomodoro technique
 Sergey (http://www.pomodorotechnique.com/) with org-mode? If there
 Sergey are what are the best practices?

 Sergey Thank you in advice.

 I always start a clock when I work on a task. And for the Pomodoro
 technique I use also the org-timer module with some configuration.
[...]

Is there a way to get a countdown timer visible like the one you start
with `C-c C-x .'?

-- 
Miłego dnia,
Łukasz Stelmach


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


Re: [Orgmode] This is probably a misconfiguration rather than a bug, but...

2010-09-02 Thread Bastien
Tim O'Callaghan tim.ocallag...@gmail.com writes:

 When i try and use org-capture in a buffer, it fails to display the
 template menu, and it generates the backtrace below.

 It works for org files, but not for some other files.

Can you be a bit more specific?  What kind of buffer make the capture
mechanism fail?  (Can you share your templates?)

Thanks!

-- 
 Bastien

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


[Orgmode] how difficultwould it be to support zotero in org?

2010-09-02 Thread Matt Price
Hi,

This is all beyond me, but I was reading on the zotero forums about efforts
to integrate zotero citations in emacs:
http://forums.zotero.org/discussion/8306/testing-zoteroselect/
Towards the end of hte thread is some useful-looking elisp code, and I
wondered how hard it would be to massage it into something org could use?
otero integration would be a big plus for me and doubtless an increasing
number of others.

i fel like i've asked enough questions for a 24-hour period so i'l ltry to
stop now.
Matt
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] cannot enable org-habit

2010-09-02 Thread Julien Fantin
I'm watching this as I wasn't able to enable this module either.

I have state logging enable with :
  (setq org-todo-keywords
(quote
 ((sequence TODO(t!) NEXT(n!) | DONE(d!))
  (sequence WAIT(w@/!) SOMEDAY(s@/!) | CANCELLED(c@/!)

And org-habit is configured with :
 (add-to-list 'org-modules 'org-habit)

Which doesn't seems to work either...

If I try o (require 'org-habit) though, I'll get an error when
building the agenda with C-c a a :
org-habit-duration-to-days: Wrong type argument: stringp, nil


On Thu, Sep 2, 2010 at 4:40 PM, Bastien bastien.gue...@wikimedia.fr wrote:
 Joseph Buchignani joseph.buchign...@gmail.com writes:

 I presume there ought to be some sort of entry in my agenda, or the k key
 should do something. I get nothing. Here is my setup:

   * org-mode 7.01h
   * emacs file included below.

 The relevant portion is (add-to-list 'org-modules 'org-habit), which I have
 enabled in my .emacs, to no avail.

 What am I missing?

 Are you logging your DONE state?

 From the manual:

  6. You must also have state logging for the `DONE' state enabled, in
     order for historical data to be represented in the consistency
     graph.  If it's not enabled it's not an error, but the consistency
     graphs will be largely meaningless.

 --
  Bastien

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


___
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: HTML export of org source blocks

2010-09-02 Thread Thomas S. Dye


On Sep 1, 2010, at 9:06 PM, Noorul Islam K M wrote:


Thomas S. Dye t...@tsdye.com writes:


Aloha all,

The following example from the Ledger tutorial
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.php
doesn't export the #+end_src line:

#+begin_src org

,#+begin_src ledger :cmdline -s bal :results value
,!include /tmp/account.ledger
,#+end_src

#+end_src

As you can see in this example and others in the Ledger tutorial on
Worg, only the first two lines of the code block make it through the
exporter.

Is this a bug or is the source block malformed in some way?



I think you should use BEGIN_EXAMPLE and END_EXAMPLE for this.

In that case you don't have to use leading ,.

You can check the org files written for babel tutorial

Thanks and Regards
Noorul



Aloha Noorul,

Thanks much.  The #+end_src lines export fine now.

All the best,
Tom


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


Re: [Orgmode] dynamically calculated timestamps?

2010-09-02 Thread Manish
On Thu, Sep 2, 2010 at 6:44 PM, Matt Price wrote:
 Hi,

 Yet another question (I've had a bunch lately).

 In my syllabus I have a bunch of headings like this:

 * Outline: Semester 1
 ** Introduction: What is History For?
 ** History and the Public Sphere
 ** Recursive Publics
 ** Abundant Information and the Digitial Divide
 ** Crowdsourcing

 (there are subheadings and text in between). While i'm planning I like
 to move the headings around quite a bit, but it would be nice, while
 I'm doing that, to still know what date the class meeting will take
 place on. So I would like to do something like this:
 * Outline: Semester 1
 ** Introduction: What is History For? 2010-09-16 Thu
 ** History and the Public Sphere last timestamp+7 days 
 ** Recursive Publicslast timestamp+7 days 


last timestamp here refers to the date in previous item or last date
class was held?

 So essentially, have something like a spreadsheet formula embedded in the
 timestamp.  Does anyone have any ideas how I might jerryrig something like
 that? It would certainly be helpful to me.

The reference to spreadsheet like formula suggests that you want the
date from previous item to be used to calculate the date for current
item and a change in the former should cause an appropriate change on
the latter. org-depend.el (in contrib/lisp) can be used to define the
relationships but I don't know how you could link dates that way.

Not very helpful.  Sorry.

-- 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] Org now fontifies code blocks

2010-09-02 Thread Erik Iverson

Dan,

Thank you to David and yourself for this great feature.  I have
absolutely no opinion about the default on/off, except to say it
looks great on.

Is your TAB key patch[1] in master yet?
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28640.html



Dan Davison wrote:

I've just pushed changes which mean that Org now fontifies code in code
blocks. Currently, this is turned on by default, so it would be helpful
if people could report any problems, and opinions as to whether it
should be on or off by default.

To turn it off, use

(setq org-src-fontify-natively nil)

With it off, there are two functions for manually fontifying code
blocks: `org-src-fontify-block' and `org-src-fontify-buffer'.

With it on, on my netbook, there is a slight delay when typing in code
blocks of over 100 lines in length, and this is pronounced in code
blocks of several hundred lines.

Just to be clear, this is fontification only -- no other language major
mode features -- so the default method of editing code is still C-c '
(org-edit-src-code).

Thanks to David O'Toole for the original patch. The final version of the
patch is based on Carsten's suggestions for a more efficient
implementation.

Dan


Dan Davison davi...@stats.ox.ac.uk writes:


Dan Davison davi...@stats.ox.ac.uk writes:


David O'Toole dto1...@gmail.com writes:


I've got a preliminary patch that adds optional native fontification
for source blocks. It uses the block's declared mode to fontify the
block text. So now blocks look the way they should, and this opens the
way to further enhancements.

Hi David,

This is great! Here's a patch which allows the src blocks to have
switches and header args, and also uses `org-src-lang-modes' to find the
major mode. 

I'm resending this as a match against the current master branch, and as
an attachment so that it goes into the patchwork system. I am keeping
this line of patches in branch `src-block-fontification' at
git://github.com/dandavison/org-devel.git

Dan


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



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


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


[Orgmode] Re: cannot enable org-habit

2010-09-02 Thread Noorul Islam
On Thursday, September 2, 2010, Julien Fantin julien.fan...@gmail.com wrote:
 I'm watching this as I wasn't able to enable this module either.

 I have state logging enable with :
   (setq org-todo-keywords
         (quote
          ((sequence TODO(t!) NEXT(n!) | DONE(d!))
           (sequence WAIT(w@/!) SOMEDAY(s@/!) | CANCELLED(c@/!)

 And org-habit is configured with :
  (add-to-list 'org-modules 'org-habit)

 Which doesn't seems to work either...

 If I try o (require 'org-habit) though, I'll get an error when
 building the agenda with C-c a a :
 org-habit-duration-to-days: Wrong type argument: stringp, nil


If you pull the latest version from git repo, you won't get this
error, instead a meaningful error message will be displayed.

Thanks and Regards
Noorul

___
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: cannot enable org-habit

2010-09-02 Thread Julien Fantin
Thanks Noorul, this helped me fix the error, and I now have it working !
I should mention that I do need to (require 'org-habit) after it's
been added to the modules list, in order to actually activate it.



On Thu, Sep 2, 2010 at 7:17 PM, Noorul Islam noo...@noorul.com wrote:
 On Thursday, September 2, 2010, Julien Fantin julien.fan...@gmail.com wrote:
 I'm watching this as I wasn't able to enable this module either.

 I have state logging enable with :
   (setq org-todo-keywords
         (quote
          ((sequence TODO(t!) NEXT(n!) | DONE(d!))
           (sequence WAIT(w@/!) SOMEDAY(s@/!) | CANCELLED(c@/!)

 And org-habit is configured with :
  (add-to-list 'org-modules 'org-habit)

 Which doesn't seems to work either...

 If I try o (require 'org-habit) though, I'll get an error when
 building the agenda with C-c a a :
 org-habit-duration-to-days: Wrong type argument: stringp, nil


 If you pull the latest version from git repo, you won't get this
 error, instead a meaningful error message will be displayed.

 Thanks and Regards
 Noorul


___
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] dynamically calculated timestamps?

2010-09-02 Thread Matt Price
On Thu, Sep 2, 2010 at 1:15 PM, Matt Price mopto...@gmail.com wrote:


  (there are subheadings and text in between). While i'm planning I like
  to move the headings around quite a bit, but it would be nice, while
  I'm doing that, to still know what date the class meeting will take
  place on. So I would like to do something like this:
  * Outline: Semester 1
  ** Introduction: What is History For? 2010-09-16 Thu
  ** History and the Public Sphere last timestamp+7 days 
  ** Recursive Publicslast timestamp+7 days 
 

 last timestamp here refers to the date in previous item or last date
 class was held?

 to the previous timestamp, sorry.


   So essentially, have something like a spreadsheet formula embedded in
 the
  timestamp.  Does anyone have any ideas how I might jerryrig something
 like
  that? It would certainly be helpful to me.

 The reference to spreadsheet like formula suggests that you want the
 date from previous item to be used to calculate the date for current
 item and a change in the former should cause an appropriate change on
 the latter. org-depend.el (in contrib/lisp) can be used to define the
 relationships but I don't know how you could link dates that way.

 Thanks for the pointer, but that file remains a little opaque to me! maybe
 someone will explain itto me.  Thanks much for the help though.


i've just been htinking about it and it seems this ought to be pretty
simple:
- find the last timestamp
- read its value
- go back to point
- update timestamp of current headin

so, in broken syntactically flawed pseudocode:
(defun change-stamp
(save-excursion (goto-last-timestamp)
(save-timestamp-value))
(set-timestamp-to-saved))
something like that.  but of course those functions would have to be
written.  any ideas?

 thanks,
matt

 .
 matt

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


[Orgmode] Wrong count? Me or Org?

2010-09-02 Thread C64 Whiz
I have the following tree and notice the % done value...

 Actions [80%]
* DONE See if existing credentials work
** DONE 2010/07/26 17:12:24 (05:12:24 PM)
   I'll be working from home on Wed and will see if the existing
   credentials still work.  I can find them [[file:c:/path/to/file][in
here]].
* CANCEL Create new credentials
* DONE Email new credentials to S. W.
* DONE Store new credentials in folder


Why 80%??

--C64Whiz
___
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: cannot enable org-habit

2010-09-02 Thread Joseph Buchignani
Julien, it sounds like you're doing something different than what's in the
manual.

Could you paste exactly the code you used in your .emacs to include
org-habit in the modules list and then activate it? I guess it would be two
separate lines?

Thanks,
JB

On Fri, Sep 3, 2010 at 1:26 AM, Julien Fantin julien.fan...@gmail.comwrote:

 Thanks Noorul, this helped me fix the error, and I now have it working !
 I should mention that I do need to (require 'org-habit) after it's
 been added to the modules list, in order to actually activate it.



 On Thu, Sep 2, 2010 at 7:17 PM, Noorul Islam noo...@noorul.com wrote:
  On Thursday, September 2, 2010, Julien Fantin julien.fan...@gmail.com
 wrote:
  I'm watching this as I wasn't able to enable this module either.
 
  I have state logging enable with :
(setq org-todo-keywords
  (quote
   ((sequence TODO(t!) NEXT(n!) | DONE(d!))
(sequence WAIT(w@/!) SOMEDAY(s@/!) | CANCELLED(c@
 /!)
 
  And org-habit is configured with :
   (add-to-list 'org-modules 'org-habit)
 
  Which doesn't seems to work either...
 
  If I try o (require 'org-habit) though, I'll get an error when
  building the agenda with C-c a a :
  org-habit-duration-to-days: Wrong type argument: stringp, nil
 
 
  If you pull the latest version from git repo, you won't get this
  error, instead a meaningful error message will be displayed.
 
  Thanks and Regards
  Noorul
 




-- 
Ignore the following. It is a nonsense sentence that disables Google ads
from displaying next to my emails by triggering sensitive keywords.

I enjoy the massacre of ads. This sentence will slaughter ads without a
messy bloodbath.
___
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] Wrong count? Me or Org?

2010-09-02 Thread Manish
On Thu, Sep 2, 2010 at 11:27 PM, C64 Whiz wrote:
 I have the following tree and notice the % done value...

  Actions [80%]
 * DONE See if existing credentials work
 ** DONE 2010/07/26 17:12:24 (05:12:24 PM)
I'll be working from home on Wed and will see if the existing
credentials still work.  I can find them [[file:c:/path/to/file][in
 here]].
 * CANCEL Create new credentials
 * DONE Email new credentials to S. W.
 * DONE Store new credentials in folder


 Why 80%??

Did you change the state of any item by hand (as opposed to using
shift-arrow or C-c C-t and such?) Have you tried doing a C-c C-c on the
statistics cookie?

-- 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] Effort estimates for multi-day tasks

2010-09-02 Thread Markus Heller
Hello all,

please consider the following scenario:

* Task A
** Task B
   This task requires 3 full days @ 8 h each day.
   :PROPERTIES:
   :Effort: 
   :END:

How would I estimate the effort for task B?  Set it to 24:00?  That's
unhandy if you have something like the following in your .emacs:

;; global Effort estimate values
(setq org-global-properties (quote ((Effort_ALL . 0:05 0:15 0:30 1:00 1:30 
2:00 2:30 3:00 3:30 4:00 4:30 5:00 5:30 6:00 6:30 7:00 7:30 8:00

The other option would be to break up task B in 3 subtasks like this:

* Task A
** Task B
   This is now just a container task
*** Task B1
:PROPERTIES:
:Effort: 8:00
:END:
*** Task B2
:PROPERTIES:
:Effort: 8:00
:END:
*** Task B3
:PROPERTIES:
:Effort: 8:00
:END:

What do the org-mode experts consider to be the best solution to
estimating the efforts of multi-day tasks?

Any input is appreciated.

Thanks and Cheers
Markus


___
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] Src blocks fontification issue

2010-09-02 Thread Julien Fantin
First congratulations on adding in-line fontification to source
blocks, that's a great addition.

However, since I pulled those changes, a recurring issue I've been
having has become even more annoying.

When opening an org file, some src blocks headers don't seem to get
parsed properly, and now as a result, don't get fontified.
They are functional though, since they properly get tangled, and C-c '
performs as expected.
If I edit the header line, or the ones directly before and after it,
the block gets back to normal.

Here is a screenshot to make things clearer, as you can see there are
no differences in formatting, and those properties drawer don't have
anything weird, just a single ID.

http://imagebin.org/112413

I was meaning to post a screenshot with whitespace-mode on to stress
that there are no apparent formatting differences, but it turned out
activating it fixed the issue !

Not sure what I can do to further help debugging this ?

Cheers

___
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: ob-plantuml fails on Windows

2010-09-02 Thread Nick Dokos
Manish mailtomanish.sha...@gmail.com wrote:

 Hello!
 
 I was trying to test ob-plantuml and it failed with following trace.
 
 Setup:
 
 - GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-08-30 on 3249CTO
 - Windows XP SP 2
 - Org mode from git head
 - org-plantuml-jar-path is set
 - This example works from command-line and does not require dot.
 
 Trace:
 
 Debugger entered--Lisp error: (wrong-type-argument stringp nil)
   string-match([^\] nil)
   shell-quote-argument(nil)
   (concat java -jar  (shell-quote-argument org-plantuml-jar-path) 
 -p  cmdline(shell-quote-argument in-file)   
 (shell-quote-argument out-file))

Maybe something similar to the problem discussed in this message/thread?

http://thread.gmane.org/gmane.emacs.orgmode/29535/focus=29539

Nick

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


Re: [Orgmode] Babel: ob-plantuml fails on Windows

2010-09-02 Thread Eric Schulte
Hi Manish,

Are you sure that org-plantuml-jar-path is set when the function
produces that error?  I've just pushed up a slight change to ob-plantuml
which is more explicit about ensuring the correctness of
org-plantuml-jar-path before it is used.  Could you retry with this new
addition?

Thanks -- Eric

Manish mailtomanish.sha...@gmail.com writes:

 Hello!

 I was trying to test ob-plantuml and it failed with following trace.

 Setup:

 - GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-08-30 on 3249CTO
 - Windows XP SP 2
 - Org mode from git head
 - org-plantuml-jar-path is set
 - This example works from command-line and does not require dot.

 Trace:

 Debugger entered--Lisp error: (wrong-type-argument stringp nil)
   string-match([^\] nil)
   shell-quote-argument(nil)
   (concat java -jar  (shell-quote-argument org-plantuml-jar-path) 
 -p  cmdline(shell-quote-argument in-file)   
 (shell-quote-argument out-file))
   (let* ((result-params ...) (out-file ...) (cmdline ...) (in-file
 ...) (cmd ...)) (unless (file-exists-p org-plantuml-jar-path) (error
 Could not find plantuml.jar at %s org-plantuml-jar-path))
 (with-temp-file in-file (insert ...)) (message %s cmd)
 (org-babel-eval cmd ) out-file)
   org-babel-execute:plantuml(skinparam defaultFontName
 Candara\nskinparam defaultFontSize 8\nparticipant  User\nUser  -  A:
 DoWork\nactivate  A\nA  -  B:createRequest  \nactivate  B\nB
 -  C:  DoWork\nactivate  C\nC  --  B:  WorkDone\ndestroy  C\nB  --
 A:  RequestCreated\ndeactivate  B\nA  -  User:  Done\ndeactivate
 A\n ((:cache . no) (:comments . ) (:exports . results) (:hlines
 . no) (:noweb . no) (:result . \sequence.png\) (:results .
 replace file) (:session . none) (:shebang . ) (:tangle . )))
   funcall(org-babel-execute:plantuml skinparam defaultFontName
 Candara\nskinparam defaultFontSize 8\nparticipant  User\nUser  -  A:
 DoWork\nactivate  A\nA  -  B:createRequest  \nactivate  B\nB
 -  C:  DoWork\nactivate  C\nC  --  B:  WorkDone\ndestroy  C\nB  --
 A:  RequestCreated\ndeactivate  B\nA  -  User:  Done\ndeactivate
 A\n ((:cache . no) (:comments . ) (:exports . results) (:hlines
 . no) (:noweb . no) (:result . \sequence.png\) (:results .
 replace file) (:session . none) (:shebang . ) (:tangle . )))
   (setq result (funcall cmd body params))
   (if (and (not arg) new-hash (equal new-hash old-hash))
 (save-excursion (goto-char ...) (end-of-line 1) (forward-char 1) (setq
 result ...) (message ...) result) (message executing %s code
 block%s... (capitalize lang) (if ... ... )) (setq result (funcall
 cmd body params)) (if (eq result-type ...) (setq result ...))
 (org-babel-insert-result result result-params info new-hash indent
 lang) (run-hooks (quote org-babel-after-execute-hook)) result)
   (progn (fset (quote call-process-region) (function* ...)) (unless
 (fboundp cmd) (error No org-babel-execute function for %s! lang))
 (if (and ... new-hash ...) (save-excursion ... ... ... ... ... result)
 (message executing %s code block%s... ... ...) (setq result ...) (if
 ... ...) (org-babel-insert-result result result-params info new-hash
 indent lang) (run-hooks ...) result))
   (unwind-protect (progn (fset ... ...) (unless ... ...) (if ... ...
 ... ... ... ... ... result)) (if --cl-letf-bound-- (fset ...
 --cl-letf-save--) (fmakunbound ...)))
   (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...))
 (unwind-protect (progn ... ... ...) (if --cl-letf-bound-- ... ...)))
   (letf ((... ...)) (unless (fboundp cmd) (error No org-babel-execute
 function for %s! lang)) (if (and ... new-hash ...) (save-excursion
 ... ... ... ... ... result) (message executing %s code block%s...
 ... ...) (setq result ...) (if ... ...) (org-babel-insert-result
 result result-params info new-hash indent lang) (run-hooks ...)
 result))
   (letf* ((... ...)) (unless (fboundp cmd) (error No
 org-babel-execute function for %s! lang)) (if (and ... new-hash ...)
 (save-excursion ... ... ... ... ... result) (message executing %s
 code block%s... ... ...) (setq result ...) (if ... ...)
 (org-babel-insert-result result result-params info new-hash indent
 lang) (run-hooks ...) result))
   (flet ((call-process-region ... ...)) (unless (fboundp cmd) (error
 No org-babel-execute function for %s! lang)) (if (and ... new-hash
 ...) (save-excursion ... ... ... ... ... result) (message executing
 %s code block%s... ... ...) (setq result ...) (if ... ...)
 (org-babel-insert-result result result-params info new-hash indent
 lang) (run-hooks ...) result))
   (unwind-protect (flet (...) (unless ... ...) (if ... ... ... ... ...
 ... ... result)) (setq call-process-region (quote
 org-babel-call-process-region-original)))
   (let* ((lang ...) (params ...) (new-hash ...) (old-hash ...) (body
 ...) (result-params ...) (result-type ...) (cmd ...) (dir ...)
 (default-directory ...) (org-babel-call-process-region-original ...)
 (indent ...) result) (unwind-protect (flet ... ... ...) (setq
 call-process-region ...)))
   (progn (let* (... ... ... ... 

[Orgmode] Re: [BUG - low] capture with region selected in read only erc buffer

2010-09-02 Thread Matt Lundin
Hi Carsten,

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

 On Sep 2, 2010, at 1:18 AM, Richard Riley wrote:

 If I select a region in, in this case, an erc (emacs irc client)
 buffer
 in the read only section and then use my global keys to create a new
 item using the following j template while the text is still selected

 (j Journal entry
  (file+datetree journal.org)
  * %T %?\n  %i\n  %a)

 then I get the following backtrace :-

 Debugger entered--Lisp error: (error Capture abort: (text-read-
 only))
  signal(error (Capture abort: (text-read-only)))
  error(Capture abort: %s (text-read-only))
  byte-code(\301\302!\203\n

 Fixed, thanks.


This update caused the following error when invoking org-capture on a
Gnus article:

--8---cut here---start-8---
Debugger entered--Lisp error: (args-out-of-range 0 401)
  remove-text-properties(0 401 (read-only t) 
[[gnus:gmane.emacs.orgmode#87aao21i92@gmx.de][sebastian Rose: Re: 
Org-protocol / Chrome on Linux]])
  (progn (remove-text-properties 0 (length initial) (quote ...) annotation))
  (if annotation (progn (remove-text-properties 0 ... ... annotation)))
  (when annotation (remove-text-properties 0 (length initial) (quote ...) 
annotation))
  (let* ((orig-buf ...) (annotation ...) (initial ...) (entry ...)) (when 
initial (remove-text-properties 0 ... ... initial)) (when annotation 
(remove-text-properties 0 ... ... annotation)) (cond (... ...) (... ...) (t ... 
... ... ... ... ... ...)))
  (cond ((equal goto ...) (org-capture-goto-target)) ((equal goto ...) 
(org-capture-goto-last-stored)) (t (let* ... ... ... ...)))
  org-capture(nil)
  call-interactively(org-capture nil nil)
  recursive-edit()
  byte-code(\306  @\307=\203!  debug(error (args-out-of-range 0 401))
  remove-text-properties(0 401 (read-only t) 
[[gnus:gmane.emacs.orgmode#87aao21i92@gmx.de][sebastian Rose: Re: 
Org-protocol / Chrome on Linux]])
  org-capture(nil)
  call-interactively(org-capture nil nil)
  recursive-edit()
  byte-code(\306  @\307=\203!  debug(error (args-out-of-range 0 401))
  remove-text-properties(0 401 (read-only t) 
[[gnus:gmane.emacs.orgmode#87aao21i92@gmx.de][sebastian Rose: Re: 
Org-protocol / Chrome on Linux]])
  org-capture(nil)
  call-interactively(org-capture nil nil)
--8---cut here---end---8---

Reverting commit d8498a40e815d8604311e9844e6c75bbf074d026 fixed the
issue.

Thanks,
Matt


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


[Orgmode] Re: Wrong count? Me or Org?

2010-09-02 Thread Memnon Anon
Hi C64,

C64 Whiz c64w...@gmail.com writes:

  Actions [80%]
 * DONE See if existing credentials work
 ** DONE 2010/07/26 17:12:24 (05:12:24 PM)
    I'll be working from home on Wed and will see if the existing
    credentials still work.  I can find them [[file:c:/path/to/file][in 
 here]].
 * CANCEL Create new credentials
 * DONE Email new credentials to S. W.
 * DONE Store new credentials in folder

 Why 80%??

I can not reproduce that with
Org-mode version 7.01trans (release_7.01h.418.g7b188)

on 

GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-08-14 on raven, modified by Debian

I copied your example in a temporary buffer, M-x org-mode and refreshed
the cookie with C-c C-c.
Number is correctly set on 100%.

Memnon

___
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] Native TAB in code blocks [WAS Re: Org now fontifies code blocks]

2010-09-02 Thread Dan Davison
Erik Iverson er...@ccbr.umn.edu writes:

 Dan,

 Thank you to David and yourself for this great feature.  I have
 absolutely no opinion about the default on/off, except to say it
 looks great on.

 Is your TAB key patch[1] in master yet?
 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28640.html

Hi Erik,

Since these[1] changes, language-native TAB can be achieved in code
blocks via C-c C-v C-x TAB and C-c C-v x TAB. We can add this to
org-tab-first-hook, controlled by a variable `org-src-tab-acts-natively'
as below. Carsten -- would you like to add this to Org, or leave it as a
user customisation?

Dan


--8---cut here---start-8---
diff --git a/lisp/org-src.el b/lisp/org-src.el
index 6c09cbd..d1948cc 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -715,6 +715,19 @@ Org-babel commands.
  (call-interactively
   (lookup-key org-babel-map key)
 
+(defvar org-src-tab-acts-natively nil
+  If non-nil, the effect of TAB in a code block is as if it were
+issued in the language major mode buffer.)
+
+(defun org-src-native-tab-command-maybe ()
+  Perform language-specific TAB action.
+Alter code block according to effect of TAB in the language major
+mode.
+  (and org-src-tab-acts-natively
+   (org-babel-do-key-sequence-in-edit-buffer (kbd TAB
+
+(add-hook 'org-tab-first-hook 'org-src-native-tab-command-maybe)
+
 (defun org-src-font-lock-fontify-block (lang start end)
   Fontify code block.
 This function is called by emacs automatic fontification, as long
--8---cut here---end---8---


Footnotes:

[1] http://thread.gmane.org/gmane.emacs.orgmode/28950




 Dan Davison wrote:
 I've just pushed changes which mean that Org now fontifies code in code
 blocks. Currently, this is turned on by default, so it would be helpful
 if people could report any problems, and opinions as to whether it
 should be on or off by default.

 To turn it off, use

 (setq org-src-fontify-natively nil)

 With it off, there are two functions for manually fontifying code
 blocks: `org-src-fontify-block' and `org-src-fontify-buffer'.

 With it on, on my netbook, there is a slight delay when typing in code
 blocks of over 100 lines in length, and this is pronounced in code
 blocks of several hundred lines.

 Just to be clear, this is fontification only -- no other language major
 mode features -- so the default method of editing code is still C-c '
 (org-edit-src-code).

 Thanks to David O'Toole for the original patch. The final version of the
 patch is based on Carsten's suggestions for a more efficient
 implementation.

 Dan


 Dan Davison davi...@stats.ox.ac.uk writes:

 Dan Davison davi...@stats.ox.ac.uk writes:

 David O'Toole dto1...@gmail.com writes:

 I've got a preliminary patch that adds optional native fontification
 for source blocks. It uses the block's declared mode to fontify the
 block text. So now blocks look the way they should, and this opens the
 way to further enhancements.
 Hi David,

 This is great! Here's a patch which allows the src blocks to have
 switches and header args, and also uses `org-src-lang-modes' to find the
 major mode. 
 I'm resending this as a match against the current master branch, and as
 an attachment so that it goes into the patchwork system. I am keeping
 this line of patches in branch `src-block-fontification' at
 git://github.com/dandavison/org-devel.git

 Dan


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


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

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


___
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] This is probably a misconfiguration rather than a bug, but...

2010-09-02 Thread David Maus
Tim O'Callaghan wrote:
When i try and use org-capture in a buffer, it fails to display the
template menu, and it generates the backtrace below.

Which version of Org mode are you running?  IIRC There was a bug in
`org-git-store-link' that caused this error and was fixed in Feb 2010
(commit 6a5f6deaac1bcf4244625e5843bbaf511b8e4b57).

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


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


[Orgmode] Re: Native TAB in code blocks [WAS Re: Org now fontifies code blocks]

2010-09-02 Thread Carsten Dominik
On Thu, Sep 2, 2010 at 9:06 PM, Dan Davison davi...@stats.ox.ac.uk wrote:
 Erik Iverson er...@ccbr.umn.edu writes:

 Dan,

 Thank you to David and yourself for this great feature.  I have
 absolutely no opinion about the default on/off, except to say it
 looks great on.

 Is your TAB key patch[1] in master yet?
 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28640.html

 Hi Erik,

 Since these[1] changes, language-native TAB can be achieved in code
 blocks via C-c C-v C-x TAB and C-c C-v x TAB. We can add this to
 org-tab-first-hook, controlled by a variable `org-src-tab-acts-natively'
 as below. Carsten -- would you like to add this to Org, or leave it as a
 user customisation?

I think we can add this to Org.  Maybe default off, for now?

- Carten


 Dan


 --8---cut here---start-8---
 diff --git a/lisp/org-src.el b/lisp/org-src.el
 index 6c09cbd..d1948cc 100644
 --- a/lisp/org-src.el
 +++ b/lisp/org-src.el
 @@ -715,6 +715,19 @@ Org-babel commands.
      (call-interactively
       (lookup-key org-babel-map key)

 +(defvar org-src-tab-acts-natively nil
 +  If non-nil, the effect of TAB in a code block is as if it were
 +issued in the language major mode buffer.)
 +
 +(defun org-src-native-tab-command-maybe ()
 +  Perform language-specific TAB action.
 +Alter code block according to effect of TAB in the language major
 +mode.
 +  (and org-src-tab-acts-natively
 +       (org-babel-do-key-sequence-in-edit-buffer (kbd TAB
 +
 +(add-hook 'org-tab-first-hook 'org-src-native-tab-command-maybe)
 +
  (defun org-src-font-lock-fontify-block (lang start end)
   Fontify code block.
  This function is called by emacs automatic fontification, as long
 --8---cut here---end---8---


 Footnotes:

 [1] http://thread.gmane.org/gmane.emacs.orgmode/28950




 Dan Davison wrote:
 I've just pushed changes which mean that Org now fontifies code in code
 blocks. Currently, this is turned on by default, so it would be helpful
 if people could report any problems, and opinions as to whether it
 should be on or off by default.

 To turn it off, use

 (setq org-src-fontify-natively nil)

 With it off, there are two functions for manually fontifying code
 blocks: `org-src-fontify-block' and `org-src-fontify-buffer'.

 With it on, on my netbook, there is a slight delay when typing in code
 blocks of over 100 lines in length, and this is pronounced in code
 blocks of several hundred lines.

 Just to be clear, this is fontification only -- no other language major
 mode features -- so the default method of editing code is still C-c '
 (org-edit-src-code).

 Thanks to David O'Toole for the original patch. The final version of the
 patch is based on Carsten's suggestions for a more efficient
 implementation.

 Dan


 Dan Davison davi...@stats.ox.ac.uk writes:

 Dan Davison davi...@stats.ox.ac.uk writes:

 David O'Toole dto1...@gmail.com writes:

 I've got a preliminary patch that adds optional native fontification
 for source blocks. It uses the block's declared mode to fontify the
 block text. So now blocks look the way they should, and this opens the
 way to further enhancements.
 Hi David,

 This is great! Here's a patch which allows the src blocks to have
 switches and header args, and also uses `org-src-lang-modes' to find the
 major mode.
 I'm resending this as a match against the current master branch, and as
 an attachment so that it goes into the patchwork system. I am keeping
 this line of patches in branch `src-block-fontification' at
 git://github.com/dandavison/org-devel.git

 Dan


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


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

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



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


Re: [Orgmode] Org-mode to MS-Word/OOo with vector graphics

2010-09-02 Thread David Maus
Hi Tom,

Tom Short wrote:
Although this isn't org-babel specific, it's convenient to use with
org-babel since there are so many ways to generate graphic files. See
below for an example that uses R to create EPS and windows metafiles
(windows only).

I'm curious to hear if it works for anyone else.

Do you mind if I put it on a list for a possible tutorial about how to
export Org mode files for later use in OOo or MS Word?  There have
been some questions about this lately and I think a tutorial about
different approaches (via DocBook, HTML, tex4ht, ..) would be a nice
addition to Worg.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


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


Re: [Orgmode] Wrong count? Me or Org?

2010-09-02 Thread David Maus
C64 Whiz wrote:
I have the following tree and notice the % done value...

 Actions [80%]
* DONE See if existing credentials work
** DONE 2010/07/26 17:12:24 (05:12:24 PM)
   I'll be working from home on Wed and will see if the existing
   credentials still work.  I can find them [[file:c:/path/to/file][in 
here]].
* CANCEL Create new credentials
* DONE Email new credentials to S. W.
* DONE Store new credentials in folder

Why 80%??

What is your setting of `org-todo-keywords'?

And to rule out the level 6 headline: Is the percent count still bogus
with only the five level 5 headlines?

Best,
  -- David
-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


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


Re: [Orgmode] how difficultwould it be to support zotero in org?

2010-09-02 Thread David Maus
Hi Matt,

Matt Price wrote: 
This is all beyond me, but I was reading on the zotero forums about
efforts to integrate zotero citations in emacs:
http://forums.zotero.org/discussion/8306/testing-zoteroselect/

Towards the end of hte thread is some useful-looking elisp code, and
I wondered how hard it would be to massage it into something org
could use?  otero integration would be a big plus for me and
doubtless an increasing number of others. 

rant
Well... Providing an Elisp interface to Zotero is on my Someday,
Maybe list and at least there is a successful attempt to talk to
Zotero using MozRepl[1] (after I've discovered that Zotero's SOAP
interface was abandoned).

With regards to citations I started to think about[2] writing a
processor for the Citation Style Language (CSL)[3] in Elisp.  For this
there wouldn't necessarily be an interaction with Zotero, but the
possibility of using citation styles in CSL to format bibliographic
entries for HTML or plain text export.

The question is what kind of workflow you are imaging.  I started
with: Insert a reference to an entry in Zotero and provide pretty
markup when exporting the file.
/rant

Best,
  -- David

Footnotes: 
[1] http://gist.github.com/252402

[2] Read: Did some quick'n'dirty hacks

[3] http://citationstyles.org/

-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


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


[Orgmode] Use `C-c C-x _' for interactively calling `org-timer-stop'

2010-09-02 Thread Bastien
Unless I missed something, `org-timer-stop' has no keybinding yet.
I propose to use `C-c C-x _'.

Is that okay for everyone?

diff --git a/lisp/org.el b/lisp/org.el
index fc44fc7..01da980 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16383,6 +16383,7 @@ BEG and END default to the buffer boundaries.
 (org-defkey org-mode-map \C-c\C-x.'org-timer)
 (org-defkey org-mode-map \C-c\C-x-'org-timer-item)
 (org-defkey org-mode-map \C-c\C-x0'org-timer-start)
+(org-defkey org-mode-map \C-c\C-x_'org-timer-stop)
 (org-defkey org-mode-map \C-c\C-x,'org-timer-pause-or-continue)
 
 (define-key org-mode-map \C-c\C-x\C-c 'org-columns)

-- 
 Bastien

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


Re: [Orgmode] Re: org-mode + pomodoro

2010-09-02 Thread Bastien
Frederic Couchet fcouc...@april.org writes:

 I always start a clock when I work on a task. And for the Pomodoro
 technique I use also the org-timer module with some configuration.

I created a section about using Org with Pomodoro on Worg:

  http://orgmode.org/worg/org-gtd-etc.php

-- 
 Bastien

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


[Orgmode] Re: Native TAB in code blocks

2010-09-02 Thread Dan Davison
Carsten Dominik carsten.domi...@gmail.com writes:

 On Thu, Sep 2, 2010 at 9:06 PM, Dan Davison davi...@stats.ox.ac.uk wrote:
 Erik Iverson er...@ccbr.umn.edu writes:

 Dan,

 Thank you to David and yourself for this great feature.  I have
 absolutely no opinion about the default on/off, except to say it
 looks great on.

 Is your TAB key patch[1] in master yet?
 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28640.html

 Hi Erik,

 Since these[1] changes, language-native TAB can be achieved in code
 blocks via C-c C-v C-x TAB and C-c C-v x TAB. We can add this to
 org-tab-first-hook, controlled by a variable `org-src-tab-acts-natively'
 as below. Carsten -- would you like to add this to Org, or leave it as a
 user customisation?

 I think we can add this to Org.  Maybe default off, for now?

OK, done. So

(setq org-src-tab-acts-natively t)

to turn it on.

Dan


 - Carten


 Dan


 --8---cut here---start-8---
 diff --git a/lisp/org-src.el b/lisp/org-src.el
 index 6c09cbd..d1948cc 100644
 --- a/lisp/org-src.el
 +++ b/lisp/org-src.el
 @@ -715,6 +715,19 @@ Org-babel commands.
      (call-interactively
       (lookup-key org-babel-map key)

 +(defvar org-src-tab-acts-natively nil
 +  If non-nil, the effect of TAB in a code block is as if it were
 +issued in the language major mode buffer.)
 +
 +(defun org-src-native-tab-command-maybe ()
 +  Perform language-specific TAB action.
 +Alter code block according to effect of TAB in the language major
 +mode.
 +  (and org-src-tab-acts-natively
 +       (org-babel-do-key-sequence-in-edit-buffer (kbd TAB
 +
 +(add-hook 'org-tab-first-hook 'org-src-native-tab-command-maybe)
 +
  (defun org-src-font-lock-fontify-block (lang start end)
   Fontify code block.
  This function is called by emacs automatic fontification, as long
 --8---cut here---end---8---


 Footnotes:

 [1] http://thread.gmane.org/gmane.emacs.orgmode/28950




 Dan Davison wrote:
 I've just pushed changes which mean that Org now fontifies code in code
 blocks. Currently, this is turned on by default, so it would be helpful
 if people could report any problems, and opinions as to whether it
 should be on or off by default.

 To turn it off, use

 (setq org-src-fontify-natively nil)

 With it off, there are two functions for manually fontifying code
 blocks: `org-src-fontify-block' and `org-src-fontify-buffer'.

 With it on, on my netbook, there is a slight delay when typing in code
 blocks of over 100 lines in length, and this is pronounced in code
 blocks of several hundred lines.

 Just to be clear, this is fontification only -- no other language major
 mode features -- so the default method of editing code is still C-c '
 (org-edit-src-code).

 Thanks to David O'Toole for the original patch. The final version of the
 patch is based on Carsten's suggestions for a more efficient
 implementation.

 Dan


 Dan Davison davi...@stats.ox.ac.uk writes:

 Dan Davison davi...@stats.ox.ac.uk writes:

 David O'Toole dto1...@gmail.com writes:

 I've got a preliminary patch that adds optional native fontification
 for source blocks. It uses the block's declared mode to fontify the
 block text. So now blocks look the way they should, and this opens the
 way to further enhancements.
 Hi David,

 This is great! Here's a patch which allows the src blocks to have
 switches and header args, and also uses `org-src-lang-modes' to find the
 major mode.
 I'm resending this as a match against the current master branch, and as
 an attachment so that it goes into the patchwork system. I am keeping
 this line of patches in branch `src-block-fontification' at
 git://github.com/dandavison/org-devel.git

 Dan


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


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

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



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

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


[Orgmode] Re: Org now fontifies code blocks

2010-09-02 Thread Sébastien Vauban
Hi Dan (and David),

Dan Davison wrote:
 I've just pushed changes which mean that Org now fontifies code in code
 blocks. Currently, this is turned on by default, so it would be helpful if
 people could report any problems, and opinions

Three remarks:

1. That simply *is* great!  Thanks a lot, David, for your initial code...

2. It breaks my first (and only, up to now) patch to the fontification of
   source block delimiters.
   [See http://osdir.com/ml/emacs-orgmode-gnu/2010-08/msg00550.html]

   Since Carsten applied it (2 weeks ago), the lines BEGIN_SRC and END_SRC
   were correctly highlighted from beginning of line to the end of it (right
   fringe, not last character à la Ctrl-E):

--8---cut here---start-8---
   #+BEGIN_SRC sh
   cd ~
   wget http://www.mygooglest.com/fni/.emacs
   #+END_SRC
--8---cut here---end---8---

   To see what I mean, you need a font with background, for example:

--8---cut here---start-8---
(org-block ((t (:foreground blue1 :background #EAFFEA
(org-code ((t (:foreground blue1 :background #EAFFEA
(org-meta-line ((t (:foreground #008ED1 :background #FFEAEA
(org-table ((t (:foreground blue1 :background #EAEAFF
--8---cut here---end---8---

   Today, with a pull 5 mins ago, the END_SRC line is fully highlighted,
   while the BEGIN_SRC line is only highlighted up to the last character on
   the line.

3. As well, what I've lost with this new (great) feature, is that, in the
   above shell code, `cd' is highlighted following the sh-mode, but all the
   code (here, 2 lines) are with no background -- while it was a nice full
   block for the 2 weeks I'm talking of.

   Would there be a way to add a _background color_ to the code blocks (can be
   unique and defined once, for all modes) that would be present, if no mode
   overrides that background color?


 as to whether it should be on or off by default.

On by default. For sure... even with my 2 last remarks.

Thanks a lot!

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] synctex!! ...syncorg?

2010-09-02 Thread Kevin Brubeck Unhammer
2010/9/2 Bastien bastien.gue...@wikimedia.fr:
 Kevin Brubeck Unhammer p.ixiemot...@gmail.com writes:

 But now the obvious question is: does there exist a syncorg to
 transport me back into the org-mode file to the point that corresponds
 to that place in the tex-file? I assume it should be possible since
 org-mode outputs these \label{sec-3.3} things...

 Very dumb and stupid proof-of-nothing:

 (defun bzg/search-point-in-latex-source ()
  Switch to an Org's sister LaTeX file and find text at point.
  (interactive)
  (let ((txt (buffer-substring
              (point) (save-excursion (forward-word 3) (point
        (lfn (concat (file-name-sans-extension (buffer-file-name)) .tex)))
    (find-file-other-window lfn)
    (goto-char (point-min))
    (search-forward txt)))

 But using isearch might be fast enough, isn't it?

 After all, it's just text.

Yeah... I guess for anything truly robust, the exported tex-file would
have to be peppered with comments (alternatively output another file
with line-number correspondences).

best regards,
Kevin

___
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] Use `C-c C-x _' for interactively calling `org-timer-stop'

2010-09-02 Thread Nicolas Goaziou
Hello,
 Bastien  writes:

 Unless I missed something, `org-timer-stop' has no keybinding yet. I
 propose to use `C-c C-x _'.

Isn't it C-u C-c C-x , ?

Regards,

-- Nicolas

___
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 difficultwould it be to support zotero in org?

2010-09-02 Thread Christian Moe

Hi,

That Zotero forum thread was interesting, thanks for pointing to it.

With Scott Campbell's ZotSelect.js translator installed in Zotero, 
dragging and dropping an entry from Zotero into an Org test document 
results in e.g.:


  zotero://select//0_E35DK2TB/smith_twice-told_2001

Putting this in double square brackets gives an Org link:

  [[zotero://select//0_E35DK2TB/smith_twice-told_2001]]

To make it do something, you don't even need the elisp he posted. In 
Org a link abbreviation with a shell command will do. On a Mac, once 
Fresno is installed in one's path, this should work:


  #+LINK: zotero shell:fresno -p zotero:%s

After reloading, clicking that link and answering yes brings up 
Zotero in Firefox, with the correct entry selected.


(Haven't tested it but I think something like

  #+LINK: zotero shell:firefox -remote openurl(zotero:%s)

should work on Linux...?)

Now, the question is, is this what you want to do? And what more do 
you want Org to do with Zotero?


Personally, I use Zotero to collect references, but export them to 
BibTex (with a few tweaks to the translator) so I can use the much 
faster and less disruptive interface of RefTex to insert references 
into Org. But Scott Campbell's translator could save me from having to 
re-export my Zotero collection every time my writing calls for a 
reference I have to add to Zotero.


Cheers,
CM


On 9/2/10 6:19 PM, Matt Price wrote:

Hi,

This is all beyond me, but I was reading on the zotero forums about
efforts to integrate zotero citations in emacs:
http://forums.zotero.org/discussion/8306/testing-zoteroselect/
Towards the end of hte thread is some useful-looking elisp code, and I
wondered how hard it would be to massage it into something org could
use?  otero integration would be a big plus for me and doubtless an
increasing number of others.

i fel like i've asked enough questions for a 24-hour period so i'l
ltry to stop now.
Matt



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



--

Christian Moe
E-mail:  m...@christianmoe.com
Website: http://christianmoe.com


___
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] Use `C-c C-x _' for interactively calling `org-timer-stop'

2010-09-02 Thread Bastien
Nicolas Goaziou n.goaz...@gmail.com writes:

 Unless I missed something, `org-timer-stop' has no keybinding yet. I
 propose to use `C-c C-x _'.

 Isn't it C-u C-c C-x , ?

Mh..  yes, stop is kind of a pause variant.   

But I don't find thisto be very straightforward, and `org-timer-stop' is
already a command -- I thought it would make sense to have a key for it.

-- 
 Bastien

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


Re: [Orgmode] Re: org-mode + pomodoro

2010-09-02 Thread Bastien
Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes:

 Is there a way to get a countdown timer visible like the one you start
 with `C-c C-x .'?

`org-timer-set-timer' now displays a timer in the modeline.

Also thanks to Frédéric Couchet who asked me to have this feature for
ges.

-- 
 Bastien

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


Re: [Orgmode] how difficultwould it be to support zotero in org?

2010-09-02 Thread Christian Moe

On 9/2/10 9:45 PM, David Maus wrote:


Well... Providing an Elisp interface to Zotero is on my Someday,
Maybe list and at least there is a successful attempt to talk to
Zotero using MozRepl[1] (after I've discovered that Zotero's SOAP
interface was abandoned).


So much for the sleepless nights I spent eavesdropping on OpenOffice's 
SOAP chats with Zotero for the Zotero interface I meant to do in Perl 
but never finished.


That MozRepl script you linked to looks a lot more fun.


With regards to citations I started to think about[2] writing a
processor for the Citation Style Language (CSL)[3] in Elisp.


Yes, wouldn't that be cool?

But in the medium term, I'd just like to get from A to B:

A. Get references from Zotero into Org notes. (This I do, currently by 
exporting Zotero to BibTex, and use RefTex to add the citekeys in 
custom cite: links. This also allows me to style the bibliography 
with BibTex on LaTeX export.)


B. Use Zotero's citeproc to process the references in my Org document 
and (re)format the bibliography to a given style, much as one can do 
e.g. in OpenOffice.


Cheers,
CM

___
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: [PARTIALLY SOLVED] gnash crunch... latex whitespace defaults! + numbering in only some subheadings

2010-09-02 Thread Shelagh Manton
On Thu, 02 Sep 2010 11:12:58 -0400, Matt Price wrote:

 Thanks everyone for their suggestions.  I have settled for now on this:

Might also be worth looking at the savetrees package which is in texlive-
extras.

Shelagh
 
 #+LATEX_HEADER: \usepackage[letterpaper]{geometry} #+LATEX_HEADER:
 \geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2cm,rmargin=2cm}%
 #+LATEX_HEADER: \usepackage{paralist} #+LATEX_HEADER:
 \let\itemize\compactitem #+LATEX_HEADER: \let\description\compactdesc
 #+LATEX_HEADER: \let\enumerate\compactenum #+LATEX_HEADER:
 \usepackage[small,compact,calcwidth]{titlesec} #+LATEX_HEADER:
 \titlespacing{\section}{0pt}{*1}{*0.2} #+LATEX_HEADER:
 \titlespacing{\subsection}{5}{*0}{*0} #+LATEX_HEADER:
 \titlespacing{\subsubsection}{10pt}{*0}{*0} #+LATEX_HEADER:
 \usepackage{enumitem}
 
 which does a pretty good job of compressing the whitespace overall.  I'd
 still love to do more finetuning of the formatting but I think that's a
 more complex project.  Unfortunately this seems to have broken mk4ht for
 me! which is a real drag as it's the only way I can reliably produce odt
 documents, which I need much ofthe time.
 
 Does anyone know whether numbering can be turned on just in some
 subheadings?  That would help me quite a bit...
 
 thanks thanks thanks for al lthe assistance, matt
 Thanks everyone for heir suggestions.  I have settled for now on this: 
 br br#+LATEX_HEADER:
 \usepackage[letterpaper]{geometry}br#+LATEX_HEADER:
 \geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2cm,rmargin=2cm}%
br
 #+LATEX_HEADER: \usepackage{paralist}br#+LATEX_HEADER:
 \let\itemize\compactitembr#+LATEX_HEADER:
 \let\description\compactdescbr#+LATEX_HEADER:
 \let\enumerate\compactenumbr#+LATEX_HEADER:
 \usepackage[small,compact,calcwidth]{titlesec}br #+LATEX_HEADER:
 \titlespacing{\section}{0pt}{*1}{*0.2}br#+LATEX_HEADER:
 \titlespacing{\subsection}{5}{*0}{*0}br#+LATEX_HEADER:
 \titlespacing{\subsubsection}{10pt}{*0}{*0}br#+LATEX_HEADER:
 \usepackage{enumitem}brbr which does a pretty good job of
 compressing the whitespace overall.  I#39;d still love to do more
 finetuning of the formatting but I think that#39;s a more complex
 project.  Unfortunately this seems to have broken mk4ht for me! which is
 a real drag as it#39;s the only way I can reliably produce odt
 documents, which I need much ofthe time.  br brDoes anyone know
 whether numbering can be turned on just in some subheadings?  That would
 help me quite a bit...  brbrthanks thanks thanks for al lthe
 assistance,brmattbrbr
 ___ Emacs-orgmode mailing
 list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode



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


[Orgmode] Re: Src blocks fontification issue

2010-09-02 Thread Dan Davison
Julien Fantin julien.fan...@gmail.com writes:

 First congratulations on adding in-line fontification to source
 blocks, that's a great addition.

 However, since I pulled those changes, a recurring issue I've been
 having has become even more annoying.

 When opening an org file, some src blocks headers don't seem to get
 parsed properly, and now as a result, don't get fontified.
 They are functional though, since they properly get tangled, and C-c '
 performs as expected.
 If I edit the header line, or the ones directly before and after it,
 the block gets back to normal.

 Here is a screenshot to make things clearer, as you can see there are
 no differences in formatting, and those properties drawer don't have
 anything weird, just a single ID.

 http://imagebin.org/112413

 I was meaning to post a screenshot with whitespace-mode on to stress
 that there are no apparent formatting differences, but it turned out
 activating it fixed the issue !

 Not sure what I can do to further help debugging this ?

Hi Julien,

I don't have any clever ideas about this, so I'm just going to suggest
the obvious: first a sanity check that it doesn't occur with emacs
-Q. Then some sort of quasi-binary search through your emacs
customisations. It looks like you're storing your emacs customisation in
an Org file, so you can knock out entire trees with :tangle: no
properties.

Dan

p.s. On a completely unrelated note, if you haven't already tried it:

(add-hook 'emacs-lisp-mode-hook 'pretty-lambdas)

where the `pretty-lambdas' function is in starter-kit-defuns.org at
git://github.com/eschulte/emacs-starter-kit.git

(defun pretty-lambdas ()
  (font-lock-add-keywords
   nil `(((?\\(lambda)
  (0 (progn (compose-region (match-beginning 1) (match-end 1)
,(make-char 'greek-iso8859-7 107))
nil))


 Cheers

 ___
 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] Todo item property search

2010-09-02 Thread Bastien
Chevalier Julien jcpcheval...@yahoo.fr writes:

 How can i build a sparse tree of all my unscheduled todo items ?  
  

,
| (setq org-agenda-custom-commands
|   '((u todo TODO
|  ((org-agenda-todo-ignore-with-date t)
|   (org-agenda-tags-todo-honor-ignore-options t)
`

Will show unscheduled TODO items as a TODO list.

AFAIU, org-agenda-tags-todo-honor-ignore-options won't work for
todo-tree because they are only useful for todo and tags searches.

So I thought this would work:

,
| (setq org-agenda-custom-commands
|   '((u todo-tree TODO
|  ((org-agenda-skip-function
|   (lambda ()
| (if (not (org-entry-get nil SCHEDULED))
| (progn (outline-next-heading) (point)
`

... but it doesn't (i.e. it doesn't create a sparse tree of TODO items
that don't have a SCHEDULED property.)

Carsten, any idea why?

-- 
 Bastien

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


Re: [Orgmode] how difficultwould it be to support zotero in org?

2010-09-02 Thread Matt Price
On Thu, Sep 2, 2010 at 5:58 PM, Christian Moe m...@christianmoe.com wrote:

 On 9/2/10 9:45 PM, David Maus wrote:

  Well... Providing an Elisp interface to Zotero is on my Someday,
 Maybe list and at least there is a successful attempt to talk to
 Zotero using MozRepl[1] (after I've discovered that Zotero's SOAP
 interface was abandoned).


 So much for the sleepless nights I spent eavesdropping on OpenOffice's SOAP
 chats with Zotero for the Zotero interface I meant to do in Perl but never
 finished.

 That MozRepl script you linked to looks a lot more fun.


  With regards to citations I started to think about[2] writing a
 processor for the Citation Style Language (CSL)[3] in Elisp.


 Yes, wouldn't that be cool?

ditto on that.


 But in the medium term, I'd just like to get from A to B:

 A. Get references from Zotero into Org notes. (This I do, currently by
 exporting Zotero to BibTex, and use RefTex to add the citekeys in custom
 cite: links. This also allows me to style the bibliography with BibTex on
 LaTeX export.)

this is certainly something I'd like to do.  But i have the problem that (1)
I don't really know how to use latex, and was trying to avoid what now seems
like the necessary task of learning how to use it; and (2) in my field
(history) latex and bibtex are both pretty problematic as export formats.
Bibtex doesn't support most humanistic citation styles (and has a rigid type
strcture which doesn't accommodate things like archival materials very well;
while latex is neither an acceptable submission format for most journals,
nor a good formation for collaboration with other scholars (since everyone
else writes in MS Word).  This means that what I really need is a more
robust open-document exporter; but that's been giving me problem after
problem lately (for instance, mk4ht has stopped exporting some of my most
important documents, for reasons I don't understand but might be related to
org-mode's latex exporter.  I have this notion I saw a generic exporter that
someone wrote for odt, in which you feed the exporter a template document
which ocntains all the relevant style definitions.  but I can't find it
anymore, and as I recall it didn't really seem to work very well anyway.


 B. Use Zotero's citeproc to process the references in my Org document and
 (re)format the bibliography to a given style, much as one can do e.g. in
 OpenOffice.


That would be really great.   Alternatively maybe one could keep the zotero
links in the document and allow the native latex or openoffice trnaslators
interpret the references themselves.

anyway I'd be incredibly stoked if someone figured this out better.

matt


 Cheers,
 CM

___
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] [PROPOSAL] Seemless editing of Babel Blocks

2010-09-02 Thread Dan Davison
Hi Jambunathan,

   The primary motivation is that I find transitioning from and to an
   org-src buffer a bit of a psychological drag. It would be good if I
   don't leave the current buffer as such and still be able to edit
   babel blocks.
[...]
 4 Crux of the idea 
 ~~~
[...]
   Offer a command say 'org-to-org-src-view' which when invoked
   switches the org-mode buffer to target language mode and comments
   out all the non-src blocks.
 
   Offer a reverse command 'org-src-to-org-view' that switches the
   buffer to org-mode and uncomments the non-src blocks. 

My vote is that this proposal is too drastic.


   This way I never leave the buffer and I don't have to contend
   anymore with pop-ups
 

Have you investigated the different settings of the
`org-src-window-setup' variable?

 (and importantly syncing of parent and daughter
   buffers).

Could you expand on that a little bit? What syncing problems are you
having?

 Yet I have 'all' the contexts available for my viewing and
   editing pleasure.


There have been some recent changes with the aim of making code blocks
more pleasant to use in Org, such as fontification and making TAB and
other major-mode commands available in the Org buffer (with a current
master branch, see the variable `org-src-tab-acts-natively' and
`org-babel-do-key-sequence-in-edit-buffer' which is bound to key
bindings C-c C-v x and C-c C-v C-x)

If you really want to use language major mode commands without leaving
the Org buffer, I suggest investigating Lennart Borgman's nxhtml
package[1]. This features a function `org-mumamo-mode' which
automatically switches Org code blocks into native major modes. I have
encountered one bug whch makes R code blocks hard to use, but the author
is responding to them at the bug tracker[2], so I think we should help
out by reporting any bugs there. Here's my config for nxhtml/mumamo (the
third line is just personal taste):

--8---cut here---start-8---
(load /usr/local/src/emacs/nxhtml/autostart.el)
(require 'mumamo)
(add-hook 'org-mumamo-mode-hook (lambda () (mumamo-no-chunk-coloring +1)))
--8---cut here---end---8---


Dan

Footnotes:

[1] http://www.emacswiki.org/emacs/NxhtmlMode

[2] https://bugs.launchpad.net/nxhtml


 5 Gross code 
 ~


 diff --git a/lisp/ob.el b/lisp/ob.el
 index b5b9d8f..613139e 100644
 --- a/lisp/ob.el
 +++ b/lisp/ob.el
 @@ -662,19 +662,52 @@ portions of results lines.
   (lambda () (org-add-hook 'change-major-mode-hook
   'org-babel-show-result-all 'append 'local)))
  
 -(defmacro org-babel-map-src-blocks (file rest body)
 +
 +(defun org-to-org-src-view () 
 +  
 +  (interactive)
 +
 +  (emacs-lisp-mode)
 +  (org-babel-map-src-blocks (buffer-file-name)
 +  (
 +   (comment-region beg-org end-org)
 +   )
 +  )
 +  )
 +
 +(defmacro org-babel-map-src-blocks (file body1 rest body)
Evaluate BODY forms on each source-block in FILE.
(declare (indent 1))
`(let ((visited-p (get-file-buffer (expand-file-name ,file)))
 -to-be-removed)
 +to-be-removed
 +(beg-org (make-marker))
 +(end-org (make-marker))
 +(beg-babel (make-marker))
 +(end-babel (make-marker))
 +)
 + 
   (save-window-excursion
 (find-file ,file)
 (setq to-be-removed (current-buffer))
 +
 +   (move-marker end-babel (point-min))
 (goto-char (point-min))
 +   
 (while (re-search-forward org-babel-src-block-regexp nil t)
 - (goto-char (match-beginning 0))
 - (save-match-data ,@body)
 - (goto-char (match-end 0
 +
 +(move-marker beg-org end-babel)
 +(move-marker end-org (match-beginning 0))
 +(move-marker beg-babel (match-beginning 0))
 +(move-marker end-babel (match-end 0))
 +
 +(goto-char beg-org)
 +,@body1
 +
 +(goto-char beg-babel)
 + ,@body
 +
 +
 + (goto-char end-babel)))
   (unless visited-p
 (kill-buffer to-be-removed

 6 Illustration 
 ~~~

   For the sake of illustration, consider an org-mode buffer like this.
   
   
 * Heading0
 ** Heading00
Print Heading00.

 #+begin_src emacs-lisp
(message Heading00)
 #+end_src   

 ** Heading01

Print Heading01.
#+begin_src emacs-lisp
  (message Heading01)
#+end_src   
   
   org-to-org-src-view on this buffer puts it in emacs-lisp mode with
   the following content.
   
 ;; * Heading0
 ;; ** Heading00
 ;;Print Heading00.

 #+begin_src emacs-lisp
(message Heading00)
 #+end_src   

 ;; ** Heading01

 ;;Print Heading01.
#+begin_src emacs-lisp
  (message Heading01)
#+end_src   
  
   For the sake of brevity, I have left out the commenting of
   meta-lines in the prototype code.
   
 Thanks for your consideration,
 Jambunathan K.

 

Re: [Orgmode] Counters and percentage are visible in refile targets, is that configurable?

2010-09-02 Thread Bastien
Marcel van der Boom mar...@hsdev.com writes:

 I have a question about constructs like this:

 * TODO item to be refiled, say in Subproject
 * Project description [10/234]
   [...]
 ** Subproject description   [1/25]
[...]

 When I want to refile the TODO item the path in the emacs modeline
 contains the counters (or the percentage, if applicable). 

 This makes the filing sometime a bit hard, especially with the spaces
 between the header text and the counter start. 

 Is this something I can change? For me the counters are not part of
 the header conceptually.

Yes, I also think so.  I just pushed a change to get rid of [/] cookies
in targets.  

HTH

-- 
 Bastien

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


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

2010-09-02 Thread Erik Iverson




If you really want to use language major mode commands without leaving
the Org buffer, I suggest investigating Lennart Borgman's nxhtml
package[1]. This features a function `org-mumamo-mode' which
automatically switches Org code blocks into native major modes. I have
encountered one bug whch makes R code blocks hard to use, but the author
is responding to them at the bug tracker[2],


I too found nxhtml locking up when using R.  It that gets fixed, it
could be a nice package to use with org-mode when editing source code.

However, I think with the improvements just committed today that you
mention, that source code editing got a whole lot better without
switching to the indirect buffer using C-c '.

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


Re: [Orgmode] [Patch] org-protocol default template should be nil

2010-09-02 Thread Sebastian Rose
Bastien bastien.gue...@wikimedia.fr writes:
 Sebastian Rose sebastian_r...@gmx.de writes:

 We always used the w template as the default for `org-remember' and
 also used it for `org-capture' for historical reasons.

 Unfortunately, this breaks, if the user has no w template defined.

 The patch below simply set's the custom variable

 Applied, thanks!

 `org-protocol-default-template-key' to nil, so the interactive template
 selection is used by default.  This works for both, remember an capture.

 I will adjust the docs, once the patch is applied.

 You can go ahead!


Done and thanks!


  Sebastian

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


Re: [Orgmode] how difficultwould it be to support zotero in org?

2010-09-02 Thread Matt Price
On Thu, Sep 2, 2010 at 7:18 PM, Matt Price mopto...@gmail.com wrote:


 I have this notion I saw a generic exporter that someone wrote for odt, in
 which you feed the exporter a template document which ocntains all the
 relevant style definitions.  but I can't find it anymore, and as I recall it
 didn't really seem to work very well anyway.


 ah, it was a muse-mode exporter:
http://www.mail-archive.com/muse-el-disc...@gna.org/msg01083.html

would that be a good beginning for a native odt exporter in org, or would it
be better to start from scratch with the  org-export-generic.el?  or maybe
both on reflection...
m
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Backspacing into folded items

2010-09-02 Thread Bastien
Hi Martin,

Martin Pohlack m...@os.inf.tu-dresden.de writes:

 * You could add a modification hook to all hidden areas to unfold them
   on modification, or
 * You could set the read-only property for all hidden areas.  This could
   be setup at the same location where hiding is done.

I'm interested in testing both solutions, as I often delete hidden text
by accident as well.

Can you give more details on how to set this up?

This could also go to Worg.

Thanks,

-- 
 Bastien

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


Re: [Orgmode] This is probably a misconfiguration rather than a bug, but...

2010-09-02 Thread Sebastian Rose
Tim O'Callaghan tim.ocallag...@gmail.com writes:
 When i try and use org-capture in a buffer, it fails to display the
 template menu, and it generates the backtrace below.

 It works for org files, but not for some other files.

 Tim.


If you pull the current Org version, the template menu should be there.
Just make sure, your variable `org-protocol-default-template-key' is nil
(which is the default since a few hours).

We always had the w template as the default of that variable for
historical reasons.  I changed that, since this broke lately  and I
wanted to avoid dependencies between the different source files
(org-capture.el and org-protocol.el in this case).

As an aside, the interactive template selection is now on by default
(just as long as the above variable is nil).



  Sebastian




 Debugger entered--Lisp error: (wrong-type-argument stringp nil)
   directory-file-name(nil)
   (file-name-directory (directory-file-name dirpath))
   (let ((dirname ...) (basename ...)) (list dirname basename))
   org-git-split-dirpath(nil)
   (let ((dirlist ...)) (when (string= ... ) (throw ... nil)) (setq
 dir (first dirlist) relpath (concat ... relpath)))
   (while (not (file-exists-p ...)) (let (...) (when ... ...) (setq dir
 ... relpath ...)))
   (catch (quote toplevel) (while (not ...) (let ... ... ...)) (list
 (expand-file-name .git dir) relpath))
   (let ((dir ...) (relpath ...)) (catch (quote toplevel) (while ...
 ...) (list ... relpath)))
   org-git-gitrepos-p(~/.dotfiles/zemacsen/site-lisp/policy-switch.el)
   (if (org-git-gitrepos-p file) (progn (org-store-link-props :type
 git :link ...)))
   (when (org-git-gitrepos-p file) (org-store-link-props :type git
 :link (org-git-create-git-link file)))
   (let ((file ...)) (when (org-git-gitrepos-p file)
 (org-store-link-props :type git :link ...)))
   (progn (let (...) (when ... ...)))
   (if (buffer-file-name) (progn (let ... ...)))
   (when (buffer-file-name) (let (...) (when ... ...)))
   org-git-store-link()
   run-hook-with-args-until-success(org-git-store-link)
   (cond ((run-hook-with-args-until-success ...) (setq link ... desc
 ...)) ((equal ... *Org Edit Src Example*) (let ... ... ... ... ...
 ... ... ...)) ((equal ... ...) (let ... ...)) ((eq major-mode ...)
 (let ... ... ...)) ((eq major-mode ...) (setq cpltxt ... link ...)
 (org-store-link-props :type w3 :url ...)) ((eq major-mode ...) (setq
 cpltxt ... link ...) (org-store-link-props :type w3m :url ...))
 ((setq search ...) (setq link ...) (setq cpltxt ...)) ((eq major-mode
 ...) (setq cpltxt ... link ...) (org-store-link-props :type image
 :file buffer-file-name)) ((eq major-mode ...) (let ... ... ...)) ((and
 ... ...) (setq custom-id ...) (cond ... ... ...)) ((buffer-file-name
 ...) (setq cpltxt ...) (when ... ... ...) (setq link ...))
 ((interactive-p) (error Cannot link to a buffer which is not visiting
 a file)) (t (setq link nil)))
   (let ((outline-regexp ...) link cpltxt desc description search txt
 custom-id agenda-link) (cond (... ...) (... ...) (... ...) (... ...)
 (... ... ...) (... ... ...) (... ... ...) (... ... ...) (... ...) (...
 ... ...) (... ... ... ...) (... ...) (t ...)) (if (consp link) (setq
 cpltxt ... link ...)) (setq link (or link cpltxt) desc (or desc
 cpltxt)) (if (equal desc NONE) (setq desc nil)) (if (and ... link)
 (progn ... ... ...) (or agenda-link ...)))
   org-store-link(nil)
   (if (and (boundp ...) org-capture-link-is-already-stored) (plist-get
 org-store-link-plist :annotation) (org-store-link nil))
   (let* ((orig-buf ...) (annotation ...) (initial ...) (entry ...))
 (when initial (remove-text-properties 0 ... ... initial)) (when
 annotation (remove-text-properties 0 ... ... annotation)) (cond (...
 ...) (... ...) (t ... ... ... ... ... ... ...)))
   (cond ((equal goto ...) (org-capture-goto-target)) ((equal goto ...)
 (org-capture-goto-last-stored)) (t (let* ... ... ... ...)))
   org-capture(nil)
   call-interactively(org-capture nil nil)


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


Re: [Orgmode] [PATCH] inside table, delete-backward-char must not insert spaces when overwrite mode is on

2010-09-02 Thread Bastien
Hi Achim,

Achim Gratz strom...@stromeko.net writes:

 * lisp/org.el (org-delete-backward-char): check for nil overwrite-mode
 before inserting spaces.

I've tested your patch.  

If I understand it correctly, it does not change the current visual
behavior of `org-delete-backward-char', it just skips the unnecessary
step of inserting a whitespace when overwrite-mode is on.

Is that so?

-- 
 Bastien

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


[Orgmode] Advice needed. Use links or blocks?

2010-09-02 Thread Sebastian Rose
Hi experts,


the attached file fetches background tiles from openstreetmap.org for
me, and produces SVG images of tracks I ran.  Unfortunately, I cannot
find a good way to use that code in an automated way.

What I'd like to do, is to have the coords in my training diary, and
produce the images on demand.  When I publish the diary to HTML, I want
the coords to be replaced with a link to the image.

Here is an example of the coords (just two), as I save them in my diary:

 '((9.707136154065665 52.3705158282501)(9.711406230817374 52.37525815071791))


And this is, how the function to produce the images is used:

  (osm-draw-track
   ;; Fantasy-track in Brisbane:
   '((152.968 -27.533) (152.968 -27.546) (152.974 -27.537))
   Track_in_Brisbane
   8)



Should I go for a special link type:

[[track:((152.968 -27.533) (152.968 -27.546))][2010-09-03 in Brisbane]]

??


Right now, I produce a lisp file, that produces all those images using
`osm-draw-tracks' and add simple links.  But this is inconvenient and
prone to error (forgotten tracks)...



   Sebastian




osm-maps.el
Description: application/emacs-lisp
___
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: Automatically move completed TODO items and checkboxes to another file

2010-09-02 Thread Bastien
Hi Michael,

Michael Hoffman 9qobl2...@sneakemail.com writes:

 and then using search/replace to add TODO 

How did you searched and replaced?

 but that unfortunately eliminates any previous hierarchy in the
 checkboxes. Is there a better way?

I guess we can keep the hierarchy with an appropriate search and replace
function...

-- 
 Bastien

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


Re: [Orgmode] Interactive Search in Agenda

2010-09-02 Thread Bastien
Markus Heller helle...@gmail.com writes:

 1. Hit C-c a
 2. In the dispatcher, hit `X'
 3. I get prompted which Property I want to search for, and I enter `Sample'
 4. I get prompted which value I want that property to have, and I enter
`S0002'
 5. I get a list of all hits

 Now, I know that I can achieve this by using

 1. Hit C-c a
 2. Hit `m'
 3. Enter `+Sample=S0002'

 but that's too much typing for my taste.

 Is there a way to achieve what I want?

One small but (maybe) useful improvement here would be to make `C-c a m'
allow completion over properties.  That would spare you a few keystrokes
already...  

-- 
 Bastien

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


Re: [Orgmode] Gollum

2010-09-02 Thread Bastien
Hi Eric,

Eric Schulte schulte.e...@gmail.com writes:

 I agree it would be great to have web-based editing of Org-mode files on
 Worg.  Unfortunately the Gollum wiki at github uses org-ruby [1] which
 is a very minimal clone of Org-mode's exported written in ruby.  This
 means that org-mode pages exported by Gollum would in most cases fall
 far short of our current Worg standards.

Argh...  I got excited too early then.  Of course, I somehow neglected
the fact it's hard to compete with Org outside of Org.

Thanks for the information -- will keep an eye on this, though.

-- 
 Bastien

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


[Orgmode] Iterate over list with `org-next-item'

2010-09-02 Thread Zachary Young
Hi all,

I am trying to iterate over a list with `org-next-item'. I just tried:

(ignore-errors (while (equal nil (org-next-item

and it worked.

Is there a better way to do this? I'm not very versed in Elisp, and
`org-next-item' returning `nil' on success, and throwing an error at the end
of the list is throwing me a bit.

Thank you,
Zachary
___
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 difficultwould it be to support zotero in org?

2010-09-02 Thread Matt Price
On Thu, Sep 2, 2010 at 7:18 PM, Matt Price mopto...@gmail.com wrote:


 I have this notion I saw a generic exporter that someone wrote for odt, in
 which you feed the exporter a template document which ocntains all the
 relevant style definitions.  but I can't find it anymore, and as I recall it
 didn't really seem to work very well anyway.


 ah, it was a muse-mode exporter:
http://www.mail-archive.com/muse-el-disc...@gna.org/msg01083.html

would that be a good beginning for a native odt exporter i norg, or would it
be better to start from scratch with the org generic exporter?   anyway
thanks,
m
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] stuck project and check boxes

2010-09-02 Thread Bastien
Ivan Kanis expire-by-2010-09...@kanis.fr writes:

 I would like to list stuck projects with the following definition:

  - projects that do not have check boxes
  - projects that have all their check boxes set

 Is it possible?

For now it's not possible.  It would require `org-stuck-projects' to
allow user-defined function to check against subtrees.  

Still, you can use a regexp to match non-stuck projects, if that may
help -- see the docstring of `org-stuck-projects'.

-- 
 Bastien

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


  1   2   >