[O] Org Mobile and Adroid 2.3.6

2012-12-22 Thread Martin Butz

Hi,

does anyone have a working and fully functional orgmobile installation 
on a smartphone with Android 2.3.6 (meine: Samsung Ace)?


It seems, that mine is not complete. E.g. using the setup wizard I was 
prompted to provide a folder for the storage of the org-files. But I 
could not set this option, because I was not able to choose a folder. 
Nevertheless the synchronization with Ubuntu One basically works 
although I do not have a clue, where mobileorg stores the files.


The next problem is, I use encryption (org-mobile-use-encryption), which 
works. But how can I bring orgmobile to descrypt the files?


Thanks
Martin

--

| G. Martin Butz, m...@mkblog.org, 0421 98749324, www.mkblog.org |




Re: [O] Publishing org project as odt

2012-12-22 Thread Jambunathan K
Wiskey 5 Alpha wiskey5al...@gmail.com writes:

 Hello,
I have a rather large project that I currently export to odt
 files. I tried the org-export-as-odt-batch command line function but
 it fails, 

Can you tell how it fails. In your init file (the one used by batch
emacs), you can put

(setq debug-on-error t)

to get a stack trace or some such info.

 and subsequently deletes all files in the directory.

Deletes what files?

What i would *really* like is to publish the directory of org
 files, with a command like =org-publish-org-to-odt=.  Is there a way
 to do this currently ?

Currently there is no way to do it.  How is your publishing setup like?

 -Tim


-- 



Re: [O] remote execution in heterogeneous environment

2012-12-22 Thread Michael Albinus
George elu...@gmail.com writes:

Hi George,

 Make everything works with:

   (setq temporary-file-directory /tmp/)

That's a misunderstanding. I meant the workaround I have proposed
yesterday on the org-mode ML, and which has been committed by Bastien.

Meanwhile, everything shall work out-of-the box. Does it for you?

 Thanks,
 ---George Jones

Best regards, Michael.



Re: [O] flyspell and code blocks

2012-12-22 Thread Jambunathan K
Francesco Pizzolante
fpz-djc/ipccudyqhejpep6iedvlejwur...@public.gmane.org writes:

 Hi,

 Jambunathan K wrote:
 Julian Burgos julian-ymfcbn36...@public.gmane.org writes:

 It is possible to make flyspell to ignore (i.e. do not spell check)
 the text within code blocks (I mean blocks of texts separated by
 #+begin_src and #+end src)?  I did my homework but could not find a
 good answer.

 See
 http://lists.gnu.org/archive/html/help-gnu-emacs/2012-02/msg00162.html

 which links to the following bug report
 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10804

 I'm not sure whether this issue has been fixed or not.

 But, while I was testing Jambunathan's following code:

 ╭
 │ (defadvice org-mode-flyspell-verify
 │   (after my-org-mode-flyspell-verify activate)
 │   Don't spell check src blocks.
 │   (setq ad-return-value
 │ (and ad-return-value
 │  (not (org-in-src-block-p))
 │  (not (member 'org-block-begin-line (text-properties-at 
 (point
 │  (not (member 'org-block-end-line (text-properties-at 
 (point)))
 ╰

 I found that it only works when setting the org-src-fontify-natively variable:

 ╭
 │(setq org-src-fontify-natively t)
 ╰

 I hope this helps.


The following replacement wouldn't depend on fontification.

(defadvice org-mode-flyspell-verify
  (after my-org-mode-flyspell-verify activate)
  Don't spell check src blocks.
  (setq ad-return-value
(and ad-return-value
 (not (eq (org-element-type (org-element-at-point)) 'src-block)



 an even better solution would be to use flyspell-prog-mode (to spellcheck
 comments and strings in source code) within the Org source blocks.

 Any idea how to achieve this?

 Thanks,
  Francesco



-- 



Re: [O] Org Mobile and Adroid 2.3.6

2012-12-22 Thread J. David Boyd
Martin Butz m...@mkblog.org writes:

 Hi,

 does anyone have a working and fully functional orgmobile installation
 on a smartphone with Android 2.3.6 (meine: Samsung Ace)?

 It seems, that mine is not complete. E.g. using the setup wizard I was
 prompted to provide a folder for the storage of the org-files. But I
 could not set this option, because I was not able to choose a
 folder. Nevertheless the synchronization with Ubuntu One basically
 works although I do not have a clue, where mobileorg stores the files.

 The next problem is, I use encryption (org-mobile-use-encryption),
 which works. But how can I bring orgmobile to descrypt the files?

 Thanks
 Martin

I think the docs in Org describe some of the pieces you are missing
There are variables in Org-mode that control parts of that.

Dave




Re: [O] remote execution in heterogeneous environment

2012-12-22 Thread George
Michael Albinus michael.albi...@gmx.de writes:

 Similar procedure on a mac still yeilds:

 Couldn't write region to
 `/scpc:g...@example.com:/var/folders/j6/j6w17khs3vl9s2_yg4rb5zsmgn/T/input-
 61683xyS', decode using `mimencode -u -b %s' f\
 ailed

 Could you, please, show the exact test case? And please apply the
 workaround first (see my other email).


Everything works if I do, as you suggested:

  (setq temporary-file-directory ~/tmp/)

---cut here---
#+NAME: hobbits
| bilbo | frodo |

#+name: executeOnLocalVM
#+BEGIN_SRC sh :var foo=hobbits  :dir /george@localhost#: :results output
echo executed on `hostname` at `date`   
  echo two 
$foo
 #+END_SRC  



#+RESULTS: executeOnLocalVM
: executed on garlic at Sat Dec 22 13:25:35 UTC 2012
: two bilbo frodo

#+name: relevantVars
#+BEGIN_SRC emacs-lisp
(concat
  temporary-file-directory  temporary-file-directory
)
#+END_SRC

#+RESULTS: relevantVars
: temporary-file-directory /tmp/

#+name: versions
#+BEGIN_SRC emacs-lisp
(concat (emacs-version)
 
tramp version:  tramp-version

org version  org-version)
#+END_SRC

#+RESULTS: versions
: GNU Emacs 24.2.1 (x86_64-apple-darwin11.4.2)
:  of 2012-11-19 on tenseven-slave.macports.org
: tramp version: 2.2.6
: org version 7.9.2

---cut here---

Thanks,
---George Jones



Re: [O] remote execution in heterogeneous environment

2012-12-22 Thread George
Michael Albinus michael.albi...@gmx.de writes:

 Similar procedure on a mac still yeilds:

 Couldn't write region to
 `/scpc:g...@example.com:/var/folders/j6/j6w17khs3vl9s2_yg4rb5zsmgn/T/input-
 61683xyS', decode using `mimencode -u -b %s' f\
 ailed

 Could you, please, show the exact test case? And please apply the
 workaround first (see my other email).

Make everything works with:

  (setq temporary-file-directory /tmp/)

Thanks,
---George Jones



Re: [O] Publishing org project as odt

2012-12-22 Thread Wiskey 5 Alpha
Thank you for your reply.  Below you will find a small example to 
illustrate the problem.  First I have a small test org-mode file in the 
directory, =test.org=.  It's contents is shown next.  I run the batch 
process, which causes an error.   All files in the directory are deleted 
except for the .odt file !


Thanks again.  I am running emacs version 23.4.1 on Ubuntu 12.10, and 
org-mode from elpa package =org-plus-contrib 20121217=


-Tim


aldrichtr@liberty:/tmp/export-process
$ ls
test.org
aldrichtr@liberty:/tmp/export-process
$ cat test.org

* This is heading one
  And some text
** heading one two
   And some text

aldrichtr@liberty:/tmp/export-process
$ emacs --batch --load=$HOME/.emacs --visit=./test.org --funcall 
org-export-as-odt-batch

...
Debug (org-odt): Searching for OpenDocument schema files...
Debug (org-odt): Trying /usr/share/emacs/etc/org/schema/...
Debug (org-odt): Trying /usr/share/emacs/etc/org/schema/...
Debug (org-odt): No OpenDocument schema files installed
Debug (org-odt): Searching for OpenDocument styles files...
Debug (org-odt): Trying /usr/share/emacs/etc/org/styles/...
Debug (org-odt): Trying /usr/share/emacs/etc/org/styles/...
Debug (org-odt): Trying /home/aldrichtr/.emacs.d/elpa/etc/styles/...
Debug (org-odt): Trying 
/home/aldrichtr/.emacs.d/elpa/org-plus-contrib-20121217/etc/styles/...
Debug (org-odt): Using styles under 
/home/aldrichtr/.emacs.d/elpa/org-plus-contrib-20121217/etc/styles/

Exporting to ODT using org-lparse...
Using vacuous schema
[yas] Loading for `nxml-mode', just-in-time: (yas--load-directory-1 
/home/aldrichtr/.emacs.d/elpa/yasnippet-20121127.25/snippets/nxml-mode 
(quote nxml-mode) (quote (text-mode)))!
[yas] Loading compiled snippets from 
/home/aldrichtr/.emacs.d/elpa/yasnippet-20121127.25/snippets/nxml-mode

LaTeX to MathML converter not available. Using verbatim instead.
Exporting...
ODT export done, pushed to kill ring and clipboard
Wrote /tmp/export-process/meta.xml
Using vacuous schema
Saving file /tmp/export-process/styles.xml...
Wrote /tmp/export-process/styles.xml
Wrote /tmp/export-process/mimetype
Using vacuous schema
Saving file /tmp/export-process/styles.xml...
Wrote /tmp/export-process/styles.xml
(No changes need to be saved)
Saving file /tmp/export-process/META-INF/manifest.xml...
Wrote /tmp/export-process/META-INF/manifest.xml
Saving file /tmp/export-process/content.xml...
Wrote /tmp/export-process/content.xml
Using vacuous schema
(No changes need to be saved)
Creating odt file...
Running zip -mX0 test.odt mimetype
Running zip -rmTq test.odt .
Debugger entered--Lisp error: (file-already-exists File already exists 
/tmp/export-process/test.odt)

  rename-file(test.odt /tmp/export-process/)
  (let* ((target-name ...) (target-dir ...) (cmds ...)) (when 
(file-exists-p target) (delete-file target)) (let (... exitcode 
err-string) (message Creating odt file...) (mapc ... cmds)) 
(rename-file target-name target-dir))
  (let ((xml-files ...)) (when (equal org-lparse-backend ...) (push 
styles.xml xml-files)) (mapc (lambda ... ...) xml-files) (let* (... 
... ...) (when ... ...) (let ... ... ...) (rename-file target-name 
target-dir)))
  org-odt-save-as-outfile(/tmp/export-process/test.odt 
(:latex-image-options nil :exclude-tags (noexport) :select-tags 
(export) :publishing-directory nil :timestamp nil :expand-quoted-html 
t :html-table-tag table border=\2\ cellspacing=\0\ 
cellpadding=\6\ rules=\groups\ frame=\hsides\ :xml-declaration 
((html . ?xml version=\1.0\ encoding=\%s\?) (php . ?php 
echo \?xml version=\\\1.0\\\ encoding=\\\%s\\\ ?\; ?)) 
:html-postamble auto :html-preamble t :html-extension html 
:inline-images maybe :convert-org-links t :agenda-style nil :style-extra 
 :style  :style-include-scripts t :style-include-default t 
:table-auto-headline t :tables t :time-stamp-file t :creator-info t 
:email-info nil :author-info t :email wiskey5al...@gmail.com ...))
  funcall(org-odt-save-as-outfile /tmp/export-process/test.odt 
(:latex-image-options nil :exclude-tags (noexport) :select-tags 
(export) :publishing-directory nil :timestamp nil :expand-quoted-html 
t :html-table-tag table border=\2\ cellspacing=\0\ 
cellpadding=\6\ rules=\groups\ frame=\hsides\ :xml-declaration 
((html . ?xml version=\1.0\ encoding=\%s\?) (php . ?php 
echo \?xml version=\\\1.0\\\ encoding=\\\%s\\\ ?\; ?)) 
:html-postamble auto :html-preamble t :html-extension html 
:inline-images maybe :convert-org-links t :agenda-style nil :style-extra 
 :style  :style-include-scripts t :style-include-default t 
:table-auto-headline t :tables t :time-stamp-file t :creator-info t 
:email-info nil :author-info t :email wiskey5al...@gmail.com ...))

  (and f (functionp f) (funcall f filename opt-plist))
  (or (and f (functionp f) (funcall f filename opt-plist)) (save-buffer))
  (let ((f ...)) (or (and f ... ...) (save-buffer)))
  (cond ((not to-buffer) (let ... ...) (or ... ...)) ((eq to-buffer 
...) (prog1 ... ...)) (t (current-buffer)))
  (let ((case-fold-search nil) 

Re: [O] Publishing org project as odt

2012-12-22 Thread Wiskey 5 Alpha

On 12/22/2012 07:54 AM, Jambunathan K wrote:

Wiskey 5 Alpha wiskey5al...@gmail.com writes:

What i would *really* like is to publish the directory of org
files, with a command like =org-publish-org-to-odt=.  Is there a way
to do this currently ?


Currently there is no way to do it.  How is your publishing setup like?
Well, I have several org-mode files in a directory.  These are the 
/source/ files.  For each file, I open it in emacs, then =C-c C-e o= for 
each one.  Next, I move all of the .odt's to a /build/ directory.  Here 
I do any final adjustments to the odt file, and then create a 
presentation from the outline, (file-send-outline to presentation in 
libreoffice).  I save this in the build directory.  Finally I make any 
final adjustments to the presentation.


All of this is a painfully manual process, and I am looking to do it all 
in a make/shell script.   I considered using the publish facility 
because that would basically do exactly what I just described.  The only 
problem is that publish can create an html or pdf file, but not an 
odt... right ?


-Tim




Re: [O] Publishing org project as odt

2012-12-22 Thread Wiskey 5 Alpha

On 12/22/2012 07:54 AM, Jambunathan K wrote:

Wiskey 5 Alpha wiskey5al...@gmail.com writes:


Hello,
I have a rather large project that I currently export to odt
files. I tried the org-export-as-odt-batch command line function but
it fails,


Can you tell how it fails. In your init file (the one used by batch
emacs), you can put

 (setq debug-on-error t)

to get a stack trace or some such info.


and subsequently deletes all files in the directory.


Deletes what files?
I guess technically , it doesn't delete them, but they are zipped into 
the .odt file, and not present in the directory...




[O] org-odt: Batch exports creates data loss, deletes original org file

2012-12-22 Thread Jambunathan K

 Thank you for your reply.  Below you will find a small example to
 illustrate the problem.  First I have a small test org-mode file in
 the directory, =test.org=.  It's contents is shown next.  I run the
 batch process, which causes an error.   All files in the directory are
 deleted except for the .odt file !

Data loss is very bad.  I am sorry.  Looks like you hope you had
backups.

I will forward a fix to Org/Emacs in few hours.

 $ emacs --batch --load=$HOME/.emacs --visit=./test.org --funcall
 org-export-as-odt-batch

Meanwhile, instead of using `org-export-as-odt-batch', you can try the
following which uses `org-export-as-odt'.

$ emacs --batch -Q -L ~/src/org-mode/lisp --visit=./test-new.org --funcall
org-export-as-odt


 Thanks again.  I am running emacs version 23.4.1 on Ubuntu 12.10, and
 org-mode from elpa package =org-plus-contrib 20121217=

 -Tim


 aldrichtr@liberty:/tmp/export-process
 $ ls
 test.org
 aldrichtr@liberty:/tmp/export-process
 $ cat test.org

 * This is heading one
   And some text
 ** heading one two
And some text

 aldrichtr@liberty:/tmp/export-process
 $ emacs --batch --load=$HOME/.emacs --visit=./test.org --funcall
 org-export-as-odt-batch
 ...
 Debug (org-odt): Searching for OpenDocument schema files...
 Debug (org-odt): Trying /usr/share/emacs/etc/org/schema/...
 Debug (org-odt): Trying /usr/share/emacs/etc/org/schema/...
 Debug (org-odt): No OpenDocument schema files installed
 Debug (org-odt): Searching for OpenDocument styles files...
 Debug (org-odt): Trying /usr/share/emacs/etc/org/styles/...
 Debug (org-odt): Trying /usr/share/emacs/etc/org/styles/...
 Debug (org-odt): Trying /home/aldrichtr/.emacs.d/elpa/etc/styles/...
 Debug (org-odt): Trying
 /home/aldrichtr/.emacs.d/elpa/org-plus-contrib-20121217/etc/styles/...
 Debug (org-odt): Using styles under
 /home/aldrichtr/.emacs.d/elpa/org-plus-contrib-20121217/etc/styles/
 Exporting to ODT using org-lparse...
 Using vacuous schema
 [yas] Loading for `nxml-mode', just-in-time: (yas--load-directory-1 
 /home/aldrichtr/.emacs.d/elpa/yasnippet-20121127.25/snippets/nxml-mode
 (quote nxml-mode) (quote (text-mode)))!
 [yas] Loading compiled snippets from
 /home/aldrichtr/.emacs.d/elpa/yasnippet-20121127.25/snippets/nxml-mode
 LaTeX to MathML converter not available. Using verbatim instead.
 Exporting...
 ODT export done, pushed to kill ring and clipboard
 Wrote /tmp/export-process/meta.xml
 Using vacuous schema
 Saving file /tmp/export-process/styles.xml...
 Wrote /tmp/export-process/styles.xml
 Wrote /tmp/export-process/mimetype
 Using vacuous schema
 Saving file /tmp/export-process/styles.xml...
 Wrote /tmp/export-process/styles.xml
 (No changes need to be saved)
 Saving file /tmp/export-process/META-INF/manifest.xml...
 Wrote /tmp/export-process/META-INF/manifest.xml
 Saving file /tmp/export-process/content.xml...
 Wrote /tmp/export-process/content.xml
 Using vacuous schema
 (No changes need to be saved)
 Creating odt file...
 Running zip -mX0 test.odt mimetype
 Running zip -rmTq test.odt .
 Debugger entered--Lisp error: (file-already-exists File already
 exists /tmp/export-process/test.odt)
   rename-file(test.odt /tmp/export-process/)
   (let* ((target-name ...) (target-dir ...) (cmds ...)) (when
 (file-exists-p target) (delete-file target)) (let (... exitcode
 err-string) (message Creating odt file...) (mapc ... cmds))
 (rename-file target-name target-dir))
   (let ((xml-files ...)) (when (equal org-lparse-backend ...) (push
 styles.xml xml-files)) (mapc (lambda ... ...) xml-files) (let*
 (... ... ...) (when ... ...) (let ... ... ...) (rename-file
 target-name target-dir)))
   org-odt-save-as-outfile(/tmp/export-process/test.odt
 (:latex-image-options nil :exclude-tags (noexport) :select-tags
 (export) :publishing-directory nil :timestamp nil
 :expand-quoted-html t :html-table-tag table border=\2\
 cellspacing=\0\ cellpadding=\6\ rules=\groups\
 frame=\hsides\ :xml-declaration ((html . ?xml version=\1.0\
 encoding=\%s\?) (php . ?php echo \?xml version=\\\1.0\\\
 encoding=\\\%s\\\ ?\; ?)) :html-postamble auto :html-preamble t
 :html-extension html :inline-images maybe :convert-org-links t
 :agenda-style nil :style-extra  :style  :style-include-scripts t
 :style-include-default t :table-auto-headline t :tables t
 :time-stamp-file t :creator-info t :email-info nil :author-info t
 :email wiskey5al...@gmail.com ...))
   funcall(org-odt-save-as-outfile /tmp/export-process/test.odt
 (:latex-image-options nil :exclude-tags (noexport) :select-tags
 (export) :publishing-directory nil :timestamp nil
 :expand-quoted-html t :html-table-tag table border=\2\
 cellspacing=\0\ cellpadding=\6\ rules=\groups\
 frame=\hsides\ :xml-declaration ((html . ?xml version=\1.0\
 encoding=\%s\?) (php . ?php echo \?xml version=\\\1.0\\\
 encoding=\\\%s\\\ ?\; ?)) :html-postamble auto :html-preamble t
 :html-extension html :inline-images maybe :convert-org-links t
 :agenda-style nil :style-extra  :style  :style-include-scripts t
 

[O] org-odt: Batch exports creates data loss, deletes original org file

2012-12-22 Thread Jambunathan K

 Thank you for your reply.  Below you will find a small example to
 illustrate the problem.  First I have a small test org-mode file in
 the directory, =test.org=.  It's contents is shown next.  I run the
 batch process, which causes an error.   All files in the directory are
 deleted except for the .odt file !

Data loss is very bad.  I am sorry.  Looks like you had backups.

I will forward a fix to Org/Emacs in few hours.

 $ emacs --batch --load=$HOME/.emacs --visit=./test.org --funcall
 org-export-as-odt-batch

Meanwhile, instead of using `org-export-as-odt-batch', you can try the
following which uses `org-export-as-odt'.

$ emacs --batch -Q -L ~/src/org-mode/lisp --visit=./test-new.org --funcall
org-export-as-odt


 Thanks again.  I am running emacs version 23.4.1 on Ubuntu 12.10, and
 org-mode from elpa package =org-plus-contrib 20121217=

 -Tim


 aldrichtr@liberty:/tmp/export-process
 $ ls
 test.org
 aldrichtr@liberty:/tmp/export-process
 $ cat test.org

 * This is heading one
   And some text
 ** heading one two
And some text

 aldrichtr@liberty:/tmp/export-process
 $ emacs --batch --load=$HOME/.emacs --visit=./test.org --funcall
 org-export-as-odt-batch
 ...
 Debug (org-odt): Searching for OpenDocument schema files...
 Debug (org-odt): Trying /usr/share/emacs/etc/org/schema/...
 Debug (org-odt): Trying /usr/share/emacs/etc/org/schema/...
 Debug (org-odt): No OpenDocument schema files installed
 Debug (org-odt): Searching for OpenDocument styles files...
 Debug (org-odt): Trying /usr/share/emacs/etc/org/styles/...
 Debug (org-odt): Trying /usr/share/emacs/etc/org/styles/...
 Debug (org-odt): Trying /home/aldrichtr/.emacs.d/elpa/etc/styles/...
 Debug (org-odt): Trying
 /home/aldrichtr/.emacs.d/elpa/org-plus-contrib-20121217/etc/styles/...
 Debug (org-odt): Using styles under
 /home/aldrichtr/.emacs.d/elpa/org-plus-contrib-20121217/etc/styles/
 Exporting to ODT using org-lparse...
 Using vacuous schema
 [yas] Loading for `nxml-mode', just-in-time: (yas--load-directory-1 
 /home/aldrichtr/.emacs.d/elpa/yasnippet-20121127.25/snippets/nxml-mode
 (quote nxml-mode) (quote (text-mode)))!
 [yas] Loading compiled snippets from
 /home/aldrichtr/.emacs.d/elpa/yasnippet-20121127.25/snippets/nxml-mode
 LaTeX to MathML converter not available. Using verbatim instead.
 Exporting...
 ODT export done, pushed to kill ring and clipboard
 Wrote /tmp/export-process/meta.xml
 Using vacuous schema
 Saving file /tmp/export-process/styles.xml...
 Wrote /tmp/export-process/styles.xml
 Wrote /tmp/export-process/mimetype
 Using vacuous schema
 Saving file /tmp/export-process/styles.xml...
 Wrote /tmp/export-process/styles.xml
 (No changes need to be saved)
 Saving file /tmp/export-process/META-INF/manifest.xml...
 Wrote /tmp/export-process/META-INF/manifest.xml
 Saving file /tmp/export-process/content.xml...
 Wrote /tmp/export-process/content.xml
 Using vacuous schema
 (No changes need to be saved)
 Creating odt file...
 Running zip -mX0 test.odt mimetype
 Running zip -rmTq test.odt .
 Debugger entered--Lisp error: (file-already-exists File already
 exists /tmp/export-process/test.odt)
   rename-file(test.odt /tmp/export-process/)
   (let* ((target-name ...) (target-dir ...) (cmds ...)) (when
 (file-exists-p target) (delete-file target)) (let (... exitcode
 err-string) (message Creating odt file...) (mapc ... cmds))
 (rename-file target-name target-dir))
   (let ((xml-files ...)) (when (equal org-lparse-backend ...) (push
 styles.xml xml-files)) (mapc (lambda ... ...) xml-files) (let*
 (... ... ...) (when ... ...) (let ... ... ...) (rename-file
 target-name target-dir)))
   org-odt-save-as-outfile(/tmp/export-process/test.odt
 (:latex-image-options nil :exclude-tags (noexport) :select-tags
 (export) :publishing-directory nil :timestamp nil
 :expand-quoted-html t :html-table-tag table border=\2\
 cellspacing=\0\ cellpadding=\6\ rules=\groups\
 frame=\hsides\ :xml-declaration ((html . ?xml version=\1.0\
 encoding=\%s\?) (php . ?php echo \?xml version=\\\1.0\\\
 encoding=\\\%s\\\ ?\; ?)) :html-postamble auto :html-preamble t
 :html-extension html :inline-images maybe :convert-org-links t
 :agenda-style nil :style-extra  :style  :style-include-scripts t
 :style-include-default t :table-auto-headline t :tables t
 :time-stamp-file t :creator-info t :email-info nil :author-info t
 :email wiskey5al...@gmail.com ...))
   funcall(org-odt-save-as-outfile /tmp/export-process/test.odt
 (:latex-image-options nil :exclude-tags (noexport) :select-tags
 (export) :publishing-directory nil :timestamp nil
 :expand-quoted-html t :html-table-tag table border=\2\
 cellspacing=\0\ cellpadding=\6\ rules=\groups\
 frame=\hsides\ :xml-declaration ((html . ?xml version=\1.0\
 encoding=\%s\?) (php . ?php echo \?xml version=\\\1.0\\\
 encoding=\\\%s\\\ ?\; ?)) :html-postamble auto :html-preamble t
 :html-extension html :inline-images maybe :convert-org-links t
 :agenda-style nil :style-extra  :style  :style-include-scripts t
 :style-include-default 

Re: [O] Publishing org project as odt

2012-12-22 Thread Jambunathan K
Wiskey 5 Alpha wiskey5al...@gmail.com writes:

 On 12/22/2012 07:54 AM, Jambunathan K wrote:
 Wiskey 5 Alpha wiskey5al...@gmail.com writes:

 Hello,
 I have a rather large project that I currently export to odt
 files. I tried the org-export-as-odt-batch command line function but
 it fails,

 Can you tell how it fails. In your init file (the one used by batch
 emacs), you can put

  (setq debug-on-error t)

 to get a stack trace or some such info.

 and subsequently deletes all files in the directory.

 Deletes what files?
 I guess technically , it doesn't delete them, but they are zipped into
 the .odt file, and not present in the directory...

True.  The .org file - I believe everything in the work dir - goes in to
the ZIP file.  So it is in the ZIP file.

But when a file is lost, panic ensues and brain stops working.
-- 



Re: [O] Publishing org project as odt

2012-12-22 Thread Wiskey 5 Alpha

On 12/22/2012 01:11 PM, Jambunathan K wrote:


True.  The .org file - I believe everything in the work dir - goes in to
the ZIP file.  So it is in the ZIP file.

But when a file is lost, panic ensues and brain stops working.

So true.  I saw the error message mentioned the file existed, so i 
deleted the odt file (with rm *.odt) and then panics as i noticed the 
folder was now empty... even the .git directory.  Had i not deleted the 
odt file i could have unzipped and been back on track... lesson learned


Thank you so much for your help.  Happy Holidays !

-Tim



Re: [O] [PATCH 1/2] Orgpan: resize the correct window

2012-12-22 Thread Bastien
Hi Jonas,

Jonas Bernoulli jo...@bernoul.li writes:

 * contrib/lisp/org-panel.el (orgpan-panel): Make sure the panel buffer
   is resized to four lines not the document buffer.

Applied to master, thanks.

-- 
 Bastien



Re: [O] Bug: Messaging when moving in the agenda [7.9.2 (7.9.2-GNU-Emacs-24-3 @ /usr/share/emacs/24.2.50/lisp/org/)]

2012-12-22 Thread Bastien
Michael Brand michael.ch.br...@gmail.com writes:

 On Wed, Oct 31, 2012 at 5:27 PM, Michael Heerdegen
 michael_heerde...@web.de wrote:
 So, IMHO `org-display-outline-path' should still display its stuff in
 the echo area, but prevent logging in *Messages*.

 I also agree. Until now I assumed that this would not be possible
 because I didn't know about:

 AFAIK, the way to do this is to bind `message-log-max' to nil.
 [...]
 Dunno if there are other functions that could benefit from the same
 treatment.

 At least also visibility cycling.

Both `org-display-outline-path' and visibility cycling will not
populate the *Message* buffer with messages anymore.  Thanks for
this suggestion.

-- 
 Bastien



Re: [O] Selecting the link type to be created

2012-12-22 Thread Bastien
Hi Jonas,

Jonas Bernoulli jo...@bernoul.li writes:

 Is there a way to specify which `org-store-link-function' or link type
 built into `org-store-link' should be used when there are multiple valid
 types?  E.g. I have loaded `org-elisp-symbol' but would still be able to
 link to the library header or a section in the file.  With
 `org-store-link' `org-elisp-symbol-store-link' takes over and I cannot
 link to anything else.

You can now use a double prefix arg (C-u C-u) for M-x org-store-link so
that modular function like `org-elisp-symbol-store-link' will be skipped.

Also, when several modular store-link functions match, the user will be 
asked which one to use.

Thanks for this idea,

-- 
 Bastien



Re: [O] subtree-export limitations

2012-12-22 Thread Bastien
Hi,

Nicolas Goaziou n.goaz...@gmail.com writes:

   :PROPERTIES:
   :export_latex_header: header1
   :export_latex_header+: header2
   :END:

FWIW I find this very ugly.

Why not having:

   :PROPERTIES:
   :export_latex_header: header1, header2
   :END:

And when the comma character is needed as a char component of a 
value, define the separator like this:

   :PROPERTIES:
   :export_latex_header(;): 2,3; 3,7...
   :END:

?

Same for #+PROPERTY - instead of the current

 #+PROPERTY: var  foo=1
 #+PROPERTY: var+ bar=2

Why not

 #+PROPERTY: var  foo=1 bar=2

?

Unless people scream at this I'll put this on my TODO list.

Thanks,

-- 
 Bastien



Re: [O] Remaining work/progress report: nearly useful, help needed

2012-12-22 Thread Bastien
Hi Myles,

Myles English mylesengl...@gmail.com writes:

 I have a solution that does everything I need apart from exclude DONE
 items from the CLOCKSUM property.  Writing it here for posterity.

This looks useful.  It's a bit big for adding it to org-hacks.org on
Worg.  If you happen to publish this online (on gitorious.org or any
other service), could you share the link so that I add a link to Worg?

Thanks!

-- 
 Bastien



Re: [O] How to automatic list org files via Elisp and then, import them for an HTML export

2012-12-22 Thread Bastien
Hi,

flammable project flammable.proj...@gmail.com writes:

 I was thinking that giving the more details will eliminated doubts
 and misunderstanding.

 So to be clear enough, there was two questions in my previous
 message:

 1/ In E-LISP, how to parse a directory containing Org files and
 import them with the #+INCLUDE function?

MMhh... I've not explored this issue but I don't think including
several files dynamically is a good idea.

 I used those two functions. They parsed the directory and listed
 the org files. But my lake of skills in elisp programming is
 obvious!
 #+BEGIN_SRC emacs-lisp :exports results
 (let ((default-directory ~/path/to/the/directory/posts/))
     (file-expand-wildcards ?org))
 #+END_SRC

 #+BEGIN_SRC emacs-lisp :exports results
 (directory-files ~/path/to/the/directory/posts/
                  nil        
                  \\.org\\')
 #+END_SRC



 2/ When I use #+INCLUDE for org files, the exporter mixed the
 hierarchy in the HTML generated. Each time I used :minlevel 1 as
 argument but the exporter seem to create a sub-level of hierarchy,
 which doesn't represent the true hierarchy in the imported org files?
 Is it a bug?

There we need something more concrete to chew on -- can you give the two
source files (the one including and the one included) and explain why
the HTML is wrong?

Thanks,

-- 
 Bastien



Re: [O] Bug: stored link description craziness [7.9.2 (release_7.9.2-609-g853125 @ /Users/dave/.emacs.d/el-get/org-mode/lisp/)]

2012-12-22 Thread Bastien
Hi Dave,

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

 Go to the headline in the following org-snippet and do `M-x
 org-store-link RET'.  Then, anywhere, do `M-x org-insert-link RET RET'.

 The result is a link whose visible description is
 {{org-mode.org}{org-mode}}.  IMO, it should be simply org-mode.

From master, curly brackets are not used anymore in this case.

Still, when the headline is only a bracket link, a * is appended to
the internal link so that the user does not mix this internal link with
the one on the headline.

Thanks,

-- 
 Bastien



Re: [O] store-link behavior

2012-12-22 Thread Bastien
Hi Thomas,

t...@tsdye.com (Thomas S. Dye) writes:

 A pleasant feature of AucTeX is the context sensitive facility for
 inserting cross references. So, having the cursor at the end of this
 text, (fig., and pressing shortcut sequence gets a list of labeled
 figure environments in a document, from which the correct one can be
 chosen. 

 Is there something similar in Org?

 I looked at store-link, with the hope that it would store a link to the
 nearest link candidate, but with the cursor in the table-link table
 below, store-link returns a link to the headline, test store-link, and
 not a link to the table name, table-link.

 * test store-link
 Some text.

 #+name: table-link
 | a | 1 |
 | b | 2 |

 I'm likely missing something obvious.  Any help much appreciated.

I fixed `org-store-link' so that it stores the value of a keyword
as the search string.  Try M-x org-store-link RET on #+name: and let
me know if it works (from master).

Thanks!

-- 
 Bastien



Re: [O] including emphasis characters as word characters?

2012-12-22 Thread Bastien
Hi Eric,

Eric Abrahamsen e...@ericabrahamsen.net writes:

 Would it make sense to add the markup characters (ie, the car of every
 item in `org-emphasis-alist') to the list of word characters, so that as
 we're moving/deleting/transposing by word in org, the markup characters
 are included? I mean with a sentence like:

 #+BEGIN_SRC org
 I read a book called /Fortress Besieged/ and it was awful.
 #+END_SRC

 If point is at end of the sentence, I'd like to be able to hit M-6 M-b
 and have point end up just before the first slash, then hit M-2 M-d and
 kill both words plus second slash.

 Would this be a bad idea for some reason?

I think it is a good idea to use a syntax table for these characters,
but not for org-mode in general.  So there is now `org-transpose-words'
which uses the new syntax table temporarily.

Thanks for this,

-- 
 Bastien



Re: [O] [PATCH] Re: [PATCH] Add TEXINFO_POST_HEADER slot

2012-12-22 Thread Bastien
Hi Thomas,

t...@tsdye.com (Thomas S. Dye) writes:

 Great, thanks!  Attached is a patch, with changelog, that mentions the
 new keyword in the comments at the top of the file.  I've marked it
 TINYCHANGE even though I signed the FSF papers--not sure if this is
 correct according to http://orgmode.org/worg/org-contribute.html#sec-5.

Applied, thanks!

PS: No, you don't need to add TINYCHANGE if you signed the FSF papers.

-- 
 Bastien



Re: [O] [PATCH 2/2] Orgpan: quiet byte-compiler

2012-12-22 Thread Bastien
Hi Jonas,

Jonas Bernoulli jo...@bernoul.li writes:

 * contrib/lisp/org-panel.el: don't setq undefined and otherwise unused
   variable orgpan-this-panel-window
 * contrib/lisp/org-panel.el (orgpan-check-panel-mode): fix format
   string of (error)
 * contrib/lisp/org-panel.el: declare variables
   viper-emacs-state-mode-list and viper-new-major-mode-buffer-list
   which are defined in viper.el

 TINYCHANGE

Applied to master, thanks.

PS: Commit changelogs should use proper sentences: uppercase letter at
the beginning, full-stop at the end, two spaces between sentences.  Not
that a problem for commits that go into contrib/, but important for 
those going into Org's core.  Thanks for thinking of it!

Also, I added you to the list of FSF-signed contributors on Worg:
http://orgmode.org/worg/org-contribute.html#contributors_with_fsf_papers

-- 
 Bastien



Re: [O] org-todo does not take into account quasi-todo-keywords

2012-12-22 Thread Bastien
Hi Samuel,

Samuel Wales samolog...@gmail.com writes:

 *** COMMENT MAYBE COMMENT MAYBE COMMENT hi

 If you change the todo keyword on a commented item, it puts in front.
 If you comment an item, it puts in front.

This is now fixed, thanks.

I wonder what behavior is preferrable in this case: just ignore the
COMMENT string (which is now what Org does) or to delete it -- which 
is what a user might expect when _updating_ a TODO state.

What do you think?

-- 
 Bastien



Re: [O] Bug: org-occur with 1 matches on a line causes 100% cpu lockup when next-line [7.8.11]

2012-12-22 Thread Bastien
Hi Ken,

ken restivo k...@restivo.org writes:

 If there are  1 org-occur matches on a single line, doing next-line
 on that line will cause emacs to lock up with 100% cpu usage.

I can't reproduce this so I guess it was related to Org 7.8.11.

Best,

-- 
 Bastien



Re: [O] Show more text in Follow mode or Tabbing after search?

2012-12-22 Thread Bastien
Hi Nathan,

Nathan Neff nathan.n...@gmail.com writes:

 I like the Follow mode feature, but is there a way to show more context 
 around
 the text that's shown in the Follow mode?

You can use this to show the whole subtree in follow mode:

(setq org-agenda-follow-indirect t)

-- 
 Bastien



Re: [O] indentation following yas snippet insert

2012-12-22 Thread Bastien
Hi Tony,

tony day tonyday...@gmail.com writes:

 #+begin_src emacs-lisp
   (setq yas/also-auto-indent-first-line t)
   (setq yas/indent-line t)
 #+end_src

 But on insertion, it isnt indented.  Until now I've been inserting a space
 on the begin_src line then hitting backspace.  That tends to kick org in
 the guts somehow and it then coughs up the right indentation.

Within source code blocks, and with (setq org-src-tab-acts-natively t)
just tab on a line to indent.

Otherwise C-c ' C-x h C-M-\ C-c ' should do.

HTH,

-- 
 Bastien



Re: [O] Insert TODO Item at Bottom

2012-12-22 Thread Bastien
Hi Esben,

Esben Stien b...@esben-stien.name writes:

 I add a TODO item with M-S-RET, but is there any way to insert the new
 TODO item at the bottom of the current node or is there any way to
 navigate quickly to the last TODO item of the current node?.

From git master repo, you can now use C-u C-u M-RET or C-u C-u S-M-RET
to insert the subtree at the end of the parent subtree.

Thanks,

-- 
 Bastien



Re: [O] Export of multiply occurring events

2012-12-22 Thread Bastien
Hi Vincent,

Vincent Beffara vbeffara...@gmail.com writes:

 I could always create sub-events for each occurrence, but then the text
 will not be exported, or will have to be duplicated, which feels
 sub-optimal.

 Is there something I didn't think of ?

Nope -- I'm afraid you'll have to duplicate the text.

Best,

-- 
 Bastien



Re: [O] store-link behavior

2012-12-22 Thread Thomas S. Dye
Hi Bastien,

Bastien b...@altern.org writes:

 Hi Thomas,

 t...@tsdye.com (Thomas S. Dye) writes:

 A pleasant feature of AucTeX is the context sensitive facility for
 inserting cross references. So, having the cursor at the end of this
 text, (fig., and pressing shortcut sequence gets a list of labeled
 figure environments in a document, from which the correct one can be
 chosen. 

 Is there something similar in Org?

 I looked at store-link, with the hope that it would store a link to the
 nearest link candidate, but with the cursor in the table-link table
 below, store-link returns a link to the headline, test store-link, and
 not a link to the table name, table-link.

 * test store-link
 Some text.

 #+name: table-link
 | a | 1 |
 | b | 2 |

 I'm likely missing something obvious.  Any help much appreciated.

 I fixed `org-store-link' so that it stores the value of a keyword
 as the search string.  Try M-x org-store-link RET on #+name: and let
 me know if it works (from master).

 Thanks!

I pulled and tried M-x org-store-link RET at different points on a
#+name: line, but got the headline above every time

org-stored-links is a variable defined in `org.el'.
Its value is
((file:~/Public/projects/924-regional-chronology/regional-chronology.org::*Inland
 Activity Inland Activity)
 
(file:~/Public/projects/924-regional-chronology/regional-chronology.org::*Inland
 Activity Inland Activity)
 
(file:~/Public/projects/924-regional-chronology/regional-chronology.org::*Inland
 Activity Inland Activity)
 
(file:~/Public/projects/924-regional-chronology/regional-chronology.org::*Inland
 Activity Inland Activity)
 
(file:~/Public/projects/924-regional-chronology/regional-chronology.org::*Inland
 Activity Inland Activity))

Org-mode version 7.9.2 (release_7.9.2-828-ge87344 @ 
/Users/dk/.emacs.d/src/org-mode/lisp/)

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



Re: [O] including emphasis characters as word characters?

2012-12-22 Thread Eric Abrahamsen
Bastien b...@altern.org writes:

 Hi Eric,

 Eric Abrahamsen e...@ericabrahamsen.net writes:

 Would it make sense to add the markup characters (ie, the car of every
 item in `org-emphasis-alist') to the list of word characters, so that as
 we're moving/deleting/transposing by word in org, the markup characters
 are included? I mean with a sentence like:

 #+BEGIN_SRC org
 I read a book called /Fortress Besieged/ and it was awful.
 #+END_SRC

 If point is at end of the sentence, I'd like to be able to hit M-6 M-b
 and have point end up just before the first slash, then hit M-2 M-d and
 kill both words plus second slash.

 Would this be a bad idea for some reason?

 I think it is a good idea to use a syntax table for these characters,
 but not for org-mode in general.  So there is now `org-transpose-words'
 which uses the new syntax table temporarily.

Cool!




[O] bug#13254: org-odt: Batch exports creates data loss, deletes original org file

2012-12-22 Thread Jambunathan K

Bastien

I have pushed a fix to my private branch (see below).  Please merge both
`maint' AND `master' branches.

`maint' branch
 -  has 2 fixes for org-odt.el

`master' branch 
 - above fixes
 - New exporter changes.

, http://repo.or.cz/w/org-mode/org-kjn.git
|
| URL:  git://repo.or.cz/org-mode/org-kjn.git
|   http://repo.or.cz/r/org-mode/org-kjn.git
| 
| Push URL: ssh://repo.or.cz/srv/git/org-mode/org-kjn.git
|
`

, git log --format=oneline upstream/maint..
|
| 82e061 org-odt.el: Fix Emacs Bug#13254
| 443542 org-odt.el: Correctly format link to headlines that have
|
`

, git log --format=oneline upstream/master..
|
| 507ce4 org-odt.el: Fix Emacs Bug#13254
| 0754e3 org-e-odt.el: Handle links to target, list items
| ad2ee6 org-e-odt.el: Handle links to headline, table etc that h
| 3a2b5d org-odt.el: Correctly format link to headlines that have
| c4597f org-e-odt.el: Handle clickable images
| a7ad1c org-e-odt.el: Use `org-export-data-with-translations'
| 76d529 org-e-odt.el: Support for short captions
| 9d496c org-e-odt.el: Port fix for Bug#13197
| 9d56ba org-e-odt.el: Fix typesetting of Math formulae
| fe0b1c org-e-odt.el: Add frame title and description to latex e
| 6faf36 org-odt.el: Improve TOC entries
| d9d62a org-e-odt.el: Emit priority in headlines, right justify 
| 533c8a org-e-odt.el: Not all keywords are supported
| 1e30ef org-e-odt.el: Use new version of org-export-get-previous
| 84eadb org-e-odt.el: New experimental option `org-e-odt-use-dat
| 64b7c8 Fix Table of Contents, Clock block and various styles
| acbb74 org-e-odt.el: Fix export issues on Windows XP
| a2f5d8 org-e-odt.el: Honor `org-export-with-date'
| 087936 Update OpenDocument schema files to v1.2 OASIS standard
| d904e5 OrgOdtStyles.xml, OrgOdtContentTemplate.xml: Refresh
|
`

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

 Thank you for your reply.  Below you will find a small example to
 illustrate the problem.  First I have a small test org-mode file in
 the directory, =test.org=.  It's contents is shown next.  I run the
 batch process, which causes an error.   All files in the directory are
 deleted except for the .odt file !

 Data loss is very bad.  I am sorry.  Looks like you had backups.

 I will forward a fix to Org/Emacs in few hours.

 $ emacs --batch --load=$HOME/.emacs --visit=./test.org --funcall
 org-export-as-odt-batch

 Meanwhile, instead of using `org-export-as-odt-batch', you can try the
 following which uses `org-export-as-odt'.

 $ emacs --batch -Q -L ~/src/org-mode/lisp --visit=./test-new.org --funcall
 org-export-as-odt


 Thanks again.  I am running emacs version 23.4.1 on Ubuntu 12.10, and
 org-mode from elpa package =org-plus-contrib 20121217=

 -Tim


 aldrichtr@liberty:/tmp/export-process
 $ ls
 test.org
 aldrichtr@liberty:/tmp/export-process
 $ cat test.org

 * This is heading one
   And some text
 ** heading one two
And some text

 aldrichtr@liberty:/tmp/export-process
 $ emacs --batch --load=$HOME/.emacs --visit=./test.org --funcall
 org-export-as-odt-batch
 ...
 Debug (org-odt): Searching for OpenDocument schema files...
 Debug (org-odt): Trying /usr/share/emacs/etc/org/schema/...
 Debug (org-odt): Trying /usr/share/emacs/etc/org/schema/...
 Debug (org-odt): No OpenDocument schema files installed
 Debug (org-odt): Searching for OpenDocument styles files...
 Debug (org-odt): Trying /usr/share/emacs/etc/org/styles/...
 Debug (org-odt): Trying /usr/share/emacs/etc/org/styles/...
 Debug (org-odt): Trying /home/aldrichtr/.emacs.d/elpa/etc/styles/...
 Debug (org-odt): Trying
 /home/aldrichtr/.emacs.d/elpa/org-plus-contrib-20121217/etc/styles/...
 Debug (org-odt): Using styles under
 /home/aldrichtr/.emacs.d/elpa/org-plus-contrib-20121217/etc/styles/
 Exporting to ODT using org-lparse...
 Using vacuous schema
 [yas] Loading for `nxml-mode', just-in-time: (yas--load-directory-1 
 /home/aldrichtr/.emacs.d/elpa/yasnippet-20121127.25/snippets/nxml-mode
 (quote nxml-mode) (quote (text-mode)))!
 [yas] Loading compiled snippets from
 /home/aldrichtr/.emacs.d/elpa/yasnippet-20121127.25/snippets/nxml-mode
 LaTeX to MathML converter not available. Using verbatim instead.
 Exporting...
 ODT export done, pushed to kill ring and clipboard
 Wrote /tmp/export-process/meta.xml
 Using vacuous schema
 Saving file /tmp/export-process/styles.xml...
 Wrote /tmp/export-process/styles.xml
 Wrote /tmp/export-process/mimetype
 Using vacuous schema
 Saving file /tmp/export-process/styles.xml...
 Wrote /tmp/export-process/styles.xml
 (No changes need to be saved)
 Saving file /tmp/export-process/META-INF/manifest.xml...
 Wrote /tmp/export-process/META-INF/manifest.xml
 Saving file /tmp/export-process/content.xml...
 Wrote /tmp/export-process/content.xml
 Using vacuous schema
 (No changes need to be saved)
 Creating odt file...
 Running zip -mX0 test.odt mimetype
 Running zip -rmTq test.odt .
 Debugger entered--Lisp error: (file-already-exists File already
 exists /tmp/export-process/test.odt)