[Orgmode] [patch] Extended link capabilities to Wanderlust messages

2010-04-11 Thread David Maus
Hello all,

Attached patch extendes Org mode's capabilities to store and open
links to Wanderlust messages.  The gist of the extended capabilities:

 - Remove filter conditions for messages in a filter folder

   If customization variable `org-wl-link-remove-filter' is non-nil,
   filter conditions are stripped of the folder name.

 - Create web links for messages in a Shimbun folder

   If customization variable `org-wl-shimbun-prefer-web-links' is
   non-nil, calling `org-store-link' on a Shimbun message creates a
   web link to the messages source, indicated in the Xref: header
   field.

 - Create web links for messages in a nntp folder

   If customization variable `org-wl-nntp-prefer-web-links' is
   non-nil, calling `org-store-link' on a nntp message creates a web
   link either to gmane.org if the group can be read trough gmane or
   to googlegroups otherwise. In both cases the message-id is used as
   reference.

 - Open links in namazu search folder

   If `org-wl-open' is called with one prefix, WL opens a namazu
   search folder for message's message-id using
   `org-wl-namazu-default-index' as search index.  If this variable is
   nil or `org-wl-open' is called with two prefixes Org asks for the
   search index to use.

Regards,

 -- David

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


org-wl-extended.diff
Description: Binary data


pgpUbnMbzcPZB.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: Tangling

2010-04-11 Thread Andrea Crotti
Dan Davison davi...@stats.ox.ac.uk writes:


 here

 Although Org maps elisp to emacs-lisp-mode in org-src-lang-modes
 (therefore C-c ' works), Org-babel currently does not recognise elisp
 by default. Thanks for raising this, I think we need to make ourselves
 more compatible with org-src-lang-modes.

 So the short answer is: change elisp to emacs-lisp.

 The longer answer is, you could do

 (org-babel-add-interpreter elisp)
 (add-to-list 'org-babel-tangle-langs '(elisp el))

 But you (we) 'll still be faced with the problem that org-babel-load-file
 expects the blocks to be emacs-lisp blocks. org-babel-tangle-file, on
 the other hand, will work.

 Does that get things working?

 Dan

Yes thanks a lot I was doing a stupid mistake, in other files I always
used emacs-lisp.
But if it will be aliased even better (I could do it myself but I've
made a snippet for it so I won't forget again)...

So now I have a strange behaviour, sometimes the file is loaded and
sometimes is not

This is the init file:

--8---cut here---start-8---
(setq base ~/Documents/pycon/)
(setq conf (concat base conf/))

(add-to-list 'load-path (concat conf org-mode/lisp))
(add-to-list 'load-path (concat conf org-mode/contrib/babel/lisp))

(require 'org)
(require 'org-babel)
(require 'org-babel-tangle)

(org-babel-tangle-file (concat base miniconf.org))
--8---cut here---end---8---

The tangling works perfectly fine on my real emacs conf, but with the
testing configuration I get sometimes (don't understand why sometimes it
works this)

http://gist.github.com/362682

And is short

Debugger entered--Lisp error: (void-function -mode)

What is that supposed to mean? Just some stupid mistake again?
The file to load is 
http://github.com/AndreaCrotti/Org-mode-notes/blob/master/miniconf.org
but I guess that's correct because on one emacs it works perfectly fine



___
Emacs-orgmode 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: Tangling

2010-04-11 Thread Dan Davison
Andrea Crotti andrea.crott...@gmail.com writes:

 Dan Davison davi...@stats.ox.ac.uk writes:
[...]
 So now I have a strange behaviour, sometimes the file is loaded and
 sometimes is not

 This is the init file:

 (setq base ~/Documents/pycon/)
 (setq conf (concat base conf/))

 (add-to-list 'load-path (concat conf org-mode/lisp))
 (add-to-list 'load-path (concat conf org-mode/contrib/babel/lisp))

 (require 'org)
 (require 'org-babel)
 (require 'org-babel-tangle)

 (org-babel-tangle-file (concat base miniconf.org))

Hi Andrea,

I think that should be

(add-to-list 'load-path (concat conf org-mode/lisp))
(add-to-list 'load-path (concat conf org-mode/contrib/lisp))

(require 'org-install)
(require 'org-babel-init)

(org-babel-tangle-file (concat base miniconf.org))

Dan


 The tangling works perfectly fine on my real emacs conf, but with the
 testing configuration I get sometimes (don't understand why sometimes it
 works this)

 http://gist.github.com/362682

 And is short

 Debugger entered--Lisp error: (void-function -mode)

 What is that supposed to mean? Just some stupid mistake again?
 The file to load is 
 http://github.com/AndreaCrotti/Org-mode-notes/blob/master/miniconf.org
 but I guess that's correct because on one emacs it works perfectly fine



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


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


Re: [Orgmode] [BUG] LaTeX export: only the body is exported

2010-04-11 Thread Eric Schulte
Hi Valentin,

Thanks for reporting this bug.  I've just pushed up a fix.

Best -- Eric

Valentin Wüstholz wuesth...@gmail.com writes:

 Hi,

 when I export to LaTeX, only the body is exported. It looks like this
 might be due to the following change:
 1b40601ebd5de3746ab72d19d3258f815a402066

 Cheers,

 Valentin


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


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


Re: [Orgmode] [BUG] LaTeX export: only the body is exported

2010-04-11 Thread Valentin Wüstholz
Great! Thanks.

Valentin


On Sun, Apr 11, 2010 at 6:14 PM, Eric Schulte schulte.e...@gmail.com wrote:
 Hi Valentin,

 Thanks for reporting this bug.  I've just pushed up a fix.

 Best -- Eric

 Valentin Wüstholz wuesth...@gmail.com writes:

 Hi,

 when I export to LaTeX, only the body is exported. It looks like this
 might be due to the following change:
 1b40601ebd5de3746ab72d19d3258f815a402066

 Cheers,

 Valentin


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



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


Re: [Orgmode] [babel] RFC: column and row names in babel tables

2010-04-11 Thread Taru Karttunen
On Fri, 09 Apr 2010 20:03:55 -0400, Dan Davison davi...@stats.ox.ac.uk wrote:
   New behaviour: by default all languages will *drop all hlines* from
   tables in input. We shall make no attempt to reinstate hlines in the
   output[1] *Do we want some way for the user to control hlines in the
   output?*

Why not an empty row?

| 1 | 2 | 3 |
|---+---+---|
| 4 | 5 | 6 |

would become: [[1,2,3], [], [4,5,6]].

- Taru Karttunen


___
Emacs-orgmode 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] My reference data management approach with org and emacs

2010-04-11 Thread Marcelo de Moraes Serpa
Amazing stuff, Jan.

From what I could understand, it aims on being a no-brainer reference
system, and indeed, my aim is capturing quickly *but* with enough
information and structure to be able to find it later. What I find happening
to me time after time, is that even though I do have a quick way to capture,
I end up not using the information later, because it is hard to find. The
reason? I have two reference baskets:
 * The wiki files (under wiki/) -- I press S-w and can type the name of a
file and start typing.
 * My GTDReference.org file. C-c C-r r, title and boby, C-c C-c to capture.

(And the GTD Inbox, but that's not reference, only data that I want to
process later).

The problem, I think, is that I end up with a bunch of files under wiki/ and
a bunch of notes in GTDReference.org. A rgrep search is often enough to find
what I want, but it is definetly not as clean, straightfoward and simple as
your system's implementation.

In an effort to make the wiki stuff more organic, I have setup howm-mode to
work with org, and while it works great to link files, it just added more
complexity. I think I will just get rid of it.

Could you share the custom elisp function and the scan shell script?

Also, how does all of this fit on your overall PIM architecture? There's
more to it? If so, then I'm ready to get another cup of coffee :)

Thank you very much for sharing all these gems.

Marcelo.


On Fri, Apr 9, 2010 at 6:31 PM, Jan Böcker jan.boec...@jboecker.de wrote:

 [The following text has gotten quite long. Sit comfortably and get a cup
 of your preferred drink if you want to proceed.]

 That is an interesting setup you describe there. I had considered
 something similar myself, but found it a hassle to come up with a file
 name for every new piece of information (although unix does allow
 everything except / in a file name, I want my file names to be lower
 case, short and without spaces where feasible).

 To paraphrase what you said, putting things into files just makes you
 loose time thinking about file names (which I also consider structure).

 In the end, I settled upon one big org file (reference.org). Each
 piece of reference information is in its own top-level node. When I want
 to find something there, I use isearch and/or search for a specific tag
 (in virtually every case, a simple isearch for one or two words is
 sufficient).

 This is way faster than navigating the file system! I also share your
 dislike of categories (which a strictly hierarchical file system would
 force me to use).

 I have two remember templates to add an entry to reference.org.

 The first template asks me for tags (%^g) and a title for the
 headline. After filing it (at the top of reference.org) with C-c C-c,
 Org jumps to the location it was just filed (% in the template), in
 case I want to use C-c C-c again to readjust the tags.

 I use this first template to keep data that can be expressed in plain
 text (including all the powerful tools Org gives me to work with plain
 text, such as outlines, links and tables).

 The second template is a little more complex; it calls a custom elisp
 function to do all the work.

 When I call this second template, I am asked for the following:
 - a title for the headline
 - a date (I mostly use this template to file scanned letters, invoices
 and the like, so it helps to be able to change the date from the default
 of today.)
 - a folder name (defaulting to -MM-DD.S, i.e. the previously
 specified date followed by a sequence number to make the folder name
 unique). Normally, I do not customize the folder name, because I only
 need to find the reference data via Org and do not need to navigate to
 it using e.g. the open dialog of any other program (and I do not want
 to change it in the future, which might make a folder name containing a
 date obsolete).
 - where the original went (defaults to Trash). This is stored as an
 attribute in the outline node.

 A new subfolder with the specified folder name is created in ~/org/data/
 and set up as this node's attachment directory. The ID of the node is
 set to data-folder name, so I can link conveniently to this entry from
 project notes.

 The custom elisp function also installs a hook that automatically calls
 org-attach-attach-mv if I try to file the template without having added
 any attachment, so I do not forget this.

 I use this second template when I have to attach a file to the entry,
 because it cannot be represented in Org. This mostly applies to scanned
 paper of any sort (letters, invoices, etc).

 I have a shell script which I use to scan directly to PDF files (I do
 not use OCR, the PDF just serves as a container for possibly multiple
 scanned pages, so that browsing and printing the whole document is
 convenient).

 If it was an important document where I might need the original in the
 future, I specify Filed when asked where the original went, write the
 folder name/ID number in the top right corner of the document 

[Orgmode] howm-mode

2010-04-11 Thread Marcelo de Moraes Serpa
Hello list,

I think you could find this interesting: http://howm.sourceforge.jp/

I found out about this miner-mode a few days ago, and it is pretty
interesting. It has a lot in common with org, but is very minimalist and
works around a wiki concept.

I also found this page:
http://worldforum.pardus-linux.nl/index.php?action=printpage;topic=2410.0,
which has a discussion about org, and in the bottom, there is a post from a
user that actually uses org and howm together. Pretty interesting stuff.

Maybe we could learn something from it :)

Marcelo.
___
Emacs-orgmode 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] RFC: column and row names in babel tables

2010-04-11 Thread Dan Davison
Taru Karttunen tar...@taruti.net writes:

 On Fri, 09 Apr 2010 20:03:55 -0400, Dan Davison davi...@stats.ox.ac.uk 
 wrote:
   New behaviour: by default all languages will *drop all hlines* from
   tables in input. We shall make no attempt to reinstate hlines in the
   output[1] *Do we want some way for the user to control hlines in the
   output?*

Hi Taru,

Thanks for responding.


 Why not an empty row?

 | 1 | 2 | 3 |
 |---+---+---|
 | 4 | 5 | 6 |

 would become: [[1,2,3], [], [4,5,6]].

One problem is that in some languages, org tables are converted into a
matrix-like data structure, not simply a list-of-lists. An example is R
(and I think also gnuplot). So in those languages, all rows must be the
same length. Also, I believe that hlines are ignored when computing
indexes in Org table formulas, so I thought that omitting hlines would
make indexing in babel languages more consistent with indexing in org.

Dan



 - Taru Karttunen


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


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


[Orgmode] Bug: double or single quote inside code or verbatim markup [6.35g]

2010-04-11 Thread Günter Kolousek



I am unable to include neither double nor single quote characters
inside a verbatim markup as described in the manual. Also, I didn't
find anything in the mailing list archive:

=a=

doesn't work, but

=x a x=

does. Same for ~.

I didn't find any workaround. There is no escape character, isn't it?

It seems, that the string will be captured first, but only if it is
on the left or right side of the code or verbatim markup.

I can't find it in the source because I don't know anything about elisp.
Sorry.

Cheers,
Günter




Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0)
 of 2009-09-27 on palmer, modified by Debian
Package: Org-mode version 6.35g

current state:
==
(setq
 org-log-done 'time
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-special-ctrl-a/e t
 org-level-color-stars-only t
 org-load-hook '((lambda nil (textmate-mode) (toggle-truncate-lines 1)
  (define-key org-mode-map (kbd C-prior)
   (quote elscreen-previous))
  (define-key org-mode-map (kbd C-next)
   (quote elscreen-next))
  (define-key org-mode-map [C-tab] (quote ido-switch-buffer))
  (define-key org-mode-map (kbd M-+) (quote org-complete))
  (define-key org-mode-map (kbd M-n)
   (quote outline-next-visible-heading))
  (define-key org-mode-map (kbd M-p)
   (quote outline-previous-visible-heading))
  (define-key org-mode-map (kbd C-+)
   (quote org-force-cycle-archived))
  )
 )
 org-hide-leading-stars 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
wicked/org-clock-out-if-waiting
wicked/org-clock-in-if-starting)
 org-babel-interpreters '(emacs-lisp python latex sh)
 org-odd-levels-only t
 org-export-copy-to-kill-ring nil
 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-babel-hide-result-toggle-maybe
  org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-mode-hook '((lambda nil
  (org-add-hook (quote change-major-mode-hook)
   (quote org-babel-show-result-all) (quote append)
   (quote local))
  )
 org-babel-result-hide-spec org-babel-hide-all-hashes
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all
append local]
   5]
 )
 org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash-at-point
  org-babel-execute-src-block-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)
  (src org-babel-exp-inline-src-blocks))
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-time-stamp-custom-formats '(%Y-%m-%d . %Y-%m-%d  %H:%M)
 org-export-kill-product-buffer-when-displayed t
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-blocks nil)
 (comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 )


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