Re: [O] git repository export to LaTeX

2011-07-12 Thread Nick Dokos
Henri-Paul Indiogine hindiog...@gmail.com wrote:

 Greetings!
 
 1. Something wrong with the git repository?
 
 $ git pull
 fatal: The remote end hung up unexpectedly
 
 
 2. odt export works very well, but I have lost LaTeX export.  I get
 the following lines in my *Messages* buffer:
 
 Export buffer:
 Exporting to LaTeX...
 File ~/Dropbox/dissertation/Proposal.tex no longer exists!
 Recognizing tables...done
 Loading reftex...done
 Recognizing tables...done
 Loading reftex...done
 org-export-latex-preprocess: Wrong type argument: stringp, nil
 
 
 I run the latest org-mode from git and GNU Emacs 24.0.50.1
 
 Any ideas?
 

Cannot reproduce either problem: I just did a successful git pull
and I also did a LaTeX export successfully.

Org-mode version 7.6 (release_7.6.57.g462c0d)
GNU Emacs 24.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 
2011-07-05

Nick



Re: [O] Again problems with latex inside footnotes.

2011-07-12 Thread Nick Dokos
Rafael Calsaverini rafael.calsaver...@gmail.com wrote:

 Also, I have problems with equations even when I use \(...\) instead of 
 $...$. 
 
 This, for example:
 --8--
 * example
 Example[fn:note].
 [fn:note]An equation: \(\bar{a}\).
 ---8--
 
 becomes this:
 
 ---8---
 Example\footnote{An equation: \(\bar\{a\}\). }.
 ---8---
 

Unfortunately, the LaTeX exporter does have a lot of weaknesses in this
area: it tends to escape special characters willy-nilly - sometimes
that's the right thing to do, sometimes not.

This particular escaping is done by org-export-latex-special-chars: this
basically loops over four (horrendous-looking) regexps and tries to find
all matches in the buffer for that regexp. It then proceeds to transform
the matched text (and matched pieces of text *around* the main match) in
some (hopefully meaningful) way. In this case, it fails.

The only way I know around this problem is a mechanism that Tom Dye
describes in his (excellent) LaTeX exporting tutorial on Worg. He
credits Lawrence Mitchell for the case that he describes in the tutorial.

Evaluate this expression

--8---cut here---start-8---
(setq org-entities-user '((l { nil)
  (r } nil)))
--8---cut here---end---8---

and then export the following:

--8---cut here---start-8---

* example
Example[fn:note].
[fn:note] An equation:  \(\bar \l a\r \).


blablabla [fn:bla]
[fn:bla] this is what \cite\l she\r said.
--8---cut here---end---8---

The trick fools the exporter but there are added spaces - I know no
way to get rid of those.


 I'm not really sure, but I suspect this worked before I instaled the
 latest version of org-mode.

I doubt that. Although patches have been applied to deal with a host of
such problems, it is a long-standing problem that is unlikely to be
completely solved - ever[fn:1].

Nick

Footnotes:

[fn:1] ... although I would love to be proved wrong.




Re: [O] Calendar-like view of the org-agenda

2011-07-12 Thread Bastien
Hi Masashi,

SAKURAI Masashi m.saku...@kiwanami.net writes:

 Thank you for your advice and patch. I will merge it.

Thanks!

 One question, is it fixed variable for an user?  I mean, one often
 changes the argument parameter to change the filtering in a single
 Emacs session. 

It would actually be nice to be able to change this parameters on the
fly -- even for org agendas.  That's not currently possible but I will
consider implementing this for Org.

 If one frequently changes it, should I design the UI to change it and
 re-draw the calendar?

I think you can already do this independantly from Org's implementation.

Best,

-- 
 Bastien



Re: [O] org-capture does not fully clean up after C-c C-k

2011-07-12 Thread Bastien
Hi Leo,

Leo sdl@gmail.com writes:

 Yes, it fixes this issue.

I applied the patch, then.

Thanks for confirming,

-- 
 Bastien



Re: [O] Bulk cut in agenda view

2011-07-12 Thread Bastien
Hi Julien,

I've applied the patch I proposed.  Please report any problem 
about it.

Thanks,

-- 
 Bastien



Re: [O] New backend for org-agenda: (Was Calendar-like view of the org-agenda)

2011-07-12 Thread Bastien
Hi Masashi,

this is a very interesting proposal -- thanks for the diagrams and the
pointers to existing schedule API.  I will digg into this direction and
see if I can propose something useful.

The question is: would an API for the whole agenda mechanism (and not
just scheduled items) be useful?

I've never been a big fan of caching Org files information, because Org
files are often modified in impredictible ways.  But if we can update
the cache quickly, then it will certainly be useful.

I will let you know about progress about this.

Thanks again for raising this idea!

-- 
 Bastien



Re: [O] Calendar-like view of the org-agenda

2011-07-12 Thread Sebastien Vauban
Hi Masashi,

SAKURAI Masashi wrote:
 Sebastien Vauban wrote:
 Tassilo Horn wrote:
  I've also made the characters used for table rendering customizable, so
  that you can use nice unicode glyphs.
 
http://dl.dropbox.com/u/30611246/img/calfw-unicode.png
 
 Now that this has been made configurable, could you share your customization
 for getting such a (very) nice view?  Which characters are you using?

 Here is a sample code.

 https://gist.github.com/1074205
 ==
 ;; Default setting
 (setq cfw:fchar-junction ?+
   cfw:fchar-vertical-line ?|
   cfw:fchar-horizontal-line ?-
   cfw:fchar-left-junction ?+
   cfw:fchar-right-junction ?+
   cfw:fchar-top-junction ?+
   cfw:fchar-top-left-corner ?+
   cfw:fchar-top-right-corner ?+ )

 ;; Nice view (Unicode characters)
 (setq cfw:fchar-junction ?╋
   cfw:fchar-vertical-line ?┃
   cfw:fchar-horizontal-line ?━
   cfw:fchar-left-junction ?┣
   cfw:fchar-right-junction ?┫
   cfw:fchar-top-junction ?┯
   cfw:fchar-top-left-corner ?┏
   cfw:fchar-top-right-corner ?┓)
 ==

Thanks for that.

But what a pitty: they don't exist (I mean they have no graphical
representation) in Consolas, my default font for Emacs... Damn!

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Question to the list about csquotes

2011-07-12 Thread Frederik
Am 11.07.2011 15:14, schrieb Bastien:
 Hi Nick, Thomas and Frederik,
 
 I've just sent a patch for this question: it sticks to the 
 solution suggested in this thread, with minor variations.
 Thanks all for working out this simple solution!
 
 It defines a new `org-export-latex-quotes' variable -- please
 see the docstring.
 
 The default behavior reproduces the current behavior, so no
 one should be hurt in the process.
 
 Thanks for any feedback,
 


Do I have to apply the patch to the development version or is 7.6 just fine?

Thanks  Regards

-- 
Frederik




Re: [O] Question to the list about csquotes

2011-07-12 Thread Bastien
Frederik freak.f...@gmail.com writes:

 Do I have to apply the patch to the development version or is 7.6 just
 fine?

Get the latest version from git, it has been applied this morning.

-- 
 Bastien



[O] strange error tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size when exporting to odt

2011-07-12 Thread Rainer Stengele
Dear list,

exporting an org file to odt I get this error under debian Linux
(Windows works fine) [excerpt from *Messages*]:


Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc
ODT export done, pushed to kill ring and clipboard
OVERVIEW
CONTENTS...done
Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc
tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size


I cannot find the connection to tramp. I do not use tramp anywhere.
Anyone could imagine what's wrong?

Thanks,
Rainer




Re: [O] strange error tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size when exporting to odt

2011-07-12 Thread Rainer Stengele
Am 12.07.2011 10:32, schrieb Rainer Stengele:
 Dear list,
 
 exporting an org file to odt I get this error under debian Linux
 (Windows works fine) [excerpt from *Messages*]:
 
 
 Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc
 ODT export done, pushed to kill ring and clipboard
 OVERVIEW
 CONTENTS...done
 Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc
 tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size
 
 
 I cannot find the connection to tramp. I do not use tramp anywhere.
 Anyone could imagine what's wrong?
 
 Thanks,
 Rainer
 
 
 
Ok, just deactivating tramp resolves the problem,
but I do not understand where tramp is jumping in and doing anything not
really needed.

Rainer



Re: [O] Calendar-like view of the org-agenda

2011-07-12 Thread Eric S Fraga
Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

[...]

   cfw:fchar-top-right-corner ?=┓)
 ==

 Thanks for that.

 But what a pitty: they don't exist (I mean they have no graphical
 representation) in Consolas, my default font for Emacs... Damn!

I was going to suggest you try Liberation Mono; it's what I moved to
from Consolas for just this reason.  However, I am confused about fonts
in Emacs.  If I C-u C-x = at any character in this paragraph, I get
for example:

: xft:-unknown-Liberation Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 
(#x4C)

If, however, I do this at the top right corner character above, I get

: xft:-unknown-DejaVu Sans Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 
(#x933)

It seems Emacs is using different typefaces...

In any case, I do recommend Liberation but I guess I should also
recomment DejaVu Sans? ;-)

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.6 (release_7.6.57.g462c0)



Re: [O] strange error tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size when exporting to odt

2011-07-12 Thread Rainer Stengele
Am 12.07.2011 11:01, schrieb Bastien:
 Hi Rainer,

 Rainer Stengele rainer.steng...@online.de writes:

 but I do not understand where tramp is jumping in and doing anything not
 really needed.
 The only think I can think of is that org-odt.el uses the /tmp/
 directory to cache files while processing them.

 Maybe you don't have permission to write to this files, and tramp 
 is the one reporting the error.

 Surely Jambunathan can tell better.

Hi Bastien,

no, I do have write permissions and do find odt-* folders filled with
files there.
I hope Jambunathan can help.

Merci beaucoup!

Rainer



Re: [O] strange error tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size when exporting to odt

2011-07-12 Thread Bastien
Hi Rainer,

Rainer Stengele rainer.steng...@online.de writes:

 but I do not understand where tramp is jumping in and doing anything not
 really needed.

The only think I can think of is that org-odt.el uses the /tmp/
directory to cache files while processing them.

Maybe you don't have permission to write to this files, and tramp 
is the one reporting the error.

Surely Jambunathan can tell better.

-- 
 Bastien



Re: [O] Calendar-like view of the org-agenda

2011-07-12 Thread Sebastien Vauban
Hi Eric S Fraga,

Eric S Fraga wrote:
 Sebastien Vauban wxhgmqzgw...@spammotel.com writes:
   cfw:fchar-top-right-corner ?=┓)

 But what a pitty: they don't exist (I mean they have no graphical
 representation) in Consolas, my default font for Emacs... Damn!

 I was going to suggest you try Liberation Mono; it's what I moved to from
 Consolas for just this reason. However, I am confused about fonts in Emacs.
 If I C-u C-x = at any character in this paragraph, I get for example:

 : xft:-unknown-Liberation Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 
 (#x4C)

Look at the results under Windows (in 8 pt):

http://i.imgur.com/qkavC.png

Some figures are simply missing dots in their graphical representation...

 If, however, I do this at the top right corner character above, I get

 : xft:-unknown-DejaVu Sans 
 Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 (#x933)

 It seems Emacs is using different typefaces...

 In any case, I do recommend Liberation but I guess I should also recomment
 DejaVu Sans? ;-)

DejaVu Sans is a bit better, but it must be in 9pt to be right... while I
really like smaller fonts.

I still will give it a try for a couple of days. But, as of now, nothing beats
Consolas yet...

Thanks for your tip.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Again problems with latex inside footnotes.

2011-07-12 Thread Nicolas Goaziou
Hello,

Rafael Calsaverini rafael.calsaver...@gmail.com writes:

 sorry for bothering you again with it

No problem.

 but I'm having a problem with latex inside footnotes and I couldn't
 find the answer in the manual.

 When I try something like:

 8---
 blablabla [fn:bla]
 [fn:bla] this is what \cite{she} said.
 8---

 this gets exported as:

 ---8---
 blablabla \footnote{this is what \cite\{she\} said. }
 ---8---

I have pushed a fix for that problem in master. May you try it to
confirm it works (or not...)?

Regards,

-- 
Nicolas Goaziou



Re: [O] strange error tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size when exporting to odt

2011-07-12 Thread Jambunathan K
Rainer Stengele rainer.steng...@online.de writes:

 Dear list,

 exporting an org file to odt I get this error under debian Linux
 (Windows works fine) [excerpt from *Messages*]:


 Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc
 ODT export done, pushed to kill ring and clipboard
 OVERVIEW
 CONTENTS...done
 Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc
 tramp-file-name-handler: Variable binding depth exceeds
 max-specpdl-size

Can you do M-x toggle-debug-on-error and post the stack trace? 

This is more likely to happen when a file/directory is being read or
written in to and the prefix of the path looks as though it is a remote
file. May be there is a bug in odt when it expands/abbrevs filename and
directories.

Btw, what is different in your current setup. Why it didn't happen with
earlier invocations. (I assume you were able to export to odt in earlier
trial runs successfully)

 I cannot find the connection to tramp. I do not use tramp anywhere.
 Anyone could imagine what's wrong?

 Thanks,
 Rainer




-- 



[O] bug#9040: 24.0.50; wrong type argument: listp t when invoking org-ctrl-c-ctrl-c

2011-07-12 Thread Steve Revilak

Martin and Bastien,

Thank you for following up on my bug report.

I did a bzr pull and rebuilt emacs.  The behavior I described earlier
no longer occurs.

Sorry for the trouble.

Steve


pgp57DcrF8RGQ.pgp
Description: PGP signature


[O] Python script to download Google Calendar events

2011-07-12 Thread Felix Geller
Hi,

I wrote a Python script that [1] uses the GData API to download events
for your Google Calendar and prints them to a given org-file. It is a
very tiny script, but perhaps it is of use to other people as well.

Small disclaimer: I've tested this on Mac OS X only, using Python 2.7.2.

Let me know what you think :)


Cheers,
Felix

Footnotes:

[1] https://bitbucket.org/fgeller/gcal2org/src/8fa7d2b83ab3/gcal2org.py


pgpVtFNe6jCLs.pgp
Description: PGP signature


[O] bug#9040: 24.0.50; wrong type argument: listp t when invoking org-ctrl-c-ctrl-c

2011-07-12 Thread martin rudalics

 I've discovered a problem with org-mode on the trunk version of emacs;
 typing ctrl-c ctrl-c to add a tag results in Wrong type argument:
 listp, t.

 Here are steps to reproduce:

 (1) Place the following in a file named foo.org (not including the
 lines of = signs.)

 ==
 # -*- mode: org; -*-

 #+STARTUP: logdone
 #+TAGS: bb(b) dw(d) holiday(a) meeting(m) note(n) q(q) releng(r)
 sysadmin(s) eng(e) other(o)

 * Top level
 ** second level 1
 *** third level
 1 :b:
 CLOCK: [2011-07-10 Sun 12:44]--[2011-07-10 Sun 12:44] =  0:00

 ** second level 2
 *** third level
 2 :b:
 CLOCK: [2011-07-10 Sun 12:46]

 material for third level
 ==

 (2) Open foo.org with emacs:

 emacs -Q foo.org

 (3) place point in the first column of third level 2 (line 12).

 (3) Attempt to add the meeting tag to line 12 by typing C-c C-c m
 RET.

 Expected behavior: after typing C-c C-c, org mode should present a
 list of pre-defined tags.  Emacs 23.3 exhibits this behavior.

 Observed behavior: typing C-c C-c produces the following message in the
 minibuffer: Wrong type argument: listp, t

Thanks for the fine report.  Unfortunately, I can't reproduce this since
the text following Top level is hidden here.  foo.org appears as


# -*- mode: org; -*-

#+STARTUP: logdone
#+TAGS: bb(b) dw(d) holiday(a) meeting(m) note(n) q(q) releng(r) sysadmin(s) 
eng(e) other(o)

* Top level


If I manually insert its text into a new buffer foo.org. the buffer after
step (3) looks like


# -*- mode: org; -*-

#+STARTUP: logdone
#+TAGS: bb(b) dw(d) holiday(a) meeting(m) note(n) q(q) releng(r) sysadmin(s) 
eng(e) other(o)

* Top level
** second level 1
*** third level 1 :b:
CLOCK: [2011-07-10 Sun 12:44]--[2011-07-10 Sun 12:44] =  0:00

** second level 2
*** third level 2 :meeting:b:
CLOCK: [2011-07-10 Sun 12:46]

material for third level


which is probably the expected behavior.  What shall I do?

 -
 $ bzr version-info
 revision-id: rudal...@gmx.at-20110709123238-vs7l1ocolzez5ibf
 date: 2011-07-09 14:32:38 +0200
 build-date: 2011-07-10 12:53:42 -0400
 revno: 105058
 branch-nick: trunk
 -

Chong has fixed some silliness in that code, so maybe this has been
fixed already.  Please upgrade.

 display-buffer: Wrong type argument: listp, t
 Quit [2 times]
 display-buffer: Wrong type argument: listp, t

If the error persists, could you try to edebug `display-buffer' before
org calls it and tell me the value of normalized calculated in these
lines:

 (normalized
  ;; Normalize specifiers.
  (display-buffer-normalize-specifiers buffer-name specifiers label))

Thanks, martin





Re: [O] Web bookmarks in ORG?

2011-07-12 Thread Masashi Miyamura
Hello Ángel,

 Is there anyone using ORG for keeping web bookmarks? Basically I'm
 looking at Delicious-like functionality, where I just put tags to web
 addresses and I can search the bookmarks either for their name or with
 tags.

That is the idea I organize my bookmarks.

You might be interested in the followings:
  - http://orgmode.org/manual/Capture.html#Capture
  - http://orgmode.org/worg/org-contrib/org-protocol.html

In short, I make a bookmark in Firefox via org-protocol.

Hope this help.

--
Masashi Miyamura
  http://saira.mimamu.net



[O] Using org-mode for Research and Notetaking

2011-07-12 Thread Florian Beck
[My main goal is to take research notes and write texts. I have little
interest in the todo/agenda part of org-mode, which I understand is its
main focus, so bear this in mind.]

Previously I have been using muse-mode for publishing and a home brew
system for organising my notes. Now I thought, I would give org-mode a
try. I had some 3500 short notes which I converted into a 8.5M org-file
with said 3500 heavily tagged entries. Also created a 500k org file from
my bibtex file. These two plus a couple of shorter files are my
org-agenda-files.

Speed is quite ok, surprisingly. `org-columns' in the big file is a
no-go, of course (overlays!). The agenda commands work fine (I have few
entries with todo-keywords, but they are in every file.)

So far so good. Tables, integration of latex fragments: great stuff. I
like the outlining capabilities but used most of them via
`org-struct-mode' already. Especially impressed with babel. Wow!

A couple of questions and observations, first impressions really:

 1. Publishing (I have only tested pdf) works pretty well. Obviously, or
 so I would have thought, I don't want to see todo-keywords and TAGs in
 the output. How do I get rid of them?

 2. Tags are SLOW (no doubt due to my 8.5M file). Completion takes
 minutes. I fixed that by adding all my (hundreds of) tags to
 `org-tag-alist' and restricting capture to »%g«, checking only the
 current file. `org-id-find' is slow as well and so will be property
 completions, I guess. How about caching the data and update on saving
 an org-agenda file?

 3. By default, tags cannot contain spaces or commas. I rectified that
 with an ugly hack in `org-set-tags-to', which replaces spaces with
 ?\x2008 (punctuation space), and setting it to word syntax. Also, many
 long tags display ugly. How about showing only the first twenty
 characters and show the rest via help echo?

 4. muse-mode has this nice feature that it easily allows you to define
 your own tags like
 i-am-learning-kanji-so-better-display-this-big…/… or
 a-citation-the-way-i-like-it…/…; not only for export but also for
 fontification. Can I do something similar in org-mode?

 5. According to the manual »TODO items are an integral part of the
 notes file«. I like that, but I do not find it so. TODO items are
 headings which I find somewhat confusing: My files are either articles
 to be (with the appropriate headlines) or notes where headlines usually
 formulate the topic the note is about. Todo items, on the other hand,
 would be »clarify the paragraph«, »check what X says about Y«, »add
 more sources«, etc. As it is TODOs are not integrated but stand out,
 breaking the structure of the file. How about allowing TODO items in
 comments? This would seem much more natural to me: a TODO item should
 not be part of your text but disappear when it is done.

-- 
Florian Beck



[O] bug#3509: 23.0.94; improper quoting in (org)Special agenda views

2011-07-12 Thread Lars Magne Ingebrigtsen
Drew Adams drew.ad...@oracle.com writes:

 `'(org-agenda-skip-entry-if 'scheduled)' should presumably be
 `(org-agenda-skip-entry-if 'scheduled)', and likewise all of the
 other, similar expressions in this node.

Fixed.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





Re: [O] Using org-mode for Research and Notetaking

2011-07-12 Thread John Hendy
On Mon, Jul 11, 2011 at 2:55 PM, Florian Beck abstrakt...@t-online.de wrote:
 [My main goal is to take research notes and write texts. I have little
 interest in the todo/agenda part of org-mode, which I understand is its
 main focus, so bear this in mind.]

Snipped 1-4, as I don't have anything to add...

  5. According to the manual »TODO items are an integral part of the
  notes file«. I like that, but I do not find it so. TODO items are
  headings which I find somewhat confusing: My files are either articles
  to be (with the appropriate headlines) or notes where headlines usually
  formulate the topic the note is about. Todo items, on the other hand,
  would be »clarify the paragraph«, »check what X says about Y«, »add
  more sources«, etc. As it is TODOs are not integrated but stand out,
  breaking the structure of the file. How about allowing TODO items in
  comments? This would seem much more natural to me: a TODO item should
  not be part of your text but disappear when it is done.

I posted something similar a bit back. I do use org for todos, but
also write papers/reports, and take notes on things I'm reading. You
might want to check out that thread. [1] In particular, there were
some great comments about using inline tasks with custom export
options (one of them being the todonotes pacakge). [2] [3] Hope that
offers at least some input.

I think inline tasks can do what you want -- can be exported or not,
they stay out of the way, and don't break the flow. Good luck!

---

All from the same thread, but I skimmed it and picked these out in particular:

[1] Top level thread:
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg40356.html
[2] Inline tasks suggestion:
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg40359.html
[3] Todonotes variant:
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg40589.html


John


 --
 Florian Beck





Re: [O] Using org-mode for Research and Notetaking

2011-07-12 Thread Giovanni Ridolfi
Florian Beck abstrakt...@t-online.de writes:

Hi, Florian,

My org version is:
Org-mode version 7.5 311b09d92644f39040087327d6a1dbeb09a9ab6e

 I don't want to see todo-keywords and TAGs in
  the output. How do I get rid of them?
In the manual,

Export options.
#+OPTIONS:  todo: nil

manual explanation:

#+OPTIONS:  todo:   turn on/off inclusion of TODO keywords into exported 
text
tags:turn on/off inclusion of tags, may also be  
`not-in-toc'

 How about caching the data and update on saving
  an org-agenda file?

Bastien just said:
 I've never been a big fan of caching Org files information, because Org
  files are often modified in impredictible ways.  But if we can update
  the cache quickly, then it will certainly be useful.

  However it will stress the disk.


  3. By default, tags cannot contain spaces or commas. 
yes, but you can use underscore: _

[...]
 a TODO item should
  not be part of your text but disappear when it is done.

you can archive the task/headline, when it is done.

cheers,
Giovanni



Re: [O] Python script to download Google Calendar events

2011-07-12 Thread Torsten Wagner

Hi Felix,


Small disclaimer: I've tested this on Mac OS X only, using Python 2.7.2.


It took me a while to get the gpg part working but now its working nicely :)
I had to remove -no-tty for some reason.
getting from
authinfo = os.popen('gpg -q -no-tty -d ~/org/google_passwd.org.gpg').read()
to
authinfo = os.popen('gpg -q -d ~/org/google_passwd.org.gpg').read()

This is working under Arch-Linux, obvious after tweaking to use python2 
and not python3.


I will test if I could add the generated file to my agenda.

This would allow me to merge the google calendar with org.
Basically, I started to use the google calendar since most of the time I 
add events on my smartphone. Adding a quick event is, for now, much 
easier using the google calendar rather then trying to sync via 
org-mobile. I also appreciate the calendar view on small screens rather 
then a text-based view. A sync between org-mode and google events is not 
necessary as long as I stick with the way to add/change events only on 
my mobile phone. (but sure it would be awesome if there would be a real 
sync).


Lets see how it works out.

Totti





Re: [O] Calendar-like view of the org-agenda

2011-07-12 Thread Jason F. McBrayer

On Tue, 12 Jul 2011 11:38:53 +0200, Sebastien Vauban wrote:

Eric S Fraga wrote:

I was going to suggest you try Liberation Mono; it's what I moved to
from Consolas for just this reason. However, I am confused about 
fonts

in Emacs. If I C-u C-x = at any character in this paragraph, I get
for example: : xft:-unknown-Liberation
Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 (#x4C)


Look at the results under Windows (in 8 pt):

http://i.imgur.com/qkavC.png [2]Some figures are simply missing dots 
in

their graphical representation...

If, however, I do this at the top right corner character above, I 
get :

xft:-unknown-DejaVu Sans
Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 (#x933) It seems
Emacs is using different typefaces... In any case, I do recommend
Liberation but I guess I should also recomment DejaVu Sans? ;-)


DejaVu Sans is a bit better, but it must be in 9pt to be right... 
while I

really like smaller fonts.

I still will give it a try for a couple of days. But, as of now, 
nothing

beats Consolas yet...



I /think/ that in X, emacs will select the closest font it can find to
in order to get the characters it needs. However, in Windows, it will
only use the default font (or whatever is explicitly specified for the
face), even if that font is missing characters. The only workaround
I've found for buffers that need a lot of Unicode characters is to use
DejaVu Sans Mono. Consolas is very nice, but its Unicode coverage is
not good.

--
+---+
| Jason F. McBrayer jmcb...@carcosa.net |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors. --- The Dhammapada |




Re: [O] Calendar-like view of the org-agenda

2011-07-12 Thread Achim Gratz
Sebastien Vauban
wxhgmqzgw...@spammotel.com writes:
 Look at the results under Windows (in 8 pt):

You may be interested in this:
http://cygutils.fruitbat.org/mintty-font-test/


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




[O] Default indent level

2011-07-12 Thread Mike Owens
I've googled and scoured the list and can't seem to find a way to get
indent level to work like I want. I simply want M-LEFT to indent 3
spaces rather than 2 by default. I set
org-indent-indentation-per-level to 3 in my .emacs file, but this
still does not seem to work. Any help would be greatly appreciated.

Mike



Re: [O] strange error tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size when exporting to odt

2011-07-12 Thread Rainer Stengele
Am 12.07.2011 13:10, schrieb Jambunathan K:
 Rainer Stengele rainer.steng...@online.de writes:
 
 Dear list,

 exporting an org file to odt I get this error under debian Linux
 (Windows works fine) [excerpt from *Messages*]:


 Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc
 ODT export done, pushed to kill ring and clipboard
 OVERVIEW
 CONTENTS...done
 Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc
 tramp-file-name-handler: Variable binding depth exceeds
 max-specpdl-size
 
 Can you do M-x toggle-debug-on-error and post the stack trace? 
 
 This is more likely to happen when a file/directory is being read or
 written in to and the prefix of the path looks as though it is a remote
 file. May be there is a bug in odt when it expands/abbrevs filename and
 directories.
 
 Btw, what is different in your current setup. Why it didn't happen with
 earlier invocations. (I assume you were able to export to odt in earlier
 trial runs successfully)
 
 I cannot find the connection to tramp. I do not use tramp anywhere.
 Anyone could imagine what's wrong?

 Thanks,
 Rainer



 
Ok, solved. I had to remove some Windows settings and paths from my
.emacs - or better, only load them when being under Windows. Obviously
the exporting process somewhere took the Windows path patterns as
trampable triggers.


Thanks!
Rainer.


Here the stacktrace that brought the insight:



Debugger entered--Lisp error: (error Variable binding depth exceeds
max-specpdl-size)
  browse-url-delete-temp-file()
  tramp-file-name-handler(expand-file-name
/C:/Programme/Emacs/emacs/share/emacs/site-lisp/w3m /)

...

  tramp-file-name-handler(expand-file-name
/C:/Programme/Emacs/emacs/share/emacs/site-lisp/w3m /)
  tramp-file-name-handler(expand-file-name /c:/cygwin/bin/ /)
  expand-file-name(c:/cygwin/bin/ /)
  apply(expand-file-name (c:/cygwin/bin/ /))
  (let* ((inhibit-file-name-handlers ...) (inhibit-file-name-operation
operation)) (apply operation args))
  tramp-completion-run-real-handler(expand-file-name (c:/cygwin/bin/ /))
  (if (and fn tramp-mode (or ... ... ... ... ...)) (save-match-data
(apply ... args)) (tramp-completion-run-real-handler operation args))
  (let ((directory-sep-char 47) (fn ...)) (if (and fn tramp-mode ...)
(save-match-data ...) (tramp-completion-run-real-handler operation args)))
  tramp-completion-file-name-handler(expand-file-name c:/cygwin/bin/ /)
  call-process-region(1 57640 sha1sum /tmp/emacs8vkk6R t nil)
  apply(call-process-region 1 57640 sha1sum /tmp/emacs8vkk6R t nil nil)
  sha1-string-external(?xml version=\1.0\
encoding=\UTF-8\?\noffice:document-styles
xmlns:office=\urn:oasis:names:tc:opendocument:xmlns:office:1.0\
xmlns:style=\urn:oasis:names:tc:opendocument:xmlns:style:1.0\

...

  org-do-lparse(nil hidden nil nil nil nil)
  (let* ((org-lparse-backend ...) (org-lparse-other-backend ...))
(unless (org-lparse-backend-is-native-p native-backend) (error Don't
know how to export natively to backend %s native-backend)) (unless (or
... ... ...) (error Don't know how to export to backend %s %s
target-backend ...)) (run-hooks (quote org-export-first-hook))
(org-do-lparse arg hidden ext-plist to-buffer body-only pub-dir))
  org-lparse(odt odt nil hidden)
  (let (f (file-or-buf ...)) (when file-or-buf (setq f ...) (message
Opening file %s f) (org-open-file f) (when
org-export-kill-product-buffer-when-displayed ...)))
  org-lparse-and-open(odt odt nil)
  org-export-as-odt-and-open(nil)
  call-interactively(org-export-as-odt-and-open)
  org-export(nil)
  call-interactively(org-export nil nil)
  recursive-edit()
  byte-code(\306  @\307=\203!



Re: [O] Org-mode as a replacement for LaTeX

2011-07-12 Thread Thomas S. Dye
Carsten Dominik carsten.domi...@gmail.com writes:

 On 30.6.2011, at 08:35, Thomas S. Dye wrote:

 Aloha Karl,
 
 I agree that AucTeX is awesome.  I use it every day at work with much
 pleasure.
 
 I've been using Org-mode with the goal of creating reproducible
 research, where the LaTeX output is just one part of the package.  In my
 case, this is something that requires Org-mode for its ability to pass
 results between code blocks written in different languages.  I can't do
 these things in AucTeX.
 
 At first, like you, I was suspicious of adding a layer between me and
 LaTeX.  I was impatient with figuring out how to make the little things
 work right.  I'm still not able to control LaTeX as finely as I'd like
 from within Org-mode, but I've managed to close the gap sufficiently
 that my last four publications were authored completely with Org-mode.

 Are these publicly accessible?  I think that would be a great advertisement
 for Org as a publishing environment if you could link to source and paper

 - Carsten

Aloha Carsten,

The first of what I hope will be three public reproducible
research papers written in Org-mode is now at
https://ts...@github.com/tsdye/hawaii-colonization.git

This is a fairly simple example.  The Org-mode file depends only on R
source code blocks.  The same paper probably could have been implemented
in Sweave (which I haven't used).

Much of the analysis was carried out with a web-based software tool for
calibrating radiocarbon dates called BCal.  BCal lacks a batch mode
facility and can't be called directly from the Org-mode file, AFAIK.
The maintainers of the BCal software came up with a way to share my BCal
project files, so my archaeological colleagues have access to all my
work. BCal output is included in the git repo as csv files.

I've pushed up an entry on Worg, which should appear the next time Worg
is updated
http://orgmode.org/worg/org-contrib/babel/uses.html

Most of the RR framework for this project (README, Makfile, etc.) is a
port of materials developed by Eric Schulte, who graciously reviewed
my work (and discovered errors and omissions).

I'll be happy for comments from the Org-mode community.  I'm interested
to see how fully it is possible to realize the potential of reproducible
research (and believe very strongly that Org-mode is the best way to do
so). 

All the best,
Tom
  

 The one I'm working on now is Org-mode, too.  I'm really liking it as


 an
 authoring environment.
 
 All the best,
 Tom
 
 
 Karl Voit devn...@karl-voit.at writes:
 
 * Thomas S. Dye t...@tsdye.com wrote:
 Aloha Rafael,
 
 Sorry, I thought you might as well be interested in my point of
 view.
 
 First: I am pretty new to Org-mode but I am using LaTeX a while now
 and I am even teaching LaTeX to motivated beginners.
 
 Is there a reason not to have everything in one .org file?  I find
 Org-mode's ability to fold on headlines and to edit subtrees in indirect
 buffers very convenient, even for long documents.  For my work, that
 functionality has replaced LaTeX \include files.
 
 I did not follow the thread here but I do think I get the idea that
 you want to replace LaTeX with Org-mode and generate a PDF via
 LaTeX/PDF-export functionality of Org-mode.
 
 On the one hand, I do agree that (simple) PDF documents are written
 very easily with Org-mode. But on the other hand you are going to
 add just another layer. This means that you probably end up wanting
 this LaTeX feature in Org-mode, that other handy LaTeX feature too
 and so forth.
 
 In my point of view, if you leave the basic stuff, you should stick
 to LaTeX. And I do have good news to you: You are very fortune
 because Emacs does have the IMHO most advanced editor support for
 LaTeX: AucTeX (with all of its extensions like preview-latex and
 RefTeX).
 
 I plan to use Org-mode as an outline tool for larger documents,
 where the basic structure evolves, keywords are moved from one part
 to the other. But before I start to write the detailed document
 content, I move to AucTeX, having the great possibilities for
 writing documents that end up being great PDFs.
 
 But this is just my point of view.
 
 -- 
 Thomas S. Dye
 http://www.tsdye.com
 



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



[O] Using MobileOrg without sync?

2011-07-12 Thread Steinar Bang
I installed MobileOrg on an HTC desire.  The idea was to just use it to
take notes, no sync to an emacs with org-mode would be needed.

But I can't figure out how to skip the sync configuration menu.

All of the documentation I find when searching, is about syncing with
org-mode. 

Isn't it possible to use MobileOrg without sync?

Thanks!


- Steinar




Re: [O] Using MobileOrg without sync?

2011-07-12 Thread Tassilo Horn
Steinar Bang s...@dod.no writes:

Hi Steinar,

 I installed MobileOrg on an HTC desire.  The idea was to just use it
 to take notes, no sync to an emacs with org-mode would be needed.

 Isn't it possible to use MobileOrg without sync?

Not sure, but MobileOrg (at least on Android) is not very sophisticated
for note taking.  For sure, it's not a stand-alone org-mode for Android
as you might have expected.

For example, there's no widget (activity in andro-speak) to input
timestamps and stuff like that.  I use it, but mainly for viewing my
agendas pushed from org-mode and for capturing quick and ugly notes,
which I format correctly, timestamp, tag, and refile after pulling them
to my emacs.

So I see no reason to use MobileOrg if you don't want to interact with
org-mode.  Probably, you'd be better off with a plain text editor (Jota
Text Editor is quite good and free software).

Bye,
Tassilo




Re: [O] bulk relative time shift (in org file)?

2011-07-12 Thread Memnon Anon
Hi,

 Any guidance?
 Oh, guidance would be great: I'm curious what others will propose.

Anyone?
This question might have gone down in the prerelease turmoil ...

Memnon




Re: [O] Org-mode as a replacement for LaTeX

2011-07-12 Thread Sebastien Vauban
Hi Thomas,

Thomas S. Dye wrote:
 The first of what I hope will be three public reproducible
 research papers written in Org-mode is now at
 https://ts...@github.com/tsdye/hawaii-colonization.git

I get a 404 error (page not found) when clicking on this!?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Org-mode as a replacement for LaTeX

2011-07-12 Thread Nick Dokos
Sebastien Vauban wxhgmqzgw...@spammotel.com wrote:

 Hi Thomas,
 
 Thomas S. Dye wrote:
  The first of what I hope will be three public reproducible
  research papers written in Org-mode is now at
  https://ts...@github.com/tsdye/hawaii-colonization.git
 
 I get a 404 error (page not found) when clicking on this!?
 

Try visiting https://github.com/tsdye/ and

   git clone https://github.com/tsdye/hawaii-colonization.git

Nick







Re: [O] OLUG talk about Org-mode

2011-07-12 Thread Memnon Anon
Pieter Praet pie...@praet.org writes:
 On Thu, 07 Jul 2011 15:05:33 +0200, Bastien b...@altern.org wrote:
 The video is now here:
   http://www.ustream.tv/recorded/15820239
 
 Nice chilling out atmosphere!

:(, my firefox only shows a white box.

Do I have to sign up and login to view it?

 Can someone provide a working download link ?

Can someone provide a working video? ;)

Memnon





Re: [O] Calendar-like view of the org-agenda

2011-07-12 Thread Sebastien Vauban
Hi Achim,

Achim Gratz wrote:
 Look at the results under Windows (in 8 pt):

 You may be interested in this:
 http://cygutils.fruitbat.org/mintty-font-test/

Yes, I am, and will give a better look at that tomorrow.

Though, what I don't understand in Emacs (on Windows, currently) is that the
font in 9pt, for example, is much different (bigger, at least) than its
version 8pt. There is no relationship like between 9 divided by 8: the change
is bigger than that. Why...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Org-mode as a replacement for LaTeX

2011-07-12 Thread Thomas S. Dye
Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi Thomas,

 Thomas S. Dye wrote:
 The first of what I hope will be three public reproducible
 research papers written in Org-mode is now at
 https://ts...@github.com/tsdye/hawaii-colonization.git

 I get a 404 error (page not found) when clicking on this!?

 Best regards,
   Seb

Arggh.

https://github.com/tsdye/hawaii-colonization

Thanks for bringing this to my attention.

All the best,
Tom

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



Re: [O] Calendar-like view of the org-agenda

2011-07-12 Thread Sebastien Vauban
Hi Jason,

Jason F. McBrayer wrote:
 I still will give it a try for a couple of days. But, as of now, nothing
 beats Consolas yet...

 I /think/ that in X, emacs will select the closest font it can find to
 in order to get the characters it needs. However, in Windows, it will
 only use the default font (or whatever is explicitly specified for the
 face), even if that font is missing characters. The only workaround
 I've found for buffers that need a lot of Unicode characters is to use
 DejaVu Sans Mono. Consolas is very nice, but its Unicode coverage is
 not good.

That could explain why I was sure that I did get a bit more representable
characters when using Consolas under Ubuntu: they came from another font.

Thanks for the explanation...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Org-mode as a replacement for LaTeX

2011-07-12 Thread John Hendy
Thomas,


Wow. That's nice. Great work. In looking at the setup.. I have a lot
to learn about what org/emacs can do.

Thanks for sharing,
John

On Tue, Jul 12, 2011 at 5:16 PM, Thomas S. Dye t...@tsdye.com wrote:
 Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi Thomas,

 Thomas S. Dye wrote:
 The first of what I hope will be three public reproducible
 research papers written in Org-mode is now at
 https://ts...@github.com/tsdye/hawaii-colonization.git

 I get a 404 error (page not found) when clicking on this!?

 Best regards,
   Seb

 Arggh.

 https://github.com/tsdye/hawaii-colonization

 Thanks for bringing this to my attention.

 All the best,
 Tom

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





[O] %(SEXP) with %c in org-capture templates

2011-07-12 Thread Philipp Möller
Hello all,
I want to define a capture template which pre-processes the head of the kill
ring with a sexp that takes a string as an argument:

(setq org-capture-templates
  (quote
   ((l Link entry (file+headline  Links)
 * \%c\ %(get-page-title \%c\)

;; throws Bad url
(get-page-title foo-bar)
;; works as expected
(get-page-title http://orgmode.org/manual/Template-expansion.html;)

(defun get-page-title (url)
  Get title of web page, whose url can be found in the current line
  ;; Get title of web page, with the help of functions in url.el
  (with-current-buffer (url-retrieve-synchronously url)
;; find title by grep the html code
(goto-char 0)
(re-search-forward title\\([^]*\\)/title nil t 1)
(setq web_title_str (match-string 1))
;; find charset by grep the html code
(goto-char 0)

;; find the charset, assume utf-8 otherwise
(if (re-search-forward charset=\\([-0-9a-zA-Z]*\\) nil t 1)
(setq coding_charset (downcase (match-string 1)))
  (setq coding_charset utf-8)
;; decode the string of title.
(setq web_title_str (decode-coding-string web_title_str (intern

coding_charset)))
)
  (concat [[ url ][ web_title_str ]])
  ))

Please just ignore that I'm trying to parse XML with a regexp here.

get-page-title works when called from code but always returns bad url when
called from the capture template.
Is the problem the way I escape the string or is this just not the way the
sexp in capture are supposed to be used?

Regards,
Philipp


[O] org-mode fontification error when exporting to LaTeX

2011-07-12 Thread Luke J Crook
I get an 'org-mode fontification error' when I export to LaTeX.
Any idea what may be causing this?

Thanks,
-Luke




[O] [PATCH] Adding support for :results output for clojure src blocks.

2011-07-12 Thread Robert McIntyre
This small patch handles :results output for clojure src blocks by using
clojure's with-out-str function.

Please let me know if I've done anything wrong as this is my first patch to
org-mode.

sincerely,
--Robert McIntyre
diff --git a/lisp/ob-clojure.el b/lisp/ob-clojure.el
index a72b14c..00013b8 100644
--- a/lisp/ob-clojure.el
+++ b/lisp/ob-clojure.el
@@ -62,16 +62,22 @@
 			 vars \n  )
 			]\n body ))
 		  body
-(if (or (member code result-params)
-	(member pp result-params))
-	(format
-	 (concat
-	  (let [org-mode-print-catcher (java.io.StringWriter.)] 
-	  (clojure.pprint/with-pprint-dispatch clojure.pprint/%s-dispatch 
-	  (clojure.pprint/pprint (do %s) org-mode-print-catcher) 
-	  (str org-mode-print-catcher
-	 (if (member code result-params) code simple) body)
-  body)))
+(cond 
+ ((or (member code result-params)
+	  (member pp result-params))
+  (format
+   (concat
+	(let [org-mode-print-catcher (java.io.StringWriter.)] 
+	(clojure.pprint/with-pprint-dispatch clojure.pprint/%s-dispatch 
+	(clojure.pprint/pprint (do %s) org-mode-print-catcher) 
+	(str org-mode-print-catcher
+   (if (member code result-params) code simple) body))
+ ;; if (:results output), collect printed output 
+ ((member output result-params)
+  (format (clojure.core/with-out-str %s) body))
+ (t body
+
+
 
 (defun org-babel-execute:clojure (body params)
   Execute a block of Clojure code with Babel.


Re: [O] org-mode fontification error when exporting to LaTeX

2011-07-12 Thread David O'Toole
Hi,

try doing (setq debug-on-error t) and then re-export; this should give
you a backtrace.

but sometimes fontification stuff can have errors without backtraces.
try checking the *Messages* buffer. misbehaving font-lock rules and
improperly defined faces can also be issues.

On Tue, Jul 12, 2011 at 9:52 PM, Luke J Crook l...@balooga.com wrote:
 I get an 'org-mode fontification error' when I export to LaTeX.
 Any idea what may be causing this?

 Thanks,
 -Luke






Re: [O] How to 'undo' filter

2011-07-12 Thread Noorul Islam
On Wed, Jul 13, 2011 at 3:31 AM, Jim Burton j...@sdf-eu.org wrote:
 Hi, after filtering an org document, I'd like to be able to go back to
 the previous visibility. The closest I can get at the moment is to make
 everything visible with S-TAB, but I'd like whatever was
 expanded/collapsed before the filter to be as it was. How is this done?


Which filtering are you talking about?

agenda?
narrow-to-block?
narrow-to-subtree?

Thanks and Regards
Noorul