[O] What do you use to identify projects (in the GTD sense)

2011-10-09 Thread Marcelo de Moraes Serpa
Hey list,

I'm wondering if you make the distinction between projects and actionable
items. If you stop to think about it (specially if you read GTD by David
Allen), you see that you can't really "do" a project, but only actions
related to it. It's a powerful and underestimated concept. Of course, a todo
list is still a reminder of things, and any list can be useful, but the more
specific you are, the less you have to think (process) and the more you can
actually execute.

Anyway, I was wondering how you guys differentiate between projects and next
actions (todo's) in your org lists. I myself use a :project: tag for
projects and todos have todo keywords before them. Projects never have a
todo keyword, except when DONE. I used to use a PROJECT keyword before, but
I felt that a tag seems to work better (and allows you to actually filter
todos without mixing projects). So, a typical list looks like this:

* New feature :project:
** TODO Create a mockup for the index page
** TODO Convert the mockup to html
* Renew passport :project:
** DONE Call for appointment
** TODO Interveiw
SCHEDULED <...>
** DONE Buy groceries :project: ...

How do you do it?

Thanks in advance,

- Marcelo.


Re: [O] missing autoload cookies for defcustom?

2011-10-09 Thread Carsten Dominik

On 9.10.2011, at 18:26, Achim Gratz wrote:

> Carsten Dominik  writes:
>> This is not correct for Org when it is distributed with Emacs.  Emacs
>> builds its own autoload files, and it would pull in all these defcustoms.
> 
> I see, so what about those autoloaded defcustoms org-mode already has
> picked up?  Should they not be removed, then?

Good question. Not sure.

> 
> lisp/ob-tangle.el: (defcustom org-babel-tangle-lang-exts
> lisp/org-export-generic.el: (defcustom org-export-generic-links-to-notes t
> lisp/org-man.el: (defcustom org-man-command 'man
> 
> It seems that this would be a common problem, but I can't find a better
> solution.  Something like a special autoload cookie that only triggers
> on some other function (or possibly autoload)...
> 
>> The work-around Org itself provides is to provide a command to load all
>> the autolod files, so that then, the defcustoms will be available.
>> The function is `org-require-autoloaded-modules'.  Also, if you
>> run `M-x org-customize', this will happen automatically.
>> 
>> Maybe we just need to document this in a good place?
> 
> Sure, I certainly didn't know about it - but then it probably still
> misses the target audience.
> 
> Also, it seems that not all defcustoms are picked up that way: after
> switching to the Org customize group via customize-group I only get
> about 500 completions for customize-variable, whereas the sources have
> over 700.  Calling org-customize manually increases the number of
> "known" variables to 679, but still not all of them.

Yes, this might be possible.  I think it does not pick up modules that can, but 
have not been, requested via the `org-modules' variable.  I.e. once you have 
decided to use a module and turned it on with org-modules, you should get your 
variables defined with org-customize.

Regards

- Carsten


> 
> 
> Regards,
> Achim.
> -- 
> +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
> 
> Factory and User Sound Singles for Waldorf Q+, Q and microQ:
> http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
> 
> 




Re: [O] org-7.7, C-c C-c to align tables says "invalid function: org-called-interactively-p"

2011-10-09 Thread Du Yanning
Thank you for your reply.
I have solved it by reinstalling org-7.7.

Originally, I started emacs with parameter "-q" , and then used C-u 0 M-x
byte-recompile-directory to compile the lisp folder under org-7.7. However,
the compilation experienced problem. Then I started emacs without "-q" and
compile. Perhaps this process is the cause of the problem.

Thank you very much.

On Sun, Oct 9, 2011 at 10:12 PM, Jambunathan K wrote:

> Du Yanning  writes:
>
> > Windows 7
> > GNU Emacs 23.3.1 for Windows (i386-mingw-nt6.1.7601)
> > Org 7.7
> >
> > When I press C-c C-c to align a table, it says "invalid function:
> > org-called-interactively-p"
> >
> > Org 7.5 is Ok.
>
> Check
>
> M-x locate-library RET org-table RET
> M-x locate-library RET org-macs RET
>
> Make sure the reported values are both elc files (or they are both el
> files) and they are in the same dir
>
> >
>
> --
>


Re: [O] Using org-babel in other modes?

2011-10-09 Thread Bernt Hansen
Dave Abrahams  writes:

> on Sun Oct 09 2011, Bernt Hansen  wrote:
>
>> (add-to-list 'org-src-lang-modes (quote ("plantuml" . fundamental)))
>> This enables fundamental-mode when I C-c ' on a plantuml block
>> #+begin_src plantuml :file foo.png
>>
>> #+end_src
>> Does that help?
>
> I'm not sure... *looks up org-src-lang-modes* Oh, no I think you
> misunderstood me.  I am not trying to add an additional language
> recognizer to org-babel.
>
> Markdown is a plaintext document format roughly similar to Org.  What I
> want is to modify markdown-mode so that /its/ code blocks, which are
> currently recognized by markdown-mode but rendered in one solid face and
> without any language-specific editing smarts, behave like org's.

Ah, sorry I don't know how this is implemented in org (for the
fontification of source) so I can't help with making markdown-mode work
the way you want.

Regards,
Bernt



Re: [O] Using org-babel in other modes?

2011-10-09 Thread Dave Abrahams

on Sun Oct 09 2011, Bernt Hansen  wrote:

> Is it just a matter of defining the mode to use for some new source?

Sorry, I don't think I understand the question.

> For plantuml I have the following:
> (org-babel-do-load-languages
>  (quote org-babel-load-languages)
>  (quote ((emacs-lisp . t)
>(dot . t)
>(ditaa . t)
>(R . t)
>(python . t)
>(ruby . t)
>(gnuplot . t)
>(clojure . t)
>(sh . t)
>(ledger . t)
>(org . t)
>(plantuml . t)
>(latex . t
>
> (add-to-list 'org-src-lang-modes (quote ("plantuml" . fundamental)))
> This enables fundamental-mode when I C-c ' on a plantuml block
> #+begin_src plantuml :file foo.png
>
> #+end_src
> Does that help?

I'm not sure... *looks up org-src-lang-modes* Oh, no I think you
misunderstood me.  I am not trying to add an additional language
recognizer to org-babel.

Markdown is a plaintext document format roughly similar to Org.  What I
want is to modify markdown-mode so that /its/ code blocks, which are
currently recognized by markdown-mode but rendered in one solid face and
without any language-specific editing smarts, behave like org's.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com



Re: [O] Using org-babel in other modes?

2011-10-09 Thread Bernt Hansen
Dave Abrahams  writes:

> Org-babel does a magic thing where you get to edit and view your source
> code blocks in their native modes.  Wow!
>
> I also happen to use markdown-mode to write blog articles.  How hard, on
> a scale from "read the source and figure it out" to "org-babel already
> has the hooks; you can do it in 5 minutes," would it be to integrate the
> org-babel stuff with markdown?
>
> Seems like this trick would be extremely useful for quite a few modes
> (RestructuredText, anyone?)
>
> Thanks,

Is it just a matter of defining the mode to use for some new source?

For plantuml I have the following:

--8<---cut here---start->8---
(org-babel-do-load-languages
 (quote org-babel-load-languages)
 (quote ((emacs-lisp . t)
 (dot . t)
 (ditaa . t)
 (R . t)
 (python . t)
 (ruby . t)
 (gnuplot . t)
 (clojure . t)
 (sh . t)
 (ledger . t)
 (org . t)
 (plantuml . t)
 (latex . t

(add-to-list 'org-src-lang-modes (quote ("plantuml" . fundamental)))
--8<---cut here---end--->8---

This enables fundamental-mode when I C-c ' on a plantuml block

#+begin_src plantuml :file foo.png

#+end_src


Does that help?

Regards,
Bernt




Re: [O] [PATCH] Re: Latex Export: Place Caption Below Table

2011-10-09 Thread Thomas S. Dye
Carsten Dominik  writes:

> On 3.10.2011, at 16:43, Nick Dokos wrote:
>
>> Eric S Fraga  wrote:
>> 
>>> t...@tsdye.com (Thomas S. Dye) writes:
>>> 
 Nick Dokos  writes:
>>> 
> The following patch (deliberately hidden as a binary octet-stream to keep 
> it
> out of patchwork) will do that - but IMO, it would be better to have yet 
> another
> user-settable option to control the placement.
> 
> Nick
> 
> 
 
 Aloha all,
 
 The inlined patch introduces a variable
 org-export-latex-table-caption-above to control the placement of table
 captions.  Thanks to Nick Dokos for leading the way on this.
 
 Tom
>>> 
>>> 
>>> thanks for doing this -- I was swamped last week so had no chance of
>>> following the thread until today!
>>> 
>>> One comment on the last version of the patch: would it not be better for
>>> the variable to be a defcustom variable instead of defvar?
>> 
>> I agree - being able to customize variables without resorting to lisp is
>> generally preferable: it is friendlier to newcomers and it allows even
>> experienced users to find the various knobs.
>
> If you provide a new patch doing a defcustom, I think this patch would be
> good to have.  Please go ahead and check it in!
>
> - Carsten
>

Aloha Carsten,

The inlined patch changes the defvar to a defcustom.  It is meant to be
applied after the first patch.

All the best,
Tom

>From af153cdaa827903e4ada316b99adef25a735ada7 Mon Sep 17 00:00:00 2001
From: Tom Dye 
Date: Sun, 9 Oct 2011 13:09:02 -1000
Subject: [PATCH 2/2] LaTeX export: Add switch to place captions above or below tables

* lisp/org-latex.el (org-export-latex-tables): Add new variable
  org-export-latex-table-caption-above

Modified from an idea suggested by Eric Fraga and fleshed out by Nick Dokos.
---
 lisp/org-latex.el |7 ++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index f91b93e..7957ffe 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -73,7 +73,6 @@
 	  org-deadline-string "\\|"
 	  org-closed-string"\\)")
   "Regexp matching special time planning keywords plus the time after it.")
-(defvar org-export-latex-table-caption-above t)
 (defvar org-re-quote)  ; dynamically scoped from org.el
 (defvar org-commentsp) ; dynamically scoped from org.el
 
@@ -364,6 +363,12 @@ When nil, grouping causes only separation lines between groups."
   :group 'org-export-latex
   :type 'boolean)
 
+(defcustom org-export-latex-table-caption-above t
+  "When non-nil, the caption is set above the table.  When nil,
+the caption is set below the table."
+  :group 'org-export-latex
+  :type 'boolean)
+
 (defcustom org-export-latex-low-levels 'itemize
   "How to convert sections below the current level of sectioning.
 This is specified by the `org-export-headline-levels' option or the
-- 
1.7.1



>> 
>> If the patch is deemed acceptable, it might also be nice to be able to
>> set the variable per-file through the OPTIONS line, but that can
>> certainly wait.
>> 
>>> Otherwise,
>>> the patch looks fine to me although I'm unlikely to use the new
>>> functionality ;-)
>> 
>> Unless you try to publish an article in a journal with a perverse layout
>> policy :-)
>> 
>> I applied the patch and took it for a short spin. git complained about
>> trailing whitespace:
>> 
>> ,
>> | /home/nick/Mail/inbox/1021:197: trailing whitespace.
>> | (if (and floatp 
>> org-export-latex-table-caption-above) 
>> | /home/nick/Mail/inbox/1021:212: trailing whitespace.
>> | (if (and floatp (not 
>> org-export-latex-table-caption-above)) 
>> | /home/nick/Mail/inbox/1021:225: trailing whitespace.
>> |(if (not org-export-latex-table-caption-above) tbl) 
>> | /home/nick/Mail/inbox/1021:231: trailing whitespace.
>> |(if org-export-latex-table-caption-above tbl) 
>> | warning: 4 lines add whitespace errors.
>> `
>> 
>> but other than that the patch worked fine.
>> 
>> Thanks, Tom!
>> Nick
>> 
>> 
>> 
>
>
>

-- 
Thomas S. Dye
http://www.tsdye.com


[O] Using org-babel in other modes?

2011-10-09 Thread Dave Abrahams

Org-babel does a magic thing where you get to edit and view your source
code blocks in their native modes.  Wow!

I also happen to use markdown-mode to write blog articles.  How hard, on
a scale from "read the source and figure it out" to "org-babel already
has the hooks; you can do it in 5 minutes," would it be to integrate the
org-babel stuff with markdown?

Seems like this trick would be extremely useful for quite a few modes
(RestructuredText, anyone?)

Thanks,

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com





Re: [O] Invalid function: org-called-interactively-p

2011-10-09 Thread Gerrard McNulty
Thanks mate, that works fine


On Sun, Oct 9, 2011 at 5:34 PM, Jambunathan K wrote:

>
> Seems like a bug to me.
>
> As a temporary workaround add this to your .emacs. (Do this only if your
> are running emacs >= 23.2)
>
> --8<---cut here---start->8---
> (defalias 'org-called-interactively-p 'called-interactively-p)
> --8<---cut here---end--->8---
>
> If you don't want to touch your .emacs, you can also do a
>
> C-u M-x org-reload
>
> Btw, (require 'org-install) is not needed if you are using elpa.
>
> > Hi,
> >
> > Here's what I get when I follow those instructions:
> >
> > Library is file ~/.emacs.d/elpa/org-20111008/org-table.elc
> > Library is file ~/.emacs.d/elpa/org-20111008/org-macs.elc
> >
> >
> > On Sun, Oct 9, 2011 at 4:31 PM, Jambunathan K  >> wrote:
> >
> >
> > See http://www.mail-archive.com/emacs-orgmode@gnu.org/
> > msg47345.html
> >
> >
> > > Hi,
> > >
> > > I'm using Emacs 23.3.1 on Windows 7 and org mode 7.7 (installed
> > via
> > > elpa/marmalade).
> > >
> > > My .emacs is fairly minimalist:
> > >
> > > (add-to-list 'load-path "~/.emacs.d/")
> > >
> > > (require 'package)
> > > (add-to-list 'package-archives
> > >  '("marmalade" . "http://marmalade-repo.org/
> > packages/"))
> > > (package-initialize)
> > >
> > > (setq ido-create-new-buffer 'always)
> > > (setq ido-enable-flex-matching t)
> > > (ido-mode 1)
> > >
> > > (require 'org-install)
> > > (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> > > (define-key global-map "\C-cl" 'org-store-link)
> > > (define-key global-map "\C-ca" 'org-agenda)
> > > (setq org-log-done t)
> > >
> > > I get the message "Invalid function:
> > org-called-interactively-p"
> > > whenever I try certain commands e.g.:
> > > Whenever I try to refile (C-c C-w) or at the end of a sparse
> > tree
> > > command (C-c /) it matches what I
> > > search for but then complains about the invalid function again
> > >
> > > Any help appreciated
> > >
> > >
> > >
> >
> > --
> >
> >
> >
> >
>
> --
>


[O] [OT] org <-> InDesign integration possible?

2011-10-09 Thread Marcelo de Moraes Serpa
Hi list,

I've seen a designer friend layout a book in InDesign so quickly and the
output is amazing. I wonder if there's a way to feed text into InDesign
documents through a plugin ? If so, a book could be written in text (org)
and then fed into inDesign? Anyone around use / ever used InDesign for
layout?

Cheers,

- M


Re: [O] Testing org-export-as-odt-and-open

2011-10-09 Thread Jambunathan K

> Have you been able to build the ELPA tarball?
> If so, where can I find it?

I have uploaded a new org-odt-20111010.tar here.

,[ C-h v package-archives RET ]
| package-archives is a variable defined in `package.el'.
| Its value is
| (("gnu" . "http://elpa.gnu.org/packages/";)
|  ("org-odt" . 
"http://repo.or.cz/w/org-mode/org-jambu.git/blob_plain/HEAD:/packages/";))
| 
| Original value was 
| (("gnu" . "http://elpa.gnu.org/packages/";))
| 
| [back]
`

The test file is in this directory:

"~/.emacs.d/elpa/org-odt-20111010/contrib/odt/tests/test.org"

Let me know if you run in to any issues.

ps: At this moment, I am not sure what the problem with your git
installation is. May be you can discard your git setup for now ???

Jambunathan K.

-- 



Re: [O] Question on ical2org script

2011-10-09 Thread Eric S Fraga
Rasmus  writes:

> The following message is a courtesy copy of an article
> that has been posted to gmane.emacs.orgmode as well.
>
> Hi, 
>
> I am maintaining my calendar in gcal and org.
>
> I have been switching back and forth between Eric's awk script and a
> python script posted on this list recently.  The later contains some
> bugs.  
>
> However, I experience two issues with Eric's script.
>
> * Repeated events
>
> For repeated events only the first occurrence seems to translated.  Here
> is an example:
>
> ┏━━━
> ┃ BEGIN:VEVENT
> ┃ DTSTART;TZID=Europe/London:20111012T15
> ┃ DTEND;TZID=Europe/London:20111012T17
> ┃ RRULE:FREQ=WEEKLY;COUNT=9;BYDAY=WE
> ┃ DTSTAMP:20111008T014417Z
> ┃ UID:dihhjpn9hrnct6fj00epk9b...@google.com
> ┃ CREATED:20111007T222923Z
> ┃ DESCRIPTION:
> ┃ LAST-MODIFIED:20111007T222923Z
> ┃ LOCATION:
> ┃ SEQUENCE:0
> ┃ STATUS:CONFIRMED
> ┃ SUMMARY:Micro Class
> ┃ TRANSP:OPAQUE
> ┃ END:VEVENT
> ┗━━━
>
> Note line 4. It reads that the event should be repeated weekly nine
> times.  It does not seem to be repeated in the org-file generated by
> ical2org.  Does other experience this as well?

Yes, repeated events are not supported in the code.  Probably trivial to
add but I'm swamped with a new academic term which started last week so
it'll be a while before I get to this.  I'll add it to my (ever growing)
TODO list in any case.  Thanks for a clear example.

>
> * All day events. 
>
> For me all day events spans two days and are further given a time.
>
> Here is an example:
>
> ┏━━━
> ┃ BEGIN:VEVENT
> ┃ DTSTART;VALUE=DATE:20111012
> ┃ DTEND;VALUE=DATE:20111013
> ┃ UID:5oshl25lnn7da5mmog9bbem...@google.com
> ┃ CREATED:20111007T214920Z
> ┃ DESCRIPTION:
> ┃ LAST-MODIFIED:20111007T214920Z
> ┃ LOCATION:
> ┃ SEQUENCE:0
> ┃ STATUS:CONFIRMED
> ┃ SUMMARY:exam\, math
> ┃ TRANSP:TRANSPARENT
> ┃ END:VEVENT
> ┗━━━
>
> Which is translated to 
>
> *  exam, math
>   <2011-10-12 Wed 00:00>--<2011-10-13 Thu 00:00>
>
> I don't know why Google writes time as
>
> ┏━━━
> ┃ DTSTART;VALUE=DATE:20111012
> ┃ DTEND;VALUE=DATE:20111013
> ┗━━━
>
> but the event is on 20111012 only and it might be more correct to
> translate it to 
>
> *  exam, math
>   <2011-10-12 Wed>
>
> which would (correctly) be interpreted as an all-day event in
> org-agenda. 
>
> Does anyone else experience this all-day issue?
>
> Thanks,
> Rasmus

I'm not sure I tested all day events (I don't tend to use them,
preferring to say 9am-5pm, say) but I can see the usefulness of
these.  I'll add this to my TODO list as well!

Thanks for the feedback!

eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1
: using Org-mode version 7.7 (release_7.7.368.g85d0)



Re: [O] [patch] Add source subtree which will be refiled

2011-10-09 Thread Sebastien Vauban
Hi Carsten,

Carsten Dominik wrote:
>> I found it difficult, sometimes, to remember which subtree we're gonna 
>> refile.
>> When TAB'ing for multiple targets, you loose your source buffer, and can
>> easily forget which exact subtree you had selected.
>> 
>> Here a patch to add the name of the subtree we're operating on.
>
> can you please resubmit a modified patch using either (org-get-heading t t)
> or (nth 4 (org-heading-components))

Thanks for looking at it.

I'll do!

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [patch] Don't output preamble DIV if its contents is empty

2011-10-09 Thread Sebastien Vauban
Hi Carsten,

Carsten Dominik wrote:
>> To be sure that CSS rules don't apply to missing contents, there's no need
>> to output DIV preamble opening and closing tags if there is nothing in
>> between.
>
> are there adverse effects when an empty div is in the file?

Yes, there are, reason for such patch.

In some style I'm working on for the site I'm publishing, I'm using a quite
large banner in black background as site's preamble. That works OK.

But, even for exporting a single page (no publish, I mean, just `C-x C-e b'),
I got this black background coming into play, while I had *no preamble set* for
those orphan pages.

Hence, the patch to remove such a preamble when it is essentially empty.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Invalid function: org-called-interactively-p

2011-10-09 Thread Achim Gratz
Gerrard McNulty  writes:
> Here's what I get when I follow those instructions:
>
> Library is file ~/.emacs.d/elpa/org-20111008/org-table.elc
> Library is file ~/.emacs.d/elpa/org-20111008/org-macs.elc

Did you perhaps have an earlier version of org-mode installed without
using ELPA?  Is it possible you still pick up some files from that old
place?


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

DIY Stuff:
http://Synth.Stromeko.net/DIY.html




Re: [O] org-7.7, C-c C-c to align tables says "invalid function: org-called-interactively-p"

2011-10-09 Thread Jambunathan K

See http://www.mail-archive.com/emacs-orgmode@gnu.org/msg47354.html

That's only a temporary workaround.

> Du Yanning  writes:
>
>> Windows 7
>> GNU Emacs 23.3.1 for Windows (i386-mingw-nt6.1.7601)
>> Org 7.7
>>
>> When I press C-c C-c to align a table, it says "invalid function:
>> org-called-interactively-p"
>>
>> Org 7.5 is Ok.
>
> Check
>
> M-x locate-library RET org-table RET
> M-x locate-library RET org-macs RET
>
> Make sure the reported values are both elc files (or they are both el
> files) and they are in the same dir
>
>>

-- 



Re: [O] Invalid function: org-called-interactively-p

2011-10-09 Thread Jambunathan K

Seems like a bug to me.

As a temporary workaround add this to your .emacs. (Do this only if your
are running emacs >= 23.2)

--8<---cut here---start->8---
(defalias 'org-called-interactively-p 'called-interactively-p)
--8<---cut here---end--->8---

If you don't want to touch your .emacs, you can also do a 

C-u M-x org-reload

Btw, (require 'org-install) is not needed if you are using elpa.

> Hi,
>
> Here's what I get when I follow those instructions:
>
> Library is file ~/.emacs.d/elpa/org-20111008/org-table.elc
> Library is file ~/.emacs.d/elpa/org-20111008/org-macs.elc
>
>
> On Sun, Oct 9, 2011 at 4:31 PM, Jambunathan K > wrote:
>
>
> See http://www.mail-archive.com/emacs-orgmode@gnu.org/
> msg47345.html
>
>
> > Hi,
> >
> > I'm using Emacs 23.3.1 on Windows 7 and org mode 7.7 (installed
> via
> > elpa/marmalade).
> >
> > My .emacs is fairly minimalist:
> >
> > (add-to-list 'load-path "~/.emacs.d/")
> >
> > (require 'package)
> > (add-to-list 'package-archives
> >  '("marmalade" . "http://marmalade-repo.org/
> packages/"))
> > (package-initialize)
> >
> > (setq ido-create-new-buffer 'always)
> > (setq ido-enable-flex-matching t)
> > (ido-mode 1)
> >
> > (require 'org-install)
> > (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> > (define-key global-map "\C-cl" 'org-store-link)
> > (define-key global-map "\C-ca" 'org-agenda)
> > (setq org-log-done t)
> >
> > I get the message "Invalid function:
> org-called-interactively-p"
> > whenever I try certain commands e.g.:
> > Whenever I try to refile (C-c C-w) or at the end of a sparse
> tree
> > command (C-c /) it matches what I
> > search for but then complains about the invalid function again
> >
> > Any help appreciated
> >
> >
> >
>
> --
>
>
>
>

-- 



Re: [O] missing autoload cookies for defcustom?

2011-10-09 Thread Achim Gratz
Carsten Dominik  writes:
> This is not correct for Org when it is distributed with Emacs.  Emacs
> builds its own autoload files, and it would pull in all these defcustoms.

I see, so what about those autoloaded defcustoms org-mode already has
picked up?  Should they not be removed, then?

lisp/ob-tangle.el: (defcustom org-babel-tangle-lang-exts
lisp/org-export-generic.el: (defcustom org-export-generic-links-to-notes t
lisp/org-man.el: (defcustom org-man-command 'man

It seems that this would be a common problem, but I can't find a better
solution.  Something like a special autoload cookie that only triggers
on some other function (or possibly autoload)...

> The work-around Org itself provides is to provide a command to load all
> the autolod files, so that then, the defcustoms will be available.
> The function is `org-require-autoloaded-modules'.  Also, if you
> run `M-x org-customize', this will happen automatically.
>
> Maybe we just need to document this in a good place?

Sure, I certainly didn't know about it - but then it probably still
misses the target audience.

Also, it seems that not all defcustoms are picked up that way: after
switching to the Org customize group via customize-group I only get
about 500 completions for customize-variable, whereas the sources have
over 700.  Calling org-customize manually increases the number of
"known" variables to 679, but still not all of them.


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

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] Testing org-export-as-odt-and-open

2011-10-09 Thread Eric Belpaire

Hi Jambunathan

On 25/09/2011 21:08, Jambunathan K wrote:


I STRONGLY RECOMMEND that you switch to the development version of
Orgmode. Please refer to http://orgmode.org/worg/org-faq.html - sections
"How do I keep current with bleeding edge development?" or "I don't use
git. Can I download bleeding edge .zip and .tar.gz archives?"

If you would very much want to work only with ELPA tarballs, maybe you
should wait for a day or two. I was planning to build one anyways and
now I have an excuse why I should build one.


I'm trying git out.

I got the following message:
"Debugger entered--Lisp error: (invalid-function assert)
  assert(t t)
  org-lparse-backend-get("odt" ENTITY-CONTROL nil)
  org-lparse-get(ENTITY-CONTROL)
  org-do-lparse(nil nil nil nil nil nil)
  org-lparse("odt" "odt" nil nil nil nil nil nil)
  org-export-as-odt(nil)
  call-interactively(org-export-as-odt)
  org-export(nil)
  call-interactively(org-export nil nil)"

Have you been able to build the ELPA tarball?
If so, where can I find it?

Thanks and thanks for this very interesting exporter !
Eric



Re: [O] missing autoload cookies for defcustom?

2011-10-09 Thread Carsten Dominik

On 9.10.2011, at 17:20, Achim Gratz wrote:

> 
> While playing aroud with different configurations I've noticed that you
> can't customize some variables unless you've loaded org first and then
> used a function from the file where they are defined.  It's of course a
> bit difficult to know which function to use or file to load when all you
> want to do is customizing a variable that you've read about in the
> manual or on Worg.

Yes, this is an issue.

> 
> It seems that all defcustom forms that are not defined in org.el (and
> maybe even those) should get an autoload cookie so that they are
> collected into org-install.el and Emacs knows where to find them even if
> their source file had not been loaded yet.  The following perl
> invocation fixes all occurences of defcustom that aren't already having
> an autoload cookie set.
> 
> perl -i -p \
> -e 'BEGIN{$o=0;}' \
> -e 'if ( /^\s*\(defcustom/ ) {' \
> -e '  print ";;;###autoload\n" unless $o;' \
> -e '} else {' \
> -e '  $o=/^;;;###autoload/;' \
> -e '}' \
> lisp/*.el
> 
> (the \s* in the regex is for a mis-indented item in org-feed.el)
> 
> This should produce the following diffstat on current master:
> 
> lisp/ob-exp.el  |1 +
> lisp/ob-js.el   |1 +
> lisp/ob-lisp.el |1 +
> lisp/ob-lob.el  |1 +
> lisp/ob-plantuml.el |1 +
> lisp/ob-scheme.el   |1 +
> lisp/ob-sh.el   |1 +
> lisp/ob-tangle.el   |6 ++
> lisp/ob.el  |2 +
> lisp/org-agenda.el  |   94 +
> lisp/org-archive.el |7 ++
> lisp/org-ascii.el   |5 +
> lisp/org-attach.el  |7 ++
> lisp/org-bbdb.el|4 +
> lisp/org-beamer.el  |9 ++
> lisp/org-bibtex.el  |9 ++
> lisp/org-capture.el |3 +
> lisp/org-clock.el   |   26 ++
> lisp/org-crypt.el   |3 +
> lisp/org-ctags.el   |3 +
> lisp/org-docbook.el |   16 
> lisp/org-entities.el|2 +
> lisp/org-exp-blocks.el  |4 +
> lisp/org-exp.el |   43 ++
> lisp/org-faces.el   |8 ++
> lisp/org-feed.el|7 ++
> lisp/org-footnote.el|6 ++
> lisp/org-freemind.el|2 +
> lisp/org-gnus.el|2 +
> lisp/org-habit.el   |7 ++
> lisp/org-html.el|   35 
> lisp/org-icalendar.el   |   16 
> lisp/org-id.el  |8 ++
> lisp/org-indent.el  |4 +
> lisp/org-inlinetask.el  |3 +
> lisp/org-jsinfo.el  |3 +
> lisp/org-latex.el   |   37 +
> lisp/org-list.el|   14 +++
> lisp/org-mac-message.el |1 +
> lisp/org-mew.el |1 +
> lisp/org-mhe.el |1 +
> lisp/org-mobile.el  |   13 +++
> lisp/org-mouse.el   |2 +
> lisp/org-protocol.el|4 +
> lisp/org-publish.el |   11 +++
> lisp/org-remember.el|   10 +++
> lisp/org-src.el |9 ++
> lisp/org-table.el   |   21 +
> lisp/org-taskjuggler.el |8 ++
> lisp/org-timer.el   |2 +
> lisp/org-wl.el  |6 ++
> lisp/org.el |  207 +++
> 52 files changed, 698 insertions(+), 0 deletions(-)
> 
> This is obviously quite heavy-handed and there is vocal opposition among
> the Emacs maintainers towards autoloading defcustoms.  While I partly
> understand their rationale, I don't think it applies to org-mode (these
> autoloads only become effective when org-install is loaded).

This is not correct for Org when it is distributed with Emacs.  Emacs
builds its own autoload files, and it would pull in all these defcustoms.

The work-around Org itself provides is to provide a command to load all
the autolod files, so that then, the defcustoms will be available.
The function is `org-require-autoloaded-modules'.  Also, if you
run `M-x org-customize', this will happen automatically.

Maybe we just need to document this in a good place?

- Carsten

>  Also, I
> don't really see what the alternative should be, unless all those
> defcustoms would be moved into separate files that would then be
> required by org-install (I'm not suggesting to do that, BTW).  Also it
> appears that there is no way to autoload a defgroup form, so that one
> would need to be handled in a different way, maybe by moving all
> defgroups into org.el.  Thoughts?
> 
> 
> Regards,
> Achim.
> -- 
> +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
> 
> SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
> http://Synth.Stromeko.net/Downloads.html#KorgSDada
> 
> 




Re: [O] Invalid function: org-called-interactively-p

2011-10-09 Thread Gerrard McNulty
Hi,

Here's what I get when I follow those instructions:

Library is file ~/.emacs.d/elpa/org-20111008/org-table.elc
Library is file ~/.emacs.d/elpa/org-20111008/org-macs.elc


On Sun, Oct 9, 2011 at 4:31 PM, Jambunathan K wrote:

>
> See http://www.mail-archive.com/emacs-orgmode@gnu.org/msg47345.html
>
>
> > Hi,
> >
> > I'm using Emacs 23.3.1 on Windows 7 and org mode 7.7 (installed via
> > elpa/marmalade).
> >
> > My .emacs is fairly minimalist:
> >
> > (add-to-list 'load-path "~/.emacs.d/")
> >
> > (require 'package)
> > (add-to-list 'package-archives
> >  '("marmalade" . "http://marmalade-repo.org/packages/";))
> > (package-initialize)
> >
> > (setq ido-create-new-buffer 'always)
> > (setq ido-enable-flex-matching t)
> > (ido-mode 1)
> >
> > (require 'org-install)
> > (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> > (define-key global-map "\C-cl" 'org-store-link)
> > (define-key global-map "\C-ca" 'org-agenda)
> > (setq org-log-done t)
> >
> > I get the message "Invalid function: org-called-interactively-p"
> > whenever I try certain commands e.g.:
> > Whenever I try to refile (C-c C-w) or at the end of a sparse tree
> > command (C-c /) it matches what I
> > search for but then complains about the invalid function again
> >
> > Any help appreciated
> >
> >
> >
>
> --
>


Re: [O] Invalid function: org-called-interactively-p

2011-10-09 Thread Jambunathan K

See http://www.mail-archive.com/emacs-orgmode@gnu.org/msg47345.html


> Hi,
>
> I'm using Emacs 23.3.1 on Windows 7 and org mode 7.7 (installed via
> elpa/marmalade).
>
> My .emacs is fairly minimalist:
>
> (add-to-list 'load-path "~/.emacs.d/")
>
> (require 'package)
> (add-to-list 'package-archives
>  '("marmalade" . "http://marmalade-repo.org/packages/";))
> (package-initialize)
>
> (setq ido-create-new-buffer 'always)
> (setq ido-enable-flex-matching t)
> (ido-mode 1)
>
> (require 'org-install)
> (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> (define-key global-map "\C-cl" 'org-store-link)
> (define-key global-map "\C-ca" 'org-agenda)
> (setq org-log-done t)
>
> I get the message "Invalid function: org-called-interactively-p"
> whenever I try certain commands e.g.:
> Whenever I try to refile (C-c C-w) or at the end of a sparse tree
> command (C-c /) it matches what I
> search for but then complains about the invalid function again
>
> Any help appreciated
>
>
>

-- 



[O] Invalid function: org-called-interactively-p

2011-10-09 Thread Gerrard McNulty
Hi,

I'm using Emacs 23.3.1 on Windows 7 and org mode 7.7 (installed via
elpa/marmalade).

My .emacs is fairly minimalist:

(add-to-list 'load-path "~/.emacs.d/")

(require 'package)
(add-to-list 'package-archives
 '("marmalade" . "http://marmalade-repo.org/packages/";))
(package-initialize)

(setq ido-create-new-buffer 'always)
(setq ido-enable-flex-matching t)
(ido-mode 1)

(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)

I get the message "Invalid function: org-called-interactively-p" whenever I
try certain commands e.g.:
Whenever I try to refile (C-c C-w) or at the end of a sparse tree command
(C-c /) it matches what I
search for but then complains about the invalid function again

Any help appreciated


[O] missing autoload cookies for defcustom?

2011-10-09 Thread Achim Gratz

While playing aroud with different configurations I've noticed that you
can't customize some variables unless you've loaded org first and then
used a function from the file where they are defined.  It's of course a
bit difficult to know which function to use or file to load when all you
want to do is customizing a variable that you've read about in the
manual or on Worg.

It seems that all defcustom forms that are not defined in org.el (and
maybe even those) should get an autoload cookie so that they are
collected into org-install.el and Emacs knows where to find them even if
their source file had not been loaded yet.  The following perl
invocation fixes all occurences of defcustom that aren't already having
an autoload cookie set.

perl -i -p \
-e 'BEGIN{$o=0;}' \
-e 'if ( /^\s*\(defcustom/ ) {' \
-e '  print ";;;###autoload\n" unless $o;' \
-e '} else {' \
-e '  $o=/^;;;###autoload/;' \
-e '}' \
lisp/*.el

(the \s* in the regex is for a mis-indented item in org-feed.el)

This should produce the following diffstat on current master:

 lisp/ob-exp.el  |1 +
 lisp/ob-js.el   |1 +
 lisp/ob-lisp.el |1 +
 lisp/ob-lob.el  |1 +
 lisp/ob-plantuml.el |1 +
 lisp/ob-scheme.el   |1 +
 lisp/ob-sh.el   |1 +
 lisp/ob-tangle.el   |6 ++
 lisp/ob.el  |2 +
 lisp/org-agenda.el  |   94 +
 lisp/org-archive.el |7 ++
 lisp/org-ascii.el   |5 +
 lisp/org-attach.el  |7 ++
 lisp/org-bbdb.el|4 +
 lisp/org-beamer.el  |9 ++
 lisp/org-bibtex.el  |9 ++
 lisp/org-capture.el |3 +
 lisp/org-clock.el   |   26 ++
 lisp/org-crypt.el   |3 +
 lisp/org-ctags.el   |3 +
 lisp/org-docbook.el |   16 
 lisp/org-entities.el|2 +
 lisp/org-exp-blocks.el  |4 +
 lisp/org-exp.el |   43 ++
 lisp/org-faces.el   |8 ++
 lisp/org-feed.el|7 ++
 lisp/org-footnote.el|6 ++
 lisp/org-freemind.el|2 +
 lisp/org-gnus.el|2 +
 lisp/org-habit.el   |7 ++
 lisp/org-html.el|   35 
 lisp/org-icalendar.el   |   16 
 lisp/org-id.el  |8 ++
 lisp/org-indent.el  |4 +
 lisp/org-inlinetask.el  |3 +
 lisp/org-jsinfo.el  |3 +
 lisp/org-latex.el   |   37 +
 lisp/org-list.el|   14 +++
 lisp/org-mac-message.el |1 +
 lisp/org-mew.el |1 +
 lisp/org-mhe.el |1 +
 lisp/org-mobile.el  |   13 +++
 lisp/org-mouse.el   |2 +
 lisp/org-protocol.el|4 +
 lisp/org-publish.el |   11 +++
 lisp/org-remember.el|   10 +++
 lisp/org-src.el |9 ++
 lisp/org-table.el   |   21 +
 lisp/org-taskjuggler.el |8 ++
 lisp/org-timer.el   |2 +
 lisp/org-wl.el  |6 ++
 lisp/org.el |  207 +++
 52 files changed, 698 insertions(+), 0 deletions(-)

This is obviously quite heavy-handed and there is vocal opposition among
the Emacs maintainers towards autoloading defcustoms.  While I partly
understand their rationale, I don't think it applies to org-mode (these
autoloads only become effective when org-install is loaded).  Also, I
don't really see what the alternative should be, unless all those
defcustoms would be moved into separate files that would then be
required by org-install (I'm not suggesting to do that, BTW).  Also it
appears that there is no way to autoload a defgroup form, so that one
would need to be handled in a different way, maybe by moving all
defgroups into org.el.  Thoughts?


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

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada




Re: [O] github: (partial) support for Org-mode files

2011-10-09 Thread Jambunathan K

FYI,
https://lists.gnu.org/archive/html/emacs-orgmode/2011-09/msg00067.html


> Hi Karl,
>
> Org-mode support in GitHub is provided by the package org-ruby[1][2].
> Looking at the source code and test-cases here would give you a fair
> idea of what is supported and what is not.  Also, the version of
> org-ruby presently deployed on GitHub is a bit old, and the latest
> release comes with quite a few fixes and new features.
>
> One of us could probably write to GitHub, asking them to update the
> package being deployed.  I tried contacting them on twitter a few
> weeks back, but didn't work.
>
> Thanks,
> Puneeth
>
> [1] - https://github.com/bdewey/org-ruby
> [2] - http://lists.gnu.org/archive/html/emacs-orgmode/2011-09/msg00067.html
>
> On Sun, Oct 9, 2011 at 7:10 PM, Karl Voit  wrote:
>> Hi!
>>
>> Some of you might have already noticed that github[1] does provide
>> some basic support[2] for Org-mode files. Therefore you can use
>> files like «README.org» instead of «README» or «README.txt».
>>
>> I started to use Org-mode format for readme files recently[3]. I
>> realized, that there is only partial support of Org-mode syntax on
>> github.
>>
>> In order to test those settings I ended up in committing various
>> tests in my project just to look how github presents my readme file.
>>
>> Today I created a simple github project for testing purposes (only):
>>
>>            https://github.com/novoid/github-orgmode-tests
>>
>> Probably you might have the very same demand for testing and want to
>> join me in using this Org-mode-github test repository instead of
>> creating one for your own :-)
>>
>>
>> PS: is there an already existing Org-mode demofile containing all
>> basic syntax examples?
>>
>>  1. http://github.com
>>  2. https://github.com/github/markup#readme
>>  3. https://github.com/novoid/Memacs
>> --
>> Karl Voit
>>
>>
>>

-- 



Re: [O] org-7.7, C-c C-c to align tables says "invalid function: org-called-interactively-p"

2011-10-09 Thread Jambunathan K
Du Yanning  writes:

> Windows 7
> GNU Emacs 23.3.1 for Windows (i386-mingw-nt6.1.7601)
> Org 7.7
>
> When I press C-c C-c to align a table, it says "invalid function:
> org-called-interactively-p"
>
> Org 7.5 is Ok.

Check

M-x locate-library RET org-table RET
M-x locate-library RET org-macs RET

Make sure the reported values are both elc files (or they are both el
files) and they are in the same dir

>

-- 



Re: [O] github: (partial) support for Org-mode files

2011-10-09 Thread Puneeth Chaganti
Hi Karl,

Org-mode support in GitHub is provided by the package org-ruby[1][2].
Looking at the source code and test-cases here would give you a fair
idea of what is supported and what is not.  Also, the version of
org-ruby presently deployed on GitHub is a bit old, and the latest
release comes with quite a few fixes and new features.

One of us could probably write to GitHub, asking them to update the
package being deployed.  I tried contacting them on twitter a few
weeks back, but didn't work.

Thanks,
Puneeth

[1] - https://github.com/bdewey/org-ruby
[2] - http://lists.gnu.org/archive/html/emacs-orgmode/2011-09/msg00067.html

On Sun, Oct 9, 2011 at 7:10 PM, Karl Voit  wrote:
> Hi!
>
> Some of you might have already noticed that github[1] does provide
> some basic support[2] for Org-mode files. Therefore you can use
> files like «README.org» instead of «README» or «README.txt».
>
> I started to use Org-mode format for readme files recently[3]. I
> realized, that there is only partial support of Org-mode syntax on
> github.
>
> In order to test those settings I ended up in committing various
> tests in my project just to look how github presents my readme file.
>
> Today I created a simple github project for testing purposes (only):
>
>            https://github.com/novoid/github-orgmode-tests
>
> Probably you might have the very same demand for testing and want to
> join me in using this Org-mode-github test repository instead of
> creating one for your own :-)
>
>
> PS: is there an already existing Org-mode demofile containing all
> basic syntax examples?
>
>  1. http://github.com
>  2. https://github.com/github/markup#readme
>  3. https://github.com/novoid/Memacs
> --
> Karl Voit
>
>
>



-- 
Puneeth



[O] github: (partial) support for Org-mode files

2011-10-09 Thread Karl Voit
Hi!

Some of you might have already noticed that github[1] does provide
some basic support[2] for Org-mode files. Therefore you can use
files like «README.org» instead of «README» or «README.txt».

I started to use Org-mode format for readme files recently[3]. I
realized, that there is only partial support of Org-mode syntax on
github.

In order to test those settings I ended up in committing various
tests in my project just to look how github presents my readme file.

Today I created a simple github project for testing purposes (only):

https://github.com/novoid/github-orgmode-tests

Probably you might have the very same demand for testing and want to
join me in using this Org-mode-github test repository instead of
creating one for your own :-)


PS: is there an already existing Org-mode demofile containing all
basic syntax examples?

  1. http://github.com
  2. https://github.com/github/markup#readme
  3. https://github.com/novoid/Memacs
-- 
Karl Voit




Re: [O] Bug Report: latex export interaction with inlinetasks

2011-10-09 Thread Colin Fraizer
Hi, Nicolas,

Please pardon my ignorance, but I don't know how to generate a patch for
distribution.

Since I sent that e-mail, I added a few more items from the opt-plist to
include :todo, :todo-keywords, :tags, and :priority.

The output from diff for my new version against the one I grabbed from the
git repository follows (enclosed in an org example block).

--Colin

#+begin_example
3c3
< ;; Copyright (C) 2007-2011 Free Software Foundation, Inc.
---
> ;; Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
7c7,8
< ;; Author: Bastien Guerry 
---
> ;; Version: 7.7
> ;; Author: Bastien Guerry 
404c405
<   '("\\begin{verbatim}\n" . "\\end{verbatim}")
---
>   '("\\begin{verbatim}\n" . "\\end{verbatim}\n")
1472a1474,1478
> :tasks (plist-get opt-plist :tasks)
> :todo (plist-get opt-plist :todo)
> :todo-keywords (plist-get opt-plist :todo-keywords)
> :tags (plist-get opt-plist :tags)
> :priority (plist-get opt-plist :priority)
1839c1845
<   (insert "\\end{verbatim}\n"))
---
>   (insert "\\end{verbatim}\n\n"))
2769a2776,2777
> 
> ;; arch-tag: 23c2b87d-da04-4c2d-ad2d-1eb6487bc3ad
#+end_example

-Original Message-
From: emacs-orgmode-bounces+orgmode=cfraizer@gnu.org
[mailto:emacs-orgmode-bounces+orgmode=cfraizer@gnu.org] On Behalf Of
Nicolas Goaziou
Sent: Sunday, October 09, 2011 8:06 AM
To: Colin Fraizer
Cc: emacs-orgmode@gnu.org
Subject: Re: [O] Bug Report: latex export interaction with inlinetasks

Hello,

"Colin Fraizer"  writes:

> I have a file like this:
>
>  
>
> * Item 1
>
>   - list1a
>
>   - list1b
>
> * Item 2
>
>   - list2a
>
> *** TODO Test
>
> *** END
>
>   - list2b
>
> * Item 3
>
>  
>
> (1)If I export the whole file to LaTeX, everything works fine.
>
> (2)If I export the subtree "* Item 2" to HTML, everything works fine.
> (I see my list and the inlinetask in that list.)
>
> (3)If I export the subtree "* Item 2" to LaTeX, the inlinetask is
> removed. (All inlinetasks are removed from list2.)
>
>
> This is apparently caused by the fact that:
>
> 1.   org-export-latex-first-lines matches all of list2 (because there
> are no headlines under "* Item 2"); AND
>
> 2.   org-export-preprocess-string is called with limited parameters on
> those first lines. Those parameters do not include my value for ":tasks".
>
> Is there a reason why we could not (or should not) change the defun 
> org-export-latex-first-lines like the following.  I only add the line
>
> ":tasks (plist-get opt-plist :tasks)"
>
> I'm not familiar enough with the guts of org to know if that will have 
> terrible consequences elsewhere.
>
> (defun org-export-latex-first-lines (opt-plist &optional beg end)
>:
>:
>   (prog1
>  (org-export-latex-content
>   (org-export-preprocess-string
>(buffer-substring pt end)
>:for-backend 'latex
>:emph-multiline t
>:add-text nil
>:comments nil
>:skip-before-1st-heading nil
>:LaTeX-fragments nil
>:tasks (plist-get opt-plist :tasks)  ;; *** I PROPOSE ADDING
THIS LINE
>:timestamps (plist-get opt-plist :timestamps)
>:footnotes (plist-get opt-plist :footnotes)))
>:
>:
>) ; end of defun

I think this should be safe. Do you want to make a patch for that?

Regards,

--
Nicolas Goaziou





Re: [O] Bug? in latex export of cross-references in footnotes

2011-10-09 Thread Nicolas Goaziou
Hello,

Robert Goldman  writes:

> On 9/26/11 Sep 26 -2:26 PM, Robert Goldman wrote:
>> Here is a simple footnote in a test file:
>> 
>> Footnotes:
>> [1]  The footnote contains a cross-reference to [[Heading]].
>> 
>> When I export this using org-export-as-pdf, the cross-reference to
>> Heading doesn't get exported properly.  In particular, what I see in the
>> emitted latex file is:
>> 
>> Inside the text there is a footnote.\protect\footnote{The footnote
>> contains a cross-reference to \hyperref[Heading]{Heading}. }
>> 
>> But the only latex \label associated with \section{Heading} is
>> \label{sec-1}.
>> 
>> I am attaching the sample org file and latex output.
>> 
>> Thanks for any suggestions!
>> 
>> Robert
>
> I tweaked the example a little (see attachment), and this is a bona fide
> bug.  A corresponding link in the body text (I have modified the link to
> use the "restricted to headers" syntax, just in case that was the
> problem), works properly.  It's only in the footnote that it's broken.

Yes, managing internal links within a footnote is a non-trivial task in
the LaTeX exporter. I'm working on a different approach.

Regards,

-- 
Nicolas Goaziou



Re: [O] Bug Report: latex export interaction with inlinetasks

2011-10-09 Thread Nicolas Goaziou
Hello,

"Colin Fraizer"  writes:

> I have a file like this:
>
>  
>
> * Item 1
>
>   - list1a
>
>   - list1b
>
> * Item 2
>
>   - list2a
>
> *** TODO Test
>
> *** END
>
>   - list2b
>
> * Item 3
>
>  
>
> (1)If I export the whole file to LaTeX, everything works fine.
>
> (2)If I export the subtree "* Item 2" to HTML, everything works fine.
> (I see my list and the inlinetask in that list.)
>
> (3)If I export the subtree "* Item 2" to LaTeX, the inlinetask is
> removed. (All inlinetasks are removed from list2.)
>
>
> This is apparently caused by the fact that:
>
> 1.   org-export-latex-first-lines matches all of list2 (because there
> are no headlines under "* Item 2"); AND
>
> 2.   org-export-preprocess-string is called with limited parameters on
> those first lines. Those parameters do not include my value for ":tasks".
>
> Is there a reason why we could not (or should not) change the defun
> org-export-latex-first-lines like the following.  I only add the line
>
> ":tasks (plist-get opt-plist :tasks)"
>
> I'm not familiar enough with the guts of org to know if that will have
> terrible consequences elsewhere.
>
> (defun org-export-latex-first-lines (opt-plist &optional beg end)
>:
>:
>   (prog1
>  (org-export-latex-content
>   (org-export-preprocess-string
>(buffer-substring pt end)
>:for-backend 'latex
>:emph-multiline t
>:add-text nil
>:comments nil
>:skip-before-1st-heading nil
>:LaTeX-fragments nil
>:tasks (plist-get opt-plist :tasks)  ;; *** I PROPOSE ADDING THIS 
> LINE
>:timestamps (plist-get opt-plist :timestamps)
>:footnotes (plist-get opt-plist :footnotes)))
>:
>:
>) ; end of defun

I think this should be safe. Do you want to make a patch for that?

Regards,

-- 
Nicolas Goaziou



Re: [O] [patch] Add source subtree which will be refiled

2011-10-09 Thread Carsten Dominik
Hi Sebastien,

can you please resubmit a modified patch using either (org-get-heading t t)
or (nth 4 (org-heading-components))

?

Thanks!

- Carsten

On 29.9.2011, at 11:19, Sebastien Vauban wrote:

> Hello,
> 
> I found it difficult, sometimes, to remember which subtree we're gonna refile.
> When TAB'ing for multiple targets, you loose your source buffer, and can
> easily forget which exact subtree you had selected.
> 
> Here a patch to add the name of the subtree we're operating on.
> 
> Best regards,
>  Seb
> 
> -- 
> Sebastien Vauban
> <0001-Add-heading-string-to-refile-message.patch>




Re: [O] [patch] Don't output preamble DIV if its contents is empty

2011-10-09 Thread Carsten Dominik
Hi Sebastien,

are there adverse effects when an empty div is in the file?

THanks

- Carsten
On 29.9.2011, at 21:58, Sebastien Vauban wrote:

> Hi,
> 
> To be sure that CSS rules don't apply to missing contents, there's no need to
> output DIV preamble opening and closing tags if there is nothing in between.
> 
> Best regards,
>  Seb
> 
> -- 
> Sebastien Vauban
> <0002-Don-t-output-DIV-preamble-tags-when-contents-is-empt.patch>




Re: [O] [PATCH] Re: Latex Export: Place Caption Below Table

2011-10-09 Thread Carsten Dominik

On 3.10.2011, at 16:43, Nick Dokos wrote:

> Eric S Fraga  wrote:
> 
>> t...@tsdye.com (Thomas S. Dye) writes:
>> 
>>> Nick Dokos  writes:
>> 
 The following patch (deliberately hidden as a binary octet-stream to keep 
 it
 out of patchwork) will do that - but IMO, it would be better to have yet 
 another
 user-settable option to control the placement.
 
 Nick
 
 
>>> 
>>> Aloha all,
>>> 
>>> The inlined patch introduces a variable
>>> org-export-latex-table-caption-above to control the placement of table
>>> captions.  Thanks to Nick Dokos for leading the way on this.
>>> 
>>> Tom
>> 
>> 
>> thanks for doing this -- I was swamped last week so had no chance of
>> following the thread until today!
>> 
>> One comment on the last version of the patch: would it not be better for
>> the variable to be a defcustom variable instead of defvar?
> 
> I agree - being able to customize variables without resorting to lisp is
> generally preferable: it is friendlier to newcomers and it allows even
> experienced users to find the various knobs.

If you provide a new patch doing a defcustom, I think this patch would be
good to have.  Please go ahead and check it in!

- Carsten

> 
> If the patch is deemed acceptable, it might also be nice to be able to
> set the variable per-file through the OPTIONS line, but that can
> certainly wait.
> 
>> Otherwise,
>> the patch looks fine to me although I'm unlikely to use the new
>> functionality ;-)
> 
> Unless you try to publish an article in a journal with a perverse layout
> policy :-)
> 
> I applied the patch and took it for a short spin. git complained about
> trailing whitespace:
> 
> ,
> | /home/nick/Mail/inbox/1021:197: trailing whitespace.
> | (if (and floatp 
> org-export-latex-table-caption-above) 
> | /home/nick/Mail/inbox/1021:212: trailing whitespace.
> | (if (and floatp (not 
> org-export-latex-table-caption-above)) 
> | /home/nick/Mail/inbox/1021:225: trailing whitespace.
> | (if (not org-export-latex-table-caption-above) tbl) 
> | /home/nick/Mail/inbox/1021:231: trailing whitespace.
> | (if org-export-latex-table-caption-above tbl) 
> | warning: 4 lines add whitespace errors.
> `
> 
> but other than that the patch worked fine.
> 
> Thanks, Tom!
> Nick
> 
> 
> 




Re: [O] Clicking on URL does convert some special characters

2011-10-09 Thread Carsten Dominik
Done, thanks.

- Carsten

On 9.10.2011, at 10:12, Jambunathan K wrote:

> 
> I have committed this patch. Can someone remove this from the
> patchwork's pending queue.
> 
> http://patchwork.newartisans.com/patch/940/
> 
> 
> 




[O] org-7.7, C-c C-c to align tables says "invalid function: org-called-interactively-p"

2011-10-09 Thread Du Yanning
Windows 7
GNU Emacs 23.3.1 for Windows (i386-mingw-nt6.1.7601)
Org 7.7

When I press C-c C-c to align a table, it says "invalid function:
org-called-interactively-p"

Org 7.5 is Ok.


Re: [O] Clicking on URL does convert some special characters

2011-10-09 Thread Jambunathan K

I have committed this patch. Can someone remove this from the
patchwork's pending queue.

http://patchwork.newartisans.com/patch/940/





Re: [O] [babel] create tikz pictures in an floating LaTeX environment

2011-10-09 Thread Christian Moe

Hi, Torsten,

Incidentally, I had to remove \end{scope} (there is no corresponding 
\begin{scope}) to make your code example work. Could that be causing 
some of your trouble?


Yours,
Christian

On 10/8/11 4:45 PM, Torsten Wagner wrote:

Hi Eric



``:results output silent'' should suppress that I think.



Nick's solution should work well.  Also, (if you're exporting to LaTeX)
couldn't you just combine the tikz picture and the wrapping figure
environment into a single begin_latex block?



Yep Nick solution is working fine. I just wonder what is the order of
execution during export. E.g. if I generate the link to a file as
output and place it directly under the lines to add a picture in
org-mode, I thought the code block would be execute first and the
result would replace the function call. The exporter will find a link
to a picture and export it as usual. This was the reason I thought the
following code should work.

#+CAPTION:my great picture
#+LABEL:  fig:my_picture
#+ATTR_LaTeX:
#+srcname: mypicture
#+begin_src latex :file fig/mypicture.pdf :packages '(("" "tikz"))
:border 1em :fit
  \begin{tikzpicture}[line width=1pt,text centered, inner sep = 2]
  \draw[fill=red!50] (0,0) rectangle  ++(5,1);
  \draw[fill=yellow!50] (1,1) rectangle  ++(1,0.25);
  \draw[fill=yellow!50] (3,1) rectangle  ++(1,0.25);
  \draw[fill=green!50] (0.75,1) rectangle  ++(1.5,-0.4);
  \draw[fill=green!50] (2.75,1) rectangle  ++(1.5,-0.4);
  \end{scope}
  \end{tikzpicture}
#+end_src

or alternatively
#+CAPTION:my great picture
#+LABEL:  fig:my_picture
#+ATTR_LaTeX:
#+call: mypicture()


As for putting all figure environment and tikz into one latex-code block.
First of all I thought that :file fig/mypicture.pdf will generate and
process an individual LaTeX file. Thus, I could not use any commands
for the main manuscript right? Sure I could skip the :file command
however, I would prefer to generate each picture as an individual pdf
file. This gives me much more flexibility. I can easily convert them
into any other format and share them individually with co-workers.
Furthermore, many journals are very strict (and minimal) with there
supported LaTeX environment. The tikz package is often not installed
on there machines and the upload process would fail. In addition some
journals require to upload each figure individually. Thus, I am used
already to generate individual pdf-files for each figure and include
them into the manuscript by a simple \includegraphic line.

Thanks for the help

Torsten

CC. I notice something else regarding to babel. Please see my next post