Re: [Orgmode] A way to export agenda with links into org-files to html ?

2011-02-17 Thread Hrvoje Niksic
Bastien bastien.gue...@wikimedia.fr writes:

 Sadly enough, htmlize.el only handles http://orgmode.org links. 

 Patch to make htmlize.el handle org links welcome!

htmlize looks for urls and converts them to links.  What are org links
that you refer to, and how should htmlize find them in the buffer?

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


[Orgmode] Re: [PATCH] Markup on same line as text

2011-02-17 Thread Hrvoje Niksic
Sorry for taking a very long time to respond.

Roland Kaufmann roland.kaufm...@gmail.com writes:
 (let ((x 42)) span style=comment; meaning of l.u.e.
 span id=ref-2/span  (print x))/span
  ^^^
 The first closing tag is really the end of the comment which is
 spilled to the next line, but it erraneously closes the id span.

If so, that would be a bug in htmlize.  While Emacs supports arbitrarily
overlapping properties/overlays/extents, HTML doesn't, and htmlize is
normally careful to describe each unchanged run of text on its own.

I am not familiar with org-mode, so I will need a description of exactly
how to reproduce this bug.  Specifically I don't know how to put a
reference on the next line.

Your patch may work in this particular case, but the idea behind htmlize
is to describe the state of the buffer.  If a property ends after the
newline, it is intended that the generated HTML reflect this.

Hrvoje

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


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-17 Thread Wang Coeus
Bastien bastien.gue...@wikimedia.fr writes:

 Hi Wang,

 Wang Coeus wangco...@gmail.com writes:

 Will org consider to support this in future? 

 There is no plan for this right now.

 But what about cheating a bit and play with the _display_ of the table?

 | Header  | Header |
 |-+|
 | I want to   ||
 | write stuff ||
 | on several  ||
 | lines   ||

 You should be able to export this table to HTML or LaTeX and simulate a
 multiline cell on the first column.  Just a workaround, but could do in
 some situations.

 Also, note that you can shrink the cell length by adding length:

  |---+--|   |---+|
  |   |  |   |   | 6|
  | 1 | one  |   | 1 | one|
  | 2 | two  | \ | 2 | two|
  | 3 | This is a long chunk of text | / | 3 | This= |
  | 4 | four |   | 4 | four   |
  |---+--|   |---+|

 which helps having long text in a single-line cell.

 HTH,

Hi Bastien,
Really appreciate your help here. The reason I asked this question is
because I always feel it's too complicated to edit a table with
table.el. Your suggestion is good for me. :) But there are sometimes
also need to draw a table as below:
|---+---+|
|   | HEAD2 | Item 1 |
|   +---+|
| HEAD1 |   | Item 2 |
|   + HEAD3 ||
|   |   | Item 3 |
|---+---+|

For such a kind of situation, we only can implement with table.el,
right?

Really thanks for all your kind help. :)
-- 
Coeus
In the middle of every difficulty lies opportunity.
-- Albert Einstein

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


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-17 Thread Wang Coeus
brian powell briangpowel...@gmail.com writes:

 Forget all previous emails from me on this thread; I thought there
 was a simple way to do this in OrgMode--will this work for you Wang?:

 All you have to do is this I believe (not sure about the Org publish/
 TeX output though--tell me if it works out for you): 

 Ca Enter | Tab

 and then type in your multi-line text--and maybe Tab a few
 times--this took about 15 seconds:

 |---+-+-+-+-+-+-+---|
 | * | 15B |           0 |   0 |   0 |           0 |   0 |     0 |
 |---+-+-+-+-+-+-+---|
 | * | 16W |           0 |   0 |   0 |           0 |   0 |     0 |
 |   |     |             |     |     |             |     | multi |
 |   |     |             |     |     |             |     | line  |
 |   |     |             |     |     |             |     | text  |
 |---+-+-+-+-+-+-+---|
 | * | 17B |           0 |   0 |   0 |           0 |   0 |     0 |
 |---+-+-+-+-+-+-+---|
 #+TBLFM:


Brian,
Thanks a lot for your help here. :) It's good to show in Org-mode from
Emacs itself, but when you export to html file, it's still split with
sevel cells. Sometimes I need export org file to html so to make others
feel easier to read. 

-- 
Coeus
In the middle of every difficulty lies opportunity.
-- Albert Einstein

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


Re: [Orgmode] [BUG] htmlp and latexp

2011-02-17 Thread Andreas Leha
Hi all,

to make this explicit:  I can not export to latex any more, but instead
I get
 Exporting to LaTeX...
 when: Symbol's value as variable is void: htmlp

Org HEAD
GNU emacs 23.2.1 (debian squeeze)

This is my failing org-file:
* Test
  test

- Andreas


Am 16.02.2011 11:03, schrieb Bastien:
 Hi Dan,

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

   
 Commit ed6d6760268 removed variables htmlp and latexp from
 `org-export-preprocess-string'. Nothing wrong with that, but I think it
 has broken export for those using org-special-blocks, which contains

 #+begin_src emacs-lisp
 (defvar htmlp)
 (defvar latexp)
 (defun org-special-blocks-make-special-cookies ()
   Adds special cookies when #+begin_foo and #+end_foo tokens are
 seen.  This is run after a few special cases are taken care of.
   (when (or htmlp latexp)
 (goto-char (point-min))
 ...
 #+end_src
 
 Fixed thanks.  

   
 IIuc htmlp and latexp occur occasionally in org code as somewhat
 unofficial ways to test am I in the middle of export?.
 
 Now there is a uniform and official (!) way of getting the backend the
 user is currently exporting to: 

   (eq backend 'html)

 ...

   
 They also occur in org-exp-blocks, but in deprecated code, so not a
 priority to fix.
 
 I fixed them there too.

 Thanks for reporting this!

   

attachment: andreas_leha.vcf

smime.p7s
Description: S/MIME Cryptographic Signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] shell sessions hang

2011-02-17 Thread Andreas Leha
Hi all,

this topic has been here before and seems to be a TODO:
http://eschulte.github.com/babel-dev/TODO-shell-sessions-hang-in-many-cases.html

This still seems to be an issue

My questions:
(1) Has there been progress?
(2) Is there a better workaround than wrapping the shell commands in
another language?

Regards,
Andreas



smime.p7s
Description: S/MIME Cryptographic Signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Context-sensitive word count in org mode (elisp)

2011-02-17 Thread Christian Moe

Hi,


I don't agree with changing '(match-end 0)' to '(match-beginning 2)'
however. For most latex macros, I don't want to count the words inside
the macro's arguments.


Maybe you're right. I rarely use latex, so I can't think of a use case 
off the top of my head. Default no, optional yes sounds good.


Yours,
Christian

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


[Orgmode] Re: [BUG] htmlp and latexp

2011-02-17 Thread Sébastien Vauban
Hi Andreas,

Andreas Leha wrote:
 to make this explicit:  I can not export to latex any more, but instead
 I get
  Exporting to LaTeX...
  when: Symbol's value as variable is void: htmlp

I confirm you this has been fixed 1 or 2 days ago. Just git pull, and you're
gone.

Best regards,
  Seb

-- 
Sébastien Vauban


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


[Orgmode] Re: shell sessions hang

2011-02-17 Thread Sébastien Vauban
Hi Eric,

Andreas Leha wrote:
 this topic has been here before and seems to be a TODO:
 http://eschulte.github.com/babel-dev/TODO-shell-sessions-hang-in-many-cases.html

Just hijacking this thread for a suggestion (if you find it worth): wouldn't
you drop the status keyword (TODO, DONE, etc.) from the URL, so that the same
issue can be followed on during its lifecycle?

Best regards,
  Seb

-- 
Sébastien Vauban


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


Re: [Orgmode] problem with org-export-latex-todo-keyword-markup [7.4]

2011-02-17 Thread Bastien
Hi Michael,

Michael Bach pha...@googlemail.com writes:

 Thanks for the notice Bastien, I just read your message today, delivery was
 not really working it seems. 

Yes, some of my emails have been delayed.

 See also my own reply to this...

Seen - thanks!

-- 
 Bastien

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


[Orgmode] Re: [BUG] htmlp and latexp

2011-02-17 Thread Jambunathan K
Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Hi all,

 to make this explicit:  I can not export to latex any more, but instead
 I get
  Exporting to LaTeX...
  when: Symbol's value as variable is void: htmlp

 Org HEAD
 GNU emacs 23.2.1 (debian squeeze)

 This is my failing org-file:
 * Test
   test


Have you tried recent head?  
Enable stacktrace: M-x toggle-debug-on-error
Also include M-x org-version? 

Jambunathan K.


 - Andreas


 Am 16.02.2011 11:03, schrieb Bastien:
 Hi Dan,

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

   
 Commit ed6d6760268 removed variables htmlp and latexp from
 `org-export-preprocess-string'. Nothing wrong with that, but I think it
 has broken export for those using org-special-blocks, which contains

 #+begin_src emacs-lisp
 (defvar htmlp)
 (defvar latexp)
 (defun org-special-blocks-make-special-cookies ()
   Adds special cookies when #+begin_foo and #+end_foo tokens are
 seen.  This is run after a few special cases are taken care of.
   (when (or htmlp latexp)
 (goto-char (point-min))
 ...
 #+end_src
 
 Fixed thanks.  

   
 IIuc htmlp and latexp occur occasionally in org code as somewhat
 unofficial ways to test am I in the middle of export?.
 
 Now there is a uniform and official (!) way of getting the backend the
 user is currently exporting to: 

   (eq backend 'html)

 ...

   
 They also occur in org-exp-blocks, but in deprecated code, so not a
 priority to fix.
 
 I fixed them there too.

 Thanks for reporting this!

   


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

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


[Orgmode] Re: [CRASH] org-pretty-entities causes emacs to take 100% CPU

2011-02-17 Thread Vladimir Alexiev
 not able to reproduce this
 with GNU Emacs 24.0.50.2 of 2011-02-15.

Can I get this from somewhere, built for W32/cygwin?
I got 24.0.50.1 from file Emacs24.BZR.102298.Win32.20101110.zip
from http://ourcomments.org/Emacs/DL/EmacsW32/EmacsCVS/unptch/ .
I looked there for a newer version, but there isn't one.


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


[Orgmode] unicode chars in org-emphasis-regexp-components

2011-02-17 Thread Eric Abrahamsen
Hi, I do a lot of plain text writing in org, and would love to be able
to allow emphasis markup when it's up flush against m-dashes (x2014),
n-dashes (x2013), and ellipses (x2026), possibly among other things.
When I try to add these characters to org-emphasis-regexp-components via
the customize interface, emacs complains about junk at end of
expression: —…– and won't let me save it. Unicode's not junk!

I know this is an emacs issue, not an org issue, but if there's a
workaround, I would love to know about it! Setting that variable outside
of customize looks hairy…

Thanks!
Eric


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


[Orgmode] org-mode is slow :(

2011-02-17 Thread Piter_
Hi all.
I use org-mode to organize and process my experimental data. By now my
org file has 5000 lines with a lot of python and matlab code. I
started to fill that org-mode becomes slower. I have to wait for
characters to appear while typing and so on.  Can anybody reccomend a
way to speed it up?
Thanks.
Petro
P.S. I have installed the org mode from GIT: make  make doc  make install
I guess it is bytecompiled already.

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


Re: [Orgmode] org-mode is slow :(

2011-02-17 Thread Andreas Leha
Hi Piter,

First guess: functionality outside org-mode is slowing things down.
First candidate: line numbers turned on?  If yes, try disabling.

Then there were discussions about speed here before, e.g.
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg27951.html
Maybe you find sth there.

HTH,
Andreas

Am 17.02.2011 13:29, schrieb Piter_:
 Hi all.
 I use org-mode to organize and process my experimental data. By now my
 org file has 5000 lines with a lot of python and matlab code. I
 started to fill that org-mode becomes slower. I have to wait for
 characters to appear while typing and so on.  Can anybody reccomend a
 way to speed it up?
 Thanks.
 Petro
 P.S. I have installed the org mode from GIT: make  make doc  make 
 install
 I guess it is bytecompiled already.

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





smime.p7s
Description: S/MIME Cryptographic Signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Capture while Buffer is narrowed to subtree

2011-02-17 Thread Memnon Anon
Hi,

I've been working on a large subtree of my main orgfile while it was
narrowed [C-x n s]. While doing so, I wanted to capture some information
which usually ends up under * Inbox at the bottom of that file. This
time, the information ended up in the narrowed buffer with a new *
Inbox added. I only noticed after a while that my captured TODOs were
not where I expected them to be.

I know why this is happening (I guess :) but I was wondering if this was
intended behaviour. If so, maybe a footnote should be added to the
manual that hints at possible side effects of `C-x n s'?

Memnon

capture template
#+begin_src emacs-lisp
  (setq 
   org-capture-templates 
   '((t Todo entry (file+headline ~/life/organizer.org Inbox) * TODO 
%?\n  %U\n  %i\n  %a)
  (o Someday entry (file+headline ~/life/organizer.org Inbox) * 
SOMEDAY %?\n  %U\n  %i\n  %a)
  (a Appointment entry (file+headline ~/life/organizer.org Inbox) 
* APPT %?\n  %^T\n  %U\n  %i\n  %a)
  (b Bookmark entry (file+headline ~/life/bookmarks.org Inbox) * 
%a %?\n  %u)
  ...))
#+end_src

Org-mode version 7.4

GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on 
raven, modified by Debian


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


Re: [Orgmode] org-mode is slow :(

2011-02-17 Thread Piter_
Thanks.
Disabling linum-mode helps a lot:)

On Thu, Feb 17, 2011 at 2:00 PM, Andreas Leha
andreas.l...@med.uni-goettingen.de wrote:
 Hi Piter,

 First guess: functionality outside org-mode is slowing things down.
 First candidate: line numbers turned on?  If yes, try disabling.

 Then there were discussions about speed here before, e.g.
 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg27951.html
 Maybe you find sth there.

 HTH,
 Andreas

 Am 17.02.2011 13:29, schrieb Piter_:
 Hi all.
 I use org-mode to organize and process my experimental data. By now my
 org file has 5000 lines with a lot of python and matlab code. I
 started to fill that org-mode becomes slower. I have to wait for
 characters to appear while typing and so on.  Can anybody reccomend a
 way to speed it up?
 Thanks.
 Petro
 P.S. I have installed the org mode from GIT: make  make doc  make 
 install
 I guess it is bytecompiled already.

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





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



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


[Orgmode] question about R graphics and latex export

2011-02-17 Thread Andreas Leha
Hi all,

I usually produce tikz graphics in R which produce great results in
latex export (and I am able to handle them).
Now I have some plots too big to handle with tikz, so I go for pdf.

I have a question (example below):
There is one piece of code to produce several plots according to some
(only one in the example) parameters.  Now with pdf I have to produce a
different pdf file for each parameter (combination).
My question is:  Can I use Org variable and #+call: constructs to do that?

Thanks in advance!
- Andreas

PS: This is my sample:
=
#+TITLE:Test Plots

* Test

** The plotting code
   This code takes the parameter =sd=
   #+srcname: plot_code
   #+begin_src R :session :exports code :eval never :var sd
 plot(x=rnorm(100, sd=sd),
  y=rnorm(100, sd=sd))
   #+end_src

** Set the parameter in =R= (working)
   When setting the parameter in =R= I need an indirect code block:
   #+srcname: plot_sd_1
   #+begin_src R :session :noweb tangle :file plotone.pdf :exports
results :results graphics silent :width 8 :height 4
 sd - 1
   
 plot_code
   #+end_src

   Now I can include this nicely in latex: See figure \ref{fig:test}
#+begin_src latex :noweb yes
  \begin{figure}[htb!]
\centering
\includegraphics[width=5in]{plot_sd_1()}
\caption[Test]{Test 1}
\label{fig:test}
  \end{figure}
#+end_src


** Set the parameter in Org (How to do)
   The following does not work.  Is this somehow possible?  Would be
   much nicer than setting the parameters in R.
#  #+call: plot_code(sd=1) :session :file plotthree.pdf :exports results
:results graphics :width 8 :height 4
=




smime.p7s
Description: S/MIME Cryptographic Signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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

2011-02-17 Thread Carsten Dominik
Hi Bastien, hi Julien,

For what it is worth, and for the record, I still do not
believe that this is the correct solution to the problem.
I believe it causes the issue reported in

http://thread.gmane.org/gmane.emacs.orgmode/37673

But unfortunately I have not had time to study the issue
in more detail.  I hope to do this before the next release.

Kind regards.

- Carsten

On Feb 10, 2011, at 3:35 PM, Bastien wrote:

 Julien Danjou jul...@danjou.info writes:
 
 But maybe you can just delocalize that one variable instead,
 using kill-local-variable?
 
 It's a possibility, but I think it's more logical to reset every local
 variable.
 
 I just pushed a (temporary) fix, following Carsten's suggestion of using
 kill-local-variable.  I tested this with emacs -q and things work back
 as usual.
 
 Matt and Michael, please report any problem.
 
 Michael, thanks for the detailed step-by-step way of reproducing the
 problem with a bare emacs!  Quite useful.
 
 Julien: I've pushed this (temporary) fix so that you don't feel too much
 pressure about finding a more general solution.
 
 Thanks!
 
 -- 
 Bastien

- Carsten




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


Re: [Orgmode] PATCH: New options for latex src code export

2011-02-17 Thread Mike McLean
I just came across this and I must say an enthusiastic Thank You! I
actually gave up (time restrictions) on formatting some source code
the way I wanted just a few days ago and the ability to pass package
options to ``minted'' solves exactly the problem I was facing.


On 2/2/11 2:42 PM, Dan Davison wrote:
 Tom Dye and I have been working on providing more user control over
 latex export of src code via the listings and minted latex packages. The
 main code change is 2 commits in branch minted of the org repo, and
 pasted below as a single patch for patchwork. These changes allow Org
 users to set all the available options for the \lstset
 and \begin{minted} commands[1], and also to specify custom latex
 environments on a per-language basis to be used for exporting src
 blocks.

 I'd like to ask for advice on a couple of things:

 Currently, in order for a user to use minted for colored latex export of
 src code, s/he would

 1. install pygments
- linux ::  apt-get install python-pygments
- OSX / linux :: 'pip install pygments' or 'easy_install pygments'

 2. (setq org-export-latex-listings 'minted)

 3. Add the minted package to `org-export-latex-packages-alist', via
customize, or

 #+begin_src emacs-lisp
 (require 'org-latex)
 (add-to-list 'org-export-latex-packages-alist '( minted))
 #+end_src

 4. Configure `org-latex-to-pdf-process' so that the -shell-escape option
is passed to pdflatex.


 My questions are

 1. It would be nice if users didn't have to worry about step 4. Can
anyone suggest a sensible way to have the -shell-escape option
passed to pdflatex under the appropriate circumstances? These
conditions include:
1. minted is being used for export
2. pdflatex is being used, a.o.t. e.g. rubber or some other latex
   make tool.

 2. Regarding step (2), it might be preferable to have a variable
`org-export-latex-src' which takes a single value in the set
'(listings minted). Does anyone think it's worth making such a
backward-incompatible change?


 Minted support has been in Org for a while, but I think I'm guilty of
 not having properly described it on list.  See C-h v
 org-export-latex-listings. It has the advantage over listings of
 creating pretty coloured pdf export of source code without any user
 latex customization. My understanding is that minted.sty is in major
 latex distributions (e.g. TexLive, MacTex).

 Patch and commit log follow. ('git show -w' shows the changes more
 helpfully.)

 Dan

 Footnotes:
 [1] It might be possible to code all the available options into the
 Customize interface?

 


 New UI for configuring latex src code export.
 
 Three new user-customizable variables:
 
 org-export-latex-listings-options (default nil)
 ~~~
 Association list of options for the latex listings package.
 
 These options are supplied as a comma-separated list to the
 \\lstset command. Each element of the association list should be
 a list containing two strings: the name of the option, and the
 value. For example,
 
   (setq org-export-latex-listings-options
 '((\basicstyle\ \\\small\)
   (\keywordstyle\ \\\color{black}\\bfseries\\underbar\)))
 
 will typeset the code in a small size font with underlined, bold
 black keywords.
 
 Note that the same options will be applied to blocks of all
 languages.
 
 See 
 ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/listings/listings.pdf
 
 customization group: org-export-latex
 
 org-export-latex-minted-options (default nil)
 ~
 Association list of options for the latex minted package.
 
 These options are supplied within square brackets in
 \\begin{minted} environments. Each element of the alist should be
 a list containing two strings: the name of the option, and the
 value. For example,
 
   (setq org-export-latex-minted-options
 '((\bgcolor\ \bg\) (\frame\ \lines\)))
 
 will result in src blocks being exported with
 
 \\begin{minted}[bgcolor=bg,frame=lines]{LANG}
 
 as the start of the minted environment. Note that the same
 options will be applied to blocks of all languages.
 
 customization group: org-export-latex
 
 See minted.googlecode.com/files/minted.pdf
 
 org-export-latex-custom-lang-environments (default nil)
 ~~~
 Association list mapping languages to language-specific latex
 environments used during export of src blocks by the listings
 and minted latex packages. For example,
 
   (setq org-export-latex-custom-lang-environments
  '((python \pythoncode\)))
 
 * lisp/org-exp.el (org-export-format-source-code-or-example):
   Support new 

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

2011-02-17 Thread Bastien
Hi Carsten,

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

 For what it is worth, and for the record, I still do not
 believe that this is the correct solution to the problem.
 I believe it causes the issue reported in

 http://thread.gmane.org/gmane.emacs.orgmode/37673

 But unfortunately I have not had time to study the issue
 in more detail.  I hope to do this before the next release.

thanks for the heads up -- this is on top of my priority list, 
hopefully I'll fix this soon.

Best,

-- 
 Bastien

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


[Orgmode] Problem with org-time-stamp co

2011-02-17 Thread Michael Käufl
Hi,

I tried to enter a date before 01/01/1970 using “C-c .” (org-time-stamp) and 
org replaced the year by 2011. (The same problem occurs with org-time-stamp-
inactive and the C-u prefixed variants.)

Although I guess that this is related to the unix time, which starts on 
01/01/1970 00:00, my lisp skills aren't good enough to let me find the 
responsible code line.


Maybe there is someone who can fix this or tell me that it's a feature, not a 
bug;)

Thanks!


-Michael


P.S. The reason I'm working with such timestamps is 
http://julien.danjou.info/org-contacts.html

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


[Orgmode] importing google docs document into org

2011-02-17 Thread Le Wang
Hi all,

Does anyone have a good workflow for doing this?  I keep a bunch of notes on
google docs with a plain outline structure of using styles Heading 1, etc,
bullets and hyperlinks.  All of this is easily doable in org-mode.  It would
be great if I import them into org.  Now that I find myself editing in Emacs
more and more, the editing features of Google docs just don't cut it any
more.  I'm using Windows with the cygwin tool stack.

As a side note, is there a way to paste rich content (hyperlinks) into emacs
on Windows?  I think an org screen cast where this worked on OS X.

Thanks.

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


[Orgmode] Git Changelogs

2011-02-17 Thread Avdi Grimm
Is there an easy way to have a version-controlled Org file suck in its
own changelog and present it as a list of entries?

-- 
Avdi Grimm
http://avdi.org

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


[Orgmode] org-export-default-language is void

2011-02-17 Thread Matt Lundin
Hi Bastien,

If I clock into a task, emacs complains that org-export-default-language
is void.

I noticed that org-clocktable-defaults contains a reference to the
variable org-export-default-language, which has not been defined yet
because org-exp.el has not been loaded yet.

Best,
Matt

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


[Orgmode] Re: Worg publishing broken?

2011-02-17 Thread Matt Lundin
Bastien bastien.gue...@wikimedia.fr writes:

 Hi Jason,

 Jason Dunsmore emacs-orgm...@dunsmor.com writes:

 I have today pushed two updates onto Worg which have not yet been published.
 Maybe Worg publishing is currently broken?

 A recently-added section on the FAQ was using shell as the mode of a
 source block instead of sh.  I fixed it and re-pulled/published
 Worg.

 My bad, I added this.

 Thanks for the fix!

Would there be any way to get the Worg publishing script or export of
source code blocks to fail gracefully in these instances? This same
issue came up a couple of weeks ago with a new tutorial. A mislabeled
source code block brought the whole publishing process to a halt.

One idea: instead of always throwing an error,
org-export-replace-src-segments-and-examples might contain an option to
replace BEGIN_SRC...END_SRC with BEGIN_EXAMPLE...END_EXAMPLE if no
source block is found.

Best,
Matt

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


Re: [Orgmode] org-caption-shortn

2011-02-17 Thread Thomas S. Dye

Aloha all,

First, apologies for my rudimentary programming skills.  The attached  
patch partially answers the query I posed earlier: the shortn argument  
was ignored except for the wrapfigure environment.  The attached patch  
makes other environments aware of shortn.


This works, sort of.  If all the #+CAPTION: lines are of this form # 
+CAPTION: [shortn]{caption}, then all goes well.  If one caption of  
this form is followed by others of this form #+CAPTION: caption, then  
the list of figures contains repeated entries of shortn.  I suspect  
there is code somewhere that clears a variable.  I can try to look for  
it, but I have to tell you that the lisp code to org-mode looks like  
magic spells to my untrained eye.


All the best,
Tom



0001-lisp-org-latex.el-Enable-optional-argument-to-LaTeX-.patch
Description: Binary data




On Feb 16, 2011, at 6:23 PM, Thomas S. Dye wrote:


Aloha all,

I stumbled across code in org-exp.el and org-latex.el that appears  
to my untrained eye to be designed to parse the optional argument to  
the LaTeX \caption command.


This bit in org-exp.el appears to parse out the optional command:

  (when (string-match \\[\\(.*\\)\\]{\\(.*\\)} cap)
(setq shortn (match-string 1 cap)
  cap (match-string 2 cap)))

Then it is easy to find code in org-latex.el by searching for  
'shortn' that looks like it writes out the full command to the .tex  
file.


I can't find documentation for this, though.  It looks (to my  
untrained eye) like it should be possible to write something like:


#+CAPTION: [short]{long}

and get

\caption[short]{long} in the .tex file.

But this doesn't work for me.  The [short] part doesn't make it into  
the .tex file.


I don't know enough lisp to figure this out in a reasonable amount  
of time, so have come to the list to ask if anyone familiar with the  
code knows whether this should work or not, and if it should work,  
how to markup the org file.


All the best,
Tom

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


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


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-17 Thread brian powell
Your welcome Wang, my pleasure--I learned a few things too.

I used to make tables like the one you seem to be trying to put into and use
in an OrgMode Table.

Your table:

|---+---+|
|   | HEAD2 | Item 1 |
|   +---+|
| HEAD1 |   | Item 2 |
|   + HEAD3 ||
|   |   | Item 3 |
|---+---+|

* Reminds me of SAS multivariate statistics output and the PROC TABULATE
method:
** See these:
http://www2.sas.com/proceedings/forum2007/230-2007.pdf
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473736.htm
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473751.htm
** Program example is in:
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473751.htm
** Program example output:
  Energy Expenditures for Each Region
   1
 (millions of dollars)

  ---
  |   |  Type   |
  |   |-|
  |   |Residential |  Business  |
  |   | Customers  | Customers  |
  |   |+|
  |   |Expenditures|Expenditures|
  |   |+|
  |   |Sum |Sum |
  |---++|
  |Region |Division   |||
  |---+---|||
  |Northeast  |New England|  $7,477|  $5,129|
  |   |---++|
  |   |Middle |||
  |   |Atlantic   | $19,379| $15,078|
  |---+---++|
  |West   |Mountain   |  $5,476|  $4,729|
  |   |---++|
  |   |Pacific| $13,959| $12,619|
  ---
** Shows how to put .xls files into SAS, etc.:
http://www2.sas.com/proceedings/forum2007/230-2007.pdf
** You may be able to go from .txt/csv = EXCEL = SAS = .pdf/.ps

*Also, not sure you know about this extremely useful method that may help
you get fancy graphics:
Use ditaa!

** From http://doc.norang.ca/org-mode.html :
...
#+begin_src ditaa :file communication.png :cmdline -r -s 0.8
+---++-+
|PLC|| |
|  Network  +--+   PLC   +---=-+
|cRED   ||  c707   |  |
+---++++  |
  ^   |
  |   |
  |  +|-+
  |  || |
  v  vv v
  +--+   ++--+--+  +---+---+
 +-+-+   Windows clients
  |  |   |  |  |   |  |
  |  ++  ++
  | Database +-+  Shared  ++ Executive +-=--+ Operator
 +|cYEL| . . .|cYEL|
  |   c707   |   |  Memory  |  |   c707|  | Server
 |  ||  ||
  +--++--+   |{d} cGRE  |  +--++  |   c707
 |  ++  ++
 ^^  +--+ ^
+---+---+
 ||   |

 |+=--+
 v
+++

| |

| Millwide System | Data -

| cBLU|--=- Signals ---=--

+-+

#+end_src

** Make a DITAA diagram of the table and use the methods shown at:
http://doc.norang.ca/org-mode.html

* Maybe make two or three separate tables--and maybe separate with
whitespace--with only one real OrgMode table that you do spreadsheet
formula calcs, etc. in:

** Example:

|+-| ---+---+
| Item 1 |   4 || TAIL2 |
|+-||---+
| Item 2 | 555 |  TAIL1 |   |
|+-|| TAIL3 |
| Item 3 | 559 ||   |
|+-| ---+---+
#+TBLFM: @3$2=@1$2+@2$2
** But when I recalculate OrgTable pushes the tables back together.
** Maybe make two tables and use the UNIX paste command to paste them
together.
*** Maybe then use the TeX \verbatim.


Re: [Orgmode] Re: Suppressing src block evaluationon publish?

2011-02-17 Thread Andreas Leha
Hi all,

sorry to reopen this thread,  but this does not work for me (GNU Emacs
23.2.1, Org almost HEAD c7700d7bbee4f7596feb199b1ec1bc7750d4fb48)

For me the image in the attached example is always created during
(LaTeX)export.  Even if I do the manual evaluation once (and the hash is
created).

The manual re-evaluation respects the :cache yes and does not evaluate
again.

What am I missing?

- Andreas



* Test
  Some text.
  #+srcname: some_code
  #+begin_src R :session :exports code :eval never
mean - 0
  #+end_src

  Some text.
  #+srcname: plot_code
  #+begin_src R :session :exports code :eval never
plot(x=rnorm(100, mean=mean, sd=sd),
 y=rnorm(100, mean=mean, sd=sd))
  #+end_src


* Plots
  #+LABEL:  fig:test
  #+ATTR_LaTeX: height=.29\textheight
  #+srcname: plot_1
  #+begin_src R :session :noweb yes :file test.pdf  :exports results
:results graphics :width 8 :height 4 :cache yes
sd - 4
some_code
   
plot_code
  #+end_src

  #+results[17681e8e450f1f4e1d8f55fa57f9be1b24dae4db]: plot_1
  [[file:test.pdf]]



Am 03.02.2011 15:34, schrieb Eric Schulte:
 Dan Davison dandavis...@gmail.com writes:

   
 Loris Bennett loris.benn...@fu-berlin.de writes:

 
 Erik Iverson er...@ccbr.umn.edu writes:

   
 Loris Bennett wrote:
 
 Hi,

 I have an org file containing several src blocks which generate images
 using ditaa. When I publish to PDF via LaTeX, the images are all
 generated every time, which makes publishing rather slow.

 Is there some way to toggle the evaluation of the src blocks on and off
 when the file is published?

   
 You could try the :cache header argument, http://orgmode.org/org.html#cache

 
 Ah, thanks. There is a slight gotcha here, though.

 I added :cache yes to the source headers and exported again, but nothing
 changed; all the images were generated again. Also, no SHA1 hash was
 added to the +results header.

 After some fruitless fiddling I was about to write to the list again and
 moan, when I did a slightly random C-c C-c in the begin_src line and,
 hey presto, the hash was added to the results header. I then did this
 for all the images and found that the image were no longer regenerated
 on export, as advertised.
   
 Hi Loris,

 Yes. It does seem that it would be nice if in this situation, the first
 export added the SHA1s, and subsequent exports recognized that
 evaluation wasn't required. I think the reason this does not happen is
 that behind-the-scenes Org makes a copy of the buffer for export
 preprocessing (including src block evaluation). But Eric S is the expert
 -- he may have more to say here.

 
 Yes, this is exactly the case.  Org-mode is very careful that the
 process of exporting does not make any permanent changes to the original
 org-mode file.  I agree this should be mentioned in the :cache
 documentation.

 Best -- Eric

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




smime.p7s
Description: S/MIME Cryptographic Signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-mode is slow :(

2011-02-17 Thread Marcelo de Moraes Serpa
Are you on a Mac?

On Thu, Feb 17, 2011 at 7:48 AM, Piter_ x.pi...@gmail.com wrote:
 Thanks.
 Disabling linum-mode helps a lot:)

 On Thu, Feb 17, 2011 at 2:00 PM, Andreas Leha
 andreas.l...@med.uni-goettingen.de wrote:
 Hi Piter,

 First guess: functionality outside org-mode is slowing things down.
 First candidate: line numbers turned on?  If yes, try disabling.

 Then there were discussions about speed here before, e.g.
 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg27951.html
 Maybe you find sth there.

 HTH,
 Andreas

 Am 17.02.2011 13:29, schrieb Piter_:
 Hi all.
 I use org-mode to organize and process my experimental data. By now my
 org file has 5000 lines with a lot of python and matlab code. I
 started to fill that org-mode becomes slower. I have to wait for
 characters to appear while typing and so on.  Can anybody reccomend a
 way to speed it up?
 Thanks.
 Petro
 P.S. I have installed the org mode from GIT: make  make doc  make 
 install
 I guess it is bytecompiled already.

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





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



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


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


Re: [Orgmode] Insert ampersand in HTML export?

2011-02-17 Thread Uriel Avalos
On Thu, 17 Feb 2011 04:24:58 +0100
Bastien bastien.gue...@wikimedia.fr wrote:

 Hi uriel,
 
 Uriel Avalos uriava...@yahoo.com writes:
 
  #+BIND: org-export-html-protect-char-alist '( . )
 
  That's telling me I'm using the wrong type argument: listp, quote
 
 It must be this:
 
 #+BIND: org-export-html-protect-char-alist '(( . ))
 
 The -alist suffix means it should be an alist -- see the Info node for
 Association lists in the Elisp manual.
 
 -- 
  Bastien
 
 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Nope. It still doesn't work. This is my test file:

   #+BIND: org-export-html-protect-char-alist '(( . ))
   #+MACRO test  should stay as is

   Hello world  

I get the same error when I try to export: wrong type argument: listp, quote

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


Re: [Orgmode] org-mode is slow :(

2011-02-17 Thread suvayu ali
Hi Petro,

On Thu, Feb 17, 2011 at 4:29 AM, Piter_ x.pi...@gmail.com wrote:
 Hi all.
 I use org-mode to organize and process my experimental data. By now my
 org file has 5000 lines with a lot of python and matlab code. I
 started to fill that org-mode becomes slower. I have to wait for

Is code block fontification turned on natively? Maybe turning it off
will help.

(setq org-src-fontify-natively nil)

 Thanks.
 Petro

HTH

-- 
Suvayu

Open source is the future. It sets us free.

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


[Orgmode] Re: Context-sensitive word count in org mode (elisp)

2011-02-17 Thread Paul Sexton
Samuel Wales samologist at gmail.com writes:
 
 This looks great.
 
 How hard do you think it would be to show how many words there are for
 every subtree in a similar way to how clock durations are summed in
 c-c c-x c-d and displayed in the subtree itself in reverse video?

I might leave that functionality to you -- it's pretty far beyond what I need 
out of a word count function.

Cheers
P



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


[Orgmode] Re: [babel] Suggestions: GRASS GIS und Lilypond

2011-02-17 Thread Martyn Jago

Hi 

I would be interested in a solution to lilypond within org, and would be
happy to fork on github and help out (I currently have some time too).

Martyn

Shelagh Manton shelagh.man...@gmail.com writes:

 On Tue, 15 Feb 2011 10:59:19 +0100, Christian Moe wrote:

 Earlier thread on Lilypond:
 http://comments.gmane.org/gmane.emacs.orgmode/31324
 

 I did end up doing some work on this. I got it to the stage of creating 
 the lilypond images but having some difficulties with paths etc. ie the 
 file exists but not where org-babel expects to find it. So it does not 
 show up in the file in a results block. 

 I've been so busy, I have not visited this problem at all recently. 
 Perhaps if someone is interested to help we could work on this together. 
 I could put it on github. Let me know.

 Shelagh

 CM
 
 On 2/15/11 2:02 AM, Thorsten wrote:
 Hello Babel developers,
 just two suggestions for new languages: 1. GRASS GIS
 As far as I know there is no grass-mode in emacs, but some expert
 people are successful running grass processes together with R processes
 in ESS. Since GRASS and R are natural allies, it would be great to use
 the GRASS engine in an org-file to retrieve spatial data and then
 analyse the data with R in the same file - would make Org a kind of
 emacs-grassmode replacement.
 2. Lilypond
 A nice to have for all the music lovers in the org community. Regards
 Thorsten


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


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



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


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


Re: [Orgmode] Git Changelogs

2011-02-17 Thread Puneeth Chaganti
Hi Avdi,

On Thu, Feb 17, 2011 at 9:23 PM, Avdi Grimm gro...@inbox.avdi.org wrote:
 Is there an easy way to have a version-controlled Org file suck in its
 own changelog and present it as a list of entries?

Using babel, you could do that.

Try out the example below which prints a list of the changes to my
notes.org file as a list.

#+begin_src sh :results output raw
  git log --pretty=format:+ %s by %an notes.org
#+end_src

Look at the PRETTY-FORMATS section in the help of git-log [1] to tweak
your git log output.

HTH,
Puneeth

[1] - http://www.kernel.org/pub/software/scm/git/docs/git-log.html

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


[Orgmode] IMPORTANT Modified link escaping in Org mode

2011-02-17 Thread David Maus
Hello everybody,

I've just pushed a series of commits to current master that modifies
Org modes link escaping functions.

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

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

However, this change has the potential to break existing links in your
documents in at least one case: Links that contain a literal percent
sign followed by two characters in [0-9a-fA-f] might break if this
sequence of characters is /not/ a percent escape.

E.g. a link to a directory literally called foo%45bar will break
because the new unescaping function will happily interpret the %45
as a percent encoded letter E.

To detect at least some of such problematic links you can run the
attached command `dmaus/org-check-percent-escapes' in a Org mode
buffer.  It will scan all links in the buffer and issue a warning for
each link that contains a sequence that matches aformentioned pattern
and is not one of the escape sequences used by Org up to know.

If you experience any problems with this change please don't forget to
Cc: me so the complaints will end up in my main mailbox.

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


dmaus-org-check-percent-escapes.el
Description: Binary data


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


Re: [Orgmode] Problem with org-time-stamp co

2011-02-17 Thread Suvayu Ali
On Thu, 17 Feb 2011 16:15:42 +0100
Michael Käufl org-m...@lists.michael-kaeufl.de wrote:

 Hi,
 
 I tried to enter a date before 01/01/1970 using
 “C-c .” (org-time-stamp) and org replaced the year by 2011. (The same
 problem occurs with org-time-stamp- inactive and the C-u prefixed
 variants.)
 
 Although I guess that this is related to the unix time, which starts
 on 01/01/1970 00:00, my lisp skills aren't good enough to let me find
 the responsible code line.
 

I can confirm this issue with 

Org-mode version 7.4 (release_7.4.376.gfa9df.dirty)
GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 
2011-02-07

-- 
Suvayu

Open source is the future. It sets us free.

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


[Orgmode] Error when publishing to HTML

2011-02-17 Thread Sébastien Vauban
Hello,

I've got a couple of files located at `~/src/web-in-org/org/'. They make part
of the following project:

#+begin_src emacs-lisp
(add-to-list 'org-publish-project-alist
 '((orgfiles
:base-directory ~/src/web-in-org/org/
:base-extension org
:publishing-directory ~/src/web-in-org/public_html/
:publishing-function org-publish-org-to-html
:section-numbers nil
:table-of-contents nil
:auto-sitemap t
:sitemap-title Sitemap
:style link rel=\stylesheet\ href=\css/worg.css\ 
type=\text/css\/)
   (css
:base-directory ~/src/web-in-org/org/css/
:base-extension css
:publishing-directory ~/src/web-in-org/public_html/css/
:publishing-function org-publish-attachment)
   (mysite
:components (orgfiles css
#+end_src

`org-publish-project-alist' being nil before this, the above is its final
value as well.

Though, when publishing that project (with `C-c C-e P') from any Org file
located in that directory, I now have:

--8---cut here---start-8---
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  file-name-as-directory(nil)
  (expand-file-name (file-name-as-directory (plist-get ... :base-directory)))
  (let* ((r ...) (b ...) (x ...) (e ...) (i ...) (xm ...)) (when (or ... ...) 
(setq project-name ...) (throw ... project-name)))
  (if (plist-get (cdr prj) :components) nil (let* (... ... ... ... ... ...) 
(when ... ... ...)))
  (unless (plist-get (cdr prj) :components) (let* (... ... ... ... ... ...) 
(when ... ... ...)))
  (while --cl-dolist-temp-- (setq prj (car --cl-dolist-temp--)) (unless 
(plist-get ... :components) (let* ... ...)) (setq --cl-dolist-temp-- (cdr 
--cl-dolist-temp--)))
  (let ((--cl-dolist-temp-- org-publish-project-alist) prj) (while 
--cl-dolist-temp-- (setq prj ...) (unless ... ...) (setq --cl-dolist-temp-- 
...)) nil)
  (catch (quote --cl-block-nil--) (let (... prj) (while --cl-dolist-temp-- ... 
... ...) nil))
  (cl-block-wrapper (catch (quote --cl-block-nil--) (let ... ... nil)))
  (block nil (let (... prj) (while --cl-dolist-temp-- ... ... ...) nil))
  (dolist (prj org-publish-project-alist) (unless (plist-get ... :components) 
(let* ... ...)))
  (catch (quote p-found) (dolist (prj org-publish-project-alist) (unless ... 
...)))
  (let* ((filename ...) project-name) (catch (quote p-found) (dolist ... ...)) 
(when up (dolist ... ...)) (assoc project-name org-publish-project-alist))
  
org-publish-get-project-from-filename(c:/home/sva/src/web-in-org/org/org-mode.org
 up)
  (let ((project ...) (org-publish-use-timestamps-flag ...)) (if (not project) 
(error File %s is not part of any known project ...)) (org-publish project))
  (save-window-excursion (let (... ...) (if ... ...) (org-publish project)))
  org-publish-current-project(nil)
  call-interactively(org-publish-current-project)
  (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) (set-process-sentinel 
p ...) (message Background process \%s\: started p)) (if subtree-p (progn 
... ...)) (call-interactively (nth 1 ass)) (when (and bpos ...) (let ... ... 
... ... ...)))
  (let* ((bg ...) (subtree-p ...) (help [t]   insert the export option 
template\n[v]   limit export to visible part of outline tree\n[1]   switch 
buffer/subtree export\n[SPC] publish enclosing subtree (with LaTeX_CLASS or 
EXPORT_FILE_NAME prop)\n\n[a/n/u] export as ASCII/Latin-1/UTF-8 [A/N/U] 
to temporary buffer\n\n[h] export as HTML  [H] to temporary buffer   [R] 
export region\n[b] export as HTML and open in browser\n\n[l] export as LaTeX
 [L] to temporary buffer\n[p] export as LaTeX and process to PDF[d] 
... and open PDF file\n\n[D] export as DocBook   [V] export as DocBook, process 
to PDF, and open\n\n[j] export as TaskJuggler [J] ... 
and open\n\n[m] export as Freemind mind map\n[x] export as XOXO\n[g] export 
using Wes Hardaker's generic exporter\n\n[i] export current file as iCalendar 
file\n[I] export all agenda files as iCalendar files   [c] ...as one combined 
file\n\n[F] publish current file  [P] publish current project\n[X] 
publish a project...  [E] publish every projects) (cmds ...) r1 r2 ass 
(cpos ...) (cbuf ...) bpos) (save-excursion (save-window-excursion ... ... ... 
... ... ...)) (redisplay) (and bpos (goto-char bpos)) (setq r2 (if ... ... r1)) 
(unless (setq ass ...) (error No command associated with key %c r1)) (if (and 
bg ... ... ...) (let ... ... ...) (if subtree-p ...) (call-interactively ...) 
(when ... ...)))
  org-export(nil)
  call-interactively(org-export nil nil)
--8---cut here---end---8---

I see it's located at line 520 of org-publish.el, but I don't understand the
above error. Any hint?

Side question: I thought I could 

Re: [Orgmode] Insert ampersand in HTML export?

2011-02-17 Thread Nick Dokos
Uriel Avalos amscopub-m...@yahoo.com wrote:

 On Thu, 17 Feb 2011 04:24:58 +0100
 Bastien bastien.gue...@wikimedia.fr wrote:
 
  Hi uriel,
  
  Uriel Avalos uriava...@yahoo.com writes:
  
   #+BIND: org-export-html-protect-char-alist '( . )
  
   That's telling me I'm using the wrong type argument: listp, quote
  
  It must be this:
  
  #+BIND: org-export-html-protect-char-alist '(( . ))
  
  The -alist suffix means it should be an alist -- see the Info node for
  Association lists in the Elisp manual.
  
  -- 
   Bastien
  
  ___
  Emacs-orgmode mailing list
  Please use `Reply All' to send replies to the list.
  Emacs-orgmode@gnu.org
  http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
 Nope. It still doesn't work. This is my test file:
 
#+BIND: org-export-html-protect-char-alist '(( . ))
#+MACRO test  should stay as is
 
Hello world  
 
 I get the same error when I try to export: wrong type argument: listp, quote
 

[Sent a terser reply earlier, but it never made it to the list: mail
problem on my end.]

Lose the quote (that will cure the emacs error) and add a header: the
title element in HTML still gets the amp; treatment:


--8---cut here---start-8---
#+BIND: org-export-html-protect-char-alist (( . ))
#+MACRO test  should stay as is

* foo  bar
Hello world  
--8---cut here---end---8---

Nick



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


[Orgmode] Re: [PATCH] Markup on same line as text

2011-02-17 Thread Hrvoje Niksic
[ Please include me in the replies, as I'm not subscribed to emacs-orgmode. ]

  Your patch may work in this particular case, but the idea behind
  htmlize is to describe the state of the buffer.  If a property ends
  after the newline, it is intended that the generated HTML reflect
 
 The philosophical question is then: Is the newline character part of the 
 syntax construct that is being fontified, or rather a formatting code 
 that should be kept separate?

htmlize doesn't operate on the level of syntax-based fontification, it
examines the display-related properties attached to buffer text (not
necessarily by font-lock) and renders them into the corresponding HTML.

If a display property includes the newline character, that will be
reflected in the HTML.  This works fine for displaying in a browser, but
confuses org-mode's post-processing of HTML, which (if my understanding
is correct) assumes that spans will be closed before the newline.  This
assumption is wrong in the case you present.

However, using htmlize-before-hook, it is trivial to make the assumption
correct by resetting the property.  Here is your example, modified to do
so:

(let ((filename (expand-file-name foo.org temporary-file-directory)))
   (switch-to-buffer (find-file-noselect filename))
   (erase-buffer)
   (insert *
#+BEGIN_SRC emacs-lisp
(let ((x 42)) ; meaning of l.u.e.
   (print x))  ; (ref:2)
#+END_SRC)
   (save-buffer)
   (org-mode)
   (let ((htmlize-before-hook htmlize-before-hook))
 (add-hook 'htmlize-before-hook
   (lambda ()
 (goto-char (point-min))
 (while (progn (end-of-line) (not (eobp)))
   (put-text-property (point) (1+ (point)) 'face nil)
   (forward-char 1
 (org-export-as-html nil)))

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


Re: [Orgmode] Re: [BUG] htmlp and latexp

2011-02-17 Thread Jeff Horn
I'm still encountering this bug.

Org-mode version 7.4 (release_7.4.418.g373c)

This looks like an old release, which is odd. I'm using Eric Schulte's
starter kit, and anyway just switched to the org master branch and
pulled down the latest commits. 'make clean', 'make info', and 'make
lisp/org-install.el' were my next steps.

Is it right to take the last 6 chars and search for a commit through
the web interface? It isn't turning up anything, and that string is
starting look familiar to me.

On Thu, Feb 17, 2011 at 5:50 AM, Jambunathan K kjambunat...@gmail.com wrote:
 Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Hi all,

 to make this explicit:  I can not export to latex any more, but instead
 I get
  Exporting to LaTeX...
  when: Symbol's value as variable is void: htmlp

 Org HEAD
 GNU emacs 23.2.1 (debian squeeze)

 This is my failing org-file:
 * Test
   test


 Have you tried recent head?
 Enable stacktrace: M-x toggle-debug-on-error
 Also include M-x org-version?

 Jambunathan K.


 - Andreas


 Am 16.02.2011 11:03, schrieb Bastien:
 Hi Dan,

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


 Commit ed6d6760268 removed variables htmlp and latexp from
 `org-export-preprocess-string'. Nothing wrong with that, but I think it
 has broken export for those using org-special-blocks, which contains

 #+begin_src emacs-lisp
 (defvar htmlp)
 (defvar latexp)
 (defun org-special-blocks-make-special-cookies ()
   Adds special cookies when #+begin_foo and #+end_foo tokens are
 seen.  This is run after a few special cases are taken care of.
   (when (or htmlp latexp)
     (goto-char (point-min))
 ...
 #+end_src

 Fixed thanks.


 IIuc htmlp and latexp occur occasionally in org code as somewhat
 unofficial ways to test am I in the middle of export?.

 Now there is a uniform and official (!) way of getting the backend the
 user is currently exporting to:

   (eq backend 'html)

 ...


 They also occur in org-exp-blocks, but in deprecated code, so not a
 priority to fix.

 I fixed them there too.

 Thanks for reporting this!




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

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




-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/

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


Re: [Orgmode] Re: [BUG] htmlp and latexp

2011-02-17 Thread Nick Dokos
Jeff Horn jrhorn...@gmail.com wrote:

 I'm still encountering this bug.

Works fine here.

 
 Org-mode version 7.4 (release_7.4.418.g373c)
 

That's the latest (as of two minutes ago).

 This looks like an old release, which is odd. I'm using Eric Schulte's
 starter kit, and anyway just switched to the org master branch and
 pulled down the latest commits. 'make clean', 'make info', and 'make
 lisp/org-install.el' were my next steps.
 

What about M-x org-reload? Or restarting emacs?

 Is it right to take the last 6 chars and search for a commit through
 the web interface? It isn't turning up anything, and that string is
 starting look familiar to me.
 

Don't include the g: try ``git show 373c''

Nick

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


Re: [Orgmode] Re: [BUG] htmlp and latexp

2011-02-17 Thread Bastien
Hi Jeff,

Jeff Horn jrhorn...@gmail.com writes:

 Org-mode version 7.4 (release_7.4.418.g373c)

 This looks like an old release, which is odd. I'm using Eric Schulte's
 starter kit, and anyway just switched to the org master branch and
 pulled down the latest commits. 'make clean', 'make info', and 'make
 lisp/org-install.el' were my next steps.

M-x org-reload RET (or C-c C-x !)

There is no htmlp string in the code anymore, so any bug raising it
tells that there is htmlp somewhere in your own snippets.

Could you check that?

-- 
 Bastien

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


[Orgmode] Are Org manual and/or the compact guide themselves org files?

2011-02-17 Thread Herbert Sitz
I'm wondering if the online manual or compact guide are generated from org
files.  Seems like they could be, but I haven't been able to find mention of it
anywhere, and I haven't seen anywhere where they could be downloaded in .org
format.  Am I missing something?

Thanks,

Herb Sitz


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


Re: [Orgmode] Are Org manual and/or the compact guide themselves org files?

2011-02-17 Thread Suvayu Ali
Hi Herb,

On Fri, 18 Feb 2011 00:10:20 + (UTC)
Herbert Sitz hs...@nwlink.com wrote:

 I'm wondering if the online manual or compact guide are generated
 from org files.  Seems like they could be, but I haven't been able to
 find mention of it anywhere, and I haven't seen anywhere where they
 could be downloaded in .org format.  Am I missing something?
 

As far as I know the org manual is written directly in texinfo and it
is built when you compile org from git master.

 Thanks,
 
 Herb Sitz

Hope this helps.

-- 
Suvayu

Open source is the future. It sets us free.

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


Re: [Orgmode] org-caption-shortn

2011-02-17 Thread Thomas S. Dye

Aloha all,

Replying to myself again.  I have only the faintest idea what I'm  
doing, but this patch appears to take care of the problem described  
earlier, where the optional argument to the LaTeX caption command was  
recycled if not replaced by a new optional argument.


The captions exported to LaTeX now can include or not the optional  
argument.  My org-mode document now exports both captions and entries  
in the list of figures correctly.


All the best,
Tom



0001-lisp-org-exp.el-Set-shortn-nil-before-parsing-a-capt.patch
Description: Binary data




On Feb 17, 2011, at 6:42 AM, Thomas S. Dye wrote:


Aloha all,

First, apologies for my rudimentary programming skills.  The  
attached patch partially answers the query I posed earlier: the  
shortn argument was ignored except for the wrapfigure environment.   
The attached patch makes other environments aware of shortn.


This works, sort of.  If all the #+CAPTION: lines are of this form # 
+CAPTION: [shortn]{caption}, then all goes well.  If one caption of  
this form is followed by others of this form #+CAPTION: caption,  
then the list of figures contains repeated entries of shortn.  I  
suspect there is code somewhere that clears a variable.  I can try  
to look for it, but I have to tell you that the lisp code to org- 
mode looks like magic spells to my untrained eye.


All the best,
Tom

0001-lisp-org-latex.el-Enable-optional-argument-to-LaTeX-.patch


On Feb 16, 2011, at 6:23 PM, Thomas S. Dye wrote:


Aloha all,

I stumbled across code in org-exp.el and org-latex.el that appears  
to my untrained eye to be designed to parse the optional argument  
to the LaTeX \caption command.


This bit in org-exp.el appears to parse out the optional command:

  (when (string-match \\[\\(.*\\)\\]{\\(.*\\)} cap)
(setq shortn (match-string 1 cap)
  cap (match-string 2 cap)))

Then it is easy to find code in org-latex.el by searching for  
'shortn' that looks like it writes out the full command to the .tex  
file.


I can't find documentation for this, though.  It looks (to my  
untrained eye) like it should be possible to write something like:


#+CAPTION: [short]{long}

and get

\caption[short]{long} in the .tex file.

But this doesn't work for me.  The [short] part doesn't make it  
into the .tex file.


I don't know enough lisp to figure this out in a reasonable amount  
of time, so have come to the list to ask if anyone familiar with  
the code knows whether this should work or not, and if it should  
work, how to markup the org file.


All the best,
Tom

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




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


Re: [Orgmode] importing google docs document into org

2011-02-17 Thread Le Wang
Thanks.  I just got this working, and it's only imports google docs as text.
 I'm really after some way to import rich format (not so rich, heading tags,
bullets and hyperlinks).

I can get the information out of google docs easily enough as html, pdf,
word, etc.  But how do I get it into org-mode?

On Fri, Feb 18, 2011 at 2:41 AM, Puneeth Chaganti puncha...@gmail.comwrote:

 On Thu, Feb 17, 2011 at 9:13 PM, Le Wang l26w...@gmail.com wrote:
  Hi all,
  Does anyone have a good workflow for doing this?  I keep a bunch of notes
 on
  google docs with a plain outline structure of using styles Heading 1,
 etc,
  bullets and hyperlinks.  All of this is easily doable in org-mode.  It
 would
  be great if I import them into org.  Now that I find myself editing in
 Emacs
  more and more, the editing features of Google docs just don't cut it any
  more.  I'm using Windows with the cygwin tool stack.

 T V Raman's g-client package allows you to edit google docs from with
 in Emacs and it also has support for publishing from org. More
 information is available in this blog-post [0] that I came across.

 HTH,
 Puneeth

 [0]
 http://blog.vivekhaldar.com/post/1649745633/editing-google-docs-in-emacs




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


Re: [Orgmode] importing google docs document into org

2011-02-17 Thread Puneeth Chaganti
On Fri, Feb 18, 2011 at 10:32 AM, Le Wang l26w...@gmail.com wrote:
 Thanks.  I just got this working, and it's only imports google docs as text.
  I'm really after some way to import rich format (not so rich, heading tags,
 bullets and hyperlinks).
 I can get the information out of google docs easily enough as html, pdf,
 word, etc.  But how do I get it into org-mode?

You could try using Pandoc [1]. It can parse various markups
(including html) and reformat it into various other markups (including
org). There may be a few rough ends in the org-exporter, but it might
be good enough for you.

Hope that helps,
Puneeth

[1] - http://johnmacfarlane.net/pandoc/

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