[Orgmode] [babel] features request for Emacs Initialization

2009-12-01 Thread bluedian
Hi,

Thanks for org-babel, my configuration file are now in org form and it's pretty
easy to manage and document them. I was looking for that kind of things since a
long time !

I will find interesting to have two more things (perhaps it's already there) :

1) When the org configuration file aren't changed, a way to automatically load
their tangled version (bytecompiled ?) in order to improve the initialization
time of Emacs.

2) When in debugging mode (a variable, like stater-kit-org-babel-debug-lisp put
to t), could a trace be generated by the tangling process in order to trace the
execution of the configuration file (simple trace like the generation of a
message at the start and end of each emacs lisp block). That could be a good
help for rapidly finding an error.

For instance, the code block :
  #+srcname: Name_Code_Block
  #+begin_src emacs-lisp 
   ;; code lisp   
   (desktop-save-mode 1) ;; for instance
  #+end_src

could be tangled in something like  

  ;; generated by org-babel-tangle
  ;; [[file:~/TEST.org::*foo][foo]]
  (message starting Name_Code_Block)
  ;; code lisp   
  (desktop-save-mode 1) ;; for instance
  (message ending Name_Code_Block)
  ;; foo ends here

Regards,
BlueDian



___
Emacs-orgmode 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-01 Thread Sébastien Vauban
Hi Nick and Eric,

Eric Schulte wrote:
 Nick Dokos nicholas.do...@hp.com writes:

 There are two methods that I use that I think are much more effective than
 sprinkling message calls all over the place:

  o edebug-defun: (in emacs-lisp mode, C-u C-M-x) will mark the function
so that when it is called, the interpreter stops and you can then
single-step through it with SPACE. At each point, you can press
e and evaluate variables (actually arbitrary expressions).

  o Insert a strategically placed (debug) call and then call the
function. If/when the debug call is executed, you are dropped into
the debugger and you can then evaluate arbitrary expressions.

 Excellent.  Thanks Nick, I look forward to the next bug so I can try
 these out. -- Eric

I'd like to be able to enter one level more inside Emacs and its satellites.
But, when I tried to use debuggers, I've always been confused by the multiple
solutions, as there are already 2 different debuggers (with similar names):
debug and edebug.

Plus, I wondered if there wasn't something existing around CEDET or Slime but
for ELisp...

Thanks for your answer,
  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] Tables in databases

2009-12-01 Thread andrea

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


[Orgmode] Re: [babel] Executing sh-code

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

FYI, I just re-did a git pull  make clean  make, before writing this post
(5 min ago). I also launched a new Emacs.

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

 Let's assume the following Org file:

 #+begin_src sh :session ecm
 cd ~/Personal
 #+end_src

 #+begin_src sh :session ecm
 ls *.org
 #+end_src

 I C-c C-c the first snippet. Nothing special, except it doesn't hang anymore.
 So, it already looks much better.

 Second snippet. C-c C-c. There, it still hangs ;-((

 Though, C-x C-b shows me the contents of the ecm buffer:

 cd ~/Personal

 ~ % ~/Personal % ls *.org
 echo 'org_babel_sh_eoe'
 Bookmarks.org  Scorpios.orgTickler.org  
 Voice-over-IP.org*
 Home.org*  Succession.org  Using-startx-for-Remote-Display.org  
 refile.org
 ~/Personal % org_babel_sh_eoe
 ~/Personal % 

I am still puzzled by the order the commands are mixed with their output:

1. ls command
2. echo command
3. ls output
4. echo output

It's like if everything was sent at once, instead of waiting for the prompt to
appear.

Would I write see in Expect (I love it), I would write something like:

1. expect prompt
2. send ls command
3. expect result followed by prompt
4. send echo command
5. expect result followed by prompt

But, maybe, my observation has nothing to do with my problem...


 So the fix here is to fix the value of the `comint-prompt-regexp'
 variable in your shell.  Org-babel uses this variable to digest output
 from the shell.  I have mine set with the following

 (defun schulte/set-shell-prompt-regexp ()
   (setq comint-prompt-regexp ^\(.+\)))
 (add-hook 'shell-mode-hook 'schulte/set-shell-prompt-regexp)

I've put that in my .emacs file, as you can see (when asking for its value in
the shell buffer):

--8---cut here---start-8---
comint-prompt-regexp's value is ^(.+)
Local in buffer ecm; global value is ^

Documentation:
Regexp to recognize prompts in the inferior process.
Defaults to ^, the null string at BOL.

This variable is only used if the variable
`comint-use-prompt-regexp' is non-nil.

Good choices:
  Canonical Lisp: ^[^ \n]*+:? * (Lucid, franz, kcl, T, cscheme, oaklisp)
  Lucid Common Lisp: ^\\(\\|\\(-\\)+\\) *
  franz: ^\\(-\\|[0-9]*:\\) *
  kcl: ^+ *
  shell: ^[^#$%\n]*[#$%] *
  T: ^+ *

This is a good thing to set in mode hooks.
--8---cut here---end---8---


 You'll have to change the regexp (^\(.+\) in my example) to match your
 prompt.

Nope. Because I'm using your prompt, as you can see in the above shell
session.


 I was unable to create your prompt locally. I find the `regexp-builder'
 function to be very handy for these situations. If you are unable to build a
 working regexp please send me a string of your prompt and I'd be happy to
 return an appropriate regexp.

N/A, if I understand you correctly, as I'm using your prompt within Emacs
shells:

--8---cut here---start-8---
PS1=\w % 
--8---cut here---end---8---


 on a related topic:

 I've also noticed that org-babel has difficulty digesting shell output
 when it is ansi-colorized.  I'm not sure what the best fix here would
 be.  We could probably start piping all org-babel session results
 through something like `ansi-color-filter-region' but that feels a
 little bit too heavy.  I'd be interested to hear other peoples
 thoughts/suggestions.

Good you talk of that. Of course, I was using color in my prompt (but not
anymore, see above), but I was coloring ls output as well...

Disabled yesterday...

--8---cut here---start-8---
# alias ls=ls --color=yes --classify  # `--color=auto' tells ls to use color
#   # iff output is a tty
--8---cut here---end---8---

Though, even while I'm using your prompt definition, your prompt regexp
definition, bash as shell, and no color in the ls command, I still have the
same problem: Emacs hangs when C-c C-c on the `ls *.org' code block.

Not sure to understand what I can do to go further...

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: [babel] Bug when exporting to LaTeX

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

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

 [...]
 when exporting to LaTeX.

 Note the \items in the code...

 I think you may need to update your version of Org-mode

Done every couple of days, or so...

 (and make sure that you are loading Org from your git directory and not from
 the base of your instillation see [1]).

Similar symptom. Though, the cause must be different, as, yes, I'm loading Org
from my `~/Downloads/emacs/site-lisp/org-mode' git directory.


 The above snippet exports correctly to the following for me.

 \subsection*{ECM}
 \label{sec-1.1}


 \begin{itemize}
 \item faire un script Bash (et \texttt{isql}) envoyant un \emph{listing} de 
 stagiaires;
 \end{itemize}
 \lstset{language=SQL}
 \begin{lstlisting}
 DECLARE @dateFmtStyleIn int; SET @dateFmtStyleIn = 120 -- ODBC canonical
 DECLARE @dateFmtStyleOut int; SET @dateFmtStyleOut = 103 -- French dd/mm/

 DECLARE @firstDayOfThisMonth smalldatetime
 SET @firstDayOfThisMonth = CONVERT(smalldatetime,
CAST(YEAR(GETDATE()) AS char(4)) + '-'
+ CAST(MONTH(GETDATE()) AS char(2)) + '-'
+ '01' + ' 00:00:00',
@dateFmtStyleIn)

 DECLARE @now smalldatetime
 SET @now = CONVERT(smalldatetime,
CAST(YEAR(GETDATE()) AS char(4)) + '-'
+ CAST(MONTH(GETDATE()) AS char(2)) + '-'
+ CAST(DAY(GETDATE()) AS char(2)) + ' '
+ CAST(DATEPART(hh, GETDATE()) AS char(2)) + ':'
+ CAST(DATEPART(mi, GETDATE()) AS char(2)) + ':'
+ '00',
@dateFmtStyleIn)

 SELECT pfiID
 FROM dossier
 \end{lstlisting}

I'm sorry. I did not test sufficiently my code block. This works as well for
me.

Though, when that is part of my bigger document, I have the problem. I will
try to understand what makes it working or failing.

But, yes, an Org file limited to the above does not show any problem...

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: Restructure my org-life

2009-12-01 Thread andrea
Matt Lundin m...@imapmail.org writes:

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

 A quick question: Are you using the agenda? IMO, the number of org files
 you use doesn't really matter, since the agenda will gather the relevant
 information from all of them and since you can jump directly from the
 agenda to the corresponding point in your files.

I finally started to use more smartly the agenda and also the template
for remember mode.
Now is much better thanks.
I also have a hook to automatically add new org-files to the agenda, in
this way I don't forget anything.
Now there are 53 files in the agenda, and I guess it will become slow,
I'll have to find smarter solutions...

Thanks




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


[Orgmode] Re: Html and unreadable characters

2009-12-01 Thread andrea
Sebastian sebastian_r...@gmx.de writes:

 It seems you use a dark background color in emacs?

 If so, just adjust the CSS style `background-color' for your pre tags
 like this:


 pre, code.pre
 {
   background-color:black; /* or #33 ... */
   /* ... more styles here ... */
 }



Yes I am using a dark background, but normally I don't want to see html
output with a dark background.

I'd just like that the colors gets updated to a light color theme, is
that possible?

By the way how do I insert css properties?

I found in 12.6.7 the #+STYLE and the various things I can set, but not
where to insert them.

Simply pasting that in an org buffer and exporting to html doesn't work...



___
Emacs-orgmode 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: sreen : unable to run org-babel-screen-test

2009-12-01 Thread Benjamin Andresen
Hey,

bluedian blued...@gmail.com writes:

 Hi,

 With the last git version (updated by org-track 5 five minutes ago), I have
 still the same problem and the same error message.

I'm a bit at a loss with debugging this thing non-interactively. (Yeah I
know, after the first one was unsuccessful that's early to give up.)

But because it uses both the filesystem and GNU screen the error could
lie anywhere and not just in the emacs lisp code.

I will try and see if I can improve the test code by testing checking at
several stages if something has gone wrong, so that I will get a better
idea why and when things start to go awry.

 Regards,
 BlueDian

br,
benny

P.S. Could anyone that comes by this with GNU/Linux and GNU screen try
it out as well? I'm using this line to test the setup:
% emacs --batch -l orgloadpath_org-babel-screen-test.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


Re: [Android] Running debian + emacs on my Android G1 [was: [Orgmode] emacs + orgmode on Ubuntu on Android G1]

2009-12-01 Thread Friedrich Delgado Friedrichs
Ok, summary of my experiences so far:

Emacs runs nicely, but uses a lot of memory with org mode, and it's
hard to use the agenda and probably difficult to make it run much
faster.

Thus I'll only be using the local emacs on my android phone as a
fallback when I have no (fast) network access, otherwise I'll use it
via ssh on a much faster host.

 As using this via the small keyboard is still awkward, even with speed
 keys (let's face it: emacs just wasn't made for small keyboards), and
 because it's still going to be slow, even if I can optimize it a bit,
 I guess I'll still be going forward with my plans for integrating
 org-mode with Remember The Milk.

As a sideeffect of this experiment, I have my org mode set up in a way
that is much more convenient to use on a small keyboard, that way I
can use it via ssh (connectbot) quite comfortably now. (speed commands
and tag selection keys are especially handy)

 But now I'm really tempted to start using mutt as a mail client on the
 phone ;)
---Zitatende---

Now this is really off-topic, but mutt runs very well on the g1 ;)

-- 
Friedrich Delgado Friedrichs frie...@nomaden.org
 TauPan on Ircnet and Freenode ;)


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

2009-12-01 Thread Tim O'Callaghan
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.


___
Emacs-orgmode 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-babel-tangle tangles too much !

2009-12-01 Thread Nicolas Girard
Hi,
I can't get tangle to work the way I want.
Given a file f.org which contains

=
#+srcname: a
#+begin_src emacs-lisp
(a)
#+end_src

#+srcname: b
#+begin_src emacs-lisp
a
(b)
#+end_src
=

I would like (a) to appear only once in the tangled file f.el.
All I could get is, that either (a) appears twice (default behaviour),
or (a) doesn't appear at all when I append :tangle no to #+srcname:
a.

Any thoughts ?

-- 
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] org-babel-tangle tangles too much !

2009-12-01 Thread Thomas S. Dye

Hi Nicolas,

On Dec 1, 2009, at 4:54 AM, Nicolas Girard wrote:


Hi,
I can't get tangle to work the way I want.
Given a file f.org which contains

=
#+srcname: a
#+begin_src emacs-lisp
(a)
#+end_src

#+srcname: b
#+begin_src emacs-lisp
a
(b)
#+end_src
=

I would like (a) to appear only once in the tangled file f.el.
All I could get is, that either (a) appears twice (default behaviour),
or (a) doesn't appear at all when I append :tangle no to #+srcname:
a.

Any thoughts ?


Your code snippet doesn't tangle at all here.  Perhaps you have a  
setting somewhere that has an effect on tangling?


This one does tangle:

* Nicolas Girard
#+srcname: a
#+begin_src emacs-lisp
(a)
#+end_src

#+srcname: b
#+begin_src emacs-lisp :tangle test.el
a
(b)
#+end_src

It yields:

;; generated by org-babel-tangle
;; [[file:~/Public/projects/worg/Worg/babel-doc/test.org::*Nicolas 
%20Girard][b]]

(a)
(b)
;; b ends here

Is this what you're after?

HTH,
Tom


Thomas S. Dye, Ph.D.
T. S. Dye  Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.com


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


Re: [Orgmode] org-babel-tangle tangles too much !

2009-12-01 Thread Eric Schulte
Hi Nicolas,

At the moment org-babel believes that any time it sees a valid source
block name surrounded by  characters it is responsible for expanding
them.  Is there a reason that you are abusing this syntax?  It looks as
though you are trying to setup multiple levels of tangling like
org-babel - noweb - source.

If you can make a good case for why the behavior you describe should be
supported then we could try to add it behind something like a

#+srcname: b
#+begin_src emacs-lisp :noweb no
  a
  (b)
#+end_src

header argument, but at first blush the option seems to present too much
opportunity for confusion.  Maybe I'm missing something.

Thanks -- Eric

Nicolas Girard nicolas.gir...@nerim.net writes:

 Hi,
 I can't get tangle to work the way I want.
 Given a file f.org which contains

 =
 #+srcname: a
 #+begin_src emacs-lisp
 (a)
 #+end_src

 #+srcname: b
 #+begin_src emacs-lisp
 a
 (b)
 #+end_src
 =

 I would like (a) to appear only once in the tangled file f.el.
 All I could get is, that either (a) appears twice (default behaviour),
 or (a) doesn't appear at all when I append :tangle no to #+srcname:
 a.

 Any thoughts ?


___
Emacs-orgmode 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-babel-tangle tangles too much !

2009-12-01 Thread Dan Davison
Nicolas Girard nicolas.gir...@nerim.net writes:

 Hi,
 I can't get tangle to work the way I want.
...
 All I could get is, that either (a) appears twice (default behaviour),
 or (a) doesn't appear at all when I append :tangle no to #+srcname:
 a.

Hi Nicolas,

Note that all header arguments (including :tangle) get appended to
the #+begin_src line and *not* to the #+srcname line, although it is an
easy mistake to make.

Dan



 Any thoughts ?


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


[Orgmode] Re: org-babel-tangle tangles too much !

2009-12-01 Thread Nicolas Girard
On Tue, 01 Dec 2009 05:43:38 -1000, Thomas S. Dye wrote :

 Your code snippet doesn't tangle at all here.  Perhaps you have a
 setting somewhere that has an effect on tangling?


I'm intending my file (username.org) to be processed by Eric's
emacs-starter-kit during init (via org-babel-load-file I guess).

As none of the other starter-kit.org seemed to bother with :tangle
yes I didn't either.

On Tue, 01 Dec 2009 11:26:28 -0500, Dan Davison wrote :

 Note that all header arguments (including :tangle) get appended to
 the #+begin_src line and *not* to the #+srcname line, although it is
 an easy mistake to make.

Sure, I've been mistaken while posting my message but havent when
performing my tests. You're right that it's quite error prone.

On Tue, 01 Dec 2009 08:53:37 -0700, Eric Schulte wrote :
 #+srcname: b
 #+begin_src emacs-lisp :noweb no

I'm afraid I don't understand the meaning of the noweb option here,
or elsewhere in threads about org-babel. On [1] it can be read that
the org-babel-tangle function (...) makes use of Noweb reference
syntax for tangling of code files ; what it means to me is that
org-babel-tangle borrowed noweb's syntax but is completely independant
from it, am I wrong ?

[1] http://orgmode.org/worg/org-contrib/babel/org-babel.php#literate-programming

 If you can make a good case for why the behavior you describe should be
 supported then we could try to add it behind something like a
 (...)
 header argument, but at first blush the option seems to present too much
 opportunity for confusion.  Maybe I'm missing something.

I for sure must also be missing something ; hopefully the following
example will get things clarified to both of us:

Using your emacs-starter-kit, here's an excerpt of how I would like my
username.org to look like:

# begin username.org
* Publishing

** Default headers and document class

As for the default headers, the associated variable is
=org-export-latex-classes=. I choose to change its contents rather
than appending to it
#
#+begin_src emacs-lisp
(setq org-export-latex-classes '(
 org-export-memoir
 org-export-scrartcl
))
#+end_src

*** Configuration for the =memoir= class

#+srcname: org-export-memoir
#+begin_src emacs-lisp
  (memoir
  latex_header_memoir
  latex_header_sections)
#+end_src

#+srcname: latex_header_memoir
#+begin_src emacs-lisp
  \\documentclass[article,a4paper]{memoir}
  latex_header_common
  memoir_correct_article
  memoir_bug_chapapp
#+end_src

=memoir='s article option do not behave correctly with sections. Let's
correct this:
#
#+srcname: memoir_correct_article
#+begin_src emacs-lisp
\\let\\subsubsection\\subsection
\\let\\subsection\\section
\\let\\section\\chapter
#+end_src
#
#+srcname: memoir_bug_chapapp
#+begin_src emacs-lisp
\\makeatletter
\\renewcommand...@chapapp}{}
\\makeatother
#+end_src

*** Configuration for the =scrartcl= class

I've been using =memoir= for quite a long time ; but =scrartcl= is now
my default class
#
#+begin_src emacs-lisp
(setq org-export-latex-default-class article)
#+end_src
#
#+srcname: org-export-scrartcl
#+begin_src emacs-lisp
(article
\\documentclass{scrartcl}
latex_header_common

latex_header_sections
)
#+end_src

*** Common configuration

#+srcname: latex_header_common
#+begin_src emacs-lisp
\\usepackage{tikz}
\\RequirePackage{graphicx}
\\DeclareGraphicsExtensions{.pdf,.png,.jpg,.ps,.eps}
\\RequirePackage[T1]{fontenc}
header_common_lang
header_common_xelatex
header_common_fonts
#+end_src

(... and so on)
# end username.org

I expect both

- C-c C-e p to export username.org to username.pdf (this works
  already), and

- org-babel-tangle to generate a proper username.el (broken yet
  because code chunks get written twice).

Is my example clear enough ?

Cheers,
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] Re: org-babel-tangle tangles too much !

2009-12-01 Thread Thomas S. Dye

Hi Nicolas,

On Dec 1, 2009, at 7:55 AM, Nicolas Girard wrote:


On Tue, 01 Dec 2009 05:43:38 -1000, Thomas S. Dye wrote :


Your code snippet doesn't tangle at all here.  Perhaps you have a
setting somewhere that has an effect on tangling?



I'm intending my file (username.org) to be processed by Eric's
emacs-starter-kit during init (via org-babel-load-file I guess).

As none of the other starter-kit.org seemed to bother with :tangle
yes I didn't either.


That explains it.  I haven't explored the emacs starter kit yet, so  
I'll leave this to Eric or others.


The documentation of Org-babel is behind development now.  There is  
some work being done on this front, so manual help might be on the way  
before too long.


All the best,
Tom


Thomas S. Dye, Ph.D.
T. S. Dye  Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.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


[babel] Re: [Orgmode] Re: org-babel-tangle tangles too much !

2009-12-01 Thread Dan Davison
**thread participants: let's not forget to put [babel] in the subject line.**

Nicolas Girard nicolas.gir...@nerim.net writes:

 On Tue, 01 Dec 2009 05:43:38 -1000, Thomas S. Dye wrote :

 Your code snippet doesn't tangle at all here.  Perhaps you have a
 setting somewhere that has an effect on tangling?


 I'm intending my file (username.org) to be processed by Eric's
 emacs-starter-kit during init (via org-babel-load-file I guess).

 As none of the other starter-kit.org seemed to bother with :tangle
 yes I didn't either.

Hi Nicolas,

I just tried to do this and it seemed to work. Could you tell me if this
is similar to what you are doing, and if so whether it works for you? I
have an org file /tmp/ng.org:

-
* heading
#+srcname: a
#+begin_src emacs-lisp :tangle no
  (setq startup-var1 'startup-var1-value)
#+end_src

#+srcname: b
#+begin_src emacs-lisp
  a
  (setq startup-var2 'startup-var2-value)
#+end_src
-

and then I evaluated this

(org-babel-load-file /tmp/ng.org)

That resulted in /tmp/ng.el:

-
;; generated by org-babel-tangle
;; [[file:/tmp/ng.org::*heading][b]]
(setq startup-var1 'startup-var1-value)
(setq startup-var2 'startup-var2-value)
;; b ends here
-

And afterwards, the two startup-var* variables had their values set.

Does this help?

Dan


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


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

2009-12-01 Thread Richard KLINDA
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


[Orgmode] [PATCH] org-clock-select-task bugfix (XEmacs incompatibility)

2009-12-01 Thread Richard KLINDA
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


[Orgmode] Re: [babel] org-babel-tangle tangles too much !

2009-12-01 Thread Nicolas Girard
2009/12/1, Dan Davison davi...@stats.ox.ac.uk:
 **thread participants: let's not forget to put [babel] in the subject
 (...)

 and then I evaluated this

 (org-babel-load-file /tmp/ng.org)

 (...)
 Does this help?


Hi Dan,

yes, it does, thanks !
I was using org-babel-tangle or org-babel-tangle-file, instead of
org-babel-load-file...

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

2009-12-01 Thread Nicolas Girard
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
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 7509ba8..4c4d540 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2403,7 +2403,7 @@ INDENT was the original indentation of the block.
 	  (concat \n#+BEGIN_HTML\n (org-add-props rtn '(org-protected t)) \n#+END_HTML\n\n))
 	 ((eq backend 'latex)
 	  (setq rtn (org-export-number-lines rtn 'latex 0 0 num cont rpllbl fmt))
-	  (concat \n#+BEGIN_LaTeX\n
+	  (concat #+BEGIN_LaTeX\n
 		  (org-add-props
   (if org-export-latex-listings
   (concat
@@ -2423,7 +2423,7 @@ INDENT was the original indentation of the block.
 (concat (car org-export-latex-verbatim-wrap)
 rtn (cdr org-export-latex-verbatim-wrap)))
 			  '(org-protected t))
-		  #+END_LaTeX\n\n))
+		  #+END_LaTeX\n))
 	 ((eq backend 'ascii)
 	  ;; This is not HTML or LaTeX, so just make it an example.
 	  (setq rtn (org-export-number-lines rtn 'ascii 0 0 num cont rpllbl fmt))
___
Emacs-orgmode 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] LaTeX exporter should honor empty lines

2009-12-01 Thread Nicolas Girard
The following test file

#===
- A0
- B0
C0

- A1
- B1

  C1

- A2
- B2

C2

- A3
- B3


C3
#===

translates into

%===
\begin{itemize}
\item B0
\end{itemize}
C0

\begin{itemize}
\item A1
\item B1

  C1
\item A2
\item B2
\end{itemize}
C2

\begin{itemize}
\item A3
\item B3
\end{itemize}
C3
%===

While the output for C0 and C1 is correct, the following is expected
for C2 and C3:

%===
\item A2
\item B2
\end{itemize}

C2

\begin{itemize}
\item A3
\item B3
\end{itemize}


C3
%===

( I tried to fix this for a while but gave up, sorry :-/ )

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

2009-12-01 Thread Nicolas Girard
2009/12/1 Nicolas Girard nicolas.gir...@nerim.net:
 The following test file

 #===
 - A0
 - B0
 C0

 - A1
 - B1

  C1

 - A2
 - B2

 C2

 - A3
 - B3


 C3
 #===

 translates into

 %===
 \begin{itemize}
 \item B0
 \end{itemize}
 C0

 \begin{itemize}
 \item A1
 \item B1

  C1
 \item A2
 \item B2
 \end{itemize}
 C2


 While the output for C0 and C1 is correct

My bad, even the output for C1 is incorrect, it messes up with the
following list.


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

2009-12-01 Thread Keith Lancaster
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? Org-mode 
caused me to switch to emacs after programming for 30 years in other editors, 
and so like many emacs converts, I'm not wanting to exit the app :-).

TIA,
Keith Lancaster
klancaster1...@acm.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


[Orgmode] How to snooze a repeating item

2009-12-01 Thread Andrew M. Nuxoll
I've been using org-mode for four months now and I just love it.  So I 
think I'm post-newb but still very amateur.


Anyway, my to-do list has several repeating scheduled items like this 
contrived example:


* TODO [#B] Lunch date with Sarah at 12pm
 SCHEDULED: 2009-12-08 Tue +1w

Or, in English, I meet with Sarah for lunch once a week on Tuesdays.

Now, let's say that Sarah calls on Monday afternoon and says, Can we do 
lunch on Wednesday this week? and I say Sure thing.


Now I have a problem.  I could shift the date to Wednesday like this:

* TODO [#B] Lunch date with Sarah at 12pm
 SCHEDULED: 2009-12-09 Wed +1w

But that will mean that the following week it will *still* be scheduled 
for Wednesdays (specifically Dec 16 instead of Dec 15).  I miss my 
regular lunch date with Sarah and catch ire for standing her up.


How do I handle situations like this? 

It seems like I either need a time stamp stack or I need a temporary 
flag that self destructs after a prescribed time.


:AMN:



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


[Orgmode] Re: How to snooze a repeating item

2009-12-01 Thread Bernt Hansen
Andrew M. Nuxoll nux...@up.edu writes:

 I've been using org-mode for four months now and I just love it.  So I
 think I'm post-newb but still very amateur.

 Anyway, my to-do list has several repeating scheduled items like this
 contrived example:

 * TODO [#B] Lunch date with Sarah at 12pm
  SCHEDULED: 2009-12-08 Tue +1w

 Or, in English, I meet with Sarah for lunch once a week on Tuesdays.

 Now, let's say that Sarah calls on Monday afternoon and says, Can we
 do lunch on Wednesday this week? and I say Sure thing.

 Now I have a problem.  I could shift the date to Wednesday like this:

 * TODO [#B] Lunch date with Sarah at 12pm
  SCHEDULED: 2009-12-09 Wed +1w

 But that will mean that the following week it will *still* be
 scheduled for Wednesdays (specifically Dec 16 instead of Dec 15).  I
 miss my regular lunch date with Sarah and catch ire for standing her
 up.

 How do I handle situations like this? 

 It seems like I either need a time stamp stack or I need a temporary
 flag that self destructs after a prescribed time.

 :AMN:

I would probably clone the entry once and set it for Wednesday and let
the weekly repeater continue for next Tuesday.

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

2009-12-01 Thread Ben Finney
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?

I use Gnus for NNTP (e.g. for participating in this forum), and am
really liking it. I would dearly love to use Gnus for email too, and am
this →← close, but I have an interactive external program generating my
message signatures and I can't figure out how to get it working in Emacs
quite as easily as it does in Mutt.

-- 
 \   “… whoever claims any right that he is unwilling to accord to |
  `\ his fellow-men is dishonest and infamous.” —Robert G. |
_o__)   Ingersoll, _The Liberty of Man, Woman and Child_, 1877 |
Ben Finney



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


Re: [Orgmode] How to snooze a repeating item

2009-12-01 Thread Nick Dokos
Andrew M. Nuxoll nux...@up.edu wrote:

 I've been using org-mode for four months now and I just love it.  So I 
 think I'm post-newb but still very amateur.
 
 Anyway, my to-do list has several repeating scheduled items like this 
 contrived example:
 
 * TODO [#B] Lunch date with Sarah at 12pm
   SCHEDULED: 2009-12-08 Tue +1w
 
 Or, in English, I meet with Sarah for lunch once a week on Tuesdays.
 
 Now, let's say that Sarah calls on Monday afternoon and says, Can we do 
 lunch on Wednesday this week? and I say Sure thing.
 
 Now I have a problem.  I could shift the date to Wednesday like this:
 
 * TODO [#B] Lunch date with Sarah at 12pm
   SCHEDULED: 2009-12-09 Wed +1w
 
 But that will mean that the following week it will *still* be scheduled 
 for Wednesdays (specifically Dec 16 instead of Dec 15).  I miss my 
 regular lunch date with Sarah and catch ire for standing her up.
 
 How do I handle situations like this? 
 
 It seems like I either need a time stamp stack or I need a temporary 
 flag that self destructs after a prescribed time.
 
 :AMN:
 

If you are looking for an exclusively org solution, this won't satisfy.
But here's how I would do it:

o go to the agenda, move to the item and press RET to visit it.

o copy/paste the subtree (C-c C-x M-w and C-c C-x C-y).

o In one copy, advance the date by a week (to skip tomorrow's reminder).

o In the other, advance the date to Wed and delete the repeater.

HTH,
Nick

PS. To paraphrase Bernt: Repeat after me: It's just text.
Every time I start thinking of all kinds of Rube-Goldbergesque
solutions to simple problems, I whack myself on the head with
Bernt's reminder and my sanity is restored !-)


___
Emacs-orgmode 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-01 Thread Nick Dokos
Keith Lancaster klancaster1...@acm.org wrote:

 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? =
 Org-mode caused me to switch to emacs after programming for 30 years in =
 other editors, and so like many emacs converts, I'm not wanting to exit =
 the app :-).
 

I've used MH for more than 20 years and I have never been tempted by
anything else (I tried gnus/mutt/thunderbird and I still use them on
defective (i.e. non-mh capable :-)) machines - but I will stop using MH
only when they pry it from my cold, dead fingers). Of course, I use mh-e
as the emacs interface, but it's handy to have the underlying MH
programs available.

I use fetchmail to download my mail from a couple of different pop/imap
servers I use and store it locally on my laptop (where I also use mairix
to index it). So MH only has to read the local store. It can also do pop
with the appropriate incantation but it is fundamentally inconsistent
with imap (imap insists on storing mail on the server, whereas MH wants
it local). But I like the separation of concerns: fetchmail runs around
like crazy and downloads the mail from all the servers out there, using
all sorts of protocols; MH has only to worry about the local setup.

This is just my 2 cents and it's not worth much more than that either:
email is a very personal choice and finger memory is probably the most
important advantage of my solution, so it may be worse than useless for
you.

HTH,
Nick










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


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

2009-12-01 Thread Darlan Cavalcante Moreira

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 Cavalcante
  
At Tue, 1 Dec 2009 15:34:24 -0600,
Keith Lancaster klancaster1...@acm.org wrote:
 
 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? Org-mode 
 caused me to switch to emacs after programming for 30 years in other editors, 
 and so like many emacs converts, I'm not wanting to exit the app :-).
 
 TIA,
 Keith Lancaster
 klancaster1...@acm.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


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


Re: [Orgmode] How to snooze a repeating item

2009-12-01 Thread Darlan Cavalcante Moreira

That's what I would do too. Also, I suggest making this entry an habit with
org-habit to see if you like it.


At Tue, 01 Dec 2009 18:09:17 -0500,
Nick Dokos nicholas.do...@hp.com wrote:
 
 Andrew M. Nuxoll nux...@up.edu wrote:
 
  I've been using org-mode for four months now and I just love it.  So I 
  think I'm post-newb but still very amateur.
  
  Anyway, my to-do list has several repeating scheduled items like this 
  contrived example:
  
  * TODO [#B] Lunch date with Sarah at 12pm
SCHEDULED: 2009-12-08 Tue +1w
  
  Or, in English, I meet with Sarah for lunch once a week on Tuesdays.
  
  Now, let's say that Sarah calls on Monday afternoon and says, Can we do 
  lunch on Wednesday this week? and I say Sure thing.
  
  Now I have a problem.  I could shift the date to Wednesday like this:
  
  * TODO [#B] Lunch date with Sarah at 12pm
SCHEDULED: 2009-12-09 Wed +1w
  
  But that will mean that the following week it will *still* be scheduled 
  for Wednesdays (specifically Dec 16 instead of Dec 15).  I miss my 
  regular lunch date with Sarah and catch ire for standing her up.
  
  How do I handle situations like this? 
  
  It seems like I either need a time stamp stack or I need a temporary 
  flag that self destructs after a prescribed time.
  
  :AMN:
  
 
 If you are looking for an exclusively org solution, this won't satisfy.
 But here's how I would do it:
 
 o go to the agenda, move to the item and press RET to visit it.
 
 o copy/paste the subtree (C-c C-x M-w and C-c C-x C-y).
 
 o In one copy, advance the date by a week (to skip tomorrow's reminder).
 
 o In the other, advance the date to Wed and delete the repeater.
 
 HTH,
 Nick
 
 PS. To paraphrase Bernt: Repeat after me: It's just text.
 Every time I start thinking of all kinds of Rube-Goldbergesque
 solutions to simple problems, I whack myself on the head with
 Bernt's reminder and my sanity is restored !-)
 
 
 ___
 Emacs-orgmode 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]: function looking-back (XEmacs incompatibility)

2009-12-01 Thread Richard KLINDA
XEmacs and older Emacs (22 and below) don't have the function LOOKING-BACK.

I've found a definiton of it here: http://moinmo.in/EmacsForMoinMoin

,
| (or (fboundp 'looking-back)
| ; taken straight out of 
http://cvs.savannah.gnu.org/viewcvs/emacs/emacs/lisp/subr.el?rev=1.530view=auto
| (defun looking-back (regexp optional limit greedy)
|   Return non-nil if text before point matches regular expression REGEXP.
| Like `looking-at' except matches before point, and is slower.
| LIMIT if non-nil speeds up the search by specifying a minimum
| starting position, to avoid checking matches that would start
| before LIMIT.
| If GREEDY is non-nil, extend the match backwards as far as possible,
| stopping when a single additional previous character cannot be part
| of a match for REGEXP.
|   (let ((start (point))
| (pos
|  (save-excursion
|(and (re-search-backward (concat \\(?: regexp \\)\\=) 
limit t)
| (point)
| (if (and greedy pos)
| (save-restriction
|   (narrow-to-region (point-min) start)
|   (while (and ( pos (point-min))
|   (save-excursion
| (goto-char pos)
| (backward-char 1)
| (looking-at (concat \\(?:  regexp \\)\\'
| (setq pos (1- pos)))
|   (save-excursion
| (goto-char pos)
| (looking-at (concat \\(?:  regexp \\)\\')
| (not (null pos)
`

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

2009-12-01 Thread Matt Lundin
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? Org-mode caused me to switch to emacs after programming for 30
 years in other editors, and so like many emacs converts, I'm not
 wanting to exit the app :-).


Gnus here, though I'm eager to follow the development of notmuch.el.

For me, gnus is much more than a mail client. It is my everything and
the kitchen sink reader: mail, nntp, web/rss. Thanks to Carsten and
Tassilo's work, gnus integrates exceptionally well with org-mode

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

2009-12-01 Thread Keith Lancaster
Darlan Cavalcante Moreira darc...@gmail.com writes:

 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 Cavalcante
   

Thanks for all the responses! Looks like I have a bit of investigating
to do. Second try posting this from gnus...

Keith




___
Emacs-orgmode 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-01 Thread Henri-Paul Indiogine
I ended up choosing Gnus.  It is way to complex for me, but it is included in 
the standard Gnu Emacs distribution.  To add packets to Gnu Emacs is much more 
complicated than it should be.

For example, I would like to read html email in Gnus using w3m, but it seems 
that the latest version of emacs-w3m does not work with Emacs 23.  I am very 
happy that orgmode is included in Gnu Emacs and that it is fairly easy to 
update.

I am still learning Gnus, and I am starting to like it.

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] Re: How to snooze a repeating item

2009-12-01 Thread Andrew M. Nuxoll
This is what I have been doing...but it's not very elegant and 
potentially confusing when I encounter it later.  It also throws off my 
time management numbers.


Can anyone supply a better solution?

:AMN:

Bernt Hansen wrote:

I would probably clone the entry once and set it for Wednesday and let
the weekly repeater continue for next Tuesday.

HTH,
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] Properties and Property Drawers in HTML export

2009-12-01 Thread Rick Moynihan
Does anyone know if it's possible to export org-mode properties and
property drawers in a HTML export?

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: Properties and Property Drawers in HTML export

2009-12-01 Thread Rick Moynihan
2009/12/2 Rick Moynihan rick.moyni...@gmail.com:
 Does anyone know if it's possible to export org-mode properties and
 property drawers in a HTML export?

 R.

Ok, just discovered the :drawers option!

The documentation claims that supplying a list of properties allows
you to filter which ones are exported, however I can't get this
working... e.g. I've tried setting org-publish-project-alist to both:

:drawers (FOO BAR)

and:

:drawers '(FOO BAR)

Neither seem to work... any ideas?

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-01 Thread Dan Davison
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? Org-mode caused me to switch to emacs after programming for 30
 years in other editors, and so like many emacs converts, I'm not
 wanting to exit the app :-).

Also gnus. It's very nice once it's working and it's fine to get it set
up if you're good at that sort of thing or have a few spare weeks. The
manual is extremely comprehensive and pretty funny but basically
horrifying. The summary buffer containing news/emails will look awful to
start off with but it is possible to make it look nice (e.g. the
wikipedia screenshot) by configuring gnus-summary-line-format and (if
not in a terminal) by using non-ascii arrow characters to represent
threads e.g.

  (setq gnus-sum-thread-tree-vertical│)
  (setq gnus-sum-thread-tree-leaf-with-other ├─► )
  (setq gnus-sum-thread-tree-single-leaf ╰─► ))

Dan



 TIA,
 Keith Lancaster
 klancaster1...@acm.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


___
Emacs-orgmode 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-01 Thread Russell Adams
On Tue, Dec 01, 2009 at 09:15:27PM -0500, Dan Davison wrote:
 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? Org-mode caused me to switch to emacs after programming for 30
  years in other editors, and so like many emacs converts, I'm not
  wanting to exit the app :-).
 
 Also gnus. It's very nice once it's working and it's fine to get it set
 up if you're good at that sort of thing or have a few spare weeks. The
 manual is extremely comprehensive and pretty funny but basically
 horrifying. The summary buffer containing news/emails will look awful to
 start off with but it is possible to make it look nice (e.g. the
 wikipedia screenshot) by configuring gnus-summary-line-format and (if
 not in a terminal) by using non-ascii arrow characters to represent
 threads e.g.
 
   (setq gnus-sum-thread-tree-vertical???)
   (setq gnus-sum-thread-tree-leaf-with-other ? )
   (setq gnus-sum-thread-tree-single-leaf ? ))
 
 Dan

I'm suppose I'm still an exception here. I'm using Mutt, though I edit
outbound messages in emacs.

My email toolchain goes like this:

 - fetchmail downloads from several different servers
 - procmail sorts email into the proper inbox or other folder
   - I use maildir for backend storage, I gave up on mbox a long time ago
 - Mutt reads the email in all the various folders
 - Mutt automatically changes my email address depending on the
   recipient or folder according to a series of roles
 - Mutt spawns an emacsclient in order to edit an outgoing message
 - msmtp uses the from header to determine which mail server to use
   for outbound SMTP

Gnus, MH, Wanderlust, etc would only replace the Mutt portion, which
is really only reading the email and the roles support.

As a sidenote I have dovecot setup so that my maildir folders are
accessible to Thunderbird in Windows should I choose to access it
inside VMWare.

I'm open to using Emacs constantly, so whats the big draw for these
other mail modes?

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
Emacs-orgmode 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] URLs are not always linked properly

2009-12-01 Thread William Henney
On Mon, Nov 30, 2009 at 11:47 AM, Carsten Dominik
carsten.domi...@gmail.com wrote:

 On Nov 30, 2009, at 8:10 PM, PT wrote:

 For example, for this URL the bracketed part is not handled as part of the
 URL,
 though it should be:

 http://en.wikipedia.org/wiki/Lost_(TV_series)

 More often than not parenthesis are around a link, not part of it - this is
 why the plain link heuristics does not allow them.   Please surround such
 links with .. or [[..]]



Coincidentally, just last Friday John Gruber posted a regex that deals
nicely with these cases:

http://daringfireball.net/2009/11/liberal_regex_for_matching_urls

I think it is a perl-style regex, but perhaps it could be ported to
emacs regexes.

Cheers

Will


-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia


___
Emacs-orgmode 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]: function looking-back (XEmacs incompatibility)

2009-12-01 Thread Carsten Dominik

Hi RIchard,

this code is already (and has been for a few weeks) in org-compat.el

- Carsten

On Dec 2, 2009, at 1:37 AM, Richard KLINDA wrote:

XEmacs and older Emacs (22 and below) don't have the function  
LOOKING-BACK.


I've found a definiton of it here: http://moinmo.in/EmacsForMoinMoin

,
| (or (fboundp 'looking-back)
| ; taken straight out of 
http://cvs.savannah.gnu.org/viewcvs/emacs/emacs/lisp/subr.el?rev=1.530view=auto
| (defun looking-back (regexp optional limit greedy)
|   Return non-nil if text before point matches regular  
expression REGEXP.

| Like `looking-at' except matches before point, and is slower.
| LIMIT if non-nil speeds up the search by specifying a minimum
| starting position, to avoid checking matches that would start
| before LIMIT.
| If GREEDY is non-nil, extend the match backwards as far as possible,
| stopping when a single additional previous character cannot be part
| of a match for REGEXP.
|   (let ((start (point))
| (pos
|  (save-excursion
|(and (re-search-backward (concat \\(?: regexp \\) 
\\=) limit t)

| (point)
| (if (and greedy pos)
| (save-restriction
|   (narrow-to-region (point-min) start)
|   (while (and ( pos (point-min))
|   (save-excursion
| (goto-char pos)
| (backward-char 1)
| (looking-at (concat \\(?:  regexp \ 
\)\\'

| (setq pos (1- pos)))
|   (save-excursion
| (goto-char pos)
| (looking-at (concat \\(?:  regexp \\)\\')
| (not (null pos)
`

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


Re: [Orgmode] [PATCH] org-clock-select-task bugfix (XEmacs incompatibility)

2009-12-01 Thread Carsten Dominik

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





___
Emacs-orgmode 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] beamer columns

2009-12-01 Thread Carsten Dominik

Hi Darlan,

I have gone through a number of ideas for how to create columns
during the past few days.  I also already considered and ultimately
rejected the idea to use comments or other special syntax to create
columns.  I think this would be too specialistic.  It will work in
your case, where ou use a plain list on the frame - it will not work
in someone else' case where the items on the frame are also
headline or even headlines that become special environments
like proof or block or theorem.

But thanks for chiming in, and if there are more ideas I'd like
to hear them.

- Carsten


On Nov 30, 2009, at 11:00 PM, Darlan Cavalcante Moreira wrote:




Hello Carsten and all,

I have sent a suggestion in the beamer thread about using comments  
for columns,
but I didn't receive my own message from the mailing list (as  
usual). Therefore
I'm assuming no one else has received it and I'm going to repeat it  
here (sorry

if this is a duplicate).


The idea is using special comments to represent columns when  
exporting to beamer
(and maybe other formats). For instance, considering the frames are  
in the

third-level headings, a presentation could be like

,
| * This is a Section
| *** This is a Subsection
| * This is the frame title
|   Frame content
|
| * This is the frame title of another frame
| #+\{0.4
|   - This is an item
|   - This is an item too
| #+\\0.6
|   - Another item
|   - Another one
|   - One more item
| #+\}
`

The comment #+\{ indicates the beginning of a columns environment  
(maybe only
#+{ is better) in addition to the first column. The number 0.4  
indicates the
width of the first column (0.4\textwidth). The comment #+\\0.6  
creates another

column and the comment #+\} closes the columns environment.

I'm not saying this is the best way, but it has the advantage of  
being similar
to what we do in beamer (but simpler IMHO) and it would export  
without errors
for other formats. Maybe it is better to also implement it for  
standard latex
using minipages or something similar and to HTML, but if this is not  
desired
then the closing comment could be optional (the columns environment  
would then

end when the current slide ends).

With some org functions to mark, swap, etc., columns it could be  
easy to

reorganize the columns if desired.

Also, It would be nice if the width could be optional, i.e., if  
there are
columns whose widths were not specified then org could sum the  
widths that were
specified and distribute the remaining among the columns whose  
widths were not
specified. For instance, in a frame with 3 columns one could specify  
the width
of the first column as 0.4 and leave the others unspecified. Org  
should then

choose a width of 0.3 for each of the remaining two columns.


At last, thank you for the effort to implement native beamer support  
in org.

- Darlan Cavalcante


At Mon, 30 Nov 2009 13:44:27 +0100,
Carsten Dominik carsten.domi...@gmail.com wrote:



On Nov 29, 2009, at 11:17 PM, Thomas S. Dye wrote:



On Nov 29, 2009, at 11:23 AM, Carsten Dominik wrote:



On Nov 29, 2009, at 7:31 PM, Thomas S. Dye wrote:


Aloha all,

Would it make sense to implement Beamer columns with Org-mode
tables?


Hi Thomas,

I cannot see how this would make sense.

Maybe you'd like to elaborate?

- Carsten


Hi Carsten and Sebastian,

This idea might be nonsense or technically infeasible.  The
advantage, if it is one, is that the same org file might export to
LaTeX and Beamer with roughly similar results.  If headlines are
used below the level of the Beamer frame, then export to LaTeX
becomes problematic, or so it seems to me (and perhaps some others,
if I've read their posts correctly).   A column-like arrangement in
a portion of a LaTeX file is sometimes faked by using
\begin{tabular} \end{tabular}, and this naturally brought to mind
Org-mode tables.

Apologies if the signal/noise ratio is distressingly low here.



Hi Thomas, thanks for the extra explanations - however, I still don't
think that this is the way to go.

- Carsten



All the best,
Tom

Thomas S. Dye, Ph.D.
T. S. Dye  Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.com




- 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


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

2009-12-01 Thread Xavier Maillard
Le 01/12/2009 22:34, Keith Lancaster a écrit :
 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? Org-mode 
 caused me to switch to emacs after programming for 30 years in other editors, 
 and so like many emacs converts, I'm not wanting to exit the app :-).

I am using Rmail.

I have used all possible MUA for GNU Emacs on Earth but simplicity and
ease of use is really important to me.

- Gnus was and is still too heavy for my needs and it is full of useless
gadgets for me (threads, groups, posting style, ...).
- Wanderlust is nice too and really powerful (virtual folders was why I
chose it). I am now using wl exclusively for NNTP (which I do not
practice that much lately)
- MH and its emacs fronted is nice if you have time to learn how the
system is working (the learning curve is huge in my opinion). So sorry
since it is the one that I preferred.
- VM is more or less an enhanced rmail.

After several tries at all of them, rmail has still my preference:

- comes with official GNU Emacs distribution
- really simple
- no complex setup (thus not tempted to play with it)

My mail system is like that:

fetchmail - rmail. Full stop.

When I read an email either I answer to it if needed or it is deleted. I
no longer archive all and everything for years (for nothing). When I
archive something it is outside my way.

Xavier



___
Emacs-orgmode 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-01 Thread Gour
On Tue, 1 Dec 2009 20:56:08 -0600
 Russell == Russell Adams rlad...@adamsinfoserv.com wrote:


Russell I'm suppose I'm still an exception here. I'm using Mutt,
Russell though I edit outbound messages in emacs.

I used to use Gnus, but switched back to Claws so it's easier for my
other family members.

Russell 
Russell My email toolchain goes like this:
Russell 
Russell  - fetchmail downloads from several different servers
Russell  - procmail sorts email into the proper inbox or other folder
Russell- I use maildir for backend storage, I gave up on mbox a
Russell long time ago

I'm using getmail to fetch from different servers, maildrop to sort
and dovecot running on localhost so that has Claws access to all the
mail via IMAP (that's how I used it with Gnus as well), while
emacsclient is used as Claws' external editor.

I used Gnus for nntp  rss, but had too many problems with
unrecognised rss feeds and I had to pull news every 20mins or so due
to problems with Gnus -- Dovecot timeout-ing. Moreover, Gnus tends
to be slow and considering Emacs' single-threading, I went back to
Claws despite having desire to do almost-everything in Emacs.


Sincerely,
Gour

-- 

Gour  | Hlapicina, Croatia  | GPG key: F96FF5F6



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


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

2009-12-01 Thread Manuel Hermenegildo

I have used vm for a very long time (after using rmail for an even
longer time), and am reasonably happy with it: it manages mime and
attachments pretty well, specially in combination with w3m, handles
imap/pop well (although I use fetchmail), it is very fast in use, and
its virtual folder capabilities are extremely useful.  It also has a
mairix interface.  Hey, if we also had a good browser I would never
exit emacs... ;-) (*) I have also tried gnus but I find it a bit too
hard to configure and overall too complicated for the task.

Having said the above, I think an emacs mail reader based on modern
search and tags would be *fantastic*.  Notmuch looks very interesting!
(Although I have not had time yet to test it thoroughly.)

Manuel

(*) I use conkeror as external browser, which is the closest thing to
staying inside emacs. I also use w3m for quick stuff (e.g., within
vm), but it falls short on certain things.

-- 
---
 Manuel Hermenegildo | Prof., C.S.Dept., T.U. Madrid (UPM)
 Director, IMDEA Software and CLIP Group | +34-91-336-7435 (W) -352-4819 (Fax)
---



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

2009-12-01 Thread Ulf Stegemann
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