Re: [O] org-odt compatibility patches

2011-06-24 Thread Carsten Dominik

On Jun 23, 2011, at 5:49 PM, Jambunathan K wrote:

 
 I am following up this mail with 5 patches. These are small patches that
 would help me float org-odt tarball with minimum of hassle (to the
 users). 
 
 The new capabilities introduced are strictly for consumption by
 org-odt. Wrt master branch, these changes should essentially be NOOPs.
 
 I would appreciate if these patches are considered for next release of
 Org.

Hi Jambunathan,

I have merged the patches, Bastien's approval is still pending, but
I do not expect a problem.  It would be good if you can stand
by during the following days in case a bug shows up, so that it
can quickly be fixed, before the release...

- Carsten

 



Re: [O] [babel] using #+call for inline results

2011-06-24 Thread Eric S Fraga
Nicolas Goaziou n.goaz...@gmail.com writes:

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

 I see no difference between the paragraph and the list item: in both
 cases, the table doesn't appear, as it has been moved right after the
 headline by `org-export-blocks-preprocess' during export.

 Are we observing the same phenomenon?

 No, I don't believe so.  Nothing to do with the table; all to do with
 the two inline babel evaluations.  The latex I get exported by this
 snippet of org code:

   The relative volatility is src_octave[:var 
 it=benzene-chlorobenzene-relative-volatility :results output raw]{disp(it);}.

   If I put the result in a list:
   - it does not work as the result is src_octave[:var 
 it=benzene-chlorobenzene-relative-volatility :results output raw]{disp(it);} 
 and the list processing is confused.

 is

   The relative volatility is   7.8578
 .

   If I put the result in a list:

 \begin{itemize}
 \item it does not work as the result is   7.8578
 \end{itemize}
  and the list processing is confused.
 ORG-LIST-END-MARKER

 Again, we get different outputs. *sighs*

Interesting.  What do you get?


[...]

 Well, all this babbling doesn't quite help to solve the issue at
 hand...

but thanks for the explanation: the processing is sort of what I
expected you were having to do.  Please don't worry too much about this
particular use case as it is not critical!

Thanks again,
eric
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.418.ge860.dirty)



Re: [O] documentation versions question

2011-06-24 Thread Sebastien Vauban
Hi Suvayu,

suvayu ali wrote:
 On Thu, Jun 23, 2011 at 7:42 AM, Ian Barton li...@wilkesley.net wrote:
 A more subtle approach would be to edit the Makefile to put the info file in
 the right place. However, on Ubuntu it's not all clear where this should be.

 Or something like this in the emacs init file:

 ;; Info directory
 (add-to-list 'Info-default-directory-list
  (expand-file-name /opt/emacs-lisp/share/info))

Should we use Info-default-directory-list or Info-directory-list? Still not
clear to me which one is the best...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Corrections for org mode manual

2011-06-24 Thread Julian Gehring
Hey,

here is a patch with four small corrections for the org mode manual. I
hope it helps.

Best
JulianFrom ace6614d8a95bbaca5dfd2f6596f1a1554fb53c5 Mon Sep 17 00:00:00 2001
From: Julian Gehring julian.gehr...@googlemail.com
Date: Fri, 24 Jun 2011 10:56:43 +0200
Subject: [PATCH] correct manual

---
 doc/org.texi |   12 ++--
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 936416d..a9159d5 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -265,7 +265,7 @@
 @copying
 This manual is for Org version @value{VERSION}.
 
-Copyright @copyright{} 2004, 2005, 2006, 2007, 2008, 2009, 2010
+Copyright @copyright{} 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
 Free Software Foundation, Inc.
 
 @quotation
@@ -6243,7 +6243,7 @@ prefix commands:
 
 @table @kbd
 @orgkey{C-u C-c c}
-Visit the target location of a cpature template.  You get to select the
+Visit the target location of a capture template.  You get to select the
 template in the usual way.
 @orgkey{C-u C-u C-c c}
 Visit the last stored capture item in its buffer.
@@ -9818,7 +9818,7 @@ support text viewers and accessibility, and align it to the right.
 @end example
 
 @noindent
-and you could use @code{http} addresses just as well.
+You could use @code{http} addresses just as well.
 
 @node Math formatting in HTML export, Text areas in HTML export, Images in HTML export, HTML export
 @subsection Math formatting in HTML export
@@ -10058,7 +10058,7 @@ sections.
 @orgcmd{C-c C-e l,org-export-as-latex}
 @cindex property EXPORT_FILE_NAME
 Export as @LaTeX{} file.  For an Org file
-@file{myfile.org}, the ASCII file will be @file{myfile.tex}.  The file will
+@file{myfile.org}, the @LaTeX{} file will be @file{myfile.tex}.  The file will
 be overwritten without warning.  If there is an active region@footnote{This
 requires @code{transient-mark-mode} be turned on.}, only the region will be
 exported. If the selected region is a single tree@footnote{To select the
@@ -11426,8 +11426,8 @@ Optional switches controlling exportation of the code block (see switches discus
 @ref{Literal examples})
 @item header arguments
 Optional header arguments control many aspects of evaluation, export and
-tangling of code blocks. See the @ref{Header arguments}
-section. Header arguments can also be set on a per-buffer or per-subtree
+tangling of code blocks. See the @ref{Header arguments}. 
+Header arguments can also be set on a per-buffer or per-subtree
 basis using properties.
 @item body
 The source code.
-- 
1.7.4.1



[O] [patch] typographical error in org-agenda documentation

2011-06-24 Thread Eric S Fraga
* fix reference to org-agenda-redo in key descriptions for agenda view

diff --git a/doc/org.texi b/doc/org.texi
index 176475f..da40a01 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -7814,13 +7814,13 @@ prefix argument will temporarily modify that number to the prefix value.
 Toggle the time grid on and off.  See also the variables
 @code{org-agenda-use-time-grid} and @code{org-agenda-time-grid}.
 @c
-@orgcmd{r,org-agenda-rodo}
+@orgcmd{r,org-agenda-redo}
 Recreate the agenda buffer, for example to reflect the changes after
 modification of the timestamps of items with @kbd{S-@key{left}} and
 @kbd{S-@key{right}}.  When the buffer is the global TODO list, a prefix
 argument is interpreted to create a selective list for a specific TODO
 keyword.
-@orgcmd{g,org-agenda-rodo}
+@orgcmd{g,org-agenda-redo}
 Same as @kbd{r}.
 @c
 @orgcmdkskc{C-x C-s,s,org-save-all-org-buffers}

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


Re: [O] [patch] typographical error in org-agenda documentation

2011-06-24 Thread Bastien
Eric S Fraga e.fr...@ucl.ac.uk writes:

 * fix reference to org-agenda-redo in key descriptions for agenda view

Applied, thanks!

-- 
 Bastien



Re: [O] Corrections for org mode manual

2011-06-24 Thread Bastien
Julian Gehring julian.gehr...@fdm.uni-freiburg.de writes:

 here is a patch with four small corrections for the org mode manual. I
 hope it helps.

Applied, thanks!

-- 
 Bastien



Re: [O] org-odt compatibility patches

2011-06-24 Thread Jambunathan K

Carsten

Thanks for considering the org-odt patches. I am assuring quick
turnaround from my side.

Jambunathan K.




[O] FSF France supporting Org-mode since March and Flattr

2011-06-24 Thread Bastien
I'm glad to announce that The Free Software Foundation France* is
supporting Org's development by a large donation of 100€ each month.

Thanks a lot to the FSF France for this!  (http://fsffrance.org)

I will happily share this amount with the rest of the Org community by
sponsoring OrgCamps or other events around the world -- just ask.

From this donation, 15$ will go each month to help John Wiegley pay the
server expenses for the Patchwork bug tracker.  Thanks to John for the
maintainance of this service.  We will use it as long as we need it --
so please send patches !

Org is also using Flattr -- not only to _be flattr'd_ but also to let
other projects know that we like them.  So, if people want to flattr
some projects, just suggest them on the mailing list (with a [FLTR] 
label in the subject of the email) and I'll flattr the project for you.
The monthly amount dedicated to flattr is 10€ so far, but I could raise
it if people find it useful.

Worg pages are open to personal flattr buttons: if you take special care
of a particular page or directory and want to be flattr'd (either by the
Anonymous Surfer or by the Org community itself), please ask me to add
such a flattr button - I'll let Matt Lundin, as the Great Worg Gardner,
decide whether it's relevant or not in each case.

Thanks to all, happy Org'ing!

-- 
 Bastien



Re: [O] Documentation suggestion re: buffers containing crypted entries

2011-06-24 Thread Eric S Fraga
Dave Abrahams d...@boostpro.com writes:

 I was hit by this last week when I was investigating why my emacs
 initialization was taking so long. Later I found out that org-crypt was the

 culprit, since it added a sit for 5s in order for the user to actually
 see this warning.

 The problem is that org-crypt tests the value of the auto-save-default
 variable during loading time. This reflects the default behavior and not
 the actual auto-save status of the current buffer.

 Maybe a variable to disable this warning could be introduced so that the
 user could disable it after understanding the problem.

 Oh, yes please!  I'm finding the delays introduced by this problem
 almost intolerable.  Call me picky but I've gone to great lengths to
 make emacs very responsive and this sit-for really interferes!

+1

I have found this (sit-for 5) annoying enough that I have deleted it
from my copy of org.  5 seconds is a large percentage of my emacs start
up time!

thanks,
eric

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



Re: [O] org-odt compatibility patches

2011-06-24 Thread Jambunathan K

Dear Orgers (who use git)

A note on this patch:

1. Export menu will now have a dummy entry for export to
   OpenDocumentText. (i.e., C-c C-e o anda C-c C-e O).

   If you accidentally invoke this command but do not have org-odt in
   the load-path, then Emacs will remind you that you don't have
   org-odt. This behaviour is expected.

2. Keep a special watch out for issues wrt formatting of babel/example
   blocks and footnotes.

   If you have lots of such things in your Org files you can help by
   re-running your favorite exporter on a fresh git checkout.

Jambunathan K.



Re: [O] org-odt compatibility patches

2011-06-24 Thread Bastien
Hi Jambunathan,

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

 The new capabilities introduced are strictly for consumption by
 org-odt. Wrt master branch, these changes should essentially be NOOPs.

Seen, yes.

 I would appreciate if these patches are considered for next release of
 Org.

Of course.

The plan is to prepare the release over the weekend, to release on
monday and to commit the new 7.6 release into Emacs trunk during next
week.  

-- 
 Bastien



Re: [O] org-odt compatibility patches

2011-06-24 Thread Bastien
Hi Jambunathan,

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

 1. Export menu will now have a dummy entry for export to
OpenDocumentText. (i.e., C-c C-e o anda C-c C-e O).

If you accidentally invoke this command but do not have org-odt in
the load-path, then Emacs will remind you that you don't have
org-odt. This behaviour is expected.

A better way would be to check whether org-odt.el feature is provided
then to change the available export options depending on that.

What do you think?

-- 
 Bastien



[O] babel: textual output and graphic results

2011-06-24 Thread Eythan Weg

Hi,

How could I effect the plot saved in a file and the output produced
shown in the buffer by using a single execution of R in the following
snippet?

#+begin_src R :results output :session 
print(seq(1,10))
plot(seq(1,10))
#+end_src

Thank you.
Eythan   




[O] Back

2011-06-24 Thread Bastien
Dear all,

sorry for the lack of activity the past few months.

I'm back now and I'm really looking forward hacking
Org again with you all!

Best,

-- 
 Bastien



Re: [O] Corrections for org mode manual

2011-06-24 Thread Bastien
Hi Julian,

Julian Gehring julian.gehr...@googlemail.com writes:

 while reading through the org mode manual I found some lines that could
 require minor corrections.

 I attached a patch file with corrections
 ('0001-add-corrections-to-org-manual.patch'), as well as one with
 suggestions ('0001-add-suggestions-to-org-manual.patch') that are more
 of a matter of style.

I applied both patches, thanks very much.

 If there are any questions or comments, please let me know. I will have
 a look at the remaining chapters as soon as possible.

Please do -- documentation always needs more proofreading.

Also note that the convention is to use a double-space at the ending 
of each sentence.  There are a lot of fixes needed to this regard...

Thanks!

-- 
 Bastien



Re: [O] Documentation suggestion re: buffers containing crypted entries

2011-06-24 Thread Bernt Hansen
Eric S Fraga e.fr...@ucl.ac.uk writes:

 Dave Abrahams d...@boostpro.com writes:

 I was hit by this last week when I was investigating why my emacs
 initialization was taking so long. Later I found out that org-crypt was the

 culprit, since it added a sit for 5s in order for the user to actually
 see this warning.

 The problem is that org-crypt tests the value of the auto-save-default
 variable during loading time. This reflects the default behavior and not
 the actual auto-save status of the current buffer.

 Maybe a variable to disable this warning could be introduced so that the
 user could disable it after understanding the problem.

 Oh, yes please!  I'm finding the delays introduced by this problem
 almost intolerable.  Call me picky but I've gone to great lengths to
 make emacs very responsive and this sit-for really interferes!

 +1

 I have found this (sit-for 5) annoying enough that I have deleted it
 from my copy of org.  5 seconds is a large percentage of my emacs start
 up time!

I also have removed this wait in my local copy of org-mode.  I use
org-crypt for one subtree in each of my org files which contains
passwords and other sensitive data.  I rarely decrypt these entries so
leaving auto save on for my use case isn't much of a security issue for
me.  I tend to decrypt the entry, look up the detail I need, and then
resave the file which reencrypts the entry immediately.

Just my 2 cents :)
-- 
Bernt



Re: [O] Documentation suggestion re: buffers containing crypted entries

2011-06-24 Thread Bastien
Eric S Fraga e.fr...@ucl.ac.uk writes:

 I have found this (sit-for 5) annoying enough that I have deleted it
 from my copy of org.  5 seconds is a large percentage of my emacs start
 up time!

I just reduced it to one second.  Still, the message needs some time to
appear to the user.

-- 
 Bastien



[O] tangle paths

2011-06-24 Thread skip
Is there a way I can produce output of tangle blocks to specific file paths?



Re: [O] babel: textual output and graphic results

2011-06-24 Thread Rainer M Krug
On Fri, Jun 24, 2011 at 2:05 PM, Eythan Weg eythan...@gmail.com wrote:




 Thank you.  True.  But, I would like, if possible, to have the link to
 the saved plot as a link in the output, for free.


Just add it as a cat() statement:

 #+begin_src R :results output :session
print(seq(1,10))
pdf(ThePlot.pdf)
plot(seq(1,10))
dev.off()
cat([[./ThePlot.pdf]])
#+end_src


 Eythan


 Rainer M Krug r.m.k...@gmail.com
 Fri, 24 Jun 2011 13:18:36 +0200

   On Fri, Jun 24, 2011 at 12:10 PM, Eythan Weg eythan...@gmail.com
   wrote:


   Hi,

   How could I effect the plot saved in a file and the output
   produced
   shown in the buffer by using a single execution of R in the
   following
   snippet?



   Why not the old R way:

   #+begin_src R :results output :session
   print(seq(1,10))

   pdf(ThePlot.pdf)

   plot(seq(1,10))

   dev.off()

   #+end_src


   Rainer


   Thank you.
   Eythan






   --
   Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
   Biology, UCT), Dipl. Phys. (Germany)

   Centre of Excellence for Invasion Biology
   Stellenbosch University
   South Africa

   Tel : +33 - (0)9 53 10 27 44
   Cell: +33 - (0)6 85 62 59 98
   Fax (F): +33 - (0)9 58 10 27 44

   Fax (D): +49 - (0)3 21 21 25 22 44

   email: rai...@krugs.de

   Skype: RMkrug




-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


[O] How to attach data in clipboard directly?

2011-06-24 Thread Carlos Russo
Hello,

I often need to paste fragments of pictures/images to my org file.

Typically, I manually paste the fragment to a file, and then use C-c C-a m to 
attach that file to my org-file.
This is rather tedious, because there are a few steps and extra programs 
involved, and I guess there must be a better way to do this.

What I want is that emacs/orgmode understands the contents of the clipboard and 
creates that file for me.
For instance, if it detects that the contents of the clipboard is an image or 
some sort of non-text format, emacs would dump the  clipboard data to a file, 
auto-generate a filename, guessing the data type, and attach that file to my 
org-file via org-attach-attach.

I'm thinking of a org-attach-clipboard sort of command, accessible via the C-c 
C-a (org-attach) menu.

Perhaps I'm demanding too much from emacs and org-mode, but hey,  couldn't it 
be done? It would be a cool feature...
More important, _hasn't_ this been done already?

Regards,
Carlos


Re: [O] Documentation suggestion re: buffers containing crypted entries

2011-06-24 Thread Eric S Fraga
Bastien b...@altern.org writes:

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

 I have found this (sit-for 5) annoying enough that I have deleted it
 from my copy of org.  5 seconds is a large percentage of my emacs start
 up time!

 I just reduced it to one second.  Still, the message needs some time to
 appear to the user.

The question is where should this information be most appropriate to
appear.  In my view, this should be in the documentation (highlighted
etc), not in the Emacs mini-buffer!  I don't know enough texi (any at
all, actually) so cannot suggest a patch.  However, I would suggest that
the warning that is in the code be moved into the entry for org-crypt.el
in the info manual. Or, as originally proposed, the warning in the code
could be wrapped in a customisable variable but this seems like overkill
to me.

One quickly becomes inured to messages that appear every time you use a
tool.  At best, they are simply ignored; at worst, they become annoying,
such as in this case.  I'm not complaining critically as it is trivial
to fix for my own use.

Just my 2¢!

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



Re: [O] Back

2011-06-24 Thread Bernt Hansen
Bastien b...@altern.org writes:

 sorry for the lack of activity the past few months.

 I'm back now and I'm really looking forward hacking
 Org again with you all!

Welcome back!  We missed your :D

Regards,
-- 
Bernt



Re: [O] [WISH] Latex WYSIWYG

2011-06-24 Thread Jan Böcker
On 06/21/2011 02:22 AM, Sebastian Berchtold wrote:
 Hi, my first post here: So big shout outs to all org-mode hackers.
 Great Stuff!
 
 There is one feature I'd really like to have, but i couldn't find
 anything that does what i want. I guess it's just a small hack, but
 with my retarded elisp skills it would take me days to implement it.
 
 WYSIWYG Latex is probably not the correct term for this. What i have
 in mind is more like seeing the formula, while editing the
 ASCII/Unicode representation. I'll try to explain the idea more
 detailed.

Hi Sebastian,

I have attached a quick and dirty hack I wrote in December 2010.
It works by updating an image file whenever the formula at point in your
Org buffer changes.
If that image file is currently open in an image buffer, that buffer is
automatically refreshed.

If LaTeX reports an error, the image will not be updated, so you have to
check if the image updates when you expect it to to avoid syntax errors.

See the comments at the top of the file for usage instructions.

Unfortunately, due to lack of time and knowledge of org-mode and elisp,
this thing likely still has a lot of bugs and is not implemented
properly (I guess it should be a minor mode).
However, it seems to work in simple cases.

Hope this helps,
  Jan
;; latex-live-preview.el by Jan Böcker jan.boec...@jboecker.de
;; Feel free to improve this.
;; License: Pick one of GNU GPL v3, BSD, MIT

;; This is a quick and dirty hack to show an automatically updated preview image
;; of the LaTeX formula at point in an org-mode buffer.

;; Usage:
;; * Eval the elisp code in this file in some way (e.g. M-x load-file or M-x eval-buffer)
;; * In your org buffer: M-x jb/toggle-latex-live-preview
;; * Split the window (e.g. C-x 2)
;; * open the exported image file (default: /tmp/livepreview.png) in
;;   the second buffer
;; * edit your Org file

;; To speed things up slightly, you might want to move the tempdir to a ramdisk.



;; the tempdir will contain the exported image and might be cluttered
;; with temporary files from running LaTeX if something goes wrong

(defconst jb/latex-live-preview-tempdir /tmp/)  ; must include final /
(defconst jb/latex-live-preview-filename livepreview.png)

(defvar jb/current-texfilebase )
(defvar jb/current-tmpdir nil)
(defvar jb/current-tofile )
(defvar jb/latex-preview-job nil)
(defvar jb/enable-live-preview nil)



(defun jb/ocfi (string tofile options buffer)
  Modified version of org-create-formula-image
  (require 'org-latex)
  (let* ((tmpdir (if (featurep 'xemacs)
		 (temp-directory)
		   temporary-file-directory))
	 (texfilebase (make-temp-name
		   (expand-file-name orgtex tmpdir)))
	 (texfile (concat texfilebase .tex))
	 (dvifile (concat texfilebase .dvi))
	 (pngfile (concat texfilebase .png))
	 (fnh (if (featurep 'xemacs)
  (font-height (get-face-font 'default))
(face-attribute 'default :height nil)))
	 (scale (or (plist-get options (if buffer :scale :html-scale)) 1.0))
	 (dpi (number-to-string (* scale (floor (* 0.9 (if buffer fnh 140.))
	 (fg (or (plist-get options (if buffer :foreground :html-foreground))
		 Black))
	 (bg (or (plist-get options (if buffer :background :html-background))
		 Transparent)))
(if (eq fg 'default) (setq fg (org-dvipng-color :foreground)))
(if (eq bg 'default) (setq bg (org-dvipng-color :background)))
(with-temp-file texfile
  (insert (org-splice-latex-header
	   org-format-latex-header
	   org-export-latex-default-packages-alist
	   org-export-latex-packages-alist t
	   org-format-latex-header-extra))
  (insert \n\\begin{document}\n string \n\\end{document}\n)
  (require 'org-latex)
  (org-export-latex-fix-inputenc))
	(setq jb/current-texfilebase texfilebase)
	(setq jb/current-tmpdir tmpdir)
	(setq jb/current-tofile tofile)
	(jb/call-latex)
))

(defun jb/call-latex ()
  (cd tmpdir)
  (set-process-sentinel
   (start-process live-latex-preview-latex ; process name
  nil ; no buffer
  latex
  --halt-on-error
  (concat jb/current-texfilebase .tex))
   'jb/call-latex-sentinel)
  ;(message latex-live-preview: started latex)
)

(defun jb/call-latex-sentinel (process event)
  ;(message latex-sentinel: %s event)
  (when (string= event finished\n)
	(jb/call-dvipng))
  (when (string= event exited abnormally with code 1\n)
	(setq jb/current-tmpdir nil)
	(jb/update-latex-preview)))

(defun jb/call-dvipng ()
  (let* ((tmpdir jb/current-tmpdir)
		 (buffer nil)
		 (options org-format-latex-options)
		 (texfilebase jb/current-texfilebase)
		 (texfile (concat texfilebase .tex))
		 (dvifile (concat texfilebase .dvi))
		 (pngfile (concat texfilebase .png))
		 (fnh (if (featurep 'xemacs)
  (font-height (get-face-font 'default))
(face-attribute 'default :height nil)))
		 (scale (or (plist-get options (if buffer :scale :html-scale)) 1.0))
		 (dpi (number-to-string (* scale (floor (* 0.9 (if buffer fnh 140.))
		 (fg (or 

[O] Bug: [PATCH] org-export-as-html returns invalid value [7.5]

2011-06-24 Thread Yuhei Maeda
hi.

When BODY-ONLY is t,  org-export-as-html returns invalid value.
org-export-as-html is function defined on org-html.el

in detail, it includes \n/div\n/body\n/html\n at the end of
return value.

PATCH is below.

org-html.el
@@ -1714,8 +1714,8 @@
 
   (if org-export-html-with-timestamp
  (insert org-export-html-html-helper-timestamp))
-
-  (insert \n/div\n/body\n/html\n)
+  (unless body-only
+  (insert \n/div\n/body\n/html\n))
 
   (unless (plist-get opt-plist :buffer-will-be-killed)
(normal-mode)


Emacs  : GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4)
 of 2011-04-04 on rothera, modified by Debian
Package: Org-mode version 7.5



Re: [O] Bug: [PATCH] org-export-as-html returns invalid value [7.5]

2011-06-24 Thread Bastien
Hi Yuhei,

Yuhei Maeda yuhei.ma...@gmail.com writes:

 -
 -  (insert \n/div\n/body\n/html\n)
 +  (unless body-only
 +  (insert \n/div\n/body\n/html\n))

thanks -- this is already fixed in the current git version of Org.

Best,

-- 
 Bastien



Re: [O] org-time-stamp loses repeater interval

2011-06-24 Thread Bernt Hansen
Karl Voit devn...@karl-voit.at writes:

 Hi!

 Maybe there is a (to me at least hidden) feature behind the behavior
 that org-time-stamp (C-c .) deletes any repeater information when
 used to update a date stamp.

 Or is this some kind of bug or at least unexpected behavior?

There was a report of that recently for malformed timestamps.  Do you
have an example of one that loses the repeater when you reschedule it?

-- 
Bernt



Re: [O] org-time-stamp loses repeater interval

2011-06-24 Thread Nick Dokos
Karl Voit devn...@karl-voit.at wrote:


 Maybe there is a (to me at least hidden) feature behind the behavior
 that org-time-stamp (C-c .) deletes any repeater information when
 used to update a date stamp.
 

AFAIK, org-time-stamp creates a brand-new time stamp: it does not update
an existing one. You can update the time stamp by just using ordinary
Emacs command (it's just text), or you can put the cursor on various
parts of the time stamp and do S-up, S-down (bound to org-shiftup and
org-shiftdown resp.) to change that part.

Nick



Re: [O] org-time-stamp loses repeater interval

2011-06-24 Thread Michael Brand
On Fri, Jun 24, 2011 at 18:01, Nick Dokos nicholas.do...@hp.com wrote:
 Karl Voit devn...@karl-voit.at wrote:
 Maybe there is a (to me at least hidden) feature behind the behavior
 that org-time-stamp (C-c .) deletes any repeater information when
 used to update a date stamp.

Same here with DEADLINE: 2011-06-25 Sat +1w

 AFAIK, org-time-stamp creates a brand-new time stamp: it does not update
 an existing one. You can update the time stamp by just using ordinary
 Emacs command (it's just text), or you can put the cursor on various
 parts of the time stamp and do S-up, S-down (bound to org-shiftup and
 org-shiftdown resp.) to change that part.

If it is a DEADLINE or SCHEDULED you can also use C-c C-d . or C-c
C-s . as a workaround to preserve the repeater. Therefore I consider
loosing the repeater with just C-c . on any active timestamp, no
matter if a DEADLINE, SCHEDULED or not, a bug.

Michael



Re: [O] org-time-stamp loses repeater interval

2011-06-24 Thread Nick Dokos
Michael Brand michael.ch.br...@gmail.com wrote:

 On Fri, Jun 24, 2011 at 18:01, Nick Dokos nicholas.do...@hp.com wrote:
  Karl Voit devn...@karl-voit.at wrote:
  Maybe there is a (to me at least hidden) feature behind the behavior
  that org-time-stamp (C-c .) deletes any repeater information when
  used to update a date stamp.
 
 Same here with DEADLINE: 2011-06-25 Sat +1w
 
  AFAIK, org-time-stamp creates a brand-new time stamp: it does not update
  an existing one. You can update the time stamp by just using ordinary
  Emacs command (it's just text), or you can put the cursor on various
  parts of the time stamp and do S-up, S-down (bound to org-shiftup and
  org-shiftdown resp.) to change that part.
 
 If it is a DEADLINE or SCHEDULED you can also use C-c C-d . or C-c
 C-s . as a workaround to preserve the repeater. Therefore I consider
 loosing the repeater with just C-c . on any active timestamp, no
 matter if a DEADLINE, SCHEDULED or not, a bug.
 

I stand corrected: it does sound like a bug.

Nick



Re: [O] babel: textual output and graphic results

2011-06-24 Thread Eric Schulte
eythan...@gmail.com (Eythan Weg) writes:

 Hi,

 How could I effect the plot saved in a file and the output produced
 shown in the buffer by using a single execution of R in the following
 snippet?


Each code block can only return a single output type, so you will have
to split your code block into two, however (given that you are using
sessions) this should not affect the runtime behavior.  The following
will work...

#+begin_src R :results output :session
print(seq(1,10))
#+end_src

#+begin_src R :file example.png :session
plot(seq(1,10))
#+end_src

Best -- Eric


 #+begin_src R :results output :session
 print(seq(1,10))
 plot(seq(1,10))
 #+end_src

 Thank you.
 Eythan   



-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] Back

2011-06-24 Thread Eric Schulte
Bastien b...@altern.org writes:

 Dear all,

 sorry for the lack of activity the past few months.

 I'm back now and I'm really looking forward hacking
 Org again with you all!


Happy to have you back! -- Eric


 Best,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] tangle paths

2011-06-24 Thread Eric Schulte
skip scp0...@gmail.com writes:

 Is there a way I can produce output of tangle blocks to specific file paths?


The manual is useful: http://orgmode.org/manual/tangle.html

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] babel: textual output and graphic results

2011-06-24 Thread Russell Adams
Eythan,

This sounds similar to something I'd already done on Worg, ie: dual
format returns in R. The first example (RBabelExample) is really R
outputting to PNG for viewing inline in emacs with inline-images, and
PDF for inclusion into Latex.

Maybe you can adapt it to return your text, and graph separately.

http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html

Enjoy.

On Fri, Jun 24, 2011 at 06:10:47AM -0400, Eythan Weg wrote:

 Hi,

 How could I effect the plot saved in a file and the output produced
 shown in the buffer by using a single execution of R in the following
 snippet?

 #+begin_src R :results output :session
 print(seq(1,10))
 plot(seq(1,10))
 #+end_src

 Thank you.
 Eythan




--
Russell Adamsrlad...@adamsinfoserv.com

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

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



[O] [babel] Maxima code blocks do not work

2011-06-24 Thread Bernd Weiss
Dear all,

The follwing Maxima code block does not work:

#+begin_src maxima
1+1;
#+end_src

#+results:
#+begin_example
incorrect syntax: / is not a prefix operator
incorrect syntax: GuM is not an infix operator
parser: incomplete number; missing exponent?
 -- an error. To debug this try: debugmode(true);
incorrect syntax: Too many )'s
incorrect syntax: Premature termination of input at $.
Maxima encountered a Lisp error:
 parser: end of file while scanning expression.
Automatically continuing.
To enable the Lisp debugger set *debugger-hook* to nil.
#+end_example


Thanks,

Bernd


Emacs  : GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600)
 of 2011-03-10 on 3249CTO
Package: Org-mode version 7.5 (release_7.5.435.gd3100)

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-export-latex-listings t
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-agenda-custom-commands '((c conferences ((tags CONFERENCE))
   ((org-tags-match-list-sublevels nil))
   ((org-columns-default-format %DATE %LOCATION)))
  (d Upcoming deadlines agenda 
   ((org-agenda-time-grid nil) 
(org-deadline-warning-days 365)
(org-agenda-entry-types (quote (:deadline
   )
  (W Weekly Review
   ((agenda  ((org-agenda-ndays 14))) (todo 
WRITING)))
  )
 org-agenda-files '(e:/projects/org/agendas/)
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
 org-src-fontify-natively t
 org-babel-load-languages '((emacs-lisp . t) (maxima . t) (R . t)
(python . t) (latex . t)
(dot . t) (sh . t))
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-tangle-lang-exts '((latex . tex) (python . py)
(emacs-lisp . el))
 org-edit-src-content-indentation 0
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-export-latex-packages-alist '(( color) ( listings))
 org-default-notes-file e:/projects/org/agendas/capture.org
 org-directory e:/projects/org/
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines 
org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '(org-mode-reftex-setup
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook org-show-block-all 
append
local] 5]
 #[nil \300\301\302\303\304$\207
   [org-add-hook change-major-mode-hook 
org-babel-show-result-all append
local]
   5]
 org-babel-result-hide-spec org-babel-hide-all-hashes 
turn-on-org-cdlatex
 turn-on-auto-fill turn-on-font-lock turn-on-visual-line-mode)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-interblocks '((lob org-babel-exp-lob-one-liners)
  (src org-babel-exp-inline-src-blocks))
 org-enforce-todo-dependencies t
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp nil
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-confirm-babel-evaluate nil
 org-hierarchical-checkbox-statistics nil
 org-src-tab-acts-natively t
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-export-blocks '((src org-babel-exp-src-block nil)
 (comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 )




Re: [O] Back

2011-06-24 Thread suvayu ali
On Fri, Jun 24, 2011 at 3:27 AM, Bastien b...@altern.org wrote:
 Dear all,

 sorry for the lack of activity the past few months.

 I'm back now and I'm really looking forward hacking
 Org again with you all!


Welcome back! :)

 Best,

 --
  Bastien





-- 
Suvayu

Open source is the future. It sets us free.



[O] [PATCH] org-crypt: only warn about auto-save-mode when running org-decrypt

2011-06-24 Thread Pieter Praet
As auto-save-mode can only cause leakage after org-decrypt has been run,
there's no need to check for it (and potentially cause annoyance) so early.

Unfortunately, auto-save-mode doesn't set a buffer-local var to indicate
whether it's enabled for the current buffer (checking
`buffer-auto-save-file-name' has proven to be unreliable), so we can
only check whether it's enabled globally, using `auto-save-default'.

Signed-off-by: Pieter Praet pie...@praet.org
---
 lisp/org-crypt.el |   14 +-
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/lisp/org-crypt.el b/lisp/org-crypt.el
index 4bff7a1..f4c0b8e 100644
--- a/lisp/org-crypt.el
+++ b/lisp/org-crypt.el
@@ -142,6 +142,10 @@ This setting can also be overridden in the CRYPTKEY 
property.
 (defun org-decrypt-entry ()
   Decrypt the content of the current headline.
   (interactive)
+  (when
+  (or
+   (not auto-save-default)
+   (yes-or-no-p WARNING: auto-save-mode is enabled globally. This may 
cause leakage. Continue? ))
   (require 'epg)
   (unless (org-before-first-heading-p)
 (save-excursion
@@ -179,7 +183,7 @@ This setting can also be overridden in the CRYPTKEY 
property.
(when heading-was-invisible-p
  (goto-char heading-point)
  (org-flag-subtree t))
-   nil))
+   nil)))
 
 (defun org-encrypt-entries ()
   Encrypt all top-level entries in the current buffer.
@@ -209,10 +213,10 @@ This setting can also be overridden in the CRYPTKEY 
property.
 ;; 'org-mode-hook
 ;; (lambda () (add-hook 'auto-save-hook 'org-encrypt-entries nil t
 
-(when (and (functionp 'daemonp)
-  (not (daemonp)) auto-save-default)
-  (message Warning: turn auto-save-mode off in Org buffers containing crypted 
entries.)
-  (sit-for 1))
+;; (when (and (functionp 'daemonp)
+;;(not (daemonp)) auto-save-default)
+;;   (message Warning: turn auto-save-mode off in Org buffers containing 
crypted entries.)
+;;   (sit-for 1))
 
 (add-hook 'org-reveal-start-hook 'org-decrypt-entry)
 
-- 
1.7.4.1




Re: [O] documentation versions question

2011-06-24 Thread suvayu ali
Hi Sebastien,

On Fri, Jun 24, 2011 at 1:24 AM, Sebastien Vauban
wxhgmqzgw...@spammotel.com wrote:
 Hi Suvayu,

 suvayu ali wrote:
 On Thu, Jun 23, 2011 at 7:42 AM, Ian Barton li...@wilkesley.net wrote:
 A more subtle approach would be to edit the Makefile to put the info file in
 the right place. However, on Ubuntu it's not all clear where this should be.

 Or something like this in the emacs init file:

 ;; Info directory
 (add-to-list 'Info-default-directory-list
              (expand-file-name /opt/emacs-lisp/share/info))

 Should we use Info-default-directory-list or Info-directory-list? Still not
 clear to me which one is the best...


According to my understanding Info-default-directory-list and/or the
INFOPATH environment variable is used to populate the
Info-directory-list variable when info is called. So I would recommend
you customise either Info-default-directory-list or INFOPATH.

 Best regards,
  Seb


I hope this helps. :)

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] [PATCH] org-crypt: only warn about auto-save-mode when running org-decrypt

2011-06-24 Thread Nick Dokos
Pieter Praet pie...@praet.org wrote:

 As auto-save-mode can only cause leakage after org-decrypt has been run,
 there's no need to check for it (and potentially cause annoyance) so early.
 
 Unfortunately, auto-save-mode doesn't set a buffer-local var to indicate
 whether it's enabled for the current buffer (checking
 `buffer-auto-save-file-name' has proven to be unreliable), so we can
 only check whether it's enabled globally, using `auto-save-default'.
 

That's very nice, but I think you can go one step further: Why not turn
auto-save-mode off for the buffer when org-decrypt is called?  With a
warning that says so and says why, of course.

Nick

 Signed-off-by: Pieter Praet pie...@praet.org
 ---
  lisp/org-crypt.el |   14 +-
  1 files changed, 9 insertions(+), 5 deletions(-)
 
 diff --git a/lisp/org-crypt.el b/lisp/org-crypt.el
 index 4bff7a1..f4c0b8e 100644
 --- a/lisp/org-crypt.el
 +++ b/lisp/org-crypt.el
 @@ -142,6 +142,10 @@ This setting can also be overridden in the CRYPTKEY 
 property.
  (defun org-decrypt-entry ()
Decrypt the content of the current headline.
(interactive)
 +  (when
 +  (or
 +   (not auto-save-default)
 +   (yes-or-no-p WARNING: auto-save-mode is enabled globally. This may 
 cause leakage. Continue? ))
(require 'epg)
(unless (org-before-first-heading-p)
  (save-excursion
 @@ -179,7 +183,7 @@ This setting can also be overridden in the CRYPTKEY 
 property.
   (when heading-was-invisible-p
 (goto-char heading-point)
 (org-flag-subtree t))
 - nil))
 + nil)))
  
  (defun org-encrypt-entries ()
Encrypt all top-level entries in the current buffer.
 @@ -209,10 +213,10 @@ This setting can also be overridden in the CRYPTKEY 
 property.
  ;; 'org-mode-hook
  ;; (lambda () (add-hook 'auto-save-hook 'org-encrypt-entries nil t
  
 -(when (and (functionp 'daemonp)
 -(not (daemonp)) auto-save-default)
 -  (message Warning: turn auto-save-mode off in Org buffers containing 
 crypted entries.)
 -  (sit-for 1))
 +;; (when (and (functionp 'daemonp)
 +;;  (not (daemonp)) auto-save-default)
 +;;   (message Warning: turn auto-save-mode off in Org buffers containing 
 crypted entries.)
 +;;   (sit-for 1))
  
  (add-hook 'org-reveal-start-hook 'org-decrypt-entry)
  
 -- 
 1.7.4.1
 
 



Re: [O] [babel] using #+call for inline results

2011-06-24 Thread Eric Schulte
Christian Moe m...@christianmoe.com writes:

 +1 for inline calls. No hurry, though.


I've just pushed up an implementation for inline call blocks, the new
syntax is described in the documentation but a simple example is below.

#+source: square
#+begin_src emacs-lisp :var it=0
  (* it it)
#+end_src

Here is a call_square(it=4) stuck in the middle of some prose.

Please let me know how it works and if you have any problems or
recommendations.

Cheers -- Eric

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



[O] problem with html export when using clojure and :exports both

2011-06-24 Thread Robert McIntyre
Hi everyone --- I've been working on making a website using clojure and
org-mode, and have run into what I think may be a bug.

Any help would be appreciated as to whether this is a bug, or if I am doing
something wrong.

sincerely,
--Robert McIntyre

M-x org-version gives:

release_7.5-435-gd3100
Org-mode version 7.5 (release_7.5.435.gd3100)

M-x version gives:
GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-11-23 on
rothera, modified by Debian


and the following file fails on conversion to html with the error message

Export buffer:
Exporting...
org-babel-exp processing...
if: Wrong number of arguments: called-interactively-p, 1


BEGIN FILE TEST.ORG

#+begin_src clojure :exports both
(+ 1 2)
#+end_src

#+results:
: 3

END FILE TEST.ORG


sincerely,
--Robert McIntyre


Re: [O] problem with html export when using clojure and :exports both

2011-06-24 Thread Eric Schulte
Hi Robert,

It looks like this is an issue which should have been fixed by a commit
I made last week, namely

,
| commit db1c3f6a3ea5d9cb25c8fad5aae434fc1d424152
| Author: Eric Schulte schulte.e...@gmail.com
| Date:   Thu Jun 16 21:32:54 2011 -0700
| 
| Revert replacing calls to now-defunct function `interactive-p'
| 
| This reverts commit 4f084e14672d4768bbff1614857ca9218230df69.
`

Updating to the HEAD of the git repo should fix this problem.

Cheers -- Eric

Robert McIntyre r...@mit.edu writes:

 Hi everyone --- I've been working on making a website using clojure and
 org-mode, and have run into what I think may be a bug.

 Any help would be appreciated as to whether this is a bug, or if I am doing
 something wrong.

 sincerely,
 --Robert McIntyre

 M-x org-version gives:

 release_7.5-435-gd3100
 Org-mode version 7.5 (release_7.5.435.gd3100)

 M-x version gives:
 GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-11-23 on
 rothera, modified by Debian


 and the following file fails on conversion to html with the error message

 Export buffer:
 Exporting...
 org-babel-exp processing...
 if: Wrong number of arguments: called-interactively-p, 1


 BEGIN FILE TEST.ORG

 #+begin_src clojure :exports both
 (+ 1 2)
 #+end_src

 #+results:
 : 3

 END FILE TEST.ORG


 sincerely,
 --Robert McIntyre

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] problem with html export when using clojure and :exports both

2011-06-24 Thread Robert McIntyre
Thanks for your reply -- I've updated using `git pull` and while some of the
relevant files have changed, I still have the same problem.

M-x org-version yields:
release_7.5-440-g00c62
Org-mode version 7.5 (release_7.5.440.g00c62)



sincerely,
--Robert McIntyre


On Fri, Jun 24, 2011 at 6:55 PM, Eric Schulte schulte.e...@gmail.comwrote:

 Hi Robert,

 It looks like this is an issue which should have been fixed by a commit
 I made last week, namely

 ,
 | commit db1c3f6a3ea5d9cb25c8fad5aae434fc1d424152
 | Author: Eric Schulte schulte.e...@gmail.com
 | Date:   Thu Jun 16 21:32:54 2011 -0700
 |
 | Revert replacing calls to now-defunct function `interactive-p'
 |
 | This reverts commit 4f084e14672d4768bbff1614857ca9218230df69.
 `

 Updating to the HEAD of the git repo should fix this problem.

 Cheers -- Eric

 Robert McIntyre r...@mit.edu writes:

  Hi everyone --- I've been working on making a website using clojure and
  org-mode, and have run into what I think may be a bug.
 
  Any help would be appreciated as to whether this is a bug, or if I am
 doing
  something wrong.
 
  sincerely,
  --Robert McIntyre
 
  M-x org-version gives:
 
  release_7.5-435-gd3100
  Org-mode version 7.5 (release_7.5.435.gd3100)
 
  M-x version gives:
  GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-11-23
 on
  rothera, modified by Debian
 
 
  and the following file fails on conversion to html with the error message
 
  Export buffer:
  Exporting...
  org-babel-exp processing...
  if: Wrong number of arguments: called-interactively-p, 1
 
 
  BEGIN FILE TEST.ORG
 
  #+begin_src clojure :exports both
  (+ 1 2)
  #+end_src
 
  #+results:
  : 3
 
  END FILE TEST.ORG
 
 
  sincerely,
  --Robert McIntyre

 --
 Eric Schulte
 http://cs.unm.edu/~eschulte/



Re: [O] problem with html export when using clojure and :exports both

2011-06-24 Thread Eric Schulte
Hi Robert,

I just pushed up a patch which replaces the one call I could find to
called-interactively-p with a call to the safer interactive-p.  If this
doesn't fix the problem then please turn on backtraces with

  M-x toggle-debug-on-error

and then re-run the export and send me the backtrace.

Cheers -- Eric

Robert McIntyre r...@mit.edu writes:

 Thanks for your reply -- I've updated using `git pull` and while some of the
 relevant files have changed, I still have the same problem.

 M-x org-version yields:
 release_7.5-440-g00c62
 Org-mode version 7.5 (release_7.5.440.g00c62)



 sincerely,
 --Robert McIntyre


 On Fri, Jun 24, 2011 at 6:55 PM, Eric Schulte schulte.e...@gmail.comwrote:

 Hi Robert,

 It looks like this is an issue which should have been fixed by a commit
 I made last week, namely

 ,
 | commit db1c3f6a3ea5d9cb25c8fad5aae434fc1d424152
 | Author: Eric Schulte schulte.e...@gmail.com
 | Date:   Thu Jun 16 21:32:54 2011 -0700
 |
 | Revert replacing calls to now-defunct function `interactive-p'
 |
 | This reverts commit 4f084e14672d4768bbff1614857ca9218230df69.
 `

 Updating to the HEAD of the git repo should fix this problem.

 Cheers -- Eric

 Robert McIntyre r...@mit.edu writes:

  Hi everyone --- I've been working on making a website using clojure and
  org-mode, and have run into what I think may be a bug.
 
  Any help would be appreciated as to whether this is a bug, or if I am
 doing
  something wrong.
 
  sincerely,
  --Robert McIntyre
 
  M-x org-version gives:
 
  release_7.5-435-gd3100
  Org-mode version 7.5 (release_7.5.435.gd3100)
 
  M-x version gives:
  GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-11-23
 on
  rothera, modified by Debian
 
 
  and the following file fails on conversion to html with the error message
 
  Export buffer:
  Exporting...
  org-babel-exp processing...
  if: Wrong number of arguments: called-interactively-p, 1
 
 
  BEGIN FILE TEST.ORG
 
  #+begin_src clojure :exports both
  (+ 1 2)
  #+end_src
 
  #+results:
  : 3
 
  END FILE TEST.ORG
 
 
  sincerely,
  --Robert McIntyre

 --
 Eric Schulte
 http://cs.unm.edu/~eschulte/


-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] org-odt compatibility patches

2011-06-24 Thread Jambunathan K

Bastien

The attached patch fixes a omission in the org-odt compatibility
series.

Could you please commit this?

Jambunathan K.

From 403fdba8e091ba15700262192064681a3bf8ac30 Mon Sep 17 00:00:00 2001
From: Jambunathan K kjambunat...@gmail.com
Date: Sat, 25 Jun 2011 10:41:20 +0530
Subject: [PATCH] org-export-format-source-code-or-example: Fix commit f0177f (org-odt)

* lisp/org-exp.el (org-export-format-source-code-or-example):
Fix signature of org-backend-format-source-code-or-example
function.
---
 lisp/org-exp.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 83216dc..f8ea896 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2536,7 +2536,7 @@ INDENT was the original indentation of the block.
   (setq rtn
 	(cond
 	 (backend-formatter
-	  (funcall backend-formatter lang caption textareap cols rows num
+	  (funcall backend-formatter rtn lang caption textareap cols rows num
 		   cont rpllbl fmt))
 	 ((eq org-export-current-backend 'docbook)
 	  (setq rtn (org-export-number-lines rtn 0 0 num cont rpllbl fmt))
-- 
1.7.2.3


--