Re: [Orgmode] Org and git blame integration?

2009-12-03 Thread Martin Pohlack
Hi Jason,

Jason Dunsmore wrote:
[...]

 git blame todo.org|cut -c29-|cut -c 20-25 --complement|sort -n|less -S
 
 I made a couple of bash functions based on this:
 
 function org_history () {
 git blame $1|cut -c29-|cut -c 20-25 --complement|sort -n|less -S
 }
 
 # Limit the output to Org headlines
 function org_history_headings () {
 git blame $1|grep ') \*'|cut -c29-|cut -c 20-25 --complement|sort -n|less 
 -S
 }
 
 But I still have to go back and forth between the git-blame output and
 Org.
 
 It'd be nice if I could view and edit the git-blame output in org-mode,
 group the sort by a certain level heading, cycle body visibility, etc...
 I'm not sure how difficult that would be to implement.  Does this sound
 like a reasonable feature request?

I'm not sure how git blame would help with finding stuck projects, but
if you tweak the output to be similar to this:

  file:line: message/string

or

  file:line:col: message/string

You could call the script from a compile buffer (M-x compile).  In this
buffer, this kind of output is linked back to the original files and you
could iterated over the found lines.

Cheers,
Martin Pohlack


___
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 tricks for team management

2009-12-03 Thread Juan Reyero
Greetings,

I have been using org-mode as a key support for my work as a manager
for quite a while now.  I thought some of the tricks and processes for
keeping up-to-date with the work of each person in my team might be of
interest to other people, so I wrote them up at:

http://juanreyero.com/article/emacs/org-teams.html

In summary, it is a simple way to keep track of TODO items associated
to other people, query them, and add context to your notes (who is
with you, where your are, and the time).  The key idea is to ask emacs
to remember these things, and use the extra state to automate agenda
queries and quick tagging.

I am very grateful to Carsten and all the people contributing to
org-mode and this list.  It's made a great positive impact in my work.

Best,

Juan
---
http://juanreyero.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


[Orgmode] Re: [OT] Emacs for email?

2009-12-03 Thread Ulf Stegemann
Rémi Vanicat vani...@debian.org wrote:

 Russell Adams rlad...@adamsinfoserv.com writes:

 On Tue, Dec 01, 2009 at 08:56:08PM -0600, Russell Adams wrote:
  - Mutt automatically changes my email address depending on the
recipient or folder according to a series of roles

 Not to reply to myself, but one item I've found lacking in other
 mailreaders and one of my primary reasons for using mutt is the
 concept of roles.

 I'm not sure what a role is, but with gnus, you can change you email
 address depending on the folder (group in gnus speak) or the topic
 (topic are a hierarchical organization of group). For this you use
 posting-style.

There's also `gnus-alias'[1] which allows you to automagically select
and easily switch identities. An `identity' covers nearly every aspect
of a message like From-, Reply-To- and other headers, text to be
pre-filled into the body and of course signatures. Having used quite a
few mail-/news clients (well, ages ago, I must admit) I never came
across a more powerful and flexible mechanism for using roles.

Ulf

[1] http://www.northbound-train.com/emacs.html#MyPackages



___
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] report a bug

2009-12-03 Thread Scot Becker
It looks as if the 'snapshot' version available for lenny is pre-August:

 Archive contents:

lenny|main|i386: emacs-snapshot 1:20090730-1~lenny1
lenny|main|amd64: emacs-snapshot 1:20090730-1~lenny1
lenny|main|source: emacs-snapshot 1:20090730-1~lenny1

(from http://emacs.orebokech.com/)

Wow, that's a pretty severe bug for the release version to contain for
so long.   I've experienced it several times, but I couldn't put
together what the fault was.

It may not help you, but I see that the emacs-snapshot version for
Ubuntu 9.10 (karmic) is from Sept 27.


Scot

On Wed, Dec 2, 2009 at 5:07 PM, Carsten Dominik
carsten.domi...@gmail.com wrote:
 Hi Wentao,



 this was Emacs bug #4131 which was fixed in August.  You need a newer
 version of Emacs than that, best the current CVS version.



 - Carsten

 On Dec 2, 2009, at 8:53 AM, Wentao Zheng wrote:

 Hi

 I don't know what's real cause of the bug, the emacs, or the org-mode.

 The bug looks like this:

    when I edit org file, then type back tab or use the menu to trigger
 global cycling function, the emacs sometimes will crash with an error
 message: Fatal error (11)Segmentation fault

 It happens frequently when the cursor is located at non-header text. It
 seems that if I change the cursor position into some places such as the
 start of the document, it never crashes.

 I'm using emacs-snapshot in debian lenny, with Linux kernel 2.6.31. And
 the org-mode is checked out from git repository. Both latest version of
 org-mode and 6.33 have the bug.

 Thanks

 --
 Wentao Zheng
 ___
 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



___
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: scheduling: skip weekends

2009-12-03 Thread Carsten Dominik


On Dec 3, 2009, at 1:55 AM, Patrick Drechsler wrote:


Carsten Dominik wrote:

On Nov 28, 2009, at 7:10 PM, Patrick Drechsler wrote:

Carsten Dominik wrote:

On Nov 28, 2009, at 4:51 PM, Patrick Drechsler wrote:
is it possible to skip weekends when rescheduling a task using  
the ++1d operator?


Example:

* TODO work task (not on weekends)
SCHEDULED: 2009-11-27 Fr ++1d

When changing the state to the DONE state, it will be  
rescheduled to the next day, no matter what day of the week that  
is. So changing the example above to DONE on a Friday will  
reschedule the task for Saturday.  Is it possible to reschedule  
it for Monday?



no, this is not possible currently.


OK, thanks for the quick feedback.

Does this seem like a reasonable feature request?


 this sounds reasonable, but I don't currently have time to implement
 it.  Would be interested in a patch, though.

Learning E-Lisp would be one of those tasks for the weekend. ;-)

Is there a separate bug-tracker/feature-request interface besides  
this ml?


No.

But maybe we need one.

- 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] Org-mode version 6.32trans and 6.21b; Strange interaction between whitespace-mode and cust. org-ellipsis

2009-12-03 Thread Carsten Dominik
Hi Martin, this looks to me like a bug in whitespace.el, why does it  
override the display table org-mode is using?


- Carsten

On Dec 2, 2009, at 8:02 PM, Martin Pohlack wrote:


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


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

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


I observe a strange interaction between whitespace-mode and org-mode
if org-ellipsis is set.

Whenever I use whitespace-toggle-options for customizing
whitespace-mode in a buffer, all org-mode buffers are effected.
Probably their display table is overwritten which only has effect if
org-ellipsis is set?

Steps to reproduce:

* Start emacs as follows (no local init file, start attached minimal
 init file, open two small org-files, also attached):

 $ emacs -q -l init.test.el test1.org test2.org

* Hit F10 in one org-mode buffer once.

* Look at other org-mode buffer to see that spaces are visualized  
via a

 centered dot.

What *is* happening:

* Other buffers are effected by a supposedly local action (display
 table?).

What *should* be happening:

* No change to other buffers should occur.

I'm not entirely convinced that org-mode is to blame here ...

Emacs  : GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7)
of 2009-09-17 on monat400
Package: Org-mode version 6.21b
Package: Org-mode version 6.32trans

Org-settings see attachment.
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
'(org-ellipsis …))

(require 'whitespace)

(defvar cycle-whitespace-modes-state 0
 whitespace mode states:
  0 - highlighting of stray whitespace, 72  80 column lines
  1 - ws highlighting and identification for tabs and spaces (», ·))
(make-variable-buffer-local 'cycle-whitespace-modes-state)

(defun my-cycle-whitespace-modes (optional state)
 (interactive)
 (if state
 (setq cycle-whitespace-modes-state state)
   (setq cycle-whitespace-modes-state
 (mod (1+ cycle-whitespace-modes-state) 2)))
 (case cycle-whitespace-modes-state
   (0
(whitespace-mode 0)
)
   (otherwise
(whitespace-mode 0)
(whitespace-mode 1)
(whitespace-toggle-options (list 'tab-mark 'space-mark))
)))
(global-set-key [f10] 'my-cycle-whitespace-modes)
abc def
abc def
___
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] [MobileOrg] Plans for an android app ?

2009-12-03 Thread Xavier Maillard

   On Wed, Dec 2, 2009 at 11:58 AM, Xavier Maillard x...@gnu.org wrote:
Hi,
   
Is there anything planned to port the mobileorg application onto Android ?

   Heh, I was thinking about just this last night! I'd also love to know
   if this will happen

I wish it was already the case ;)

Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org


___
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] [MobileOrg] Plans for an android app ?

2009-12-03 Thread Carsten Dominik


On Dec 3, 2009, at 12:36 AM, Xavier Maillard wrote:



  On Wed, Dec 2, 2009 at 11:58 AM, Xavier Maillard x...@gnu.org  
wrote:

Hi,

Is there anything planned to port the mobileorg application onto  
Android ?


  Heh, I was thinking about just this last night! I'd also love to  
know

  if this will happen

I wish it was already the case ;)


Just like the iPhone app:  I will happen is soneone pick up the  
challenge, just like Richard did for the iPhone.


And the Android app will be easier in a way, because the workflow hast  
been designed and all the support code is in place.


So:  WHO???

:-)

- Carsten



Xavier
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org


___
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: [babel] Executing sh-code

2009-12-03 Thread Sébastien Vauban
Hi Eric,

Eric Schulte wrote:
 Sébastien Vauban wxhgmqzgw...@spammotel.com writes:
 Eric Schulte wrote:
 Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 What's the impact of specifying sh or bash for the snippet?

 While sh blocks should work bash blocks will not be recognized. In
 org-babel sh doesn't explicitly mean the sh command, but rather means
 'run shell' which will default to whatever shell you have configured.

 I wonder if it wouldn't be beneficial to make such a feature explicit. I 
 think
 the right shell environment cannot be guessed at runtime. Am I right?

 Hmm, currently we just use the `shell' command which defaults to the user's
 defined shell. I would have to investigate as to how to explicitly specify a
 particular shell to run, but I certainly do see your point that there are
 times when an explicit shell environment would be desirable.

 I'll create a TODO to reflect this need.

OK. Thanks.


 Let's imagine two use cases:

 1. I only have zsh on my machine, and I'm writing a document with bash code
blocks. What if the user executing them is using zsh as his default shell?

I meant I only have bash on my machine. But, whatever, you understood my
point.


 2. I have both bash and zsh installed on my machine. I want to write some 
 code
blocks in bash, and other in zsh. How can I make the difference explicit?

 BTW, a needed feature is the executable flag for shell scripts. I found a
 reference to it (PROPOSED make tangled files executable? At least if using
 shebang line) on http://orgmode.org/worg/org-contrib/babel/development.php.

 Yes, I agree that this should be implemented, patches are welcome :)

I can imagine. My skills are still maybe a bit low to be productive in that
area. But I really would like to help. Second problem is -- and that must be
the same for everybody (you included) -- a deep lack of time, with real work
for real clients to be done during day, and little daughter to be taken care
of for (almost all) the rest of the time.

That's not an excuse. If I get time, I'll try to...


 Thanks for the very useful feedback, hopefully we'll be able to make
 some progress in these areas soon.

For the time I can now spend on Org-mode, I am making a document that uses
(part of) all the power of Org-babel. My intention is to share my result to
all of you, when it gets finished. That way, maybe I'll get feedback and
improvements as well on it...

It will be helpful for both Org-babel'ers (as an example) and for others as
well, for automating the creation of reports about... sshhht. Will tell when
it's done.

The plan is to use the best of what you give to us, including tables, shell
scripts and R plots.

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] Smart(er) word wrapping with org-mode and visual-line-mode

2009-12-03 Thread Matthew Dempsky
While playing around with the different options for handling word
wrapping in org-mode, I decided to instead hack an extension that
improves visual-line-mode's word wrapping when used in conjunction
with org-mode.  In particular, the mrd-org-smartwrap minor mode
automatically sets the `wrap-prefix' property on all section headlines
and plain list entries so that visual-line-mode's native word wrapping
looks identical to what careful and continual usage of TAB and M-q
should produce, without any of the quirks of using auto-fill-mode or
refill-mode.

Just thought I'd share in case anyone else found it useful / interesting.

Caveats: It's incompatible with org-indent-mode, doesn't do anything
to support org-adapt-indentation, and results in tables being word
wrapped.  I've also noticed linum-mode causes it to go crazy if the
top visible line is the continuation of a soft wrapped line.


mrd-org-smartwrap.el
Description: Binary data
___
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: [OT] Emacs for email?

2009-12-03 Thread Bernt Hansen
Russell Adams rlad...@adamsinfoserv.com writes:

 On Tue, Dec 01, 2009 at 08:56:08PM -0600, Russell Adams wrote:
  - Mutt automatically changes my email address depending on the
recipient or folder according to a series of roles

 Not to reply to myself, but one item I've found lacking in other
 mailreaders and one of my primary reasons for using mutt is the
 concept of roles.

 Do any of the emacs readers support that effectively from someones
 direct experience?

I use gnus-posting-styles to set header information for outgoing mail
based on the current folder I'm in.  For me this changes the name, email
address, signature, organization, and X-URL based on which email folder
I reply or create mail from.

I also presort my mail into folders before any MUA sees the mail (mine
are on a private IMAP server) and normally read mail from the inbox the
mail was sorted to.  Then I just reply without having to think about
setting the identity since the gnus-posting-styles rules creates the
proper headers.

-Bernt


___
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] [babel] Is this supported?

2009-12-03 Thread Sébastien Vauban
Hi Eric and Dan,

I'm not sure whether what I'm searching for does already exist (or will ever)
-- that's why I'm asking.

I have to create multiple times a new column in a DB. Being LP-minded, I wanna
describe the code, tangle it, and be able to execute it at the client side.

Here my generic code for create a new column:

--8---cut here---start-8---
#+srcname: add-column-in-table.sql(pTable,pColumn,pDatatype,pAcceptnullvalues)
#+begin_src sql
-- add column `pfiDossierSentToSecteur' (if column does not exist yet)
IF NOT EXISTS (SELECT *
   FROM INFORMATION_SCHEMA.COLUMNS
   WHERE TABLE_NAME = 'pTable'
   AND COLUMN_NAME = 'pColumn)
BEGIN
ALTER TABLE pTable
ADD pColumn pDatatype pAcceptnullvalues
END
GO
#+end_src
--8---cut here---end---8---

Is there a way to tangle it with some string replacements being made, such as:

| pTable| dossier |
| pColumn   | pfiNew  |
| pDatatype | string  |
| pAcceptnullvalues | NULL|

I've tried the following, with no success:

--8---cut here---start-8---
#+srcname: 
add-column-in-table(pTable=dossier,pColumn=pfiNew,pDatatype=string,pAcceptnullvalues=NULL)
#+begin_src sql :tangle dossier.sql
-- add column `pfiDossierSentToSecteur' (if column does not exist yet)
IF NOT EXISTS (SELECT *
   FROM INFORMATION_SCHEMA.COLUMNS
   WHERE TABLE_NAME = 'pTable'
   AND COLUMN_NAME = 'pColumn)
BEGIN
ALTER TABLE pTable
ADD pColumn pDatatype pAcceptnullvalues
END
GO
#+end_src
--8---cut here---end---8---

Is such a feature supported, or another way to come down to the same result?

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] Re: [OT] Emacs for email?

2009-12-03 Thread Matt Lundin
Ulf Stegemann ulf-n...@zeitform.de writes:

 Rémi Vanicat vani...@debian.org wrote:

 Russell Adams rlad...@adamsinfoserv.com writes:

 On Tue, Dec 01, 2009 at 08:56:08PM -0600, Russell Adams wrote:
  - Mutt automatically changes my email address depending on the
recipient or folder according to a series of roles

 Not to reply to myself, but one item I've found lacking in other
 mailreaders and one of my primary reasons for using mutt is the
 concept of roles.

 I'm not sure what a role is, but with gnus, you can change you email
 address depending on the folder (group in gnus speak) or the topic
 (topic are a hierarchical organization of group). For this you use
 posting-style.

 There's also `gnus-alias'[1] which allows you to automagically select
 and easily switch identities. An `identity' covers nearly every aspect
 of a message like From-, Reply-To- and other headers, text to be
 pre-filled into the body and of course signatures. Having used quite a
 few mail-/news clients (well, ages ago, I must admit) I never came
 across a more powerful and flexible mechanism for using roles.

I second the recommendation of gnus-alias. I have rules set up to set my
email address automatically depending on the To or Cc line. And, as
others have mentioned, there's the built-in gnus-posting-styles.

I used wanderlust for a while and it has excellent role functionality
built-in (via the variables wl-draft-config-alist and
wl-template-alist).

- 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: Org mode and Collaboration with others.

2009-12-03 Thread andrea
Tim O'Callaghan tim.ocallag...@gmail.com writes:

 Hi org (ab)users

 This is a kind of follow up to an earlier thread, because i think
 there is some value in kicking off a discussion.

 I have suspicions that org-mode is essentially a solitary habit. I've
 done a quick search in the manual or FAQ about how you might share
 your org habit with others, but nothing seems to exist.

 So i thought I'd ask the users how they spread their org around. I'm
 looking for ideas that are not the fire and forget publishing of
 your org todo's method. I mean a method that you can meaningfully
 involve others, even if the involvement is synced through an external
 collaboration tool.

 Anyone?

 Tim.


Hi Tim.
I don't think that at the moment org-mode can be more than solitary
habit.
The problem is that org-mode runs on emacs, and really a small
percentage of people can/want to use emacs.

If I ever will be able to work with emacs-(ab)users org-mode can be
really great to centralize documentation/agenda and everything we could
think of.

But to communicate with normal people the only way that I see is some
sort of program which understands org-files but don't let the user do
nasty things.



___
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-clock-select-task bugfix (XEmacs incompatibility)

2009-12-03 Thread Carsten Dominik

Hi Richard,

I ave fixed this in a different way.  Please verify!

- Carsten

On Dec 2, 2009, at 1:32 PM, Richard KLINDA wrote:


Hello Carsten, this failed for me ever since, but as I haven't needed
the functionality I was just lazy to report it.  Oh:) I see why my  
patch

must be problematic, sorry about that.

The problem is that, when pressed a number as a reply to the question,
this cond command (see below) always goes to the error clause, because
rpl gets the value of ?1 for example, but sel-list look like  
((49 . ...)
(50 . ...)) so the assoc can't find ?1.  With my patch, the assoc  
finds

it because rpl is converted to ASCII code, but now ?q and ?x clauses
don't work.:)

 (cond
  ((eq rpl ?q) nil)
  ((eq rpl ?x) nil)
  ((assoc rpl sel-list) (cdr (assoc rpl sel-list)))
  (t (error Invalid task choice %c rpl)))

I hope you see what the problem is, I think it must be an XEmacs  
issue.


Regarding 'Re: [Orgmode] [PATCH] org-clock-select-task bugfix  
(XEmacs incompatibility)'; Carsten Dominik adds:



Hi Richard, I don't see why this would be necessary?  Under what
circumstances does this fail?



- Carsten



On Dec 1, 2009, at 9:07 PM, Richard KLINDA wrote:



See attached simple patch.



From 795d529d622f509f47c2bf17a0139fbe1659cc5f Mon Sep 17 00:00:00
2001 From: Richard Klinda rkli...@gmail.com Date: Tue, 1 Dec 2009
21:03:39 +0100 Subject: [PATCH] org-clock: org-clock-select-task
bugfix (XEmacs)



--- lisp/org-clock.el | 4  1 files changed, 4 insertions(+), 0
deletions(-)



diff --git a/lisp/org-clock.el b/lisp/org-clock.el index
56dbab5..87017fc 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -344,6 +344,10 @@ of a different task.)
(org-fit-window-to-buffer) (message (or prompt Select task for
clocking:)) (setq rpl (read-char-exclusive))
+ (when (featurep 'xemacs)
+ ;; in XEmacs read-char-exclusive returns character, instead
of
+ ;; ascii value
+ (setq rpl (char-octet rpl)))
(cond ((eq rpl ?q) nil) ((eq rpl ?x) nil) -- 1.6.2.1




-- Richard ___
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


--
Richard


- Carsten





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


Re: [Orgmode] [BUG] read-char arguments: XEmacs incompatibility

2009-12-03 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Dec 1, 2009, at 8:46 PM, Richard KLINDA wrote:


In org-clock.el there is a call to read-char with 3 arguments, but
XEmacs's version only takes 0 arguments, so it signals error (upon  
using

org-clock-in, for example).

,
| (let (char-pressed)
|   (while (null char-pressed)
| (setq char-pressed
|   (read-char (concat (funcall prompt-fn clock)
|   [(kK)eep (sS)ubtract (C)ancel]? )
|  nil 45)))
|   char-pressed
`

--
Udv, Richard


___
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] Worg currently not publishing

2009-12-03 Thread Matt Lundin
I pushed an update to the Worg repository last night and it has yet to
appear on the website. I checked and the previous commit of Nov. 29
(f752fe0e49e), which created org-contrib/babel/org-babel-uses.org has
yet to appear on the server:

--8---cut here---start-8---
ls ~/worg/org-contrib/babel

development.org
library-of-babel.org
org-babel-screen.org
org-babel-uses.org
org-babel.org
org-babel.org.html
requirements.org
--8---cut here---end---8---

--8---cut here---start-8---
Index of /worg/org-contrib/babel

  NameLast modified  Size  Description
---
  Parent Directory -   
  development.php 14-Nov-2009 20:32  253K  
  library-of-babel.php16-Oct-2009 10:42  9.6K  
  ltxpng/ 22-Sep-2009 09:31-   
  org-babel-screen.php03-Oct-2009 13:31   16K  
  org-babel.php   12-Nov-2009 06:31   57K  
  requirements.php13-Sep-2009 10:31   37K  
---
--8---cut here---end---8---

- 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] [PATCH] org-clock-select-task bugfix (XEmacs incompatibility)

2009-12-03 Thread Richard KLINDA
Almost good, but the variable s contains a list, we need to
int-to-char the car of that, see attached trivial patch.  It works
with this.  Thank you.

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 321dd95..ce309ef 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -339,7 +339,7 @@ of a different task.)
(if ( i 10)
(+ i ?0)
  (+ i (- ?A 10))) m))
-  (if (fboundp 'int-to-char) (setq s (int-to-char s)))
+  (if (fboundp 'int-to-char) (setf (car s) (int-to-char (car s
   (push s sel-list)))
org-clock-history)
   (org-fit-window-to-buffer)


 Regarding 'Re: [Orgmode] [PATCH] org-clock-select-task bugfix (XEmacs 
 incompatibility)'; Carsten Dominik adds:

   Hi Richard, I ave fixed this in a different way.  Please verify!

   - Carsten

   On Dec 2, 2009, at 1:32 PM, Richard KLINDA wrote:

   Hello Carsten, this failed for me ever since, but as I haven't
   needed the functionality I was just lazy to report it.  Oh:) I see
   why my patch must be problematic, sorry about that.

   The problem is that, when pressed a number as a reply to the
   question, this cond command (see below) always goes to the error
   clause, because rpl gets the value of ?1 for example, but sel-list
   look like ((49 . ...)  (50 . ...)) so the assoc can't find ?1.
   With my patch, the assoc finds it because rpl is converted to ASCII
   code, but now ?q and ?x clauses don't work.:)

   (cond ((eq rpl ?q) nil) ((eq rpl ?x) nil) ((assoc rpl sel-list)
   (cdr (assoc rpl sel-list))) (t (error Invalid task choice %c
   rpl)))

   I hope you see what the problem is, I think it must be an XEmacs
   issue.

   Regarding 'Re: [Orgmode] [PATCH] org-clock-select-task bugfix
   (XEmacs incompatibility)'; Carsten Dominik adds:

   Hi Richard, I don't see why this would be necessary?  Under what
   circumstances does this fail?

   - Carsten

   On Dec 1, 2009, at 9:07 PM, Richard KLINDA wrote:

   See attached simple patch.

   From 795d529d622f509f47c2bf17a0139fbe1659cc5f Mon Sep 17 00:00:00
   2001 From: Richard Klinda rkli...@gmail.com Date: Tue, 1 Dec
   2009 21:03:39 +0100 Subject: [PATCH] org-clock:
   org-clock-select-task bugfix (XEmacs)

   --- lisp/org-clock.el | 4  1 files changed, 4 insertions(+),
   0
   deletions(-)

   diff --git a/lisp/org-clock.el b/lisp/org-clock.el index
   56dbab5..87017fc 100644
   --- a/lisp/org-clock.el
   +++ b/lisp/org-clock.el
   @@ -344,6 +344,10 @@ of a different task.)
   (org-fit-window-to-buffer) (message (or prompt Select task for
   clocking:)) (setq rpl (read-char-exclusive))
   + (when (featurep 'xemacs)
   + ;; in XEmacs read-char-exclusive returns character, instead
   of
   + ;; ascii value
   + (setq rpl (char-octet rpl)))
   (cond ((eq rpl ?q) nil) ((eq rpl ?x) nil) -- 1.6.2.1


   -- Richard ___
   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

   -- Richard

   - Carsten

-- 
Udv, Richard
___
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] [PATCH] org-mobile: allow tags-todo in agenda custom commands

2009-12-03 Thread Thomas Jost
Hello world,

This is my first message here and my first contribution to anything
related to emacs. Let's just say that I've switched from the dark side
of text editors only a few weeks ago, but I'm really enjoying it, and
org-mode definitely kicks ass.

Here is a very simple patch against a small bug in org-mobile. It adds
support for agenda custom views that use tags-todo.

Tested with org-mode 6.33f and latest version from the git repository.

Cheers,
Thomas

---
 lisp/org-mobile.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el
index cfcee14..5ef0be1 100644
--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -468,7 +468,7 @@ The table of checksums is written to the file mobile-checksums.
((memq (nth 2 e) '(todo-tree tags-tree occur-tree))
 	;; These are trees, not really agenda commands
 	)
-   ((memq (nth 2 e) '(agenda alltodo todo tags))
+   ((memq (nth 2 e) '(agenda alltodo todo tags tags-todo))
 	;; a normal command
 	(setq key (car e) desc (nth 1 e) type (nth 2 e) match (nth 3 e)
 	  settings (nth 4 e))



signature.asc
Description: OpenPGP digital 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] [PATCH] org-clock-select-task bugfix (XEmacs incompatibility)

2009-12-03 Thread Carsten Dominik

Ah, of course, sorry about that, thanks.

- Carsten

On Dec 3, 2009, at 1:41 PM, Richard KLINDA wrote:


Almost good, but the variable s contains a list, we need to
int-to-char the car of that, see attached trivial patch.  It works
with this.  Thank you.

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 321dd95..ce309ef 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -339,7 +339,7 @@ of a different task.)
   (if ( i 10)
   (+ i ?0)
 (+ i (- ?A 10))) m))
-  (if (fboundp 'int-to-char) (setq s (int-to-char s)))
+  (if (fboundp 'int-to-char) (setf (car s) (int-to-char  
(car s

  (push s sel-list)))
   org-clock-history)
  (org-fit-window-to-buffer)


Regarding 'Re: [Orgmode] [PATCH] org-clock-select-task bugfix  
(XEmacs incompatibility)'; Carsten Dominik adds:



Hi Richard, I ave fixed this in a different way.  Please verify!



- Carsten



On Dec 2, 2009, at 1:32 PM, Richard KLINDA wrote:



Hello Carsten, this failed for me ever since, but as I haven't
needed the functionality I was just lazy to report it.  Oh:) I see
why my patch must be problematic, sorry about that.



The problem is that, when pressed a number as a reply to the
question, this cond command (see below) always goes to the error
clause, because rpl gets the value of ?1 for example, but sel-list
look like ((49 . ...)  (50 . ...)) so the assoc can't find ?1.
With my patch, the assoc finds it because rpl is converted to ASCII
code, but now ?q and ?x clauses don't work.:)



(cond ((eq rpl ?q) nil) ((eq rpl ?x) nil) ((assoc rpl sel-list)
(cdr (assoc rpl sel-list))) (t (error Invalid task choice %c
rpl)))



I hope you see what the problem is, I think it must be an XEmacs
issue.



Regarding 'Re: [Orgmode] [PATCH] org-clock-select-task bugfix
(XEmacs incompatibility)'; Carsten Dominik adds:



Hi Richard, I don't see why this would be necessary?  Under what
circumstances does this fail?



- Carsten



On Dec 1, 2009, at 9:07 PM, Richard KLINDA wrote:



See attached simple patch.



From 795d529d622f509f47c2bf17a0139fbe1659cc5f Mon Sep 17 00:00:00
2001 From: Richard Klinda rkli...@gmail.com Date: Tue, 1 Dec
2009 21:03:39 +0100 Subject: [PATCH] org-clock:
org-clock-select-task bugfix (XEmacs)



--- lisp/org-clock.el | 4  1 files changed, 4 insertions(+),
   0
deletions(-)



diff --git a/lisp/org-clock.el b/lisp/org-clock.el index
56dbab5..87017fc 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -344,6 +344,10 @@ of a different task.)
(org-fit-window-to-buffer) (message (or prompt Select task for
clocking:)) (setq rpl (read-char-exclusive))
+ (when (featurep 'xemacs)
+ ;; in XEmacs read-char-exclusive returns character, instead
of
+ ;; ascii value
+ (setq rpl (char-octet rpl)))
(cond ((eq rpl ?q) nil) ((eq rpl ?x) nil) -- 1.6.2.1




-- Richard ___
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



-- Richard



- Carsten


--
Udv, Richard


- 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] [PATCH] org-mobile: allow tags-todo in agenda custom commands

2009-12-03 Thread Carsten Dominik

Hi Thomas,

thanks for the patch, I have applied it.

- Carsten

On Dec 3, 2009, at 1:46 PM, Thomas Jost wrote:


Hello world,

This is my first message here and my first contribution to anything
related to emacs. Let's just say that I've switched from the dark side
of text editors only a few weeks ago, but I'm really enjoying it, and
org-mode definitely kicks ass.

Here is a very simple patch against a small bug in org-mobile. It adds
support for agenda custom views that use tags-todo.

Tested with org-mode 6.33f and latest version from the git repository.

Cheers,
Thomas

---
lisp/org-mobile.el |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)


0001-org-mobile-allow-tags-todo-in-agenda-custom- 
commands.patch___

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] Worg currently not publishing

2009-12-03 Thread Carsten Dominik
Yep.  Bastien moved us to a new server, and it seems that the cronjob  
doing the update is not configured yet.


I updated by hand for now - will surely be fixed soon.

- Carsten

On Dec 3, 2009, at 1:13 PM, Matt Lundin wrote:


I pushed an update to the Worg repository last night and it has yet to
appear on the website. I checked and the previous commit of Nov. 29
(f752fe0e49e), which created org-contrib/babel/org-babel-uses.org has
yet to appear on the server:

--8---cut here---start-8---
ls ~/worg/org-contrib/babel

development.org
library-of-babel.org
org-babel-screen.org
org-babel-uses.org
org-babel.org
org-babel.org.html
requirements.org
--8---cut here---end---8---

--8---cut here---start-8---
Index of /worg/org-contrib/babel

 NameLast modified  Size  Description
---
 Parent Directory -
 development.php 14-Nov-2009 20:32  253K
 library-of-babel.php16-Oct-2009 10:42  9.6K
 ltxpng/ 22-Sep-2009 09:31-
 org-babel-screen.php03-Oct-2009 13:31   16K
 org-babel.php   12-Nov-2009 06:31   57K
 requirements.php13-Sep-2009 10:31   37K
---
--8---cut here---end---8---

- 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


- Carsten





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


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

2009-12-03 Thread Carsten Dominik

Hi Matthew,

this is nice, I might want to merge this into Org-mode in one way or  
another - if you agree.  Do you?  Would you sign the papers?


- Carsten

On Dec 3, 2009, at 11:14 AM, Matthew Dempsky wrote:


While playing around with the different options for handling word
wrapping in org-mode, I decided to instead hack an extension that
improves visual-line-mode's word wrapping when used in conjunction
with org-mode.  In particular, the mrd-org-smartwrap minor mode
automatically sets the `wrap-prefix' property on all section headlines
and plain list entries so that visual-line-mode's native word wrapping
looks identical to what careful and continual usage of TAB and M-q
should produce, without any of the quirks of using auto-fill-mode or
refill-mode.

Just thought I'd share in case anyone else found it useful /  
interesting.


Caveats: It's incompatible with org-indent-mode, doesn't do anything
to support org-adapt-indentation, and results in tables being word
wrapped.  I've also noticed linum-mode causes it to go crazy if the
top visible line is the continuation of a soft wrapped line.
mrd-org-smartwrap.el___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





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


Re: [Orgmode] Re: [BUG] LaTeX exporter should honor empty lines

2009-12-03 Thread Carsten Dominik

OK, I see now the problem, and I have fixed it.

Thanks!

- Carsten

On Dec 2, 2009, at 5:42 PM, Nicolas Girard wrote:


2009/12/2 Carsten Dominik carsten.domi...@gmail.com:

Hi Nicolas,

the behavior eems to be correct to me.  C1 is indented, therefore  
part of

B1.



Hi Carsten,
agreed for C1, I was getting tired yesterday night ; but that was  
not my point.


My point was, in the following two examples, the empty lines right
before C should be preserved in the LaTeX output.

Cheers,
Nicolas

#===
- A2
- B2

C
#===


#===
- A3
- B3


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


- 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] Latex export and label entries

2009-12-03 Thread Carsten Dominik

Hi,
On Dec 2, 2009, at 2:51 PM, d.tc...@voila.fr wrote:



Hi,

I use org-export-latex to create latex powerdot
file. I make adaptation of template defined for
beamer class and it works quite well.

I have a problem I would like to submit :

By default in each section or slide (frame) environment,
there is a label added by default. This instruction
is not recognized by powerdot class. Is there a way
to prevent org-export-latex function to add such label
entries ?



a work-around would be to add this to your powerdot definition of org- 
export-latex-classes:


\def\label#1{}

I could make label generation optional, but since this is a standard  
LaTeX command, I don't want to remove it.


HTH

- Carsten



My document is following

#+LaTeX_CLASS: powerdot
#+TITLE: Presentation
#+AUTHOR: author
#+OPTIONS: H:2 num:t toc:nil

* Test 1
** Test in 1
*** Test in 1 in 1
* Test 2
** Test in 2
*** Test in 2 in 2

If you want to reproduce, you can substitute powerdot
by beamer for LaTeX_CLASS definition. You will find in
tex file the following :

\section{Test 1}
\label{sec-1} =


Thanks



Michael Jackson, Susan Boyle, Black Eyed Peas ... Retrouvez leurs  
derniers titres sur http://musiline.voila.fr






___
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] [LaTeX-Export] Longtable and Caption

2009-12-03 Thread Carsten Dominik

Hi Ulf,

it was my understanding that the caption command in longtable is  
different from the caption command in normal tables, in that it is a  
line that is printed over the table on each page - so I thought it  
always needs to be there.  Is that not correct?


- Carsten

On Dec 2, 2009, at 8:51 AM, Ulf Stegemann wrote:


Hi,

is there any good reason why there's always a caption (\caption{})
included whenever a table is exported to LaTeX as longtable  
environment?
If there isn't, I would strongly prefer to have the same behaviour  
with

longtable as with ordinary tables, i.e. suppress the caption if
`#+CAPTION:' is not explicitly given.

Ulf



___
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] Add \EUR to `org-html-entities'

2009-12-03 Thread Carsten Dominik


On Dec 2, 2009, at 8:38 AM, Ulf Stegemann wrote:


Hi,

is there anything that speaks against adding

--8--snip--8---

(EUR . euro;)

--8--snap--8---

to `org-html-entities'? \EUR{} is provided by the Marvosym package and
euro; a valid (X)HTML representation of the euro sign. Maybe ever
better would be to add



I would like to minimize external dependencies.  Which distributions  
carry this package?






--8--snip--8---

(EURdig . euro;)
(EURhv . euro;)
(EURcr . euro;)
(EURtm . euro;)


I do not understand the purpose of these extra symbols, and why
they are all equal in HTML

- 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] [PATCH] Suppress extra newlines around source code in LaTeX export

2009-12-03 Thread Carsten Dominik

Applied, thanks.

- Carsten

On Dec 1, 2009, at 10:03 PM, Nicolas Girard wrote:


Hi,
title says it all.

A single paragraph such as:

#===
Dura lex
#+begin_src emacs-lisp
(a)
#+end_src
sed lex
#===

should remain entire in the LaTeX export.

--
Nicolas
noextralines.patch___
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] Problems with org-docview

2009-12-03 Thread Matt Lundin
I notice that org-docview.el was added to the repo on November 28 or
thereabouts.

I'm experiencing a few problems with it.

When calling the agenda for the first time after starting up org-mode, I
get the following message:

,
| Problems while trying to load feature `org-docview'
`

In addition, org-docview stores links to pdf files as absolute paths,
regardless of the setting of org-link-file-path-type. E.g, with
org-link-file-path-type set to relative, the resulting link remains an
absolute path:

,
| [[docview:/home/matt/general.pdf::4][/home/matt/general.pdf]]
`

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: [LaTeX-Export] Longtable and Caption

2009-12-03 Thread Ulf Stegemann
Hi Carsten,

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

 it was my understanding that the caption command in longtable is different
 from the caption command in normal tables, in that it is a  line that is
 printed over the table on each page - so I thought it  always needs to be
 there.  Is that not correct?

yes, treatment is different but nevertheless the caption is not
mandatory for longtable. I never had any problems with longtable tables
without \caption{}.

Ulf




___
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] [Feature Request] Sane XHTML markup for Properties and Property Drawers

2009-12-03 Thread Rick Moynihan
Just bumping this thread/question:

2009/12/2 Rick Moynihan rick.moyni...@gmail.com:
 Also, the properties are exported into the HTML like so:

 pre class=examplePROPERTIES
 :FOO: blah
 :BAR: blah blah
 /pre

 Would something like the following not be a better format for
 parsing/processing?

 div class=properties
  dl
    dt class=property_key_fooFOO/dtdd
 class=property_value_fooblah/dd
    dt class=property_key_barBAR/dtdd
 class=property_value_barblah blah/dd
  /dl
 /div

 R.


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


[Orgmode] Re: Add \EUR to `org-html-entities'

2009-12-03 Thread Ulf Stegemann
Hi Carsten,

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

 On Dec 2, 2009, at 8:38 AM, Ulf Stegemann wrote:

 is there anything that speaks against adding

 --8--snip--8---

 (EUR . euro;)

 --8--snap--8---

 to `org-html-entities'? \EUR{} is provided by the Marvosym package and
 euro; a valid (X)HTML representation of the euro sign. Maybe ever
 better would be to add

 I would like to minimize external dependencies.

well, that's something that speaks against it :)

 Which distributions carry this package?

Marvosym comes with my TeX Live LaTeX distro and used to come with teTeX
AFAIR. I had the impression the package was rather widely used but I
maybe wrong.

 (EURdig . euro;)
 (EURhv . euro;)
 (EURcr . euro;)
 (EURtm . euro;)

 I do not understand the purpose of these extra symbols, and why
 they are all equal in HTML

While \EUR becomes the `official' euro symbol, \EURdig is a variant of
that with the same width as digits, \EURhv is a euro symbol that fits to
Helvetica, \EURcr dto. to Courier and \EURtm dto. to Times. This makes a
difference in LaTeX but is all the same in HTML: euro;.

Anyway, adding those symbols is not strictly necessary since everybody
can use the eurosym package (where \euro{} command comes from). I like
the Marvosym package better but I can also stick to what I currently do:

#+LATEX_HEADER: \newcommand{\euro}{\EUR}

Ulf



___
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] Tables to DB

2009-12-03 Thread Eric Schulte
Org-babel has support for SQL, so I presume that you could use that as a
somewhat manual way to dump org-mode tables into sql tables.

Also, if you have a python tool which you are using for interaction with
sql tables, it may be easiest to use org-babel to convert your org-mode
tables into python arrays, then let python handle the rest of the
integration.

Best -- Eric

andrea andrea.crott...@gmail.com writes:

 Org tables are great but for visualization and querying maybe databases
 are better, for example sqlite for small amounts of data is very nice
 and powerful.

 I found this
 http://orgmode.org/worg/org-tutorials/multitarget-tables.php which I
 haven't tried yet but looks nice.

 I would like to have an automatic way to automatically fill some
 database tables from orgmode tables, done maybe automatically when the
 file is saved.
 So the hook should:
 - check for tables with #+ORGTBL line above
 - store the data on the right sqlite table

 Rewrite completely the table every time is not a big problem since the
 amount of data is really not big.

 Given that I will be able to do nice things with python-sqlite and also
 finally replace this
 http://alexandria.rubyforge.org/
 for book management

 Anyone is already doing something like that?



 ___
 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: Problems with org-docview

2009-12-03 Thread Matthew Lundin
Matt Lundin m...@imapmail.org writes:

 I notice that org-docview.el was added to the repo on November 28 or
 thereabouts.

 I'm experiencing a few problems with it.

 When calling the agenda for the first time after starting up org-mode, I
 get the following message:

 ,
 | Problems while trying to load feature `org-docview'
 `

 In addition, org-docview stores links to pdf files as absolute paths,
 regardless of the setting of org-link-file-path-type. E.g, with
 org-link-file-path-type set to relative, the resulting link remains an
 absolute path:

 ,
 | [[docview:/home/matt/general.pdf::4][/home/matt/general.pdf]]
 `

A couple of clarifications:

1) The first issue above results from the fact that org-docview.el is
missing from the Makefile.

2) The second issue occurs after I load org-docview.el by hand.

- 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] [babel] Is this supported?

2009-12-03 Thread Dan Davison
Sébastien Vauban wxhgmqzgw...@spammotel.com writes:
...
 Is there a way to tangle it with some string replacements being made, such as:

 | pTable| dossier |
 | pColumn   | pfiNew  |
 | pDatatype | string  |
 | pAcceptnullvalues | NULL|


 I've tried the following, with no success:

 #+srcname: 
 add-column-in-table(pTable=dossier,pColumn=pfiNew,pDatatype=string,pAcceptnullvalues=NULL)

Hi Seb,

Those function-arguments / variable assignments won't affect the
*tangled* output. Afaik the only method for making substitutions in the
tangled output is the source block name block references. So one way
to achieve what you want would be to create a block for each string
replacement (Example [1] below; I don't know if I've got the quoting
right in the sql output). But perhaps Tom/Eric will have a better
answer.

Incidentally, it seems that we do not currently support variables when
*evaluating* an sql block. I.e. the function-arguments that you used:

 #+srcname: 
 add-column-in-table(pTable=dossier,pColumn=pfiNew,pDatatype=string,pAcceptnullvalues=NULL)

will have no effect. The patch below[2] implements that. I'll let Eric
decide whether it's appropriate as I don't know anything about sql. Note
that you would need to quote the strings in your srcname line
(i.e. (pTable=dossier, ...))

Dan


 #+begin_src sql :tangle dossier.sql
 -- add column `pfiDossierSentToSecteur' (if column does not exist yet)
 IF NOT EXISTS (SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'pTable'
AND COLUMN_NAME = 'pColumn)
 BEGIN
 ALTER TABLE pTable
 ADD pColumn pDatatype pAcceptnullvalues
 END
 GO
 #+end_src

 Is such a feature supported, or another way to come down to the same result?

Footnotes:

[1] 

#+srcname: pTable
#+begin_src emacs-lisp
dossier
#+end_src

#+srcname: pColumn
#+begin_src emacs-lisp
pfiNew
#+end_src

#+srcname: pDatatype
#+begin_src emacs-lisp
string
#+end_src

#+srcname: pAcceptnullvalues
#+begin_src emacs-lisp
NULL
#+end_src

#+begin_src sql :tangle dossier.sql :engine mysql
-- add column `pfiDossierSentToSecteur' (if column does not exist yet)
IF NOT EXISTS (SELECT *
   FROM INFORMATION_SCHEMA.COLUMNS
   WHERE TABLE_NAME = pTable
   AND COLUMN_NAME = pColumn)
BEGIN
ALTER TABLE pTable
ADD pColumn pDatatype pAcceptnullvalues
END
GO
#+end_src


[2] 

diff --git a/contrib/babel/lisp/langs/org-babel-sql.el 
b/contrib/babel/lisp/langs/org-babel-sql.el
index 837c5fd..7e37fee 100644
--- a/contrib/babel/lisp/langs/org-babel-sql.el
+++ b/contrib/babel/lisp/langs/org-babel-sql.el
@@ -55,7 +55,8 @@
   Execute a block of Sql code with org-babel.  This function is
 called by `org-babel-execute-src-block'.
   (message executing Sql source code block)
-  (let* ((result-params (split-string (or (cdr (assoc :results params)) )))
+  (let* ((processed-params (org-babel-process-params params))
+(vars (second processed-params))
  (cmdline (cdr (assoc :cmdline params)))
  (engine (cdr (assoc :engine params)))
  (in-file (make-temp-file org-babel-sql-in))
@@ -66,6 +67,9 @@ called by `org-babel-execute-src-block'.
 (or cmdline ) in-file out-file))
('nil (error sql engine not specified))
 (t (error no support for the %s sql engine engine)
+(mapc (lambda (pair)
+   (setq body (replace-regexp-in-string (format %s (car pair)) (cdr 
pair) body)))
+ vars)
 (with-temp-file in-file (insert body))
 (message command)
 (shell-command command)



___
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] Blorgit SVN integration

2009-12-03 Thread Francesco Pizzolante
Hi Eric,

 One little question: is it possible to add a comment field when editing a 
 file
 through the web interface and use that comment as the log when checking in 
 the
 file in the repository?

 That behavior is not currently part of blorgit, but it shouldn't be hard
 to add.  See lines 241 through 247 of blorgit.rb which are responsible
 for rendering the edit page.  It shouldn't be hard to add a comment
 field, and then later access that field when committing to SVN/GIT.

I've added a text input in the UI:

--8---cut here---start-8---
diff --git a/blorgit.rb b/blorgit.rb
index 93bea47..c7e4a92 100644
--- a/blorgit.rb
+++ b/blorgit.rb
@@ -245,6 +245,8 @@ __END__
 %form{ :action = path_for(@blog), :method = :post, :id = :comment_form }
   %textarea{ :id = :body, :name = :body, :rows = 28, :cols = 82 }= 
@blog.body
   %br
+  Change log:
+  %input{ :id = :change_log, :name = :change_log, :type = :text }
   %input{ :id = :submit, :name = :edit, :value = :update, :type = :submit }
   %a{ :href = path_for(@blog) } Cancel
--8---cut here---end---8---

But then, I have absolutely no idea on how to access that value when
committing. It should be something like this:

--8---cut here---start-8---
diff --git a/backend/blog.rb b/backend/blog.rb
index 827ec05..555f12c 100644
--- a/backend/blog.rb
+++ b/backend/blog.rb
@@ -26,7 +26,7 @@ class Blog  ActiveFile::Base
   index: index
 def after_savee
   Dir.chdir(Blog.base_directory) do
-%x{svn add #{self.path}  svn ci -m #{self.path} updated through the 
web interface #{self.path}}
+%x{svn add #{self.path}  svn ci -m #{self.path} updated through the 
web interface: #{self.change_log} #{sel
   endt: true
 end
   end
--8---cut here---end---8---

I tried adding an instance method in base.rb but didn't manage to make it
work.

A little help would be welcome.

Thanks a lot,
Francesco


___
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] Sane XHTML markup for Properties and Property Drawers

2009-12-03 Thread Jonathan Arkell
Sure, but something like this might be even better still:

dl class=²properties²
  dtFOO/dt
  ddblah/dd
  dtBAR/dt
  ddblah blah/dd
/dl

You don't need the extra div around the dl, since the dl itself is a block
element.  The extra div in this case is semantically null (and void!).

The Definition list is basically a set of key/value pairs anyway, so having
the extra classes property_key_foo don't make a whole lot of sense.  Using
a definition list as a series of key-value pairs is a pretty well
established pattern of the XHTML Microformats movement.

Just my 2 cents.

On 2009/12/3 8:41 AM, Rick Moynihan rick.moyni...@gmail.com wrote:

 Just bumping this thread/question:

 2009/12/2 Rick Moynihan rick.moyni...@gmail.com:
 Also, the properties are exported into the HTML like so:

 pre class=examplePROPERTIES
 :FOO: blah
 :BAR: blah blah
 /pre

 Would something like the following not be a better format for
 parsing/processing?

 div class=properties
  dl
dt class=property_key_fooFOO/dtdd
 class=property_value_fooblah/dd
dt class=property_key_barBAR/dtdd
 class=property_value_barblah blah/dd
  /dl
 /div

 R.


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



The information contained in this message is confidential. It is intended to be 
read only by the individual or entity named above or their designee. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any distribution of this message, in any form, is strictly prohibited. If 
you have received this message in error, please immediately notify the sender 
and delete or destroy any copy of this message.


___
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] Executing sh-code

2009-12-03 Thread Eric Schulte
Hi Sébastien,

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

 Hi Eric,

 Eric Schulte wrote:

[...]

 Yes, I agree that this should be implemented, patches are welcome :)

 I can imagine. My skills are still maybe a bit low to be productive in that
 area. But I really would like to help. Second problem is -- and that must be
 the same for everybody (you included) -- a deep lack of time, with real work
 for real clients to be done during day, and little daughter to be taken care
 of for (almost all) the rest of the time.


Yes, lack of sufficient time is very much my limiting factor as well.
I'm looking forward to an extended Christmas break -- after finals --
when I should be able to start to catch up with these accumulating
development tasks.


 That's not an excuse. If I get time, I'll try to...


Please don't let my flippant reply above make you feel obligated to
learn elisp.  I really do enjoy performing this development myself when
I have time.


 Thanks for the very useful feedback, hopefully we'll be able to make
 some progress in these areas soon.

 For the time I can now spend on Org-mode, I am making a document that uses
 (part of) all the power of Org-babel. My intention is to share my result to
 all of you, when it gets finished. That way, maybe I'll get feedback and
 improvements as well on it...

 It will be helpful for both Org-babel'ers (as an example) and for others as
 well, for automating the creation of reports about... sshhht. Will tell when
 it's done.

 The plan is to use the best of what you give to us, including tables, shell
 scripts and R plots.


I'm intrigued.  Tom Dye has been good enough to start an
org-babel-uses.org file demonstrating some example uses of org-babel.
It is currently available in the Worg git repository at

org-contrib/babel/org-babel-uses.org

however for some reason it isn't surviving the html publication process.
Most likely this is due to the baroque combination of interacting
source-code blocks lurking in the file.

I look forward to your unveiling! -- Eric


 Best regards,
   Seb


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


[Orgmode] Re: Properties and Property Drawers in HTML export

2009-12-03 Thread Christian Egli
Hi

Rick Moynihan rick.moyni...@gmail.com writes:
 Would something like the following not be a better format for
 parsing/processing?

 div class=properties
   dl
 dt class=property_key_fooFOO/dtdd
 class=property_value_fooblah/dd
 dt class=property_key_barBAR/dtdd
 class=property_value_barblah blah/dd
   /dl
 /div

org-export-format-drawer-function might be what you are looking for:

C-h v org-export-format-drawer-function

Function to be called to format the contents of a drawer.
The function must accept three parameters:
  BACKEND  one of the symbols html, docbook, latex, ascii, xoxo
  NAME the drawer name, like PROPERTIES
  CONTENT  the content of the drawer.
The function should return the text to be inserted into the buffer.
If this is nil, `org-export-format-drawer' is used as a default.

HTH
Christian



___
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] Beamer support - 2nd round

2009-12-03 Thread Carsten Dominik

Dear all,

after carefully listening to all your comments and thinking
things through more thoroughly, here is now my second attempt
to define beamer support in Org-mode.

What is described in this document should actually work on the
new beamer branch on our git repo - I am planning to leave the
code there until we have converged and ironed out the most
important bugs.

The philosophy is now that foremost, any not-too-deep Org-mode
tree should easily and without changes export as a beamer
presentation.  From then on, you can add meta data to improve
the presentation.

- Carsten


  beamerdoc
  =

Author: Carsten Dominik carsten.domi...@gmail.com
Date: 2009-12-03 17:00:57 CET


Table of Contents
=
1 Preparation
1.1 Special setting
2 Organization
2.1 Sections, Subsections, and Parts
2.2 Frames
2.2.1 Auto-fragile frames
2.3 Outline structure below frames
2.4 Block-like environments
2.5 Columns
2.5.1 Columns without additional outline structure
2.5.2 Columns with additional outline structure
2.6 Embedded LaTeX
2.7 Adding special code for BEAMER
2.8 Overlay/action in plain lists
3 Editing support with org-beamer-mode
3.1 Tracking of the BEAMER_env property with tags
3.2 Fast tag selection for beamer environments
3.3 Column view
4 Open issues
5 Example


1 Preparation
~~

A beamer presentation can either be the entire Org document, or a
subtree in the document.  There are a number of important settings
which should be in place to make editing the presentation easy.  For
most settings, a default is available, but you should at least define
a format for column view that will make it easy to change properties
that will be interpreted by beamer export.

1.1 Special setting


If the document is the presentation, special settings for beamer
export look like this:

  #+LaTeX_CLASS: beamer
  #+LaTeX_CLASS_OPTIONS: [presentation]
  #+BEAMER_FRAME_LEVEL: 1
  #+BEAMER_HEADER_EXTRA: \usetheme{default}\usecolortheme{default}
  #+COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args)  
%4BEAMER_col(Col) %10BEAMER_extra(Extra)



If a subtree is set up as a presentation, the special settings can also
be in properties, to allow different settings for different
presentations in the same file:

  ** Presentation
 :PROPERTIES:
 :LaTeX_CLASS: beamer
 :LaTeX_CLASS_OPTIONS: [presentation]
 :BEAMER_FRAME_LEVEL: 1
 :BEAMER_HEADER_EXTRA: \usetheme{default}\usecolortheme{default}
 :COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args)  
%4BEAMER_col(Col) %10BEAMER_extra(Extra)

 :END:

The meaning of these settings are:

LaTeX_CLASS: The key to the beamer entry in
 `org-export-latex-classes'.

LaTeX_CLASS_OPTIONS: The options to be used with
 `\documentclass{beamer}'.

BEAMER_FRAME_LEVEL: The outline level that defines frames, or 0 to
 make frame definition manual.  The default is 1 (see the variable
 `org-beamer-frame-level')

BEAMER_HEADER_EXTRA: Text that will be added to the BEAMER
 document header - useful for example to set beamer themes.

COLUMNS: A format specification for column view that makes it easy
 to edit the properties influencing BEAMER export.

You can insert a template for these options with

M-x org-beamer-settings-template RET

The command will ask if these are options for a subtree or for the
file as a whole.

2 Organization
~~~

By default, level one headlines become frames in the beamer document.
When exporting a subree as a beamer presentation, the direct children
of the subtree head become the frames.   However, frame selection can
also be more flexible, see below.

2.1 Sections, Subsections, and Parts
=

If you want to have a sectioning structure above the frames as it is
used for presentations with table of contents, use the
BEAMER_FRAME_LEVEL setting to change this.  Setting it to 2 will allow
sections, 3 will allow subsections as well.  Setting it to 0 means
that any levels above (the manually selected) frames will
automatically be section/subsection.  Finally, of you also set the
variable `org-beamer-use-parts', then level 1 will define parts and
sections and subsections will move down one level in the hierarchy.

2.2 Frames
===

The BEAMER_FRAME_LEVEL setting governs which levels become frames.  If
that option is set to 0, then frames are only created by setting the
`BEAMER_env' property of an entry to the value `frame'.

The heading of the entry will become the frame title.  If the frame
title contains the string `\\', the line will be split at that
location, and the second half will become the frame /subtitle/.  If
you need a line break in the frame title, use `\newline' or
`\linebreak'.

2.2.1 Auto-fragile frames
--

If the regular expression `org-beamer-fragile-re' 

[Orgmode] giving emacs focus w/ org-protocol/firefox

2009-12-03 Thread Maurizio Vitale
Has somebody managed to get the Emacs window popping up and get the
focus when emacsclient is invoked from Firefox with an org-protocol URL?

I'm using the two scripts at http://www.emacswiki.org/emacs/EmacsClient#toc25
and although the emacsclient-wrapper script works just fine from a
console, it doesn't when invoked from Firefox.

If in Firefox I set the protocol handler to be emacsclient (without
wrapper), everything works fine (but the Emacs window is not raised, of
course).

I suspect that the Window ID for Firefox is not found, but I wouldn't
know how to check whether this is true.

Any ideas?
Thanks in advance,

   Maurizio



___
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] Sane XHTML markup for Properties and Property Drawers

2009-12-03 Thread Rick Moynihan
2009/12/3 Jonathan Arkell jonath...@criticalmass.com:
 Sure, but something like this might be even better still:

 dl class=²properties²
  dtFOO/dt
  ddblah/dd
  dtBAR/dt
  ddblah blah/dd
 /dl

 You don't need the extra div around the dl, since the dl itself is a block
 element.  The extra div in this case is semantically null (and void!).

Agreed... It was late and I just bashed out the first thing that came
to mind as a starter for 10 :-)

 The Definition list is basically a set of key/value pairs anyway, so having
 the extra classes property_key_foo don't make a whole lot of sense.  Using
 a definition list as a series of key-value pairs is a pretty well
 established pattern of the XHTML Microformats movement.

The only reason I added the classes was to try and make things simpler
for CSS selectors to pull out specific properties.  Presumably this is
still reasonably easy with your revised defintion though?

R.


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


Re: [Orgmode] [OT] Emacs for email?

2009-12-03 Thread Matt Price
On Wed, 2009-12-02 at 22:04 +0100, David Maus wrote:
 At Wed, 02 Dec 2009 08:43:51 -0500,
 Matt Price wrote:
  
  [1  multipart/signed (7bit)]
  [1.1  text/plain; UTF-8 (quoted-printable)]
  On Tue, 2009-12-01 at 20:57 -0300, Darlan Cavalcante Moreira wrote:
   I use wanderlust for email (including this list) and it works really well 
   with
   imap. I was somewhat hard to configure, but now that everything is 
   working I
   don't feel like going back to my previous e-mail client (evolution).
   
  
  darlan, would you be willing to share your config for wl?  i can't seem
  to make any headway with it at all.  i'm just looking for a light
  emacs-based mail reader/imap client on my aging laptop, which is mostly
  an emacs machine now.  GNUS can see my mail, but it's just so heavy for
  what i'm looking for, and also doesn't seem to want to honor the imap
  conventions in terms of hiding deleted messages, which is sort of
  essential for me as things stand.
 
 Just pushed my Wanderlust configuration to github:
 
 http://github.com/dmj/dotfiles/blob/master/.wl
 
 A simple configuration: I use a local imap server to access my mails
 and gmail to send. What helped me to get in touch with Wanderlust
 after an unsuccessful attempt was this blog posting:
 
 http://emacs-fu.blogspot.com/2009/06/e-mail-with-wanderlust.html
 
  - describing a setup with a local maildir storage.
 

thanks david, and also to eric, who sent me his.  With both your help I
have wanderlust up and running, though still with some confusions (how
do I hide read or deleted messages?  why won't wl actually send any
mail?  etc.).  I'm sure i'll be able to clear those up soon, though.  

Anyway, thanks.

matt

 Regards,
 
   -- David
 


-- 
Matt Price
matt.pr...@utoronto.ca


signature.asc
Description: This is a digitally signed message part
___
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: Properties and Property Drawers in HTML export

2009-12-03 Thread Rick Moynihan
2009/12/3 Christian Egli christian.e...@sbszh.ch:
 Hi

 Rick Moynihan rick.moyni...@gmail.com writes:
 Would something like the following not be a better format for
 parsing/processing?

 div class=properties
   dl
     dt class=property_key_fooFOO/dtdd
 class=property_value_fooblah/dd
     dt class=property_key_barBAR/dtdd
 class=property_value_barblah blah/dd
   /dl
 /div

 org-export-format-drawer-function might be what you are looking for:

 C-h v org-export-format-drawer-function


Great!  That looks like what I need... turns out it was introduced 3
weeks ago... shortly after I last updated org-mode...

git pull origin master  make clean  make install

M-x org-reload

tada!

Cheers.

R.


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


Re: [Orgmode] Re: [OT] Emacs for email?

2009-12-03 Thread Henri-Paul Indiogine
Otto Diesenbacher ok...@diesenbacher.net writes:

 Keith Lancaster klancaster1...@acm.org writes:

 I apologize for the WAY off topic question, but since you folk are
 emacs expertsdo you use emacs for email, and if so, what do you
 use? 

 (http://www.mew.org current version is 6.3).

 I am wondering noone else mentioned it already. Mew can handle pop, imap
 and local mail very well, also can handle SSL via stunnel.

This seems a very good email client.  I see one issue though: it does not link 
to orgmode.  From the orgmode manual we can read that only the following email 
clients do:

VM, Wanderlust, MHE, Rmail, Gnus

Otherwise, it looks exactly like what I am looking for.  


Henri-Paul

-- 
Henri-Paul Indiogine
Texas AM University

http://www.coe.tamu.edu/~enrico


___
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] Bad handling of \ in link names

2009-12-03 Thread Nicolas Girard
hi all,
as title says, a link such as
  [[http://www.somewhere.org][\maketitle]]
is badly handled.

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


[Orgmode] export:org-docbook-texinfo-PDF

2009-12-03 Thread Birch Browning
Has anyone here been successful in exporting an orgmode document to docbook,
coverting it to texinfo and then to PDF? If so, would you kindly tell me how
you accomplished this?

I can successfully produce a PDF from Docbook export, but would like to get
it into the texinfo format. If you need more information on my setup, I will
gladly supply it.

Thanks, Birch
___
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: [BUG] LaTeX exporter should honor empty lines

2009-12-03 Thread Nicolas Girard
2009/12/3 Carsten Dominik carsten.domi...@gmail.com:
 OK, I see now the problem, and I have fixed it.


Thanks very much !

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


[Orgmode] Re: [OT] Emacs for email?

2009-12-03 Thread Matt Lundin
Henri-Paul Indiogine hindiog...@gmail.com writes:

 Otto Diesenbacher ok...@diesenbacher.net writes:

 Keith Lancaster klancaster1...@acm.org writes:

 I apologize for the WAY off topic question, but since you folk are
 emacs expertsdo you use emacs for email, and if so, what do you
 use? 

 (http://www.mew.org current version is 6.3).

 I am wondering noone else mentioned it already. Mew can handle pop, imap
 and local mail very well, also can handle SSL via stunnel.

 This seems a very good email client.  I see one issue though: it does not 
 link to orgmode.  From the orgmode manual we can read that only the following 
 email clients do:

 VM, Wanderlust, MHE, Rmail, Gnus

 Otherwise, it looks exactly like what I am looking for.  

Though I haven't used it, there is an org-mew module in the
repositories. Moreover, it is activated in the default setting of
org-modules:

,
| org-modules is a variable defined in `org.el'.
| Its value is 
| (org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-irc org-mew 
org-mhe org-rmail org-vm org-w3m org-wl)
`

Best,
Matt


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


Re: [Orgmode] [BUG] Bad handling of \ in link names

2009-12-03 Thread Nick Dokos
Nicolas Girard nicolas.gir...@nerim.net wrote:

 hi all,
 as title says, a link such as
   [[http://www.somewhere.org][\maketitle]]
 is badly handled.
 
In what way?

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] Smart(er) word wrapping with org-mode and visual-line-mode

2009-12-03 Thread Matthew Dempsky
On Thu, Dec 3, 2009 at 6:23 AM, Carsten Dominik
carsten.domi...@gmail.com wrote:
 this is nice, I might want to merge this into Org-mode in one way or another
 - if you agree.  Do you?  Would you sign the papers?

Sure, it's GPLv3-derived, so do whatever you'd like with it. :)

And yeah, I'm willing to sign the FSF paperwork.


___
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: [OT] Emacs for email?

2009-12-03 Thread Enrico Indiogine
Hi Matt!

 Though I haven't used it, there is an org-mew module in the
 repositories. Moreover, it is activated in the default setting of
 org-modules:

 ,
 | org-modules is a variable defined in `org.el'.
 | Its value is
 | (org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-irc 
 org-mew org-mhe org-rmail org-vm org-w3m org-wl)
 `

Let me make sure that I understand: Mew actually does work with
orgmode, but the documentation does not (yet) reflect that?

Thanks,
Enrico



-- 
Enrico Indiogine

Mathematics Education
Texas AM University

Email: hindiog...@gmail.com
Skype: hindiogine
Website: http://www.coe.tamu.edu/~enrico

Rien ne va de soi.  Rien n'est donné. Tous est construit.   Gaston
Bachelard, 1934


___
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] Bad handling of \ in link names

2009-12-03 Thread Nicolas Girard
2009/12/3 Nick Dokos nicholas.do...@hp.com:
 Nicolas Girard nicolas.gir...@nerim.net wrote:

 hi all,
 as title says, a link such as
   [[http://www.somewhere.org][\maketitle]]
 is badly handled.

 In what way?


By the LaTeX exporter.
It gets translated into
  \href{http://www.somewhere.org}{\maketitle}
whereas I'd have expected
  \href{http://www.somewhere.org}{\\maketitle}

-- 
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] [BUG] Bad handling of \ in link names

2009-12-03 Thread Nick Dokos
Nicolas Girard nicolas.gir...@nerim.net wrote:

 2009/12/3 Nick Dokos nicholas.do...@hp.com:
  Nicolas Girard nicolas.gir...@nerim.net wrote:
 
  hi all,
  as title says, a link such as
    [[http://www.somewhere.org][\maketitle]]
  is badly handled.
 
  In what way?
 
 
 By the LaTeX exporter.
 It gets translated into
   \href{http://www.somewhere.org}{\maketitle}
 whereas I'd have expected
   \href{http://www.somewhere.org}{\\maketitle}
 

AFAICT, it has nothing to do with links:

\foo

in normal text, becomes \foo in the latex export.

Moreover, even if org did what you expected, I doubt that LaTeX would do
anything reasonable with the result (at least, a few tentative tests here
produce either LaTeX errors - e.g. if the link is in a headline - or
the \\ is interpreted as a newline - if the link is in the body of a paragraph.)

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] Org-mode version 6.32trans and 6.21b; Strange interaction between whitespace-mode and cust. org-ellipsis

2009-12-03 Thread Martin Pohlack
Carsten Dominik wrote:
 Hi Martin, this looks to me like a bug in whitespace.el, why does it  
 override the display table org-mode is using?

Hmm, my understanding is that each buffer can have its own display
table, buffer-display-table.  whitespace-mode has to modify this table
(or install an own one) if it wants to do buffer-local modifications.
So I think it modifies org-mode's table but doesn't override it.

My irritation is that by doing so, it does modifies some global state
that effects other buffers.

A short look into org.el shows that org-display-table is never made
buffer local, so this data structure is shared across all org-mode buffers?

The following hack seems to solve this problem:

--- org.el.bak  2009-12-03 22:31:07.0 +0100
+++ org.el  2009-12-03 22:31:48.0 +0100
@@ -427,9 +427,6 @@
 (face :tag Face :value org-warning)
 (string :tag String :value ...#)))

-(defvar org-display-table nil
-  The display table for org-mode, in case `org-ellipsis' is non-nil.)
-
 (defgroup org-keywords nil
   Keywords in Org-mode.
   :tag Org Keywords
@@ -4170,8 +4167,7 @@
   (when (and org-ellipsis
  (fboundp 'set-display-table-slot) (boundp
'buffer-display-table)
 (fboundp 'make-glyph-code))
-(unless org-display-table
-  (setq org-display-table (make-display-table)))
+(setq org-display-table (make-display-table))
 (set-display-table-slot
  org-display-table 4
  (vconcat (mapcar


Cheers,
Martin


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


[Orgmode] Error when push fils in MobileOrg

2009-12-03 Thread Xin Shi
Hello Experts,

I'm using Emacs 23.1 with orgmode 6.33b.

When I use Push Files and Views in MobileOrg in Emacs, I got error
message:

Writing index file...
byte-code: Wrong type argument: listp, TODO

Any suggestions?

Thanks!
Xin
___
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] [OT] Emacs for email?

2009-12-03 Thread Darlan Cavalcante Moreira

Sorry for the delay, but It took some time to organize the wanderlust
configuration. I'm sending an org file with it as an attachment.

- Darlan Cavalcante
  
  

wlconfiguration.org
Description: Binary data


At Thu, 03 Dec 2009 11:53:14 -0500,
Matt Price matt.pr...@utoronto.ca wrote:
 
 On Wed, 2009-12-02 at 22:04 +0100, David Maus wrote:
  At Wed, 02 Dec 2009 08:43:51 -0500,
  Matt Price wrote:
   
   [1  multipart/signed (7bit)]
   [1.1  text/plain; UTF-8 (quoted-printable)]
   On Tue, 2009-12-01 at 20:57 -0300, Darlan Cavalcante Moreira wrote:
I use wanderlust for email (including this list) and it works really 
well with
imap. I was somewhat hard to configure, but now that everything is 
working I
don't feel like going back to my previous e-mail client (evolution).

   
   darlan, would you be willing to share your config for wl?  i can't seem
   to make any headway with it at all.  i'm just looking for a light
   emacs-based mail reader/imap client on my aging laptop, which is mostly
   an emacs machine now.  GNUS can see my mail, but it's just so heavy for
   what i'm looking for, and also doesn't seem to want to honor the imap
   conventions in terms of hiding deleted messages, which is sort of
   essential for me as things stand.
  
  Just pushed my Wanderlust configuration to github:
  
  http://github.com/dmj/dotfiles/blob/master/.wl
  
  A simple configuration: I use a local imap server to access my mails
  and gmail to send. What helped me to get in touch with Wanderlust
  after an unsuccessful attempt was this blog posting:
  
  http://emacs-fu.blogspot.com/2009/06/e-mail-with-wanderlust.html
  
   - describing a setup with a local maildir storage.
  
 
 thanks david, and also to eric, who sent me his.  With both your help I
 have wanderlust up and running, though still with some confusions (how
 do I hide read or deleted messages?  why won't wl actually send any
 mail?  etc.).  I'm sure i'll be able to clear those up soon, though.  
 
 Anyway, thanks.
 
 matt
 
  Regards,
  
-- David
  
 
 
 -- 
 Matt Price
 matt.pr...@utoronto.ca
___
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] Error when push fils in MobileOrg

2009-12-03 Thread Nick Dokos
Xin Shi shixin...@gmail.com wrote:

 Hello Experts,
 
 I'm using Emacs 23.1 with orgmode 6.33b.
 
 When I use Push Files and Views in MobileOrg in Emacs, I got error message:
 
 Writing index file...
 byte-code: Wrong type argument: listp, TODO
 
 Any suggestions?
 

The topic is different but the suggestion still holds:

http://thread.gmane.org/gmane.emacs.orgmode/20039/focus=20040

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


[Orgmode] [babel] Give a name to the plot

2009-12-03 Thread Sébastien Vauban
Hi Eric and Dan,

Just a quick question (before testing and answering properly, tomorrow, to
your post): how do you give a name to an R plot?

Just taking your example file:

--8---cut here---start-8---
#+srcname: directory-pie-chart(dirs = directories)
   #+begin_src R :session R-pie-example
   pie(dirs[,1], labels = dirs[,2])
   #+end_src
 [[file:../../images/babel/dirs.png]]
--8---cut here---end---8---

I don't see how the `dirs.png' name is derivated from the above block?

I've tried arguments such as `:file' or `filename:', but did not get any
success...

Currently, all my R blocks produce an `Rplots.pdf' graph file... Don't see
where that is coming from... Pay attention: I'm an R user for the last 3 days
or so... Not very aware of where the name can be set...

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] [babel] Give a name to the plot

2009-12-03 Thread Dan Davison
Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi Eric and Dan,

 Just a quick question (before testing and answering properly, tomorrow, to
 your post): how do you give a name to an R plot?

 Just taking your example file:

 #+srcname: directory-pie-chart(dirs = directories)
#+begin_src R :session R-pie-example
pie(dirs[,1], labels = dirs[,2])
#+end_src
  [[file:../../images/babel/dirs.png]]

 I don't see how the `dirs.png' name is derivated from the above block?

Hi Seb,

Sorry, more documentation shortcomings. When that was written it did not
happen automatically, but it does now.  

 I've tried arguments such as `:file' or `filename:', but did not get any
 success...

e.g.

:file filename.png

should do it. Here's the relevant commit note. I'll move this into the
documentation now.


commit 8b52bf09e0644cc5b6ea85e5248403fcd562f4f3
Author: Dan Davison davi...@stats.ox.ac.uk
Date:   Mon Oct 19 21:00:24 2009 -0400

org-babel: capture graphical output from R

If a [:file filename.ext] header arg is provided, then all graphical
output from the source block is captured on disk, and output of the
source block is a link to the resulting file, as with the
graphics-only languages such as gnuplot, ditaa, dot, asymptote. An
attempt is made to find a graphics device corresponding to the file
extension (currently .png, .jpg, .jpeg, .tiff, .bmp, .pdf, .ps,
.postscript are recognised); if that fails, png format output is
created.

Additionally, values for several arguments to the R graphics
device can be passed using header args:

:width :height :bg :units :pointsize
:antialias :quality :compression :res :type
:family :title :fonts :version :paper :encoding
:pagecentre :colormodel :useDingbats :horizontal

Arguments to the R graphics device that are not supported as header
args can be passed as a string in R argument syntax, using the header
arg :R-dev-args

An example block is (although both bg and fg can be passed directly as
header args)

\#+begin_src R :file z.pdf :width 8 :height 8 :R-dev-args bg=olivedrab, 
fg=hotpink
  plot(matrix(rnorm(100), ncol=2), type=l)
\#+end_src




 Currently, all my R blocks produce an `Rplots.pdf' graph file... Don't see
 where that is coming from... Pay attention: I'm an R user for the last 3 days

That is the default in R when you issue plot commands from a
non-interactive R process. But if you use the :file header arg all
graphical output will be diverted to the named file as outlined above.

dan


 or so... Not very aware of where the name can be set...

 Best regards,
   Seb


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


Re: [Orgmode] Org-mode tricks for team management

2009-12-03 Thread Torsten Wagner
Hi Juan,

 
 http://juanreyero.com/article/emacs/org-teams.html
 

This solution is very nice. I would encourage you to pack it into an own 
contrib for org-mode. Maybe even trying to merge it into org-mode itself.

Please also consider to check out how this could be worked together with org-
mobile. As far as I understood you are going to have beside the normal agenda 
views a place and person sensitive agenda. This makes even more sens on mobile 
devices. 

#+ dream-mode on
All those smart-phones have GPS now. It would be incredible awesome if the GPS 
location could be used to define the place automatically :) Even send alarm 
messages... (This idea was discussed at the OpenMoko-Community (position-
sensitive alarm)
#+ dream-mode off

Best regards,

Totti



___
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