Re: [O] Re: Keep a file out of the mobile org org-mobile-files list

2011-03-07 Thread Bastien
Hi Marcelo,

Marcelo de Moraes Serpa celose...@gmail.com writes:

 Oh, disregard my message. Now I see it I needed to pull
 before... thanks!

Also note this variable expects a regular expression: 
reference.org is okay since it maches itself right,
but I just wanted to point this out, in case.

-- 
 Bastien



[O] RE: [Orgmode] [HOW] no way to escape vertical bar (pipe char) in tables?

2011-03-07 Thread Vladimir Alexiev
  what is the best way to manage
  leading/trailing spaces in a table cell?
 This i don't understand -- you want to *keep* the spaces
 in the exported table?

Not all spaces, but some spaces some of the time is needed.

The recent patch to org-babel-read by Erik Schulte makes this possible. See 
second sentence below:

If a value starts with one of ('` it is read as an emacs lisp sexp.
If it starts with  then it's read as a quoted string: start/end quotes are 
stripped, \ and \\ are unescaped
   (this is useful for embedding leading/trailing whitespace in strings).
If it looks like a number, it's read as a number.
Else it's read as a literal string, without any quotation or escaping.
(Please note that | in tables is always interpreted as column separator and 
currently there is no way to quote it)





Re: [O] Capture - stay clocked in?

2011-03-07 Thread Bastien
Hi Bernt,

Bernt Hansen be...@norang.ca writes:

 I think this change may have changed the default for
 non :immediate-finish capture tasks as well.

 I have the following template:

 (t todo entry
   (file ~/git/org/refile.org)
   * TODO %?\n%U\n%a\n :clock-in t :clock-resume t)

 and if the clock is not running when I start capture with this template
 it stays running afterwards.  I don't think this was the intended
 behaviour.

I see.  

My first idea was to implement a new template option :immediate-refile
(or a similar name).  :immediate-finish would stick to the old behavior
(no clocking allowed) and :immediate-refile would leave the clock open.

But I thought this was potentially confusing.

What about :clock-out t, explicitely telling org-capture-finalize to
clock out when?

-- 
 Bastien



[O] Re: [Orgmode] Capture question

2011-03-07 Thread Bastien
John Hendy jw.he...@gmail.com writes:

 Fantastic. That does it. When do things get pushed to the manual? Or
 is that an as-it's-spotted-it-gets-changed kind of thing? It's still
 the old way here:?http://orgmode.org/manual/Capture-templates.html#
 Capture-templates

Very soon actually :)

-- 
 Bastien



Re: [O] RE: [Orgmode] [HOW] no way to escape vertical bar (pipe char) in tables?

2011-03-07 Thread Bastien
Vladimir Alexiev vladi...@sirma.bg writes:

  what is the best way to manage
  leading/trailing spaces in a table cell?
 This i don't understand -- you want to *keep* the spaces
 in the exported table?

 Not all spaces, but some spaces some of the time is needed.

 The recent patch to org-babel-read by Erik Schulte makes this
 possible. 

Good, thanks for letting us know!

-- 
 Bastien



Re: [O] [Orgmode] Babel sql code block issue and patch proposal

2011-03-07 Thread Alain Clément
Hi Eric,
Thanks for your message and sorry for the delay.
Actually, escaping characters with backslashes is the problem within mysql
when the =SOURCE= command is invoqued. To believe the forums, it seems that
this difficulty is well known among mysql users. The suggested solution
there consists in piping the file content via the standard input of the
mysql command instead of making use of the =SOURCE= command. In other words,
let the shell do the job of finding the file as mysql can't. My initial
suggestion for a patch relies on this conclusion and seems to work well. Now
it's time to stop my own advertising and ask you about the cons of such a
patch.
Best regards and thank you again.
- Alain

2011/3/3 Eric Schulte schulte.e...@gmail.com

 Hi Alain,

 Would the following work (escaping -s with a backslash)?

 #+begin_src diff
   diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el
   index 364070e..838f013 100644
   --- a/lisp/ob-sql.el
  +++ b/lisp/ob-sql.el
   @@ -73,7 +73,9 @@ This function is called by
 `org-babel-execute-src-block'.
 (org-babel-process-file-name
 out-file)))
   ('mysql (format mysql %s -e \source %s\  %s
   (or cmdline )
  - (org-babel-process-file-name in-file)
   + (replace-regexp-in-string
  +  \\- -
  +  (org-babel-process-file-name in-file))
   (org-babel-process-file-name
 out-file)))
   ('postgresql (format
psql -A -P footer=off -F \\t\  -f %s
 -o %s %s
 #+end_src

 Best -- Eric

 Alain Clément alain.clem...@unil.ch writes:

  Hi Eric,
 
  Thanks for your prompt answer! Actually, it doesn't work since mysql
 interprets backslashes as options, even between quotes. The value of my
  `org-babel-temporary-directory' is
 /var/folders/9E/9EMu+g0oHBSrq-h9sX6i1U+++TM/-Tmp-/babel-86766893, but
 +'s are escaped with a backslash at some stage.
 
  Thanks,
  - Alain
 
  2011/3/3 Eric Schulte schulte.e...@gmail.com
 
  Hi Alain,
 
  Does the following alternative fix work for you?
 
  #+begin_src diffbr
   Changes in HEADbr
   Modified lisp/ob-sql.elbr
   diff --git a/lisp/ob-sql.el b/lisp/ob-sql.elbr
   index 364070e..604d444 100644br
   --- a/lisp/ob-sql.elbr
   +++ b/lisp/ob-sql.elbr
   @@ -71,7 +71,7 @@ This function is called by
 `org-babel-execute-src-block#39;.quot;br
  (or cmdline quot;quot;)br
  (org-babel-process-file-name in-file)br
  (org-babel-process-file-name out-file)))br
   -  (#39;mysql (format quot;mysql %s -e \quot;source %s\quot;
 gt; %squot;br
   +  (#39;mysql (format quot;mysql %s -e #39;source %s#39;
 gt; %squot;br
  (or cmdline quot;quot;)br
 (org-babel-process-file-name in-file)br
 (org-babel-process-file-name out-file)))br
  #+end_srcbr
  Also, just out of curiosity would you mind sharing an example result of
  `org-babel-temporary-directory' which contains backslashes?
 
  Thanks -- Eric
 
  Alain Cl?ment alain.clem...@unil.ch writes:
 
  Hi everyone,
 
  The =org-babel-temp-file= string seems to be escaped with backslashes on
  some platforms (like MacOSX), which is not very appreciated by the
 =mysql
  -e= command. I suggest the following patch for =ob-sql.el= (Org-mode
 Version
  7.4 (release_7.4.590.g85d4d)):
 
  74c74
   ? ? ? ? ? ? ? ? ? ? ('mysql (format mysql %s  %s  %s
  ---
  ? ? ? ? ? ? ? ? ? ? ('mysql (format mysql %s -e \source %s\  %s
 
  Best regards,
  -- Alain
 
  --
 
 
 
  Alain Cl?ment
  Dr ?s sc. math?matiques
 
  Universit? de Lausanne
  Quartier UNIL-Centre
  B?timent Unicentre
  Bureau 339
  CH-1015 Lausanne
 
  T. +41 21 692 20 36 (direct)
  T. +41 21 692 20 60 (secr?tariat)
 
  alain.clem...@unil.ch
 
  --
 
  [lo_unil05_bleu]
 
  Alain Cl?ment
  Dr ?s sc. math?matiques
 
  Universit? de Lausanne
  Quartier UNIL-Centre
  B?timent Unicentre
  Bureau 339
  CH-1015 Lausanne
 
  T. +41 21 692 20 36 (direct)
  T. +41 21 692 20 60 (secr?tariat)
 
  alain.clem...@unil.ch




-- 



Alain Clément
Dr ès sc. mathématiques

Université de Lausanne
Quartier UNIL-Centre
Bâtiment Unicentre
Bureau 339
CH-1015 Lausanne

T. +41 21 692 20 36 (direct)
T. +41 21 692 20 60 (secrétariat)

alain.clem...@unil.ch


Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread Lawrence Mitchell
Thomas S. Dye wrote:

[...]

 ,
 |   * section
 |   #+latex: \label{sec:sec}
 `

 But there /must/ be a better way to this, eh?

 Good point.  It would be great to leverage Org-links to resolve cross
 references to document sections.

If you do:

(setq org-export-latex-hyperref-format \\ref{%s}) then you can
refer to sections by their numbers with as we see in section
[[section]] and it works nicely.


-- 
Lawrence Mitchell we...@gmx.li




[O] Re: [Babel] Handling of errors when using Ledger

2011-03-07 Thread Eric S Fraga
Dan Davison dandavis...@gmail.com writes:

 Hi Eric, Seb and any other ledger users,

 Is anyone using a version of ledger that does not support reading from
 stdin with -f - ?

 Thanks,

 Dan

Thanks for the reminder!  I had forgotten about the new version of
ledger.  Apologies for not checking it out as I had promised.  It's been
a very hectic time since Christmas...  :(

In any case, it turns out that ledger v2.6.2, which I believe is now in
Debian stable, does allow the =-f -= argument despite the documentation
not stating this.  So, for me at least, I am indeed using a version of
ledger that supports this.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.646.g57806)



Re: [O] Re: [Orgmode] Grouping clock report by tag?

2011-03-07 Thread Giovanni Ridolfi
John Hendy jw.he...@gmail.com writes:

 Sorry -- forgot the list...

 On Sun, Mar 6, 2011 at 12:06 PM, John Hendy jw.he...@gmail.com wrote:

 On Sun, Mar 6, 2011 at 11:42 AM, Bastien b...@altern.org wrote:

 John Hendy jw.he...@gmail.com writes:

  How about a clock table with a :tag: column and an option to sort by
  common tag? 

The idea has been already suggested, with patches, but I think the patches
got lost during the FSF copyright assignment

1. by Adam Elliott, see:

  On Feb 23, 2010, at 8:13 AM, Adam Elliott wrote:
  http://thread.gmane.org/gmane.emacs.orgmode/22526

2. And also by B Grobauer, with a huge patch
   Sun, 20 Jun 2010 12:24:44 +0200
   http://lists.gnu.org/archive/html/emacs-orgmode/2010-06/msg00536.html

If Bastien is going to implement this feature, I ask again[1]: 
-
  Is it possible to check also for properies 
  and not only for tag?

  we can add a special PROPERTY: CLOCKTAG

Rationale:
In my setup I have a remember template where I write the task I'm doing.
with some information e.g.:

** reading bibliography
   CLOCK: [2010-06-21 lun 09:24]
  :PROPERTIES:
  :ID: lab
  :Type:expected
  :People: Giovanni
  :Location: computer
  :Connection: nil
  :CLOCKTAG:PV Project
  :Comment:  
  :END:

If the function checks also the :PROPERTIES: drawer and the existence of
the special PROPERTY: CLOCKTAG I can keep my setup and exploit this
marvellous new feature.

[1] http://lists.gnu.org/archive/html/emacs-orgmode/2010-06/msg00554.html
---

Another method could be to use the clock report from agenda R
Date:   Wed, 27 Oct 2010 12:29:25 -0400
(Sebastien Vauban)
http://lists.gnu.org/archive/html/emacs-orgmode/2010-10/msg01494.html


cheers,
Giovanni



[O] Re: [Orgmode] Possible Calc support for Org-Babel?

2011-03-07 Thread Eric S Fraga
Eric Schulte schulte.e...@gmail.com writes:


[...]

 Alright, I've made two changes, first, it is now possible to pass elisp
 vectors through to code blocks, e.g.,

 #+begin_src emacs-lisp :var data=[1 2 3]
   (elt data 1)
 #+end_src
 #+results:
 : 2

 Second, I've added a slightly hackey but seemingly necessary
 post-processing step to a call to calc-eval in ob-calc to remove quotes
 from vectors.  This allows vector processing to take place---at least as
 far as my limited calc knowledge is concerned.  For example;

 #+begin_src calc :var y=[1 2 3]
   3 y
 #+end_src
 #+results:
 : [3, 6, 9]

 Hope this helps -- Cheers -- Eric

Indeed. Works very well.  Thanks!

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.646.g57806)



Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread Eric S Fraga
Rasmus rasmus.p...@gmail.com writes:

[...]

 Org populates every section with a label. I would
 like to \ref or \vref these. I could predict \label's, but this a rather
 fragile solution. When I use Org-links I get a text link suitable
 for e.g. html. I want to use \ref to get a number. One solution is

 ,
 |   * section
 |   #+latex: \label{sec:sec}
 `

 But there /must/ be a better way to this, eh?

Slightly simpler: you can simply use \label{} and \ref{} directly in org
text:

--8---cut here---start-8---
* Introduction \label{sec:intro}

In section \ref{sec:intro}, we see that...
--8---cut here---end---8---

Much cleaner than having to put in latex directives to org.
Obviously, the label need not be on the headline; it could just as well
be on the next line.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.646.g57806)



Re: [O] Capture - stay clocked in?

2011-03-07 Thread Giovanni Ridolfi
Bastien b...@altern.org writes:


 What about :clock-out t, explicitely telling org-capture-finalize to
 clock out when?

Oh, yes, please[1]!

cheers,
Giovanni

[1] http://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg00099.html



Re: [O] Capture - stay clocked in?

2011-03-07 Thread Bastien
Hi Bernt,

Bernt Hansen be...@norang.ca writes:

 I think this change may have changed the default for
 non :immediate-finish capture tasks as well.

I finally introduced a new template option :no-clock-out which, 
when set to t, will prevent the clocking-out when filing an entry.

This way the old behavior is kept, it shouldn't break current
configuration.

Thanks for bringing this up!

Best,

-- 
 Bastien



Re: [O] exporting tables ignores empty lines in the tables

2011-03-07 Thread Eric S Fraga
Bastien b...@altern.org writes:

 Hi Eric,

 Eric S Fraga e.fr...@ucl.ac.uk writes:

 I have searched for a variable that may affect the following behaviour
 but have not found one.  

 You can now use `org-export-table-remove-empty-lines'.

Works like a charm!  Many thanks.

 Note that :remove-nil-lines was already available when sending 
 tables trough #+ORGTBL.

I have never used #+ORGTBL.  Thanks for the heads up.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.646.g57806)



[O] [PATCH] Allow using a custom function for Bulk actions

2011-03-07 Thread Puneeth Chaganti
Hi,

Here's a patch that allows choosing or specifying any arbitrary
function to be used for Bulk actions from agenda view.

From d997a0bb5c399d203059fb5e60db630eab95e003 Mon Sep 17 00:00:00 2001
From: Puneeth Chaganti puncha...@gmail.com
Date: Mon, 7 Mar 2011 15:54:20 +0530
Subject: [PATCH] org-agenda: Allow specifying a function for bulk action

* lisp/org-agenda.el: (org-agenda-bulk-action) A function can be
specified, to be used for bulk action on marked items.
---
 lisp/org-agenda.el |7 ++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index e6afbb0..0297d36 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7969,7 +7969,7 @@ The prefix arg is passed through to the command
if possible.
   (interactive P)
   (unless org-agenda-bulk-marked-entries
 (error No entries are marked))
-  (message Bulk: [r]efile [$]arch [A]rch-sib [t]odo [+/-]tag [s]chd
[S]catter [d]eadline)
+  (message Bulk: [r]efile [$]arch [A]rch-sib [t]odo [+/-]tag [s]chd
[S]catter [d]eadline [f]unction)
   (let* ((action (read-char-exclusive))
 (org-log-refile (if org-log-refile 'time nil))
 (entries (reverse org-agenda-bulk-marked-entries))
@@ -8059,6 +8059,11 @@ The prefix arg is passed through to the command
if possible.
   (org-agenda-date-later distance)
 (error nil)))

+ ((equal action ?f)
+  (setq cmd (list (intern
+  (org-icompleting-read Function: 
+obarray 'fboundp t nil nil)
+
  (t (error Invalid bulk action)))

 ;; Sort the markers, to make sure that parents are handled before children
-- 
1.7.4.1

-- 
Puneeth
From d997a0bb5c399d203059fb5e60db630eab95e003 Mon Sep 17 00:00:00 2001
From: Puneeth Chaganti puncha...@gmail.com
Date: Mon, 7 Mar 2011 15:54:20 +0530
Subject: [PATCH] org-agenda: Allow specifying a function for bulk action

* lisp/org-agenda.el: (org-agenda-bulk-action) A function can be
specified, to be used for bulk action on marked items.
---
 lisp/org-agenda.el |7 ++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index e6afbb0..0297d36 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7969,7 +7969,7 @@ The prefix arg is passed through to the command if possible.
   (interactive P)
   (unless org-agenda-bulk-marked-entries
 (error No entries are marked))
-  (message Bulk: [r]efile [$]arch [A]rch-sib [t]odo [+/-]tag [s]chd [S]catter [d]eadline)
+  (message Bulk: [r]efile [$]arch [A]rch-sib [t]odo [+/-]tag [s]chd [S]catter [d]eadline [f]unction)
   (let* ((action (read-char-exclusive))
 	 (org-log-refile (if org-log-refile 'time nil))
 	 (entries (reverse org-agenda-bulk-marked-entries))
@@ -8059,6 +8059,11 @@ The prefix arg is passed through to the command if possible.
 		   (org-agenda-date-later distance)
 		 (error nil)))
 
+ ((equal action ?f)
+  (setq cmd (list (intern 
+		   (org-icompleting-read Function: 
+	 obarray 'fboundp t nil nil)
+
  (t (error Invalid bulk action)))
 
 ;; Sort the markers, to make sure that parents are handled before children
-- 
1.7.4.1



Re: [O] Capture - stay clocked in?

2011-03-07 Thread Bastien
Hi Giovanni,

Giovanni Ridolfi giovanni.rido...@yahoo.it writes:

 Bastien b...@altern.org writes:


 What about :clock-out t, explicitely telling org-capture-finalize to
 clock out when?

 Oh, yes, please[1]!

See my previous message -- I used :no-clock-out to stick to the default
behavior and avoid users to have to change their config.  Let me know if
this is okay for you!

Thanks,

-- 
 Bastien



Re: [O] org-crypt.el security problem (From: Milan Zamazal)

2011-03-07 Thread Julien Danjou
On Sun, Mar 06 2011, Bastien wrote:

 What I can also suggest is to never show the encrypted block in the Org
 buffer.

 I agree this would be better.

 This is what I do in my configuration: on Org file loading, I decrypt
 all entries. Therefore I never see the GPG block. When I save,
 everything is encrypted, written, and then re-decrypted.

 Can you share your config?

NO WAY!

But here it is:

#+begin_src emacs-listp
(org-crypt-use-before-save-magic)
(defun jd:org-decrypt-everything-silently ()
  (let ((m (buffer-modified-p)))
(org-decrypt-entries)
(unless m
  (set-buffer-modified-p nil
(add-hook 'org-mode-hook 'jd:org-decrypt-everything-silently)
(add-hook 'org-mode-hook (lambda ()
   (add-hook 'after-save-hook 
'jd:org-decrypt-everything-silently)))
#+end_src

- Loading org-mode on a file decrypt everything;
- Saving encrypt everything (org-crypt-use-before-save-magic adds this);
- After-saving we re-decrypt.

Using this method with auto-save-hook should be possible.

 I see: auto-save-hook would encrypt, write to ~/.#file# then decrypt the
 original buffer back again -- yes?

Yup.

-- 
Julien Danjou
❱ http://julien.danjou.info


pgpBtB6nbXOtp.pgp
Description: PGP signature


Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread Rasmus Pank Roulund

 (setq org-export-latex-hyperref-format \\ref{%s}) then you can
 refer to sections by their numbers with as we see in section
 [[section]] and it works nicely.

Wow; it works! Lawrence, in your experience, how fragile is this? The
bliss of LaTeX labels is that they are independent of the printed
headings so I can change the title and retain a sensible \ref.

Eric, thanks for your point. I still think it less than ideal, as
illustrate by this snip.

,
| \section{Introduction}
| \label{sec-1}
|
| \label{sec:into}
`

Org has a /really/ bad habit of inserting blank lines! Here is an
example of a fix from a beamer presentation:

,
| *** Stiglitz  :B_quotation:
| :PROPERTIES:
| :BEAMER_env: quotation
| :END:
| \noindent
| Social capital is a concept with a short and already confused history.
| #+latex:  \\\hfill\citep[pp. 59]{stiglitz99}
`

And the output:

,
| \begin{quotation} % Stiglitz
| \label{sec-2_1_1}
|
| \noindent
| Social capital is a concept with a short and already confused history.
| \\\hfill\citep[pp. 59]{stiglitz99}
| \end{quotation}
`

--
Thanks,
Rasmus



Re: [O] [Org-contacts] 3 2 1 go?

2011-03-07 Thread Andrea Crotti
About the script used to import from AddressBook.app, I update it here
https://github.com/AndreaCrotti/scripts/blob/master/contacts_to_org.py

Now it creates as many contacts for the name as many as the email
addresses.
One thing I haven't found in fact is how to support multiple emails, is
that too hard to do?

Anyway in general I think I will use the VCF exported data instead, also
because contacts is not very smart itself and a bit annoying to fetch
all the single fields.

A simple import mechanism (from csv for example) might be good to have
directly inside org-contacts.el, what do you think?



Re: [O] [Org-contacts] 3 2 1 go?

2011-03-07 Thread Julien Danjou
On Sat, Mar 05 2011, Andrea Crotti wrote:

 Because I would really like to have a complete address book support from
 the command-line/Emacs to get rid of the stupid osx AddressBook.app, but
 it doesn't look that the purpose is this, right?

You can set any properties anyway. Org-contacts just use some of them.

For example I use LOCATION as a property to store my contacts' home
addresses, which I usually set using C-c M-L provided by
org-google-maps[1].

Just say out loud what you'd like to do, I'll try to answer or write
code. :)

[1]  http://julien.danjou.info/google-maps-el.html

-- 
Julien Danjou
❱ http://julien.danjou.info


pgplOUN0uz6hq.pgp
Description: PGP signature


Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread Eric S Fraga
Rasmus Pank Roulund rasmus.p...@gmail.com writes:

 (setq org-export-latex-hyperref-format \\ref{%s}) then you can
 refer to sections by their numbers with as we see in section
 [[section]] and it works nicely.

 Wow; it works! Lawrence, in your experience, how fragile is this? The
 bliss of LaTeX labels is that they are independent of the printed
 headings so I can change the title and retain a sensible \ref.

 Eric, thanks for your point. I still think it less than ideal, as
 illustrate by this snip.

 ,
 | \section{Introduction}
 | \label{sec-1}
 |
 | \label{sec:into}
 `

 Org has a /really/ bad habit of inserting blank lines! 

But Latex doesn't care?  =sec:into= will still be fine so I don't see
why this is not suitable *and* it is not fragile as far as I can tell.
I've used this approach for a long time.

 Here is an
 example of a fix from a beamer presentation:

 ,
 | *** Stiglitz
 :B_quotation:
 | :PROPERTIES:
 | :BEAMER_env: quotation
 | :END:
 | \noindent
 | Social capital is a concept with a short and already confused history.
 | #+latex:  \\\hfill\citep[pp. 59]{stiglitz99}
 `

 And the output:

 ,
 | \begin{quotation} % Stiglitz
 | \label{sec-2_1_1}
 |
 | \noindent
 | Social capital is a concept with a short and already confused history.
 | \\\hfill\citep[pp. 59]{stiglitz99}
 | \end{quotation}
 `

 --
 Thanks,
 Rasmus

I am not sure what point you are trying to make in this case?  In any
case, you could have done:

--8---cut here---start-8---
*** Stiglitz:B_quotation:
 :PROPERTIES:
 :BEAMER_env: quotation
 :END:
 \noindent
 Social capital is a concept with a short and already confused history.
 \\\hfill\citep[pp. 59]{stiglitz99}
--8---cut here---end---8---

(i.e. no need for the #+latex directive...)

Org is smart enough to export that last line properly (well, I have just
tried it and it exports fine).

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.580.g85729.dirty)



Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread Rasmus Pank Roulund

Hi,


But Latex doesn't care?  =sec:into= will still be fine so I don't see
why this is not suitable *and* it is not fragile as far as I can tell.
I've used this approach for a long time.
No, using \label's is never fragile! The /only/ theoretical possibility 
is that the \label is placed on a new page, but this would only be an 
issue in perverse cases as vanilla-LaTeX would not place a heading alone 
(i.e. just before a page break). It is an aesthetic issue. I can't help 
my scrutinizing of the .tex-output :)


 beamer quote

I am not sure what point you are trying to make in this case?
It inserts a blank line which will cause the text to be indented. So I 
need to add a \noindent to avoid the indent. I never asked for a blank 
line. I apologize for obscurity.



(i.e. no need for the #+latex directive...)


I know. I a later quote in the same document I actually didn't use it, 
so my best guess is that it was an experiment to see whether there were 
any differences.


Thanks,
Rasmus

PS: I might go to UCL next semester. I haven't decided yet.



Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread suvayu ali
Hi,

On Mon, Mar 7, 2011 at 4:10 AM, Rasmus Pank Roulund
rasmus.p...@gmail.com wrote:

 I am not sure what point you are trying to make in this case?

 It inserts a blank line which will cause the text to be indented. So I need
 to add a \noindent to avoid the indent. I never asked for a blank line. I
 apologize for obscurity.

I think what Eric is asking is why does the empty line matter?

The way I see it using org to write latex documents (ideally) means I
don't need to look at the latex source at all! All I need to do is
call `C-c C-e p' and I get a publication quality pdf. But of course
that is not always the case when we start out with a document, but as
we approach completion I would expect to reach that ideal state.
Isn't that how you view it?

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Capture - stay clocked in?

2011-03-07 Thread Bernt Hansen
Bastien b...@altern.org writes:

 Bernt Hansen be...@norang.ca writes:

 I think this change may have changed the default for
 non :immediate-finish capture tasks as well.

 I finally introduced a new template option :no-clock-out which, 
 when set to t, will prevent the clocking-out when filing an entry.

 This way the old behavior is kept, it shouldn't break current
 configuration.

 Thanks for bringing this up!

Hi Bastien,

Thanks, I'll check this out today and report back if I notice any
issues.

Regards,
-- 
Bernt



Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread Rasmus Pank Roulund



I think what Eric is asking is why does the empty line matter?  I just

realize that the undesirable behavior is caused by the fact that the
quotation rather than the quote environment is used. Sorry for the
noise!


All I need to do is call `C-c C-e p' and I get a publication quality
pdf. But of course that is not always the case when we start out with
a document, but as we approach completion I would expect to reach that
ideal state.  Isn't that how you view it?


Sure, but when undesirable results are obtained I will go to the LaTeX
code since I can determine the problem in the LaTeX code.

I am in no way unthankful. Rather, I try to share criticism that might
be useful in improving the exporter, such as not being able to demand
ordinary space rather than full stop after 'e.g.'. On the other hand, it
may be that I just add noise :)

Thanks,
Rasmus



Re: [O] Capture - stay clocked in?

2011-03-07 Thread Carsten Dominik

On Mar 7, 2011, at 11:26 AM, Bastien wrote:

 Hi Giovanni,
 
 Giovanni Ridolfi giovanni.rido...@yahoo.it writes:
 
 Bastien b...@altern.org writes:
 
 
 What about :clock-out t, explicitely telling org-capture-finalize to
 clock out when?
 
 Oh, yes, please[1]!
 
 See my previous message -- I used :no-clock-out to stick to the default
 behavior and avoid users to have to change their config.  Let me know if
 this is okay for you!

I like this decision, because of the templates is asked to clock
in, it seems natural for me that it will clock out when it is done.

This only suggestion I would have is it maybe call the property
:clock-keep-running.  No sure though.

Also, this new property, when set, does not allow :clock-resume,
I have not checked if something bad would happen should a user
give both by accident.

Kind regards

- Carsten



Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread Suvayu Ali
Hi Rasmus

On Mon, 07 Mar 2011 13:49:02 +0100
Rasmus Pank Roulund rasmus.p...@gmail.com wrote:

 I am in no way unthankful. Rather, I try to share criticism that might
 be useful in improving the exporter, such as not being able to demand
 ordinary space rather than full stop after 'e.g.'. On the other hand,
 it may be that I just add noise :)
 

I am just an org-mode user and one thing I can say for sure the
developers always welcome criticism.

FWIW, I also recently had the need for 'e.g.' followed by an ordinary
space but then I decided against using it as it loses the formality
required in my case (writing a master's thesis) :).

 Thanks,
 Rasmus


-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Capture - stay clocked in?

2011-03-07 Thread Bernt Hansen
Carsten Dominik carsten.domi...@gmail.com writes:

 On Mar 7, 2011, at 11:26 AM, Bastien wrote:

 Hi Giovanni,
 
 Giovanni Ridolfi giovanni.rido...@yahoo.it writes:
 
 Bastien b...@altern.org writes:
 
 
 What about :clock-out t, explicitely telling org-capture-finalize to
 clock out when?
 
 Oh, yes, please[1]!
 
 See my previous message -- I used :no-clock-out to stick to the default
 behavior and avoid users to have to change their config.  Let me know if
 this is okay for you!

 I like this decision, because of the templates is asked to clock
 in, it seems natural for me that it will clock out when it is done.

 This only suggestion I would have is it maybe call the property
 :clock-keep-running.  No sure though.

 Also, this new property, when set, does not allow :clock-resume,
 I have not checked if something bad would happen should a user
 give both by accident.

This probably needs to be explicitly documented on what the behaviour
is.  I think it could easily go both ways - :no-clock-out would be true
whether you resume the clock or not so we need to state what the
behaviour is explicitly.

If it doesn't make sense to have both :no-clock-out and :clock-resume
then maybe the code could check for that and issue an error/warning
when the template is selected?

Maybe use :clock-keep instead of :no-clock-out (to indicate that we keep
the clock running in this capture task?) and state that if you
use :clock-keep then :clock-resume is ignored.

I'm not sure what wording is best for this property.

Regards,
-- 
Bernt



Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread Lawrence Mitchell
Rasmus wrote:

 However, I have noticed at least one non-acceptable issue. When using
 using English, LaTeX (via Babel or just default) full-stops (≈double
 space) will be inserted after dots. However, with abbrevation one would
 use an ordinary space (i.e.\ an escaped space (\ ) in LaTeX). Org does
 not seem to notice abbrivations—how could it?—and further \  is
 interpreted literaly. I need to have an escaped space.

(setq org-entities-user '((space \\  nil)))

then

this is some text, e.g.\space foo bar

=

this is some text, e.g.\  foo bar

[...]

Lawrence
-- 
Lawrence Mitchell we...@gmx.li




Re: [O] Capture - stay clocked in?

2011-03-07 Thread Bastien
Hi Bernt,

Bernt Hansen be...@norang.ca writes:

 If it doesn't make sense to have both :no-clock-out and :clock-resume
 then maybe the code could check for that and issue an error/warning
 when the template is selected?

Done.

 Maybe use :clock-keep instead of :no-clock-out (to indicate that we keep
 the clock running in this capture task?) and state that if you
 use :clock-keep then :clock-resume is ignored.

I find :clock-keep to be the better choice here, I took this one.

Thanks for the feedback and the ideas!

-- 
 Bastien



[O] Release 7.5

2011-03-07 Thread Bastien
Dear all,

here it is, release 7.5, my first release as Org's new maintainer.

This release comes with lots of new features, bug fixes, and fun.
Special thanks to everyone who helped for this work: it's becoming 
hard to mention all the contributors, whether it be ideas, feedback
or code, and sorry in advance if I forgot some names.

Also don't forget the website now comes with a flatter button, on
top of the paypal donation link.  Spread the world!

As always:  *Enjoy* :)


Version 7.5 


Incompatible changes 
=

Code block variable initialized with Emacs Lisp code in tables and lists 
~

It is no longer possible to assign code block variables using
executable Emacs Lisp statements contained in tables or lists.
As per the following example.

  (a b c)  

  $data

Thanks to Vladimir Alexiev for raising this issue.

`org-bbdb-anniversary-format-alist' has changed 


Please check the docstring and update your settings accordingly.

New features and user-visible improvements 
===

Implement formulas applying to field ranges 


Carsten implemented this field-ranges formulas.

A frequently requested feature for tables has been to be able to define
row formulas in a way similar to column formulas.  The patch below allows
things like

@3=
@2$2..@5$7=
@I$2..@II$4=

as the left hand side for table formulas in order to write a formula that
is valid for an entire column or for a rectangular section in a
table.

Thanks a lot to Carsten for this.

Improved handling of lists 
~~~

Nicolas Goaziou extended and improved the way Org handles lists.

1. Indentation of text determines again end of items in
   lists. So, some text less indented than the previous item
   doesn't close the whole list anymore, only all items more
   indented than it.

2. Alphabetical bullets are implemented, through the use of the
   variable `org-alphabetical-lists'. This also adds alphabetical
   counters like or .

3. Lists can now safely contain drawers, inline tasks, or various
   blocks, themselves containing lists. Two variables are
   controlling this: `org-list-forbidden-blocks', and
   `org-list-export-context'.

4. Improve `newline-and-indent' (C-j): used in an item, it will
   keep text from moving at column 0. This allows to split text
   and make paragraphs and still not break the list.

5. Improve `org-toggle-item' (C-c -): used on a region with
   standard text, it will change the region into one item. With a
   prefix argument, it will fallback to the previous behavior and
   make every line in region an item. It permits to easily
   integrate paragraphs inside a list.

6. `fill-paragraph' (M-q) now understands lists. It can freely be
   used inside items, or on text just after a list, even with no
   blank line around, without breaking list structure.

Thanks a lot to Nicolas for all this!

Modified link escaping 
~~~

David Maus worked on `org-link-escape'.  See [his message]:

Percent escaping is used in Org mode to escape certain characters
in links that would either break the parser (e.g. square brackets
in link target oder description) or are not allowed to appear in
a particular link type (e.g. non-ascii characters in a http:
link).

With this change in place Org will apply percent escaping and
unescaping more consistently especially for non-ascii characters.
Additionally some of the outstanding bugs or glitches concerning
percent escaped links are solved.

Thanks a lot to David for this work.


[his message]: http://article.gmane.org/gmane.emacs.orgmode/37888

Simplification of org-export-html-preamble/postamble 
~

When set to `t', export the preamble/postamble as usual, honoring
the =org-export-email/author/creator-info= variables.

When set to a formatting string, insert this string.  See the
docstring of these variable for details about available
%-sequences.

You can set =:html-preamble= in publishing project in the same
way: `t' means to honor =:email/creator/author-info=, and a
formatting string will insert a string.

New command `org-agenda-append-agenda' 
~~~

You can now use `org-agenda-append-agenda' to dynamically add new
agendas views to the current one.  It is particularily useful to
compare multiple small agendas.

Localized clock tables 
~~~

Clock tables now support a new new =:lang= parameter, allowing
the user to customize the localization of the table headers.  See
the variable =org-clock-clocktable-language-setup= which controls
available translated strings.

New sorting options when publishing projects 
~

The =:sitemap-sort-file= option now allows sorting the sitemap
file 

Re: [O] Capture - stay clocked in?

2011-03-07 Thread Bastien
Carsten Dominik carsten.domi...@gmail.com writes:

 Also, this new property, when set, does not allow :clock-resume,
 I have not checked if something bad would happen should a user
 give both by accident.

Ah yes, thanks for bringing this up: :clock-keep has precedence 
over :clock-resume -- when both are non-nil, :clock-resume will
be discarded.   I mentioned this in the manual.

Thanks!

-- 
 Bastien



Re: [O] [Org-contacts] 3 2 1 go?

2011-03-07 Thread Julien Danjou
On Mon, Mar 07 2011, Andrea Crotti wrote:

 One thing I haven't found in fact is how to support multiple emails, is
 that too hard to do?

If you mean in org-contacts, just use space as a separator for each mail
address.

-- 
Julien Danjou
❱ http://julien.danjou.info


pgpKlEqNSkF1t.pgp
Description: PGP signature


Re: [O] Release 7.5

2011-03-07 Thread Carsten Dominik
This is great.  Congratulations to Bastien for getting
to his first release so quickly!  And thanks to everyone else.
All this does make me very happy.

- Carsten

On Mar 7, 2011, at 3:42 PM, Bastien wrote:

 Dear all,
 
 here it is, release 7.5, my first release as Org's new maintainer.
 
 This release comes with lots of new features, bug fixes, and fun.
 Special thanks to everyone who helped for this work: it's becoming 
 hard to mention all the contributors, whether it be ideas, feedback
 or code, and sorry in advance if I forgot some names.
 
 Also don't forget the website now comes with a flatter button, on
 top of the paypal donation link.  Spread the world!
 
 As always:  *Enjoy* :)
 
 
 Version 7.5 
 
 
 Incompatible changes 
 =
 
 Code block variable initialized with Emacs Lisp code in tables and lists 
 ~
 
 It is no longer possible to assign code block variables using
 executable Emacs Lisp statements contained in tables or lists.
 As per the following example.
 
  (a b c)  
 
  $data
 
 Thanks to Vladimir Alexiev for raising this issue.
 
 `org-bbdb-anniversary-format-alist' has changed 
 
 
 Please check the docstring and update your settings accordingly.
 
 New features and user-visible improvements 
 ===
 
 Implement formulas applying to field ranges 
 
 
 Carsten implemented this field-ranges formulas.
 
 A frequently requested feature for tables has been to be able to define
 row formulas in a way similar to column formulas.  The patch below allows
 things like
 
 @3=
 @2$2..@5$7=
 @I$2..@II$4=
 
 as the left hand side for table formulas in order to write a formula that
 is valid for an entire column or for a rectangular section in a
 table.
 
 Thanks a lot to Carsten for this.
 
 Improved handling of lists 
 ~~~
 
 Nicolas Goaziou extended and improved the way Org handles lists.
 
 1. Indentation of text determines again end of items in
   lists. So, some text less indented than the previous item
   doesn't close the whole list anymore, only all items more
   indented than it.
 
 2. Alphabetical bullets are implemented, through the use of the
   variable `org-alphabetical-lists'. This also adds alphabetical
   counters like or .
 
 3. Lists can now safely contain drawers, inline tasks, or various
   blocks, themselves containing lists. Two variables are
   controlling this: `org-list-forbidden-blocks', and
   `org-list-export-context'.
 
 4. Improve `newline-and-indent' (C-j): used in an item, it will
   keep text from moving at column 0. This allows to split text
   and make paragraphs and still not break the list.
 
 5. Improve `org-toggle-item' (C-c -): used on a region with
   standard text, it will change the region into one item. With a
   prefix argument, it will fallback to the previous behavior and
   make every line in region an item. It permits to easily
   integrate paragraphs inside a list.
 
 6. `fill-paragraph' (M-q) now understands lists. It can freely be
   used inside items, or on text just after a list, even with no
   blank line around, without breaking list structure.
 
 Thanks a lot to Nicolas for all this!
 
 Modified link escaping 
 ~~~
 
 David Maus worked on `org-link-escape'.  See [his message]:
 
 Percent escaping is used in Org mode to escape certain characters
 in links that would either break the parser (e.g. square brackets
 in link target oder description) or are not allowed to appear in
 a particular link type (e.g. non-ascii characters in a http:
 link).
 
 With this change in place Org will apply percent escaping and
 unescaping more consistently especially for non-ascii characters.
 Additionally some of the outstanding bugs or glitches concerning
 percent escaped links are solved.
 
 Thanks a lot to David for this work.
 
 
 [his message]: http://article.gmane.org/gmane.emacs.orgmode/37888
 
 Simplification of org-export-html-preamble/postamble 
 ~
 
 When set to `t', export the preamble/postamble as usual, honoring
 the =org-export-email/author/creator-info= variables.
 
 When set to a formatting string, insert this string.  See the
 docstring of these variable for details about available
 %-sequences.
 
 You can set =:html-preamble= in publishing project in the same
 way: `t' means to honor =:email/creator/author-info=, and a
 formatting string will insert a string.
 
 New command `org-agenda-append-agenda' 
 ~~~
 
 You can now use `org-agenda-append-agenda' to dynamically add new
 agendas views to the current one.  It is particularily useful to
 compare multiple small agendas.
 
 Localized clock tables 
 ~~~
 
 Clock tables now support a new new =:lang= parameter, 

Re: [O] Capture - stay clocked in?

2011-03-07 Thread Bernt Hansen
Bastien b...@altern.org writes:

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

 Also, this new property, when set, does not allow :clock-resume,
 I have not checked if something bad would happen should a user
 give both by accident.

 Ah yes, thanks for bringing this up: :clock-keep has precedence 
 over :clock-resume -- when both are non-nil, :clock-resume will
 be discarded.   I mentioned this in the manual.

For my 't' capture template with :clock-in and :clock-resume (and
no :clock-keep) when I start capture mode for the task when the clock is
not running it stays running in that task (as reported earlier) - Isn't
that a bug?

Thanks,
-- 
Bernt



Re: [O] Capture - stay clocked in?

2011-03-07 Thread Bastien
Bernt Hansen be...@norang.ca writes:

 For my 't' capture template with :clock-in and :clock-resume (and
 no :clock-keep) when I start capture mode for the task when the clock is
 not running it stays running in that task (as reported earlier) - Isn't
 that a bug?

Is it against latest git?  (I pushed the change a bit later than I
announced it.)  

Could you share you template so that I can test?

Thanks,

-- 
 Bastien



Re: [O] Re: [PATCH] Re: [BUG] htmlp and latexp

2011-03-07 Thread Bastien
Hi Dan,

Dan Davison dandavis...@gmail.com writes:

 I also want to change the customize group of a lot of those variables:
 a lot of the org-src-* and org-edit-src-* variables are filed in
 Customize under

 Org Structure - Org Edit Structure

 which has to be one of the least intuitive things in the whole of Org!

 There's a question of whether we have an Org Src customize group in
 addition to the Babel customize group, and how we keep them distinct.
 In fact, that may be what has prevented this from being sorted out
 thus far.

Any work in this area would be great -- thanks for putting a stab on
this, if you have a chance!

Best,

-- 
 Bastien



Re: [O] [Orgmode] Babel sql code block issue and patch proposal

2011-03-07 Thread Eric Schulte
To be honest, I don't have any overly motivating reasons for passing the
file name to mysql rather than piping the contents of the file.  Aside
from consistency with the other SQL engines, the nagging feeling that
things are the way they are for a reason, and a healthy fear of the new
and unknown.  However development is not for cowards, I've applied your
suggestion, and mysql is now reading input through stdin.

Best -- Eric

Alain Clément alain.clem...@unil.ch writes:

 Hi Eric,
 Thanks for your message and sorry for the delay.
 Actually, escaping characters with backslashes is the problem within mysql 
 when the =SOURCE= command is invoqued. To believe the forums, it seems that 
 this difficulty is well
 known among mysql users. The suggested solution there consists in piping the 
 file content via the standard input of the mysql command instead of making 
 use of the =SOURCE=
 command. In other words, let the shell do the job of finding the file as 
 mysql can't. My initial suggestion for a patch relies on this conclusion and 
 seems to work well. Now
 it's time to stop my own advertising and ask you about the cons of such a 
 patch.
 Best regards and thank you again.
 - Alain

 2011/3/3 Eric Schulte schulte.e...@gmail.com

 Hi Alain,

 Would the following work (escaping -s with a backslash)?

 #+begin_src diffbr
 div diff --git a/lisp/ob-sql.el b/lisp/ob-sql.elbr
 /div index 364070e..838f013 100644br
 div --- a/lisp/ob-sql.elbr
  +++ b/lisp/ob-sql.elbr
 /div @@ -73,7 +73,9 @@ This function is called by 
 `org-babel-execute-src-block#39;.quot;br
 div(org-babel-process-file-name out-file)))br
 (#39;mysql (format quot;mysql %s -e \quot;source %s\quot; 
 gt; %squot;br
 (or cmdline quot;quot;)br
  - (org-babel-process-file-name in-file)br
 /div + (replace-regexp-in-stringbr
  + quot;\\-quot; quot;-quot;br
  + (org-babel-process-file-name in-file))br
 div   (org-babel-process-file-name out-file)))br
 /div   (#39;postgresql (formatbr
   quot;psql -A -P footer=off -F \quot;\t\quot; -f %s -o %s 
 %squot;br
 #+end_srcbr
 Best -- Eric

 Alain Cl?ment alain.clem...@unil.ch writes:

 Hi Eric,

 Thanks for your prompt answer! Actually, it doesn't work since mysql 
 interprets backslashes as options, even between quotes. The value of my
 `org-babel-temporary-directory' is 
 /var/folders/9E/9EMu+g0oHBSrq-h9sX6i1U+++TM/-Tmp-/babel-86766893, but 
 +'s are escaped with a backslash at some stage.

 Thanks,
 - Alain

 2011/3/3 Eric Schulte schulte.e...@gmail.com

 ? ? Hi Alain,

 ? ? Does the following alternative fix work for you?

 #+begin_src diffbr
 ?Changes in HEADbr
 ? ? ?Modified lisp/ob-sql.elbr
 ?diff --git a/lisp/ob-sql.el b/lisp/ob-sql.elbr
 ?index 364070e..604d444 100644br
 ?--- a/lisp/ob-sql.elbr
 ?+++ b/lisp/ob-sql.elbr
 ?@@ -71,7 +71,7 @@ This function is called by 
 `org-babel-execute-src-block#39;.quot;br
 ? ? ? ? ? ? ? ? ? ? (or cmdline quot;quot;)br
 ? ? ? ? ? ? ? ? ? ? (org-babel-process-file-name in-file)br
 ? ? ? ? ? ? ? ? ? ? (org-babel-process-file-name out-file)))br
 ?- ? ? ? ? ?(#39;mysql (format quot;mysql %s -e \quot;source %s\quot; 
 gt; %squot;br
 ?+ ? ? ? ? ?(#39;mysql (format quot;mysql %s -e #39;source %s#39; gt; 
 %squot;br
 ? ? ? ? ? ? ? ? ? ? (or cmdline quot;quot;)br
 ? ? ? ? ? ? ? ? ? ?(org-babel-process-file-name in-file)br
 ? ? ? ? ? ? ? ? ? ?(org-babel-process-file-name out-file)))br
 #+end_srcbr
 Also, just out of curiosity would you mind sharing an example result of
 `org-babel-temporary-directory' which contains backslashes?

 Thanks -- Eric

 Alain Cl?ment alain.clem...@unil.ch writes:

 Hi everyone,

 The =org-babel-temp-file= string seems to be escaped with backslashes on
 some platforms (like MacOSX), which is not very appreciated by the =mysql
 -e= command. I suggest the following patch for =ob-sql.el= (Org-mode Version
 7.4 (release_7.4.590.g85d4d)):

 74c74
  ? ? ? ? ? ? ? ? ? ? ('mysql (format mysql %s  %s  %s
 ---
 ? ? ? ? ? ? ? ? ? ? ('mysql (format mysql %s -e \source %s\  %s

 Best regards,
 -- Alain

 --



 Alain Cl?ment
 Dr ?s sc. math?matiques

 Universit? de Lausanne
 Quartier UNIL-Centre
 B?timent Unicentre
 Bureau 339
 CH-1015 Lausanne

 T. +41 21 692 20 36 (direct)
 T. +41 21 692 20 60 (secr?tariat)

 alain.clem...@unil.ch

 --

 [lo_unil05_bleu]

 Alain Cl?ment
 Dr ?s sc. math?matiques

 Universit? de Lausanne
 Quartier UNIL-Centre
 B?timent Unicentre
 Bureau 339
 CH-1015 Lausanne

 T. +41 21 692 20 36 (direct)
 T. +41 21 692 20 60 (secr?tariat)

 alain.clem...@unil.ch

 --

 [lo_unil05_bleu] 

 Alain Cl?ment
 Dr ?s sc. math?matiques

 Universit? de Lausanne
 Quartier UNIL-Centre
 B?timent Unicentre
 Bureau 339
 CH-1015 Lausanne

 T. +41 21 692 20 36 (direct)
 T. +41 21 692 20 60 (secr?tariat)

 alain.clem...@unil.ch



[O] Re: [Orgmode] [HOW] no way to escape vertical bar (pipe char) in tables?

2011-03-07 Thread Eric Schulte
Vladimir Alexiev vladi...@sirma.bg writes:

 I want to manage some perl regexps in a table
 then feed them to a code block (literate programming).
 Unfortunately they include alternatives (|) 
 and the table editor thinks this is a column break.

 There's no way to escape this?


Using a different character (namely ¦) the following should work

#+source: clean
#+begin_src emacs-lisp :var in=
  (flet ((clean (in)
(if (listp in)
(mapcar #'clean in)
  (if (stringp in)
  (replace-regexp-in-string ¦ | in)
in
(clean in))
#+end_src

#+results: regexps
| first  | (a¦b) |
| second | (1¦2) |

#+begin_src perl :var a=clean(in=regexps)[0,1] :var b=clean(in=regexps)[1,1]
  $a; $b;
#+end_src

#+results:
: (1|2)

Best -- Eric



[O] org-with-wide-buffer error

2011-03-07 Thread Kiwon Um
Dear orgmode team,

This is a bug report for the latest (git) orgmode. When I call org-todo
or org-agenda-todo it reports the following:

Debugger entered--Lisp error: (invalid-function org-with-wide-buffer)
  org-with-wide-buffer(t)
  byte-code( .
  org-todo(nil)
  call-interactively(org-todo)
  org-agenda-todo(nil)
  call-interactively(org-agenda-todo nil nil)

Tested in
 Emacs 23.3.1,
 org-mode vc SHA1 ID: b969081ebd0da2711f1006fec39e04fe4a90ef71

-- 
Kiwon Um

Ph.D. candidate
Interactive 3D Media Lab
Department of Computer and Radio Communications Engineering
College of Information and Communications
Korea University

Tel: +82. 2. 3290. 3577 (office)



Re: [O] Capture - stay clocked in?

2011-03-07 Thread Bernt Hansen
Bastien b...@altern.org writes:

 Bernt Hansen be...@norang.ca writes:

 For my 't' capture template with :clock-in and :clock-resume (and
 no :clock-keep) when I start capture mode for the task when the clock is
 not running it stays running in that task (as reported earlier) - Isn't
 that a bug?

 Is it against latest git?  (I pushed the change a bit later than I
 announced it.)  

 Could you share you template so that I can test?

Yes it's from Org-mode version 7.5 (release_7.5.3.g7cb08)
GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11
on raven, modified by Debian

I see two problems with this capture:

 1) Clock stays running in the capture task after C-c C-c
 2) The refile.org capture buffer is narrowed hiding the newly captured
task

Here is the sequence to reproduce the problem.

Start emacs with 
--8---cut here---start-8---
$ minimal-emacs
--8---cut here---end---8---


| Key   | Notes   |
| C-c c | Start capture mode  |
| t | select TODO template|
| test clocking | give the task a heading |
| C-c C-c   | close capture template  |

The clock is still running.  If you visit the file with C-x C-f
/tmp/refile.org it looks empty because it is currently narrowed.

Regards,
Bernt

~/bin/minimal-emacs
--8---cut here---start-8---
#!/bin/sh
TESTEL=
TESTFILE=/tmp/test.el
if test -e $TESTFILE
then
  TESTEL=-l /tmp/test.el
fi
emacs -q -l ~/minimal.emacs $TESTEL $1
--8---cut here---end---8---

~/minimal.emacs
--8---cut here---start-8---
(add-to-list 'load-path (expand-file-name ~/git/org-mode/lisp))
(add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\|txt\\)$ . org-mode))
(require 'org-install)

(global-set-key \C-cl 'org-store-link)
(global-set-key \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)
--8---cut here---end---8---

/tmp/test.el
--8---cut here---start-8---
(setq org-capture-templates (quote ((t todo entry (file /tmp/refile.org) 
* TODO %?
%U
%a
 :clock-in t :clock-resume t
(global-set-key (kbd C-c c) 'org-capture)
--8---cut here---end---8---

-- 
Bernt



[O] Re: Release 7.5

2011-03-07 Thread Rafael Villarroel
Bastien b...@altern.org writes:

 * Imagemagick post-processing of LaTeX code block results 
   
   It is now possible to use imagemagick to process the output of
   LaTeX code blocks through to a wide variety of output formats.
   This patch is thanks to Andreas Leha, the following description
   is from his email to the mailing list.

But wasn't this recently removed?

http://orgmode.org/w/?p=org-mode.git;a=commit;h=c6f6b3421ee9050a980f8fa0b5615e3f7136e7a8

(is there any chance of getting it back?)

Best regards,
Rafael



Re: [O] org-with-wide-buffer error

2011-03-07 Thread Bastien
Hi Kiwon,

Kiwon Um um.ki...@gmail.com writes:

 This is a bug report for the latest (git) orgmode. When I call org-todo
 or org-agenda-todo it reports the following:

 Debugger entered--Lisp error: (invalid-function org-with-wide-buffer)

I cannot reproduce it -- anyone else?

-- 
 Bastien



Re: [O] Re: Release 7.5

2011-03-07 Thread Bastien
Hi Rafael,

Rafael Villarroel rvf0...@gmail.com writes:

 Bastien b...@altern.org writes:

 * Imagemagick post-processing of LaTeX code block results 
   
   It is now possible to use imagemagick to process the output of
   LaTeX code blocks through to a wide variety of output formats.
   This patch is thanks to Andreas Leha, the following description
   is from his email to the mailing list.

 But wasn't this recently removed?

Yes it was - this note sneaked into Changes.org by error.

 (is there any chance of getting it back?)

Not yet - we wait for Andreah to clear things up with his employer.

Thanks,

-- 
 Bastien



[O] Re: [Orgmode] [REGRESSION] org-html.el (targets)

2011-03-07 Thread Manuel Giraud
Jambunathan K kjambunat...@gmail.com writes:

 I am attaching the bug.org file and the html exports as done by git
 versions 048f32 (approx a month old) and 77c278 (very recent).

Hi,

Here's a patch that fixes this issue.

From cd423f908de55a2379c4476c0da8922968786e64 Mon Sep 17 00:00:00 2001
From: Manuel Giraud manuel.gir...@univ-nantes.fr
Date: Mon, 7 Mar 2011 17:12:46 +0100
Subject: [PATCH] org-html.el: bug that prevents some target to be rendered correctly.

---
 lisp/org-exp.el  |2 +-
 lisp/org-html.el |   10 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index ae7bdcf..f22eeba 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2062,7 +2062,7 @@ can work correctly.
 (let* ((rtn
 	(mapconcat
 	 'identity
-	 (org-split-string s [^a-zA-Z0-9_\\.-]+) --))
+	 (org-split-string s [^a-zA-Z0-9_\\.-]+) -))
 	   (a (assoc rtn alist)))
   (or (cdr a) rtn
 
diff --git a/lisp/org-html.el b/lisp/org-html.el
index eb4b199..8fe8029 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -2181,12 +2181,12 @@ that uses these same face definitions.
 (defun org-html-protect (s)
   Convert characters to HTML equivalent.
 Possible conversions are set in `org-export-html-protect-char-alist'.
-  (let ((start 0)
-	(cl org-export-html-protect-char-alist) c)
+  (let ((cl org-export-html-protect-char-alist) c)
 (while (setq c (pop cl))
-  (while (string-match (car c) s start)
-	(setq s (replace-match (cdr c) t t s)
-	  start (1+ (match-beginning 0)
+  (let ((start 0))
+	(while (string-match (car c) s start)
+	  (setq s (replace-match (cdr c) t t s)
+		start (match-beginning 0)
 s))
 
 (defun org-html-expand (string)
-- 
1.7.1


Best regards,
-- 
Manuel Giraud


Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread Thomas S. Dye

Aloha Lawrence,

This is great.  Thanks!

Tom

On Mar 7, 2011, at 4:00 AM, Lawrence Mitchell wrote:


Rasmus wrote:


However, I have noticed at least one non-acceptable issue. When using
using English, LaTeX (via Babel or just default) full-stops  
(≈double
space) will be inserted after dots. However, with abbrevation one  
would
use an ordinary space (i.e.\ an escaped space (\ ) in LaTeX). Org  
does

not seem to notice abbrivations—how could it?—and further \  is
interpreted literaly. I need to have an escaped space.


(setq org-entities-user '((space \\  nil)))

then

this is some text, e.g.\space foo bar

=

this is some text, e.g.\  foo bar

[...]

Lawrence
--
Lawrence Mitchell we...@gmx.li







Re: [O] [Orgmode] Babel sql code block issue and patch proposal

2011-03-07 Thread Alain Clément
Hi Eric,
Thank you so much, your fearless development is great and very
appreciated!
Best regards,
- Alain

2011/3/7 Eric Schulte schulte.e...@gmail.com

 To be honest, I don't have any overly motivating reasons for passing the
 file name to mysql rather than piping the contents of the file.  Aside
 from consistency with the other SQL engines, the nagging feeling that
 things are the way they are for a reason, and a healthy fear of the new
 and unknown.  However development is not for cowards, I've applied your
 suggestion, and mysql is now reading input through stdin.

 Best -- Eric

 Alain Clément alain.clem...@unil.ch writes:

  Hi Eric,
  Thanks for your message and sorry for the delay.
  Actually, escaping characters with backslashes is the problem within
 mysql when the =SOURCE= command is invoqued. To believe the forums, it seems
 that this difficulty is well
  known among mysql users. The suggested solution there consists in piping
 the file content via the standard input of the mysql command instead of
 making use of the =SOURCE=
  command. In other words, let the shell do the job of finding the file as
 mysql can't. My initial suggestion for a patch relies on this conclusion and
 seems to work well. Now
  it's time to stop my own advertising and ask you about the cons of such a
 patch.
  Best regards and thank you again.
  - Alain
 
  2011/3/3 Eric Schulte schulte.e...@gmail.com
 
  Hi Alain,
 
  Would the following work (escaping -s with a backslash)?
 
  #+begin_src diffbr
  div diff --git a/lisp/ob-sql.el b/lisp/ob-sql.elbr
  /div index 364070e..838f013 100644br
  div --- a/lisp/ob-sql.elbr
   +++ b/lisp/ob-sql.elbr
  /div @@ -73,7 +73,9 @@ This function is called by
 `org-babel-execute-src-block#39;.quot;br
  div(org-babel-process-file-name out-file)))br
  (#39;mysql (format quot;mysql %s -e \quot;source %s\quot;
 gt; %squot;br
  (or cmdline quot;quot;)br
   - (org-babel-process-file-name in-file)br
  /div + (replace-regexp-in-stringbr
   + quot;\\-quot; quot;-quot;br
   + (org-babel-process-file-name in-file))br
  div   (org-babel-process-file-name out-file)))br
  /div   (#39;postgresql (formatbr
quot;psql -A -P footer=off -F \quot;\t\quot; -f %s
 -o %s %squot;br
  #+end_srcbr
  Best -- Eric
 
  Alain Cl?ment alain.clem...@unil.ch writes:
 
  Hi Eric,
 
  Thanks for your prompt answer! Actually, it doesn't work since mysql
 interprets backslashes as options, even between quotes. The value of my
  `org-babel-temporary-directory' is
 /var/folders/9E/9EMu+g0oHBSrq-h9sX6i1U+++TM/-Tmp-/babel-86766893, but
 +'s are escaped with a backslash at some stage.
 
  Thanks,
  - Alain
 
  2011/3/3 Eric Schulte schulte.e...@gmail.com
 
  ? ? Hi Alain,
 
  ? ? Does the following alternative fix work for you?
 
  #+begin_src diffbr
  ?Changes in HEADbr
  ? ? ?Modified lisp/ob-sql.elbr
  ?diff --git a/lisp/ob-sql.el b/lisp/ob-sql.elbr
  ?index 364070e..604d444 100644br
  ?--- a/lisp/ob-sql.elbr
  ?+++ b/lisp/ob-sql.elbr
  ?@@ -71,7 +71,7 @@ This function is called by
 `org-babel-execute-src-block#39;.quot;br
  ? ? ? ? ? ? ? ? ? ? (or cmdline quot;quot;)br
  ? ? ? ? ? ? ? ? ? ? (org-babel-process-file-name in-file)br
  ? ? ? ? ? ? ? ? ? ? (org-babel-process-file-name out-file)))br
  ?- ? ? ? ? ?(#39;mysql (format quot;mysql %s -e \quot;source
 %s\quot; gt; %squot;br
  ?+ ? ? ? ? ?(#39;mysql (format quot;mysql %s -e #39;source %s#39;
 gt; %squot;br
  ? ? ? ? ? ? ? ? ? ? (or cmdline quot;quot;)br
  ? ? ? ? ? ? ? ? ? ?(org-babel-process-file-name in-file)br
  ? ? ? ? ? ? ? ? ? ?(org-babel-process-file-name out-file)))br
  #+end_srcbr
  Also, just out of curiosity would you mind sharing an example result of
  `org-babel-temporary-directory' which contains backslashes?
 
  Thanks -- Eric
 
  Alain Cl?ment alain.clem...@unil.ch writes:
 
  Hi everyone,
 
  The =org-babel-temp-file= string seems to be escaped with backslashes
 on
  some platforms (like MacOSX), which is not very appreciated by the
 =mysql
  -e= command. I suggest the following patch for =ob-sql.el= (Org-mode
 Version
  7.4 (release_7.4.590.g85d4d)):
 
  74c74
   ? ? ? ? ? ? ? ? ? ? ('mysql (format mysql %s  %s  %s
  ---
  ? ? ? ? ? ? ? ? ? ? ('mysql (format mysql %s -e \source %s\  %s
 
  Best regards,
  -- Alain
 
  --
 
 
 
  Alain Cl?ment
  Dr ?s sc. math?matiques
 
  Universit? de Lausanne
  Quartier UNIL-Centre
  B?timent Unicentre
  Bureau 339
  CH-1015 Lausanne
 
  T. +41 21 692 20 36 (direct)
  T. +41 21 692 20 60 (secr?tariat)
 
  alain.clem...@unil.ch
 
  --
 
  [lo_unil05_bleu]
 
  Alain Cl?ment
  Dr ?s sc. math?matiques
 
  Universit? de Lausanne
  Quartier UNIL-Centre
  B?timent Unicentre
  Bureau 339
  CH-1015 Lausanne
 
  T. +41 21 692 20 36 (direct)
  T. +41 21 692 20 60 (secr?tariat)
 
  alain.clem...@unil.ch
 
  --
 
  [lo_unil05_bleu]
 
  Alain Cl?ment
  Dr ?s 

Re: [O] Capture - stay clocked in?

2011-03-07 Thread Bastien
Hi Bernt,

Bernt Hansen be...@norang.ca writes:

 I see two problems with this capture:

  1) Clock stays running in the capture task after C-c C-c

I pushed a fix for this.  

Thanks for the minimal.emacs and the detailed report.

  2) The refile.org capture buffer is narrowed hiding the newly captured
 task

Certainly a bug when refiling to empty buffers, where the check I use to
see if the buffer is already narrowed doesn't work properly.

I'll check this out.

Thanks!

-- 
 Bastien



Re: [O] Questions on LaTeX Exporter

2011-03-07 Thread Thomas S. Dye

Aloha Lawrence,

It does indeed work nicely.  Thanks!

Tom

On Mar 6, 2011, at 11:46 PM, Lawrence Mitchell wrote:


Thomas S. Dye wrote:

[...]


,
|   * section
|   #+latex: \label{sec:sec}
`



But there /must/ be a better way to this, eh?



Good point.  It would be great to leverage Org-links to resolve cross
references to document sections.


If you do:

(setq org-export-latex-hyperref-format \\ref{%s}) then you can
refer to sections by their numbers with as we see in section
[[section]] and it works nicely.


--
Lawrence Mitchell we...@gmx.li







Re: [O] Release 7.5

2011-03-07 Thread Leo
On 2011-03-07 22:42 +0800, Bastien wrote:
 here it is, release 7.5, my first release as Org's new maintainer.

Congratulations, Bastien.

Leo




Re: [O] Re: Keep a file out of the mobile org org-mobile-files list

2011-03-07 Thread Marcelo de Moraes Serpa
Yeah, got it! Thanks for the contribution, works like a charm...

Marcelo.

On Mon, Mar 7, 2011 at 2:10 AM, Bastien b...@altern.org wrote:
 Hi Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

 Oh, disregard my message. Now I see it I needed to pull
 before... thanks!

 Also note this variable expects a regular expression:
 reference.org is okay since it maches itself right,
 but I just wanted to point this out, in case.

 --
  Bastien




Re: [O] Release 7.5

2011-03-07 Thread Puneeth Chaganti
On Mon, Mar 7, 2011 at 8:12 PM, Bastien b...@altern.org wrote:
 Dear all,

 here it is, release 7.5, my first release as Org's new maintainer.

 This release comes with lots of new features, bug fixes, and fun.

Congratulations, Bastien!

-- Puneeth



Re: [O] Release 7.5

2011-03-07 Thread Eric S Fraga
Bastien b...@altern.org writes:

 Dear all,

 here it is, release 7.5, my first release as Org's new maintainer.

Wow!  Great start.

I'm only embarrassed that my name appears several times as having asked
for new features.  Time for me to start contributing actual code a bit
more, I think!  After I absorb all the new features, beyond the ones I
requested of course ;-)

Thanks for all your work on this.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.2.g11a1)



Re: [O] Bug: Org-Contacts.el [7.4]

2011-03-07 Thread Achim Gratz
Matthew Sauer improv.philoso...@gmail.com writes:
 lispdir   = $ usr/share/emacs/23.2/lisp/org

Don't do that.  Put anything you install yourself into

/usr/share/emacs/site-lisp

or more specifically for Orgmode,

/usr/share/emacs/site-lisp/org

This path won't be overwritten or ignored when you install a newer
version of Emacs and as an added benefit you don't need to change the
loadpath at all (unless you have a non-standard installation of Emacs).

 oh, and if anyone has experience on getting make doc to work on cygwin
 (texi2dvi) it would be appreciated as I haven't quite got that to work
 right.

You would need to have texinfo and TeX installed, but unless you really
want the PDF manual you don't need to make doc at all, use the target
install-info instead.


Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra




Re: [O] Different (setq org-export-with-section-numbers) depending on HTML or LaTeX export

2011-03-07 Thread Eric S Fraga
Aankhen aank...@gmail.com writes:

 Hi,

 On Mon, Mar 7, 2011 at 04:37, Jakub Szypulka cubib...@googlemail.com wrote:
 I'm trying to hide section numbers in the HTML export, while keeping
 the sections in the LaTeX export.

 Adding (setq org-export-with-section-numbers nil) successfully removes
 the HTML section numbering, but for a mysterious reason also removes
 headlines when doing a LaTeX export.

 Could you give a sample of the input and output?  Using Org-mode from
 git, I can’t reproduce this problem:

 ,[ foo.org ]
 | * Foo
 |
 | * Bar
 |
 | ** Quux
 |
 | * Baz
 `

 Becomes:

 ,[ Exported LaTeX ]
 | \usepackage{amssymb}
 | \usepackage{hyperref}
 | \tolerance=1000
 | \providecommand{\alert}[1]{\textbf{#1}}
 |
 | \title{No Title}
 | \author{}
 | \date{07 March 2011}
 |
 | \begin{document}
 |
 | \maketitle
 |
 | \section*{Foo}

Actually, you *have* reproduced the problem: a =section*= does not
include section numbers which I believe Jakub wanted (in the latex but
not the HTML).

For Jakub,  I don't think there is a direct way of achieving what you
want.  Instead, you could have two files, one for HTML export and one
for LaTeX export, both of which #+INCLUDE the real content but differ
solely in the

#+OPTIONS: num:nil

or

#+OPTIONS: num:t

line (former doesn't generate section numbers, latter does).

Alternatively, you could customise =org-export-latex-classes= so that
=section=, =subsection=, etc. are used even for unnumbered export.

HTH,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.2.g11a1)



Re: [O] How to escape characters in tables

2011-03-07 Thread Ken.Williams

From:  Camille persson camille.pers...@gmail.com
 2011/3/4  ken.willi...@thomsonreuters.com
 [...] here's a test case that shows my intent:
 
   | foo | =m/foo\vert{}foodfight/= |
 
 The \vert{} seems not to work inside a =...= construction.  Furthermore,
 the =...= construction is problematic there because it conflicts with
the
 start-of-formula syntax.


 =...= is used for code so it is printed as it written
 You may use \texttt{}
 | foo | \texttt{m\/foo\vert{}foodfight\/} |


Unfortunately that doesn't work when exporting to HTML though, I assume
it's for LaTeX export only?


I'd suggest there are 3 things that need to be addressed/fixed in org-mode.

First, the table-parser should respect =...= sections and skip over them,
just like a C preprocessor respects double-quoted string sections.

Second, there should be a way to indicate verbatim sections that doesn't
conflict with formula syntax.

Finally, there should be a way (e.g. \x{...}) to stick in a character by
ASCII/Unicode number.  This would help with several issues when a literal
character is intended but it conflicts with a markup character.


--
Ken Williams
Senior Research Scientist
Thomson Reuters
http://labs.thomsonreuters.com




Re: Re: [O] [Org-contacts] 3 2 1 go?

2011-03-07 Thread Michael Käufl
  One thing I haven't found in fact is how to support multiple emails, is
  that too hard to do?
 
 If you mean in org-contacts, just use space as a separator for each mail
 address.

Thanks for this hint!

Where are you planing to put the documentation? I know about 
http://julien.danjou.info/org-contacts.html , but are there any plans about a 
documentation where others can contribute? So that you could spend more time 
improving org-contacts ;)

--
Michael



Re: [O] Table formula changes are not always necessary when moving rows

2011-03-07 Thread Carsten Dominik

On 28.2.2011, at 12:43, Tom wrote:

 I have a table in which I sum the values of all rows in the last
 row: vsum(@1..@-I-1). The problem is when move a row with M-up
 before the first row (e.g. I press M-up on the second row) then
 org modifies this formula to vsum(@2..@-I-1).
 
 This is not always the expected behavior, because in this case I
 just want to move the data in the rows, but still want to sum the
 values of all the rows from the first to the last. A similar case
 is when I want to insert a row before the first row of such a
 table. In that case too the formulas should be left alone,
 because I still want to sum all the rows, including the newly
 inserted first row.
 
 In such cases when the formula is modified Org should either
 print warning to the echo area, so the user notices when the
 formulas are changing because of the move, or it should ask the
 user what to do (do you want to modify the formulas?).

Aside to Bastien's help for this issue, a variable that will
prompt you before the formulas are rewritten, consider this:
Most of the time is should be possible to rewrite the formula
in a stable way.  You did not show your example, but from the
formula I would assume that you start the table immediately
with data, without a header line org a horizontal separator line.
If you did, you could do vsum(@I..II) and have a formula that is
stable against row switches.

Hope this helps.

- Carsten




Re: [O] Release 7.5

2011-03-07 Thread Achim Gratz
Bastien b...@altern.org writes:
 here it is, release 7.5, my first release as Org's new maintainer.

Great!  A bit of trivia: there are a full 650 commits between
release_7.4 and release_7.5...

 This release comes with lots of new features, bug fixes, and fun.

... and without a single complaint of the byte-compiler.  Thanks to you
and everyone else.

:-)


Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves




[O] [Bug] body-only Export Option Adds Extra html Tags.

2011-03-07 Thread Ian Barton
If I export body-only in my publishing options and publish a file that 
looks like:


#+TITLE: Index for Cycling Pages.
#+STARTUP: showall indent
#+STARTUP: hidestars
#+BEGIN_HTML
---
layout: cycling
title: Cycling.
excerpt: Page about cycling.
---
#+END_HTML

Some text

The resulting html looks like:

p
Some text/p
/div
/body
/html

Note the extra html tags after my text. Not sure exactly when this 
started happening, my git bisect skills haven't managed to identify it.


Ian.



Re: [O] Capture - stay clocked in?

2011-03-07 Thread Bernt Hansen
Bastien b...@altern.org writes:

 Bernt Hansen be...@norang.ca writes:

 I see two problems with this capture:

  1) Clock stays running in the capture task after C-c C-c

 I pushed a fix for this.  

 Thanks for the minimal.emacs and the detailed report.

Hi Bastien,

Thanks.  This works now.


  2) The refile.org capture buffer is narrowed hiding the newly captured
 task

 Certainly a bug when refiling to empty buffers, where the check I use to
 see if the buffer is already narrowed doesn't work properly.

 I'll check this out.

Great!  Thanks for all your hard work!

Regards,
-- 
Bernt



[O] Re: [Accepted] Re: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-03-07 Thread Matt Lundin
Hi Bastien,

Bastien b...@altern.org writes:


 Matt Lundin m...@imapmail.org writes:

 Matt Lundin m...@imapmail.org writes:

 Has there been any progress on this issue? I am finding that the local
 span bindings in the custom command above still do not have any effect.
 My default agenda span is a day. If I call the custom command above, it
 displays only one day, despite the local setting.

 I think I know what's happening. The custom agenda commands had been
 working properly until this commit on Feb 18, which brought back the
 behavior described above:

 c6dbde1babaa0b2efa278d75a6ec82f91ef59d5e

 I finally fixed this bug.  Please confirm when you can.  And I *really*
 hope this time the saga is over :)

Yes, I can confirm that it is fixed. Thanks a lot!

- Matt



Re: [O] Release 7.5

2011-03-07 Thread Manish
On Mon, Mar 7, 2011 at 8:12 PM, Bastien wrote:

 Dear all,

 here it is, release 7.5, my first release as Org's new maintainer.

 This release comes with lots of new features, bug fixes, and fun.

Many congratulations to Bastien and everyone who made it possible.  I
love the new append agenda feature especially the fact that filtering
works on all agendas. :)

Best regards
-- 
Manish



Re: [O] Release 7.5

2011-03-07 Thread Niels Giesen
Congratulations and a lot of thanks for the great work!

Niels.
-- 
http://pft.github.com/



Re: [O] Release 7.5

2011-03-07 Thread Delwood Richardson
Bastien bzg at altern.org writes:
 here it is, release 7.5, my first release as Org's new maintainer.
 
 This release comes with lots of new features, bug fixes, and fun.

Thanks to Bastien and all the contributors. Did anyone notice that the link on
the web page still links to Org 7.4? The files linked here: 
Download as zip file or gzipped tar archive.  are 
http://orgmode.org/org-7.4.zip and http://orgmode.org/org-7.4.tar.gz

I just checked and the correct files are on the website here: 
http://orgmode.org/org-7.5.tar.gz

So only the link is broken. 
Best,
Delwood






Re: [O] Table formula changes are not always necessary when moving rows

2011-03-07 Thread Tom
Carsten Dominik carsten.dominik at gmail.com writes:
  You did not show your example, but from the
 formula I would assume that you start the table immediately
 with data, without a header line org a horizontal separator line.
 If you did, you could do vsum(@I..II) and have a formula that is
 stable against row switches.


No, I do have a header and separator lines in the table I only 
simplified the  formula for the sake of the example.

But I didn't know about this @I syntax. It looks like I can use it
to specify the formulas relative to separator lines in the table, 
so it probably solves the problem.

Thanks.




Re: [O] Release 7.5

2011-03-07 Thread Suvayu Ali
On Mon, 07 Mar 2011 15:42:19 +0100
Bastien b...@altern.org wrote:

 Dear all,
 
 here it is, release 7.5, my first release as Org's new maintainer.

Congratulations Bastien and all the developers! :)

-- 
Suvayu

Open source is the future. It sets us free.



[O] Footnote sorting bug

2011-03-07 Thread Matt Lundin
Sorting footnotes when org-footnote-section is nil can have very
destructive consequences. For instance, the following file...

--8---cut here---start-8---
* Heading one

A footnote.[fn:one]

[fn:one] A footnote

Another footnote.[fn:two]

[fn:two] Another footnote

A third footnote.[fn:three]

[fn:three] A third

* Heading two

Some text
--8---cut here---end---8---

...loses the second heading when sorted


--8---cut here---start-8---
* Heading one

A footnote.[fn:one]

Another footnote.[fn:two]

A third footnote.[fn:three]


[fn:one] A footnote


[fn:two] Another footnote* Heading two

Some text


[fn:three] A third
--8---cut here---end---8---

I traced the problem to an extra forward-line added to
org-footnote-goto-local-insertion-point with commit
145109dc4a6f161e4ad826bea9cc970363649280, but seems to have had some
unintended consequences for org buffers.

The following patch fixes the sorting problem in org buffers. AFAICT, it
has no effect on footnote insertion in message mode buffers with
signatures. (Unfortunately, footnote sorting in message buffers with
signatures is broken both before and after this patch.)

--8---cut here---start-8---
diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
index b6a9bca..d28161e 100644
--- a/lisp/org-footnote.el
+++ b/lisp/org-footnote.el
@@ -511,8 +511,7 @@ ENTRY is (fn-label num-mark definition).
 (beginning-of-line 0))
   (if (looking-at [ \t]*#\\+TBLFM:) (beginning-of-line 2))
   (end-of-line 1)
-  (skip-chars-backward \n\r\t )
-  (forward-line))
+  (skip-chars-backward \n\r\t ))
 
 (defun org-footnote-delete (optional label)
   Delete the footnote at point.
--8---cut here---end---8---

Best,
Matt



[O] a small contribution

2011-03-07 Thread Filippo A. Salustri
Hi all,

I use geektool on my Mac to put useful things on my desktop.  (Rainmeter is
the equivalent program for windoze.)
Anyways, I would like have some todo items show up in geektool, but emacs
eats cpu, aquamacs doesn't do --batch stuff well, and I hate wasting cycles.
So I wrote a small perl program that digests every file in my org directory
looking for todos.  It runs blindingly fast compared to emacs, and it does
what I need it to.

I've included the script at the end of this msg, should anyone else find it
interesting.
One should consider changing the values of $orgdir and $re.
And (maybe) the location of perl.
It parses :CATEGORY: properties and prints that out (or the file name if
there's no category) for each task with a keyword matching one in $re.
It's not perfect, I know.  But it does work for me.

Cheers.
Fil

#!/usr/bin/perl

$orgdir = '/Users/fil/Dropbox/org';
$re = 'ACTIVE|REVIEW';

@files = ();
$line = '';
$category = '';

# get files
opendir D, $orgdir;
@files = grep { /\.org$/ } readdir(D);
closedir D;

for my $file (@files) {
  $category = $file;
  $category =~ s/\.org$//;
  open F, $orgdir/$file;
  while ($line = F) {
if ( $line =~ m/:CATEGORY: *(.+)$/ ) { $category = $1; }
if ( $line =~ m/^\*+ +($re) +(.+)$/ ) {
  printf %-13s: %s\n, $category, $2;
}
  }
  close F;
}


-- 
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/


[O] Re: Release 7.5

2011-03-07 Thread Matt Lundin
Bastien b...@altern.org writes:

 here it is, release 7.5, my first release as Org's new maintainer.


What a fantastic release! Thanks for all the hard work on this Bastien.
And congratulations!

Best,
Matt



Re: [O] org-with-wide-buffer error

2011-03-07 Thread David Maus
At Mon, 07 Mar 2011 17:06:53 +0100,
Bastien wrote:

 Hi Kiwon,

 Kiwon Um um.ki...@gmail.com writes:

  This is a bug report for the latest (git) orgmode. When I call org-todo
  or org-agenda-todo it reports the following:
 
  Debugger entered--Lisp error: (invalid-function org-with-wide-buffer)

 I cannot reproduce it -- anyone else?

Me neither. `invalid-function' means that Emacs is unable to resolve
the function symbol to an executable function. `org-with-wide-buffer'
is a macro introduced by 4369d4f9a371db152184860eff27234107af77cd --
so maybe

make clean
make

will do the trick?

Just out of curiosity: What does

(symbol-function 'org-with-wide-buffer)

evaluate to?


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


pgpZhr7xmALO8.pgp
Description: PGP signature


Re: [O] Re: [REGRESSION] org-html.el (targets)

2011-03-07 Thread Bernt Hansen
Manuel Giraud manuel.gir...@univ-nantes.fr writes:

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

 I am attaching the bug.org file and the html exports as done by git
 versions 048f32 (approx a month old) and 77c278 (very recent).

 Hi,

 Here's a patch that fixes this issue.

Hi Manuel,

Thanks for the patch.  I still see validation errors after applying this
patch.  I've posted the original test file at
http://www.norang.ca/tmp/foo.html and you can click on the validation
link at the bottom to see the remaining errors.

Regards,
-- 
Bernt



Re: [O] Uniquely url-ify sentences?

2011-03-07 Thread Jason Dunsmore
r...@rosslaird.com (Ross A. Laird) writes:

 I'd like to post one sentence from this manuscript every day as a
 tweet with a link back to the sentence

Will this do what you need?

--8---cut here---start-8---
(defun org-linkify-sentence (url)
  Converts a sentence to an Org-mode link.
  (interactive sURL: )
  (save-excursion
(forward-char)
(backward-sentence)
(push-mark)
(forward-sentence)
(kill-region (region-beginning) (region-end))
(insert [[ url ][ (first kill-ring) ]])))
--8---cut here---end---8---

Just put the cursor on the sentence and type M-x org-linkify-sentence
RET.  You might want to create a keybinding for it if you use it often:

(define-key org-mode-map \C-cs 'org-linkify-sentence)

Also, I'd recommend creating a link abbreviation if you link to the same
site often: http://orgmode.org/org.html#Link-abbreviations

I have a series of custom org-linkify-* functions that I use to convert
various pieces of text to Org-mode links.  I'm still trying to figure
out how they can be generalized to be useful to others.

Regards,
Jason



[O] Re: Footnote sorting bug

2011-03-07 Thread Matt Lundin
Matt Lundin m...@imapmail.org writes:

 I traced the problem to an extra forward-line added to
 org-footnote-goto-local-insertion-point with commit
 145109dc4a6f161e4ad826bea9cc970363649280.

 The following patch fixes the sorting problem in org buffers. AFAICT, it
 has no effect on footnote insertion in message mode buffers with
 signatures. (Unfortunately, footnote sorting in message buffers with
 signatures is broken both before and after this patch.)

 diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
 index b6a9bca..d28161e 100644
 --- a/lisp/org-footnote.el
 +++ b/lisp/org-footnote.el
 @@ -511,8 +511,7 @@ ENTRY is (fn-label num-mark definition).
  (beginning-of-line 0))
(if (looking-at [ \t]*#\\+TBLFM:) (beginning-of-line 2))
(end-of-line 1)
 -  (skip-chars-backward \n\r\t )
 -  (forward-line))
 +  (skip-chars-backward \n\r\t ))
  
  (defun org-footnote-delete (optional label)
Delete the footnote at point.

My apologies. Please disregard this patch. It does not fix the issue and
cause problems when creating footnotes.

I'll take a closer look at the code when I get a chance.

- Matt



Re: [O] Release 7.5

2011-03-07 Thread Bastien
Hi Delwood,

Delwood Richardson delwo...@mac.com writes:

 Thanks to Bastien and all the contributors. Did anyone notice that the link on
 the web page still links to Org 7.4? The files linked here: 
 Download as zip file or gzipped tar archive.  are 
 http://orgmode.org/org-7.4.zip and http://orgmode.org/org-7.4.tar.gz

 I just checked and the correct files are on the website here: 
 http://orgmode.org/org-7.5.tar.gz

 So only the link is broken. 

I fixed the link, thanks!

-- 
 Bastien



[O] odt exporter: tarball?

2011-03-07 Thread Eric Abrahamsen
I've never been able to check out the repository at:

http://repo.or.cz/w/org-mode/org-jambu.git

Git hangs every time I try a clone or fetch. Is there a way to get a
tarball snapshot of the repository as it exists now?

Thanks!

Eric




Re: [O] org-with-wide-buffer error

2011-03-07 Thread Kiwon Um
David Maus dm...@ictsoc.de writes:

 At Mon, 07 Mar 2011 17:06:53 +0100,
 Bastien wrote:

 Hi Kiwon,

 Kiwon Um um.ki...@gmail.com writes:

  This is a bug report for the latest (git) orgmode. When I call org-todo
  or org-agenda-todo it reports the following:
 
  Debugger entered--Lisp error: (invalid-function org-with-wide-buffer)

 I cannot reproduce it -- anyone else?

 Me neither. `invalid-function' means that Emacs is unable to resolve
 the function symbol to an executable function. `org-with-wide-buffer'
 is a macro introduced by 4369d4f9a371db152184860eff27234107af77cd --
 so maybe

 make clean
 make

 will do the trick?

 Just out of curiosity: What does

 (symbol-function 'org-with-wide-buffer)

 evaluate to?

Today, it doesn't reproduce anymore after git pull. Thanks all.

SHA1 ID: 4fc3e71f10f238cd2461b785b8ec1b0ecb4ec16b

--
Kiwon Um



[O] Re: Footnote sorting bug

2011-03-07 Thread Matt Lundin
Matt Lundin m...@imapmail.org writes:

 Matt Lundin m...@imapmail.org writes:

 I traced the problem to an extra forward-line added to
 org-footnote-goto-local-insertion-point with commit
 145109dc4a6f161e4ad826bea9cc970363649280.

 The following patch fixes the sorting problem in org buffers. AFAICT, it
 has no effect on footnote insertion in message mode buffers with
 signatures. (Unfortunately, footnote sorting in message buffers with
 signatures is broken both before and after this patch.)

 My apologies. Please disregard this patch. It does not fix the issue and
 cause problems when creating footnotes.

 I'll take a closer look at the code when I get a chance.

The following patch fixes the sorting bug. It also inserts a blank line
above a new footnote definition, which is consistent with the spacing
that results when sorting footnotes. 

--8---cut here---start-8---
diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
index b6a9bca..f2b3489 100644
--- a/lisp/org-footnote.el
+++ b/lisp/org-footnote.el
@@ -314,7 +314,7 @@ or new, let the user edit the definition of the footnote.
 ;; Skip existing footnotes
 (while (re-search-forward ^[[:space:]]*\\[[^]]+\\]  nil t)
   (forward-line))
-(insert [ label ] \n)
+(insert \n[ label ] \n)
 (goto-char (1- (point)))
 (message Edit definition and go back with `C-c ' or, if unique, with 
`C-c C-c'.)))
 
@@ -500,7 +500,7 @@ ENTRY is (fn-label num-mark definition).
 (when (re-search-forward (format .\\[%s[]:] (regexp-quote (car entry)))
 nil t)
   (org-footnote-goto-local-insertion-point)
-  (insert (format \n\n[%s] %s (car entry) (nth 2 entry))
+  (insert (format \n[%s] %s\n (car entry) (nth 2 entry))
 
 (defun org-footnote-goto-local-insertion-point ()
   Find insertion point for footnote, just before next outline heading.
--8---cut here---end---8---

Best,
Matt



Re: [O] odt exporter: tarball?

2011-03-07 Thread suvayu ali
On Mon, Mar 7, 2011 at 4:35 PM, Eric Abrahamsen e...@ericabrahamsen.net wrote:
 I've never been able to check out the repository at:

 http://repo.or.cz/w/org-mode/org-jambu.git

 Git hangs every time I try a clone or fetch. Is there a way to get a
 tarball snapshot of the repository as it exists now?


What url did you use with git? I presume the git:// url should work
just fine. There are instructions on how to clone the repo on the top
of the page if you already have org-mode.git. If none of that works,
can't you get the tarballs from the snapshot links in the shortlog?

Hope this helps.

 Thanks!

 Eric






-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] odt exporter: tarball?

2011-03-07 Thread Eric Abrahamsen
suvayu ali fatkasuvayu+li...@gmail.com writes:

 On Mon, Mar 7, 2011 at 4:35 PM, Eric Abrahamsen e...@ericabrahamsen.net 
 wrote:
 I've never been able to check out the repository at:

 http://repo.or.cz/w/org-mode/org-jambu.git

 Git hangs every time I try a clone or fetch. Is there a way to get a
 tarball snapshot of the repository as it exists now?


 What url did you use with git? I presume the git:// url should work
 just fine. There are instructions on how to clone the repo on the top
 of the page if you already have org-mode.git. If none of that works,
 can't you get the tarballs from the snapshot links in the shortlog?

Man, I'm having a real losing streak with stupid questions. I thought
I'd tried everything over the course of the past few days, but I just
tried the git:// url (again?) and of course it worked perfectly. Sorry
for the noise.

E




[O] Defining capture-templates: custom and init file

2011-03-07 Thread Alan E. Davis
I would like to request advice, on how can I set up so most of my capture
templates are loaded from a file (~/org/capture-templates.el in my case) and
still retain the ability to define new capture templates on the fly.  I want
the best of both worlds:

   - capture-templates.el is easier for me to tweak by hand, and I can
alphabetize the templates in various ways as needed.

   - the capture custom feature is a fantastic way to deine one off
templates on the fly.

One imagines there must be a way to do this by loading one or the other of
the methods first, perhaps ~/org/capture-templates.el, and then load the
custom-file afterwards.

My understanding of the system does not enable me to understand the
underlying nuts and bolts of the system well enough to  know if either of
these methods will work, or run aground.

Thank you

Alan Davis


Re: [O] Defining capture-templates: custom and init file

2011-03-07 Thread Suvayu Ali
On Tue, 8 Mar 2011 12:17:58 +1000
Alan E. Davis lngn...@gmail.com wrote:

 I would like to request advice, on how can I set up so most of my
 capture templates are loaded from a file (~/org/capture-templates.el
 in my case) and still retain the ability to define new capture
 templates on the fly.  I want the best of both worlds:

Sorry, can't be done. The customize interface stores the
(custom-set-variables ... ) block in the init file. Having more than
one such code block might lead to unpredictable Emacs behaviour. Your
only two choices are:

1. Use customize. Then your capture templates are stored with your other
   emacs customisations in your init file (e.g. ~/.emacs,
   ~/.emacs.d/init.el or whatever).

2. Use setq to define your templates outside of customize. If you choose
   this, you lose the ability to define templates using customize and
   save it. You can still however save a template temporarily `C-c C-c'.

I hope this answers your query.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Defining capture-templates: custom and init file

2011-03-07 Thread Alan E. Davis
Hello: Suvayu:

I have set the variable custom-file outside of the init file to
~/org/custom-local.el or some such, so there wouldn't be a conflict within
the same file.  I can delay loading of that file until after the hand-made
capture templates have been loaded from ~/org/capture-templates.el .

Alternately, one could load the custom-file first, then the other.  What I
am thinking/hoping/dreaming is that one could add to the capture-templates
variable, in the same way one adds to, say load-path by saying

   (setq load-path (append load-path (list /home/olaf/Emacs)))

I have noticed the message from within the customization interface that some
variable or another was set outside of customization, and there may be
unpredictable results.  Wonder what that really means, though.   It's still
a variable, isn't it?

Alan

On Tue, Mar 8, 2011 at 3:39 PM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote:

 On Tue, 8 Mar 2011 12:17:58 +1000
 Alan E. Davis lngn...@gmail.com wrote:

  I would like to request advice, on how can I set up so most of my
  capture templates are loaded from a file (~/org/capture-templates.el
  in my case) and still retain the ability to define new capture
  templates on the fly.  I want the best of both worlds:

 Sorry, can't be done. The customize interface stores the
 (custom-set-variables ... ) block in the init file. Having more than
 one such code block might lead to unpredictable Emacs behaviour. Your
 only two choices are:

 1. Use customize. Then your capture templates are stored with your other
   emacs customisations in your init file (e.g. ~/.emacs,
   ~/.emacs.d/init.el or whatever).

 2. Use setq to define your templates outside of customize. If you choose
   this, you lose the ability to define templates using customize and
   save it. You can still however save a template temporarily `C-c C-c'.

 I hope this answers your query.

 --
 Suvayu

 Open source is the future. It sets us free.



Re: [O] Defining capture-templates: custom and init file

2011-03-07 Thread Suvayu Ali
Hi Alan,

On Tue, 8 Mar 2011 16:13:34 +1000
Alan E. Davis lngn...@gmail.com wrote:

 I have noticed the message from within the customization interface
 that some variable or another was set outside of customization, and
 there may be unpredictable results.  Wonder what that really means,
 though.   It's still a variable, isn't it?
 

Say you customise the templates outside your custom-set-variables
block. Now if you use the customise your templates with customize and
save them, it will be saved in the custom-set-variables block. For the
current session of emacs you might not experience any problems, but
when you restart emacs depending on which comes first the setq or the
custom-set-variables your templates will be set accordingly. It is
difficult to predict for me which will be the case. For more on this
you can look here[1].

Hope this helps you understand the issue with what you are attempting.

[1] http://www.dotemacs.de/custbuffer.html

 Alan

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Different (setq org-export-with-section-numbers) depending on HTML or LaTeX export

2011-03-07 Thread Aankhen
On Mon, Mar 7, 2011 at 21:54, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 Aankhen aank...@gmail.com writes:
 On Mon, Mar 7, 2011 at 04:37, Jakub Szypulka cubib...@googlemail.com wrote:
 I'm trying to hide section numbers in the HTML export, while keeping
 the sections in the LaTeX export.

 Adding (setq org-export-with-section-numbers nil) successfully removes
 the HTML section numbering, but for a mysterious reason also removes
 headlines when doing a LaTeX export.

 Could you give a sample of the input and output?  Using Org-mode from
 git, I can’t reproduce this problem:
 [snip]

 Actually, you *have* reproduced the problem: a =section*= does not
 include section numbers which I believe Jakub wanted (in the latex but
 not the HTML).

Hmm, I understood the problem to be that setting
=org-export-with-section-numbers= to =nil= resulted in a
=section=-less LaTeX document, which I couldn’t reproduce.  Maybe I
misunderstood the message.

Aankhen



Re: [O] Re: [REGRESSION] org-html.el (targets)

2011-03-07 Thread Aankhen
On Tue, Mar 8, 2011 at 02:07, Bernt Hansen be...@norang.ca wrote:
 Thanks for the patch.  I still see validation errors after applying this
 patch.  I've posted the original test file at
 http://www.norang.ca/tmp/foo.html and you can click on the validation
 link at the bottom to see the remaining errors.

This one seemed easy to fix, so I thought I’d butt in. :-) Hope the
format of the patch is right (I’m using hg-git).

--8---cut here---start-8---
# HG changeset patch
# User Aankhen
# Date 1299568135 -19800
# Node ID 23e761c8a103c521aef0a85ee3650bc850d0193d
# Parent  56fa585a0f995bc97006ce6d6c2baab9c48c
Fix anchors in HTML export.

diff --git a/lisp/org-html.el b/lisp/org-html.el
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -1996,8 +1996,8 @@
   ;; DocBook document, we want to always include the caption to make
   ;; DocBook XML file valid.
   (push (format caption%s/caption (or caption )) html)
-  (when label (push (format a name=\%s\ id=\%s\/a
(org-solidify-link-text label) (org-solidify-link-text label))
-   html))
+  (when label
+ (setq html-table-tag (org-export-splice-attributes
html-table-tag (format id=\%s\ (org-solidify-link-text label)
   (push html-table-tag html))
 (setq html (mapcar
(lambda (x)
--8---cut here---end---8---

Aankhen