Re: [O] [PATCH] Adding Simplified Chinese(UTF-8) translation for org-exp

2012-03-18 Thread tumashu
Today, I test Simplified Chinese(UTF-8) translation for org-exp.el again,
I find that "zh_CN"  is  used by *xml:lang* and *lang*
#+begin_example
http://www.w3.org/1999/xhtml"; lang="zh_CN" xml:lang="zh_CN">
#+end_example


It should be:
#+begin_example
http://www.w3.org/1999/xhtml"; lang="zh-CN" xml:lang="zh-CN">
#+end_example
[[http://www.w3.org/International/articles/bcp47/]] 


Changes in master
Modified   lisp/org-exp.el
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index a2f0cfc..3f52be0 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -205,8 +205,8 @@ This option can also be set with the +OPTIONS line, e.g. 
\"-:nil\"."
 ("ru" "Автор"  
"Дата"  
"Содержание" 
"Сноски")
 ("sv" "Författare" "Datum" "Innehåll" "Fotnoter")
 ;; Use numeric character entities for proper rendering of non-UTF8 
documents
-;; ("zh_CN" "作者" "日期" "目录" "脚注")
-("zh_CN" "作者" "日期" "目录" 
"脚注"))
+;; ("zh-CN" "作者" "日期" "目录" "脚注")
+("zh-CN" "作者" "日期" "目录" 
"脚注"))
   "Terms used in export text, translated to different languages.
 Use the variable `org-export-default-language' to set the language,
 or use the +OPTION lines for a per-file setting."




Re: [O] OrgMobile problem: only three files in checksums.dat

2012-03-18 Thread Jonathan Leech-Pepin
I haven't had this issue with Org-Mobile specifically because I'm not using
it, however I found the same error when using el-get.

In my case at least the issue popped up because I was using zsh/bash via
cygwin for =shell-file-name= where =shell-quote-argument= expected it to be
cmdproxy.exe on Windows.  I'm guessing you've got something similar since
it's using forward-slashes for sha1sum.  It also fits because the only way
the final regexp gets applied is when the system is not ms-dos or
windows-nt along with a known Windows shell, which means cmd.exe,
command.com, cmdproxy and a couple others, cygwin shells are not on that
list.

The simplest solution would actually be to wrap your Org-mobile call in


(let ((shell-file-name (or (and (eq system-type 'windows-nt)
  (executable-find "cmdproxy.exe"))
  shell-file-name)))
 {{{insert call here}}} )

Hope this helps,
Jonathan


On 18 March 2012 18:23, Alexander Vorobiev wrote:

> I figured out what is wrong. I am on Windows 7 (with cygwin) where
> shell-quote-argument (defined in emacs' subr.el) seems to be broken,
> specifically it insists on escaping colons (as one of non-POSIX filename
> characters), so, for instance path to one of my files c:/Users/alex/org/
> gtd.org becomes c\\:/Users/alex/org/gtd.org.
> The result of that is org-mobile-copy-agenda-files which
> calls shell-quote-argument while generating command line to produce
> checksums, ends up with something like
>
> c:/cygwin/bin/sha1sum c\\:/Users/alex/org/gtd.org
>
> which inevitably fails. I am surprised nobody else with Windows machines
> noticed that, could there be anything I am doing wrong?
>
> The quick fix would be to redefine the shell-quote-argument to account for
> colons (added colon in the regex on the last line, see below). After that
> all my org files get added to checksum.dat and become visible on my Android
> phone.
>
> I temporarily put this definition to my cygwin-specific initialization
> file but I feel that there should be more elegant solutions:
>
> (defun shell-quote-argument (argument)
>   "Quote ARGUMENT for passing as argument to an inferior shell."
>   (if (or (eq system-type 'ms-dos)
>   (and (eq system-type 'windows-nt) (w32-shell-dos-semantics)))
>;; Quote using double quotes, but escape any existing quotes in
>   ;; the argument with backslashes.
>   (let ((result "")
> (start 0)
> end)
> (if (or (null (string-match "[^\"]" argument))
> (< (match-end 0) (length argument)))
> (while (string-match "[\"]" argument start)
>   (setq end (match-beginning 0)
> result (concat result (substring argument start end)
>"\\" (substring argument end (1+ end)))
> start (1+ end
> (concat "\"" result (substring argument start) "\""))
> (if (equal argument "")
> "''"
>   ;; Quote everything except POSIX filename characters.
>   ;; This should be safe enough even for really weird shells.
>   (replace-regexp-in-string "\n" "'\n'"
>(replace-regexp-in-string "[^-0-9a-zA-Z_./\n:]" "\\&"
> argument)
>
> Regards,
> Alex
>
> On Sat, Mar 17, 2012 at 10:50 PM, Alexander Vorobiev <
> alexander.vorob...@gmail.com> wrote:
>
>> Hi,
>>
>> I have many files in the org-mobile-files list. On org-mobile-push all of
>> them are copied to my MobileOrg directory, syncronized via Dropbox to my
>> phone, etc. But the file checksums.dat always has only three lines - for
>> files index.org, mobileorg.org, and agendas.org.
>> The org-mobile-checksum-files variable also has the checksums for those
>> files only. Consequently, MobileOrg for Android only shows one line "Agenda
>> Views" and does not show any of my org files despite having all of them in
>> the same Dropbox directory.
>>
>> Thanks
>> Alex
>>
>
>


Re: [O] ITEM special property

2012-03-18 Thread Matt Lundin
Ilya Shlyakhter  writes:

> Is the following correct:
>    - the ITEM special property returns the _headline_ of an entry (not
> the content);
>    - ITEM can't be used in tag/match queries, only in column view
> formats.

Yes, I believe that is correct. However, you can search for text in
headlines using org-search-view and a query that starts with an
asterisk. E.g.:

C-c a s *org-mode

Best,
Matt



[O] Temporary commit freeze while fixing the repo and before 7.8.06

2012-03-18 Thread Bastien
Hi all,

As Achim said, I messed up the repository quite royally yesterday.

I will release a new bugfix version as soon as the maint and the 
master branches are back to their desired state.

Developers: please don't commit anything while we are fixing this.
List subscribers: please bare with us while we are on this, chances
are that the problems you will report come from the errors I did.

Sorry for this.

-- 
 Bastien



Re: [O] Org-mode version 7.8.05 (release_7.8.05.19.gb32d.dirty) `org-agenda-filter' bug pushing to mobile

2012-03-18 Thread Bastien
Hi Nick,

Nick Bell  writes:

> Using the above version, needed to apply the patch
> http://article.gmane.org/gmane.emacs.orgmode/51812 in order to make
> org-mobile-push work. My git-fu isn't quite up to working out what should
> (if anything) have happened to incorporate this fix into the release.

That's right.  

This is a consequence of the mess I put in the repository yesterday,
sorry for that.

See my next message on this list.

-- 
 Bastien



[O] Org-mode version 7.8.05 (release_7.8.05.19.gb32d.dirty) `org-agenda-filter' bug pushing to mobile

2012-03-18 Thread Nick Bell
Using the above version, needed to apply the patch 
http://article.gmane.org/gmane.emacs.orgmode/51812 in order to make 
org-mobile-push work. My git-fu isn't quite up to working out what 
should (if anything) have happened to incorporate this fix into the release.


Nick



Re: [O] OrgMobile problem: only three files in checksums.dat

2012-03-18 Thread Alexander Vorobiev
I figured out what is wrong. I am on Windows 7 (with cygwin) where
shell-quote-argument (defined in emacs' subr.el) seems to be broken,
specifically it insists on escaping colons (as one of non-POSIX filename
characters), so, for instance path to one of my files c:/Users/alex/org/
gtd.org becomes c\\:/Users/alex/org/gtd.org.
The result of that is org-mobile-copy-agenda-files which
calls shell-quote-argument while generating command line to produce
checksums, ends up with something like

c:/cygwin/bin/sha1sum c\\:/Users/alex/org/gtd.org

which inevitably fails. I am surprised nobody else with Windows machines
noticed that, could there be anything I am doing wrong?

The quick fix would be to redefine the shell-quote-argument to account for
colons (added colon in the regex on the last line, see below). After that
all my org files get added to checksum.dat and become visible on my Android
phone.

I temporarily put this definition to my cygwin-specific initialization file
but I feel that there should be more elegant solutions:

(defun shell-quote-argument (argument)
  "Quote ARGUMENT for passing as argument to an inferior shell."
  (if (or (eq system-type 'ms-dos)
  (and (eq system-type 'windows-nt) (w32-shell-dos-semantics)))
  ;; Quote using double quotes, but escape any existing quotes in
  ;; the argument with backslashes.
  (let ((result "")
(start 0)
end)
(if (or (null (string-match "[^\"]" argument))
(< (match-end 0) (length argument)))
(while (string-match "[\"]" argument start)
  (setq end (match-beginning 0)
result (concat result (substring argument start end)
   "\\" (substring argument end (1+ end)))
start (1+ end
(concat "\"" result (substring argument start) "\""))
(if (equal argument "")
"''"
  ;; Quote everything except POSIX filename characters.
  ;; This should be safe enough even for really weird shells.
  (replace-regexp-in-string "\n" "'\n'"
   (replace-regexp-in-string "[^-0-9a-zA-Z_./\n:]" "\\&"
argument)

Regards,
Alex

On Sat, Mar 17, 2012 at 10:50 PM, Alexander Vorobiev <
alexander.vorob...@gmail.com> wrote:

> Hi,
>
> I have many files in the org-mobile-files list. On org-mobile-push all of
> them are copied to my MobileOrg directory, syncronized via Dropbox to my
> phone, etc. But the file checksums.dat always has only three lines - for
> files index.org, mobileorg.org, and agendas.org.
> The org-mobile-checksum-files variable also has the checksums for those
> files only. Consequently, MobileOrg for Android only shows one line "Agenda
> Views" and does not show any of my org files despite having all of them in
> the same Dropbox directory.
>
> Thanks
> Alex
>


Re: [O] Org release 7.8.04 (BUGFIX-only release)

2012-03-18 Thread Achim Gratz
Martyn Jago  writes:
> Since all the `errors' are whitespace it may be better to work around
> the release?

Nope, Gnus was sending the message before it was correctly composed.
Since Gmane doesn't seem to want to post them to the list (or it does
take wuite a bit onger than usual), here are the two fixed branches:

git://repo.or.cz/org-mode/org-tableheadings.git/newmaster
git://repo.or.cz/org-mode/org-tableheadings.git/newmaint

You'll see that there aren't only white-space changes...


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

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




Re: [O] Org release 7.8.04 (BUGFIX-only release)

2012-03-18 Thread Martyn Jago
Hi

Since all the `errors' are whitespace it may be better to work around
the release?

Best Martyn

Achim Gratz  writes:

> Achim Gratz  writes:
>> Well, all this "manual reverting" messed up master quite royally.  I
>> haven't checked maint, but things might be a bit easier there.  I'm
>> currently trying to re-trace what master and maint should have been and
>> make a patch on top of the mangled versions...
>
> Here are two patches to clean up master and maint to where they should
> be (IMHO, please check).  Needless to say, you _will_ have to do another
> release with these fixes.
>
> diff --git a/contrib/babel/langs/ob-oz.el b/contrib/babel/langs/ob-oz.el
> index 
> 2482ed61685cde75f38f803f564ed128e1063e68..b778b4a228c6e75d982db81f280515806cbed4d6
>  100644
> --- a/contrib/babel/langs/ob-oz.el
> +++ b/contrib/babel/langs/ob-oz.el
> @@ -1,6 +1,6 @@
>  ;;; ob-oz.el --- org-babel functions for Oz evaluation
>  
> -;; Copyright (C) 2009-2012 Torsten Anders and Eric Schulte
> +;; Copyright (C) 2009-2012 Torsten Anders and Eric Schulte 
>  
>  ;; Author: Torsten Anders and Eric Schulte 
>  ;; Keywords: literate programming, reproducible research
> diff --git a/contrib/scripts/StartOzServer.oz 
> b/contrib/scripts/StartOzServer.oz
> index 
> 9d41e838dc121b8a82e1516cb0e0d7fb7d0e6b72..db12dec58d783992529aa51273eeaf2e8e5fba38
>  100644
> --- a/contrib/scripts/StartOzServer.oz
> +++ b/contrib/scripts/StartOzServer.oz
> @@ -1,5 +1,5 @@
>  %%% *
> -%%% Copyright (C) 2009-2012 Torsten Anders (www.torsten-anders.de)
> +%%% Copyright (C) 2009-2012 Torsten Anders (www.torsten-anders.de) 
>  %%% This program is free software; you can redistribute it and/or
>  %%% modify it under the terms of the GNU General Public License
>  %%% as published by the Free Software Foundation; either version 2
> diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el
> index 
> 2299dd47f4117ad16f3368f2c56df4b72dcd3424..06d193a1a17ce1054086c1a6e1386de3a3989593
>  100644
> --- a/lisp/ob-exp.el
> +++ b/lisp/ob-exp.el
> @@ -120,7 +120,7 @@ (defun org-babel-exp-src-block (body &rest headers)
>  (org-babel-noweb-wrap) "" (nth 1 info))
>   (if (org-babel-noweb-p (nth 2 info) :export)
>   (org-babel-expand-noweb-references
> - info (org-babel-exp-get-export-buffer))
> + info (org-babel-exp-get-export-buffer))  
> (nth 1 info
>   (org-babel-exp-do-export info 'block hash)
>  
> diff --git a/lisp/org-inlinetask.el b/lisp/org-inlinetask.el
> index 
> dbb9b22ef3cb825cd603c766d2a7ce47e63cea1c..d969a29213a0b92635afc4350ec7a722f1c7350d
>  100644
> --- a/lisp/org-inlinetask.el
> +++ b/lisp/org-inlinetask.el
> @@ -90,7 +90,7 @@ (defgroup org-inlinetask nil
>  
>  (defcustom org-inlinetask-min-level 15
>"Minimum level a headline must have before it is treated as an inline task.
> -Don't set it to something higher than `29' or clocking will break since this
> +Don't set it to something higher than `29' or clocking will break since this 
>  is the hardcoded maximum number of stars `org-clock-sum' will work with.
>  
>  It is strongly recommended that you set `org-cycle-max-level' not at all,
> diff --git a/lisp/org-vm.el b/lisp/org-vm.el
> index 
> 16987495b142fb10c81f4d61e21c6b43eda2b97b..b509c4108d16819bcb383ac89810484d9473f789
>  100644
> --- a/lisp/org-vm.el
> +++ b/lisp/org-vm.el
> @@ -71,7 +71,7 @@ (defun org-vm-store-link ()
>  (save-excursion
>(vm-select-folder-buffer)
>(let* ((message (car vm-message-pointer))
> -(subject (vm-su-subject message))
> +  (subject (vm-su-subject message))
>(to (vm-get-header-contents message "To"))
>(from (vm-get-header-contents message "From"))
>   (message-id (vm-su-message-id message))
> diff --git a/testing/lisp/test-ob-exp.el b/testing/lisp/test-ob-exp.el
> index 
> f86d84ae336f940f5096007fad8a65e43a75ab68..342ebed0bf5e24a16d5d32f6732f48d3483c5530
>  100644
> --- a/testing/lisp/test-ob-exp.el
> +++ b/testing/lisp/test-ob-exp.el
> @@ -267,3 +267,4 @@
>  (provide 'test-ob-exp)
>  
>  ;;; test-ob-exp.el ends here
> +
> diff --git a/testing/lisp/test-ob.el b/testing/lisp/test-ob.el
> index 
> 5f9e29cb4e2bf03044cefe6a0e7318a6faf8f497..b01e4b2ba2b8c350f1b81991b76a7a45050122cb
>  100644
> --- a/testing/lisp/test-ob.el
> +++ b/testing/lisp/test-ob.el
> @@ -875,7 +875,7 @@ (defun test-ob-verify-result-and-removed-result (result 
> buffer-text)
>(re-search-forward "\\#\\+results:" nil t)
>(forward-line)
>(should (string=
> -""
> +"" 
>  (buffer-substring-no-properties (point-at-bol) 
> (point-at-eol))
>(org-test-with-temp-text-in-file "
>  #+begin_src emacs-lisp :var a=2
> @@ -887,7 +887,7 @@ (defun test-ob-verify-result-and-removed-result (result 
> buffer-text)
>(re-search-forward "\\#\\+results:" nil t)
>  

Re: [O] Org release 7.8.04 (BUGFIX-only release)

2012-03-18 Thread Achim Gratz
Achim Gratz  writes:
> Here are two patches to clean up master and maint to where they should
> be (IMHO, please check).  Needless to say, you _will_ have to do another
> release with these fixes.

These aren't the patches you're looking for... I have sent the correct
files already, but so far they didn't show up, probably because they are
large.  Hope they make it through...


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

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] I'm tripping over #+BABEL: vs. #+PROPERTY:

2012-03-18 Thread Sebastien Vauban
Hi Nick,

Nick Dokos wrote:
>> The "automagic C-c C-c" should be NOT[1] done after each key press or
>> some such. That certainly would be a killer feature, in its real
>> acception: performance would be unbearable.
>> 
>> In my mind, automatically (re-)parsing the meta options should be each
>> time the user presses `C-c C-v C-e' (eval code blocks); that is, when
>> the user expects his options to be taken into account.
>> 
>> Does it make sense?
>> 
>> Best regards,
>>   Seb
>> 
>> Footnotes:
>> 
>> [1] This word was missing (in the original post)!
>> 
>
> Well, it might make sense but you can try it out and let us know:
>
> - make files with 10, 100, 1000 trivial (or even empty) code blocks, just
>   enough to make sure that org-babel-execute-maybe is really called on them:
>   I think that it will be called even on empty code blocks, but I'm not sure
>   if there is some optimization in there.
>
> - measure the time it takes to export each one to html (say).
>
> - add a call to org-mode-restart into org-babel-execute-maybe, and time the
>   same operation again: how significant is the slowdown?
>
> If the slowdown is bearable in these cases, then it will be bearable in
> realistic situations, where block execution is going to be a much more
> significant fraction of the total.

I'll give it a shot, and report the pre/post results "à la Weight Watchers".
Thanks for pointing out some detailed calls I have to make for testing that
idea!

> BTW, what's the biggest file you (all, not just Seb) have in terms of the
> number of code blocks it contains? In my case, the largest one had about two
> dozen code blocks, so the 100 case would easily cover me, but I suspect
> there are much bigger ones out there.

The biggest number of code blocks in any document I have is around 20.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Org release 7.8.04 (BUGFIX-only release)

2012-03-18 Thread Achim Gratz
Achim Gratz  writes:
> Well, all this "manual reverting" messed up master quite royally.  I
> haven't checked maint, but things might be a bit easier there.  I'm
> currently trying to re-trace what master and maint should have been and
> make a patch on top of the mangled versions...

Here are two patches to clean up master and maint to where they should
be (IMHO, please check).  Needless to say, you _will_ have to do another
release with these fixes.

diff --git a/contrib/babel/langs/ob-oz.el b/contrib/babel/langs/ob-oz.el
index 2482ed61685cde75f38f803f564ed128e1063e68..b778b4a228c6e75d982db81f280515806cbed4d6 100644
--- a/contrib/babel/langs/ob-oz.el
+++ b/contrib/babel/langs/ob-oz.el
@@ -1,6 +1,6 @@
 ;;; ob-oz.el --- org-babel functions for Oz evaluation
 
-;; Copyright (C) 2009-2012 Torsten Anders and Eric Schulte
+;; Copyright (C) 2009-2012 Torsten Anders and Eric Schulte 
 
 ;; Author: Torsten Anders and Eric Schulte 
 ;; Keywords: literate programming, reproducible research
diff --git a/contrib/scripts/StartOzServer.oz b/contrib/scripts/StartOzServer.oz
index 9d41e838dc121b8a82e1516cb0e0d7fb7d0e6b72..db12dec58d783992529aa51273eeaf2e8e5fba38 100644
--- a/contrib/scripts/StartOzServer.oz
+++ b/contrib/scripts/StartOzServer.oz
@@ -1,5 +1,5 @@
 %%% *
-%%% Copyright (C) 2009-2012 Torsten Anders (www.torsten-anders.de)
+%%% Copyright (C) 2009-2012 Torsten Anders (www.torsten-anders.de) 
 %%% This program is free software; you can redistribute it and/or
 %%% modify it under the terms of the GNU General Public License
 %%% as published by the Free Software Foundation; either version 2
diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el
index 2299dd47f4117ad16f3368f2c56df4b72dcd3424..06d193a1a17ce1054086c1a6e1386de3a3989593 100644
--- a/lisp/ob-exp.el
+++ b/lisp/ob-exp.el
@@ -120,7 +120,7 @@ (defun org-babel-exp-src-block (body &rest headers)
 		   (org-babel-noweb-wrap) "" (nth 1 info))
 		(if (org-babel-noweb-p (nth 2 info) :export)
 		(org-babel-expand-noweb-references
- info (org-babel-exp-get-export-buffer))
+ info (org-babel-exp-get-export-buffer))  
 		  (nth 1 info
 	(org-babel-exp-do-export info 'block hash)
 
diff --git a/lisp/org-inlinetask.el b/lisp/org-inlinetask.el
index dbb9b22ef3cb825cd603c766d2a7ce47e63cea1c..d969a29213a0b92635afc4350ec7a722f1c7350d 100644
--- a/lisp/org-inlinetask.el
+++ b/lisp/org-inlinetask.el
@@ -90,7 +90,7 @@ (defgroup org-inlinetask nil
 
 (defcustom org-inlinetask-min-level 15
   "Minimum level a headline must have before it is treated as an inline task.
-Don't set it to something higher than `29' or clocking will break since this
+Don't set it to something higher than `29' or clocking will break since this 
 is the hardcoded maximum number of stars `org-clock-sum' will work with.
 
 It is strongly recommended that you set `org-cycle-max-level' not at all,
diff --git a/lisp/org-vm.el b/lisp/org-vm.el
index 16987495b142fb10c81f4d61e21c6b43eda2b97b..b509c4108d16819bcb383ac89810484d9473f789 100644
--- a/lisp/org-vm.el
+++ b/lisp/org-vm.el
@@ -71,7 +71,7 @@ (defun org-vm-store-link ()
 (save-excursion
   (vm-select-folder-buffer)
   (let* ((message (car vm-message-pointer))
-(subject (vm-su-subject message))
+  	 (subject (vm-su-subject message))
 	 (to (vm-get-header-contents message "To"))
 	 (from (vm-get-header-contents message "From"))
  (message-id (vm-su-message-id message))
diff --git a/testing/lisp/test-ob-exp.el b/testing/lisp/test-ob-exp.el
index f86d84ae336f940f5096007fad8a65e43a75ab68..342ebed0bf5e24a16d5d32f6732f48d3483c5530 100644
--- a/testing/lisp/test-ob-exp.el
+++ b/testing/lisp/test-ob-exp.el
@@ -267,3 +267,4 @@
 (provide 'test-ob-exp)
 
 ;;; test-ob-exp.el ends here
+
diff --git a/testing/lisp/test-ob.el b/testing/lisp/test-ob.el
index 5f9e29cb4e2bf03044cefe6a0e7318a6faf8f497..b01e4b2ba2b8c350f1b81991b76a7a45050122cb 100644
--- a/testing/lisp/test-ob.el
+++ b/testing/lisp/test-ob.el
@@ -875,7 +875,7 @@ (defun test-ob-verify-result-and-removed-result (result buffer-text)
   (re-search-forward "\\#\\+results:" nil t)
   (forward-line)
   (should (string=
-	   ""
+	   "" 
 	   (buffer-substring-no-properties (point-at-bol) (point-at-eol))
   (org-test-with-temp-text-in-file "
 #+begin_src emacs-lisp :var a=2
@@ -887,7 +887,7 @@ (defun test-ob-verify-result-and-removed-result (result buffer-text)
   (re-search-forward "\\#\\+results:" nil t)
   (forward-line)
   (should (string=
-	   ": 2"
+	   ": 2" 
 	   (buffer-substring-no-properties (point-at-bol) (point-at-eol)))
 
 (defun test-ob-verify-result-and-removed-result (result buffer-text)
@@ -903,7 +903,7 @@ (defun test-ob-verify-result-and-removed-result (result buffer-text)
   (org-babel-next-src-block) (org-ctrl-c-ctrl-c) (org-ctrl-c-ctrl-c)
   (should (re-search-forward "\\#\\+results:" 

[O] [babel] [bug] org-babel-use-quick-and-dirty-noweb-expansion

2012-03-18 Thread Nicolas Girard
Hi all,
I've been succesfully using babel to make various literate programming work.
Unfortunately, tangling performance has dramatically decreased, to the
point of being barely usable.
I wish I could get advantage of the "quick & dirty noweb expansion" Eric
introduced in january, but it has an undesirable side effect. Consider the
following minimal example:

#
#+name: abc
#+begin_src latex
  Abc<>
#+end_src

#+name: abc-d
#+begin_src latex
  Def
#+end_src

#+begin_src latex :noweb yes :tangle test.tex
  <>
#+end_src
#

Tangling with *org-babel-use-quick-and-dirty-noweb-expansion* set to nil
gives

#
AbcDef
#

while tangling with *org-babel-use-quick-and-dirty-noweb-expansion* set to
t gives

#
AbcDef
Def
#

I'd be very happy if this bug could be tracked down.
Thanks very much in advance !
Cheers,

Nicolas


Re: [O] Japanese strings for Org-mode export

2012-03-18 Thread Hideki Saito
I just verified by cherrypicking your latest master checkin onto
7.8.05, and verified it working.

Hideki Saito 
Google+: http://goo.gl/dVU2q
Facebook: http://goo.gl/RV5C8 http://goo.gl/FDeAw



On Sun, Mar 18, 2012 at 12:01 PM, David Maus  wrote:
> At Sat, 3 Mar 2012 23:29:43 -0800,
> Hideki Saito wrote:
>>
>> [1  ]
>> The attached is alternative of the patch using utf-8 encoding.
>
> Thanks for the translation. I made the modification but we need to use
> numeric character entities[1] to avoid rendering problems when
> non-UTF8 documents are exported to HTML.
>
> Could I ask you to check if the japanese text is rendered properly
> when a document is exported?
>
> Best,
>  -- David
> [1] http://en.wikipedia.org/wiki/Numeric_character_reference
> --
> OpenPGP... 0x99ADB83B5A4478E6
> Jabber dmj...@jabber.org
> Email. dm...@ictsoc.de



Re: [O] org-protocol in windows and Acrobat Reader

2012-03-18 Thread David Maus
At Thu, 15 Mar 2012 20:16:10 + (UTC),
d.tchin wrote:
>
> Hi,
>
> I try to use a function proposed with org-protocol as explained in this link.
> http://orgmode.org/worg/org-contrib/org-protocol.html#sec-2
>
> I would like to launch a pdf file in Acrobat Reader and to use org-store-
> link.js to capture the full path of the document in an org file.I try to use
> what it was explained on the link I have already and I have a look on the
> following link.
> http://article.gmane.org/gmane.emacs.orgmode/6810
> It doesn't work as I expect.
>
>
> As I just want to capture the full path of the file (example here is file.pdf
> in C:\Temp), I use the following javascript call org-store-link accessible in
> menu File of Acrobat Reader :
> app.addMenuItem({cName:"org-store-link", cParent:"File",
>cExec:"app.launchURL('org-protocol://store-link://'+
> encodeURIComponent(this.URL));"});
>
> I get the following string given to org-protocol:
> org-protocol://store-link://file%3A%2F%2F%2FC%7C%2FTemp%2Ffile.pdf
>
> There is several issue. The escaped character is not interpreted when feed in
> emacs and when I use C-c C-l (org-insert-link) I have the following
> proposition :
> file: (C|).
>
> Then I try the following script, to get '/' character to feed org-protocol:
> app.addMenuItem({cName:"org-store-link", cParent:"File",
>cExec:"app.launchURL('org-protocol://store-link://'+ unescape
> (encodeURIComponent(this.URL)).replace('|',':'));"});
>
>
> I get the following the expected string :
> org-protocol://store-link://file:///C:/Temp/File.pdf
>
>
> Again when I use C-c C-l, I have the proposition : file: (C|).

This indicates that .replace('|',':') didn't work out as expected and
org-protocol received

org-protocol://store-link://file%3A%2F%2F%2FC%7C%2FTemp%2Ffile.pdf
 ^^^

Maybe this could do the trick:

,
| app.addMenuItem({cName:"org-store-link", cParent:"File",
|cExec:"app.launchURL('org-protocol://store-link://'+ unescape
|  (encodeURIComponent(this.URL.replace('|',':';"});
`

I.e. replace | by : in the original URL before encoding it.

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


pgpoBuPD2BnXk.pgp
Description: OpenPGP Digital Signature


Re: [O] table as parameter for latex block

2012-03-18 Thread Martin Halder
> Martin Halder  writes:
> 
>>> Martin Halder  writes:
>>> 
 Hi all,
 
 was trying to use a table as input for a latex block. Is there a way to 
 directly reference parts of the table inside the block or do I have to 
 specify each parameter as separate parameter ?
 
 Thanks for help,
 Martin
>>> Aloha Martin,
>>> 
>>> Can I ask why you want to use a table as input for a latex block?  An
>>> alternative is to send the table to a source block in some other
>>> language and then evaluate with :results latex.  The advantage is that
>>> the other language can have loops and complex data types that make it
>>> relatively easy to deal with tables.  It might be possible to do these
>>> kinds of things with TeX, but it is likely to be difficult.
>>> 
>>> hth,
>>> Tom
>> 
>> Aloha Tom,
>> 
>> the reason was that I have a quite complex latex file in a src latex block 
>> (which I tangle)
>> and just wanted to replace some variables from a table.
>> 
>> But :results latex looks very interesting, will have a look if I can solve 
>> it with that one,
>> many thanks for the hint.
>> 
>> This is my use case, the example below was maybe too much simplified:
>> 
>> #begin_src latex
>> ... weird latex code
>>  \put(-2,-50){
>>  \parbox{8cm}{
>>  \tiny{mycompany - mystree - mycountry}\\ \\
>>  \normalsize
>>  \textbf{company}\\
>>  street\\
>>  \textbf{country}
>>  \vspace{2mm}\\
>>  }
>>  }
>> ... weird latex code
>> #end_src latex
> 
> Aloha Martin,
> 
> Here is the basic idea in pseudo python.  
> 
> #begin_src python :results output latex
> ... weird latex code
> s = '''   \\put(-2,-50){
>   \\parbox{8cm}{
>   \\tiny{%s - %s - %s} 
>   \\normalsize
>   \\textbf{%s}
>   street
>   \\textbf{%s}
>   \\vspace{2mm}
>   }
>   }''' % (mycompany, mystree, mycountry, company, country)
> print s
> ... weird latex code
> #end_src python
> 
> hth,
> Tom

Aloha Tom,

great, thanks. This one is working. Did not think about sending the whole file 
through python.

Cheers,
Martin

>> 
>> Cheers,
>> Martin
>> 
>>> 
 
 This is working:
 
 #+tblname: data
 | Name| John Doe |
 | Address | Doestreet 42 |
 | Country | Doecountry   |
 
 #+name: invoice(name=data[0,1], address=data[1,1], country=data[2,1])
 #+begin_src latex
 name
 address
 country
 #+end_src
 
 #+RESULTS: invoice
 #+BEGIN_LaTeX
 John Doe
 Doestreet 42
 Doecountry
 #+END_LaTeX
 
 what I would like to do:
 
 #+name: invoice(data=data)
 #+begin_src latex
 data[0,1]
 data[1,1]
 data[2,1]
 #+end_src
 
 or even better:
 
 #+name: invoice(data=data)
 #+begin_src latex
 data['Name']
 data['Adress']
 data['Country']
 #+end_src
 
 
 
 
>>> 
>>> -- 
>>> Thomas S. Dye
>>> http://www.tsdye.com
>> 
> 
> -- 
> T.S. Dye & Colleagues, Archaeologists
> 735 Bishop St, Suite 315, Honolulu, HI 96813
> Tel: 808-529-0866, Fax: 808-529-0884
> http://www.tsdye.com




[O] [babel] New Version of lob-table-operations.org --- filter or combine tables

2012-03-18 Thread Marc-Oliver Ihm

Hello,

after fixing some bugs, brushing up the doku and adding the ability to handle 
table headings,
I would like to present a new version of lob-table-operations.org (see the 
attachment).

Table operations can be seen as part of the library of babel and offers
an easy way to filter or combine orgmode tables.

Citing its documentation, which together with some working examples and the 
implementing code,
forms the attached orgmode file:


The table operations (currently four) are grouped in two categories:

- Filtering the rows of a single table: keeping or removing
- Combining two tables into one: merging or intersecting

All four operations are demonstrated below.


I hope, that someone will find this useful; any suggestions for
improvement or extension would be very welcome !

In fact I already received a lot of good advice from Eric Schulte, who helped me
very much in improving this package. Having said this, I would be glad,
if table operations could eventually some day be considered fit for inclusion
into the proper library of babel.


with kind regards, Marc-Oliver Ihm

* Table operations --- filter or combine tables

  This section within the library of babel provides table operations.
  See the documentation just below for details and working examples.

  Author  : Marc-Oliver Ihm 
  Version : 1.0

** Documentation

*** Introduction

The table operations (currently four) are grouped in two categories:

- Filtering the rows of a single table: keeping or removing
- Combining two tables into one: merging or intersecting
 
All four operations are demonstrated below.

*** Example tables

To demonstrate we need three tables: upper, lower and keys:

#+name: upper
|  1 | A |
|  3 | C |
|  4 | D |
| 10 | J |
|  2 | B |

#+name: lower
| Position | Letter |
|--+|
|2 | b  |
|4 | d  |
|5 | e  |
|6 | h  |

#+name: keys
| Position |
|--|
|1 |
|2 |
|4 |

The tables upper and lower both have two columns and associate a position in
the alphabet with the matching letter.  E.g. the row "| 1 | A |" from table
upper, just states that the letter "A" comes at position 1 in the alphabet.

Nearly the same is true for table lower, only that it contains lower case
letters.  Some of its letters (e.g. "b") have counterparts in table upper
("B"), some (e.g. "e") dont.

The table keys finally, contains keys (i.e. positions within the alphabet),
that can be used to select rows from either table upper or lower.

Note, that tables may have column headings or not.

*** Filtering a table

 Keeping rows

 Let's say, we want to select the upper-case letters (i.e. rows from the
 table upper), that are given in table keys (i.e. the first, second and
 fourth letter).

 This can be described as filtering table upper and keeping only those rows,
 that appear in table keys.

 As a babel-call, this reads:

#+call: table-operations-filter-keep(upper,keys)

#+results: table-operations-filter-keep(upper,keys)
| 1 | A |
| 4 | D |
| 2 | B |

 ,which gives exactly those rows from table upper, that are specified in
 keys.

 Removing rows

 Now, if on the contrary you want to filter table upper to remove any rows,
 which are given in table keys:

#+call: table-operations-filter-remove(upper,keys) :colnames yes

#+results: table-operations-filter-remove(upper,keys)
| Position | t2c2 |
|--+--|
|3 | C|
|   10 | J|

 ,which is the expected result.

 Please note, that the call contains the header argument ":colnames yes",
 which causes the result table to contain the headings "Position" and
 "t2c2". These headings are taken from the input-tables upper and
 keys. However, as upper does not contain any headings, the heading "t2c2"
 is generated artificially; it stands for "table 2 column 2".

 If you do not want to have column names in the result table, just leave out
 the header argument ":colnames yes" like in the first example. Note
 however, that ":colnames no" does not give the expected effect.

*** Combining tables

Now, lets have a look at the tables upper and lower alone and see how to
combine them.

Note, that we only look at combining two tables for simplicity, however, all
operations can be easily scaled up to seven tables.

 Merging rows

 We have two tables, one with upper case letters and one with lower
 case. What now, if you want to have only one table, which contains both,
 upper and lower case letters ?
 
 You may want to merge them:

#+call: table-operations-combine-merge(upper,lower) :colnames yes

#+results: table-operations-combine-merge(upper,lower)
| Position | t1c2 | Letter |
|--+--+|
|1 | A||
|2 | B| b  |
|3 | C||
|4 | 

Re: [O] Org release 7.8.04 (BUGFIX-only release)

2012-03-18 Thread Achim Gratz
Bastien  writes:
>>> I released Org 7.8.05.
>>
>> Maint still needs to be merged back into master, otherwise master picks up
>> 7.8.04 as the release version.  
>
> Done, thanks for the heads up.

Well, all this "manual reverting" messed up master quite royally.  I
haven't checked maint, but things might be a bit easier there.  I'm
currently trying to re-trace what master and maint should have been and
make a patch on top of the mangled versions...


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

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] table as parameter for latex block

2012-03-18 Thread Thomas S. Dye
Martin Halder  writes:

>> Martin Halder  writes:
>> 
>>> Hi all,
>>> 
>>> was trying to use a table as input for a latex block. Is there a way to 
>>> directly reference parts of the table inside the block or do I have to 
>>> specify each parameter as separate parameter ?
>>> 
>>> Thanks for help,
>>> Martin
>> Aloha Martin,
>> 
>> Can I ask why you want to use a table as input for a latex block?  An
>> alternative is to send the table to a source block in some other
>> language and then evaluate with :results latex.  The advantage is that
>> the other language can have loops and complex data types that make it
>> relatively easy to deal with tables.  It might be possible to do these
>> kinds of things with TeX, but it is likely to be difficult.
>> 
>> hth,
>> Tom
>
> Aloha Tom,
>
> the reason was that I have a quite complex latex file in a src latex block 
> (which I tangle)
> and just wanted to replace some variables from a table.
>
> But :results latex looks very interesting, will have a look if I can solve it 
> with that one,
> many thanks for the hint.
>
> This is my use case, the example below was maybe too much simplified:
>
> #begin_src latex
> ... weird latex code
>   \put(-2,-50){
>   \parbox{8cm}{
>   \tiny{mycompany - mystree - mycountry}\\ \\
>   \normalsize
>   \textbf{company}\\
>   street\\
>   \textbf{country}
>   \vspace{2mm}\\
>   }
>   }
> ... weird latex code
> #end_src latex

Aloha Martin,

Here is the basic idea in pseudo python.  

#begin_src python :results output latex
 ... weird latex code
s = ''' \\put(-2,-50){
\\parbox{8cm}{
\\tiny{%s - %s - %s} 
\\normalsize
\\textbf{%s}
street
\\textbf{%s}
\\vspace{2mm}
}
}''' % (mycompany, mystree, mycountry, company, country)
print s
 ... weird latex code
#end_src python

hth,
Tom

>
> Cheers,
> Martin
>
>> 
>>> 
>>> This is working:
>>> 
>>> #+tblname: data
>>> | Name| John Doe |
>>> | Address | Doestreet 42 |
>>> | Country | Doecountry   |
>>> 
>>> #+name: invoice(name=data[0,1], address=data[1,1], country=data[2,1])
>>> #+begin_src latex
>>> name
>>> address
>>> country
>>> #+end_src
>>> 
>>> #+RESULTS: invoice
>>> #+BEGIN_LaTeX
>>> John Doe
>>> Doestreet 42
>>> Doecountry
>>> #+END_LaTeX
>>> 
>>> what I would like to do:
>>> 
>>> #+name: invoice(data=data)
>>> #+begin_src latex
>>> data[0,1]
>>> data[1,1]
>>> data[2,1]
>>> #+end_src
>>> 
>>> or even better:
>>> 
>>> #+name: invoice(data=data)
>>> #+begin_src latex
>>> data['Name']
>>> data['Adress']
>>> data['Country']
>>> #+end_src
>>> 
>>> 
>>> 
>>> 
>> 
>> -- 
>> Thomas S. Dye
>> http://www.tsdye.com
>

-- 
T.S. Dye & Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com



Re: [O] table as parameter for latex block

2012-03-18 Thread Martin Halder

> Martin Halder  writes:
> 
>> Hi all,
>> 
>> was trying to use a table as input for a latex block. Is there a way to 
>> directly reference parts of the table inside the block or do I have to 
>> specify each parameter as separate parameter ?
>> 
>> Thanks for help,
>> Martin
> Aloha Martin,
> 
> Can I ask why you want to use a table as input for a latex block?  An
> alternative is to send the table to a source block in some other
> language and then evaluate with :results latex.  The advantage is that
> the other language can have loops and complex data types that make it
> relatively easy to deal with tables.  It might be possible to do these
> kinds of things with TeX, but it is likely to be difficult.
> 
> hth,
> Tom

Aloha Tom,

the reason was that I have a quite complex latex file in a src latex block 
(which I tangle)
and just wanted to replace some variables from a table.

But :results latex looks very interesting, will have a look if I can solve it 
with that one,
many thanks for the hint.

This is my use case, the example below was maybe too much simplified:

#begin_src latex
... weird latex code
\put(-2,-50){
\parbox{8cm}{
\tiny{mycompany - mystree - mycountry}\\ \\
\normalsize
\textbf{company}\\
street\\
\textbf{country}
\vspace{2mm}\\
}
}
... weird latex code
#end_src latex

Cheers,
Martin

> 
>> 
>> This is working:
>> 
>> #+tblname: data
>> | Name| John Doe |
>> | Address | Doestreet 42 |
>> | Country | Doecountry   |
>> 
>> #+name: invoice(name=data[0,1], address=data[1,1], country=data[2,1])
>> #+begin_src latex
>> name
>> address
>> country
>> #+end_src
>> 
>> #+RESULTS: invoice
>> #+BEGIN_LaTeX
>> John Doe
>> Doestreet 42
>> Doecountry
>> #+END_LaTeX
>> 
>> what I would like to do:
>> 
>> #+name: invoice(data=data)
>> #+begin_src latex
>> data[0,1]
>> data[1,1]
>> data[2,1]
>> #+end_src
>> 
>> or even better:
>> 
>> #+name: invoice(data=data)
>> #+begin_src latex
>> data['Name']
>> data['Adress']
>> data['Country']
>> #+end_src
>> 
>> 
>> 
>> 
> 
> -- 
> Thomas S. Dye
> http://www.tsdye.com




Re: [O] Japanese strings for Org-mode export

2012-03-18 Thread David Maus
At Sat, 3 Mar 2012 23:29:43 -0800,
Hideki Saito wrote:
>
> [1  ]
> The attached is alternative of the patch using utf-8 encoding.

Thanks for the translation. I made the modification but we need to use
numeric character entities[1] to avoid rendering problems when
non-UTF8 documents are exported to HTML.

Could I ask you to check if the japanese text is rendered properly
when a document is exported?

Best,
  -- David
[1] http://en.wikipedia.org/wiki/Numeric_character_reference
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpiCHfHld8ng.pgp
Description: OpenPGP Digital Signature


Re: [O] table as parameter for latex block

2012-03-18 Thread Thomas S. Dye
Martin Halder  writes:

> Hi all,
>
> was trying to use a table as input for a latex block. Is there a way to 
> directly reference parts of the table inside the block or do I have to 
> specify each parameter as separate parameter ?
>
> Thanks for help,
> Martin
Aloha Martin,

Can I ask why you want to use a table as input for a latex block?  An
alternative is to send the table to a source block in some other
language and then evaluate with :results latex.  The advantage is that
the other language can have loops and complex data types that make it
relatively easy to deal with tables.  It might be possible to do these
kinds of things with TeX, but it is likely to be difficult.

hth,
Tom

>
> This is working:
>
> #+tblname: data
> | Name| John Doe |
> | Address | Doestreet 42 |
> | Country | Doecountry   |
>
> #+name: invoice(name=data[0,1], address=data[1,1], country=data[2,1])
> #+begin_src latex
> name
> address
> country
> #+end_src
>
> #+RESULTS: invoice
> #+BEGIN_LaTeX
> John Doe
> Doestreet 42
> Doecountry
> #+END_LaTeX
>
> what I would like to do:
>
> #+name: invoice(data=data)
> #+begin_src latex
> data[0,1]
> data[1,1]
> data[2,1]
> #+end_src
>
> or even better:
>
> #+name: invoice(data=data)
> #+begin_src latex
> data['Name']
> data['Adress']
> data['Country']
> #+end_src
>
>
>
>

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



Re: [O] [PATCH] Adding Simplified Chinese(UTF-8) translation for org-exp

2012-03-18 Thread David Maus
Accepted, thanks!

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

pgpYIH5MSc3oV.pgp
Description: OpenPGP Digital Signature


Re: [O] [PATCH] org-store-link: Fixed a bug where source block edit buffers were not recognized

2012-03-18 Thread David Maus
At Wed, 14 Mar 2012 15:37:20 +,
Shaun Johnson wrote:
>
> On 08/03/2012 22:33, Ilya Shlyakhter wrote:
> > attached.
>
> Having just run into this same problem (being unable to create
> and store a code reference link using C-l in a source block edit
> buffer) I would like to second the inclusion of this or an
> equivalent patch. Ilya's patch can be seen on the patchwork server
> at:
>   http://patchwork.newartisans.com/patch/1209/
>
> I am currently using the following patch to work around this
> problem:

http://patchwork.newartisans.com/patch/1209/ was recently accepted --
This problem should be fixed now.

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

pgp4BfyuVPw1B.pgp
Description: OpenPGP Digital Signature


Re: [O] Possible bug in parsing / clarification of syntax

2012-03-18 Thread David Maus
Hi Simon,

At Sun, 04 Mar 2012 22:30:31 +0100,
Simon Thum wrote:
>
> Hi all,
>
> I have found some irritating behaviour, potentially a bug. I have a
> block agenda which goes like:
>
> tags-todo "@home&TODO=\"TODO\"
>
> and it displays a certain org line that reads
>
>  TODO_ state triggers
>
> Which is just a heading for dealing with TODO state triggers, and I
> appended the _ as I don't want it to be a TODO.
>
> For example, the global TODO list and syntax highlighting does not
> consider it a todo, but C-c a m TODO="TODO" does. TODO="T" does not,
> so it's not very grave.
>
> Most likely, it's simply an inconsistency arising from not having a
> real parser. I just wanted to report it here so it may get fixed.

Thanks for the report. It was indeed a glitch and it should be fixed
by now in current master.

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

pgp0oieyCUBUs.pgp
Description: OpenPGP Digital Signature


Re: [O] Custom agenda and DONE faces

2012-03-18 Thread David Maus
Hi Hans-Peter,

At Wed, 15 Feb 2012 18:19:54 +0100,
Hans-Peter Deifel wrote:
>
> Hi all,
>
> [...]
>
> I played around in the source code and noticed that the following patch fixes
> the problem, but I don't know the code base well enough to understand why it
> works and what other implications it might have:
>
> [...]

I've applied a fix for this problem to master. Your patch did the
right thing; `org-prepare-agenda' was called by `org-agenda-list'
which already set up the done-keywords. But when `org-agenda-list' was
called in a block agenda `org-prepare-agenda' set the variable to nil
and left early.

Best and thanks,
  -- David


pgpZ3Q3qAZmxu.pgp
Description: OpenPGP Digital Signature


Re: [O] ot: windows xemacs question

2012-03-18 Thread Bernt Hansen
TonyMc  writes:

> On Sat, 17 Mar 2012 14:53:07 -0400 (EDT), you wrote:
>
>>I had a read of the setup instructions for emacs on windows and 
>>unfortunately so many of them involve modifying the windows registry.  A 
>>very experienced software specialist told me it's best never to use 
>>software that requires these modifications because sooner rather than 
>>later windows will crash and then the whole mess has to be reinstalled 
>>after that.  He had no idea about xemacs but he told me emacs and windows 
>>do not live happily on machines together.  So I'm wondering if xemacs 
>>might end up being any better and figured this being the closest list to 
>>emacs support I'm on that actually works to ask this question here.
>
> Not sure where you got your info, but it is misleading and should not
> put you off.  "Installing" GNU Emacs on Windows involves unzipping a
> directory tree, that is all.  Download emacs-23.4-bin-i386.zip and
> unzip it to e.g. the root of the C: drive.  Then you can run emacs as
> C:\emacs-23.4\bin\runemacs.exe.

I agree that no registry changes should be/are required.  I use windows
at work with an unzipped emacs and I've never touched the registry.

Regards,
Bernt



Re: [O] Repeat every X business days and every Xth day-of-the-week

2012-03-18 Thread Bernt Hansen
Jay McCarthy  writes:

> I wish that I could write +1bd on a repeating tasks so that it skips
> from Friday to Monday.
>
> I looked into implementing this myself, but there are a lot of places
> (29) where the regexp [dwmy] is used and it scares me off because I
> think I'll break something. It almost seems like you should be able to
> add a new 'what' to 'org-timestamp-change' and it will Just Work. But
> the algorithm in there would need to change a bit, because it would
> try to change by a number of days, but then adjust based on the advic
> day of the week.
>
> For now, I just manually complete the task on Saturdays and Sundays...
> but it seems wrong to get credit in the TODO -> DONE log when I really
> didn't do it :)

You can also just adjust the date with S-right until the next
occurrence - this doesn't mark it DONE.  Then you don't get 'credit' for
doing it on weekends.

HTH,
Bernt



Re: [O] Repeat every X business days and every Xth day-of-the-week

2012-03-18 Thread Bernt Hansen
Nick Dokos  writes:

> Jay McCarthy  wrote:
>
>> ... 
>> I also wish that I could specify in some way that an event happens
>> every third Thursday of the month or on the first and third Wednesdays
>> (when my recycling cans are picked up). I don't know of a good way to
>> fit that into the current annotation scheme of + and ++.
>> 
>> If you have any advice about how I could do it myself safely, I'd be
>> happy to try and contribute.
>
> Diary s-exprs can do things like this:
>
>
> * TODO every third Thursday of the month
>   <%%(org-float t 4 3)>
>
> * TODO every first and third Wednesday of the month
>   <%%(or (org-float t 3 1) (org-float t 3 3))>

Except these TODO's don't behave like repeating tasks.  If you mark it
DONE it stays DONE as opposed to cycling back to TODO for the next
occurrence.

Regards,
Bernt



Re: [O] ot: windows xemacs question

2012-03-18 Thread Charles
I have emacs 24.0.93.1 with org 7.8.03 (hopefully .05 later today) 
installed on a Windows 7 (home Premium) system and have made no changes 
to the registry. Perhaps my needs are not as complex as yours. Have you 
read


http://www.gnu.org/software/emacs/windows/index.html#Top

Charlie Millar

On 3/17/2012 2:53 PM, Jude DaShiell wrote:

I had a read of the setup instructions for emacs on windows and
unfortunately so many of them involve modifying the windows registry.  A
very experienced software specialist told me it's best never to use
software that requires these modifications because sooner rather than
later windows will crash and then the whole mess has to be reinstalled
after that.  He had no idea about xemacs but he told me emacs and windows
do not live happily on machines together.  So I'm wondering if xemacs
might end up being any better and figured this being the closest list to
emacs support I'm on that actually works to ask this question here.


Jude





-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1424 / Virus Database: 2113/4876 - Release Date: 03/17/12







Re: [O] ot: windows xemacs question

2012-03-18 Thread TonyMc
On Sat, 17 Mar 2012 14:53:07 -0400 (EDT), you wrote:

>I had a read of the setup instructions for emacs on windows and 
>unfortunately so many of them involve modifying the windows registry.  A 
>very experienced software specialist told me it's best never to use 
>software that requires these modifications because sooner rather than 
>later windows will crash and then the whole mess has to be reinstalled 
>after that.  He had no idea about xemacs but he told me emacs and windows 
>do not live happily on machines together.  So I'm wondering if xemacs 
>might end up being any better and figured this being the closest list to 
>emacs support I'm on that actually works to ask this question here.

Not sure where you got your info, but it is misleading and should not
put you off.  "Installing" GNU Emacs on Windows involves unzipping a
directory tree, that is all.  Download emacs-23.4-bin-i386.zip and
unzip it to e.g. the root of the C: drive.  Then you can run emacs as
C:\emacs-23.4\bin\runemacs.exe.

Tony



Re: [O] #RESULTS folding and clearing

2012-03-18 Thread Johnny
Johnny  writes:

> Nick Dokos  writes:
>
>> Johnny  wrote:
>>
>>> Hi all,
>>> 
>>> When evaluating src blocks, the #+RESULTS: are inserted just below the
>>> code block, but some expressions generate long lists; thus:
>>> 
>>> 1) How can I fold the RESULTS block? (I have tried the regular tab way
>>> and searched the manual, but can't find it. Apologies if it should be
>>> obvious!)
>>
>> TAB on the #+RESULTS: line folds the results block for me.
>>
>
> This actually works in org-mode 7.7 on my netbook, but not in
> org-mode-7.8.0.3 on my desktop.
>
>>> 2) Is there any way to get the results in a folded output by default? 
>>
>> Not that I know of.
>>
>
> I fond the org-babel-result-hide-all in org-mode 7.7 which may can be
> used in a hook, but it doesn't exist in org-mode 7.8.0.3. It would be
> nice to specify in the rource block header if results should be folded
> by default or not.
>
>
>>> 3) Can I erase /all/ RESULTS in an org-file by single command?
>>
>> [answered previously - repeated for completeness]
>>
>> M-x org-babel-remove-result RET
>>

An unexpected (?) behaviour is that this works fine, but if i hide and
show (TAB twice) on the results and run the command, it doesn't remove
the results.

>
> Is this 7.8.0.3 behaviour expected and which org-mode are you using?
>

Cheers,

-- 
Johnny



Re: [O] #RESULTS folding and clearing

2012-03-18 Thread Johnny
Nick Dokos  writes:

> Johnny  wrote:
>
>> Hi all,
>> 
>> When evaluating src blocks, the #+RESULTS: are inserted just below the
>> code block, but some expressions generate long lists; thus:
>> 
>> 1) How can I fold the RESULTS block? (I have tried the regular tab way
>> and searched the manual, but can't find it. Apologies if it should be
>> obvious!)
>
> TAB on the #+RESULTS: line folds the results block for me.
>

This actually works in org-mode 7.7 on my netbook, but not in
org-mode-7.8.0.3 on my desktop.

>> 2) Is there any way to get the results in a folded output by default? 
>
> Not that I know of.
>

I fond the org-babel-result-hide-all in org-mode 7.7 which may can be
used in a hook, but it doesn't exist in org-mode 7.8.0.3. It would be
nice to specify in the rource block header if results should be folded
by default or not.


>> 3) Can I erase /all/ RESULTS in an org-file by single command?
>
> [answered previously - repeated for completeness]
>
> M-x org-babel-remove-result RET
>

Is this 7.8.0.3 behaviour expected and which org-mode are you using?

Cheers,

-- 
Johnny



Re: [O] Org release 7.8.04 (BUGFIX-only release)

2012-03-18 Thread Bastien
Achim Gratz  writes:

> Bastien  writes:
>> There was something wrong in the process of releasing 7.8.04 
>> (the release relied on the wrong branch.)  
>>
>> I released Org 7.8.05.
>
> Maint still needs to be merged back into master, otherwise master picks up
> 7.8.04 as the release version.  

Done, thanks for the heads up.

> Also, you need to fix that version
> script (still inserting the french month for the release date, maybe
> wrap with LANG=C?).

I usually run the script from the orgmode.org server, which is in
english.  I will think of LANG=C next time I run it from my computer,
which should hopefully not happen soon.

Thanks!

-- 
 Bastien



Re: [O] Too clumsy to promote/demote a region by multiple levels

2012-03-18 Thread Jonas Hörsch
On Sun, Mar 18 2012, James Harkins wrote:

> That is, if I use C-space and move the point to select a number of
> headings, and I want to demote them by three levels, currently after
> hitting M-right, the region goes away -- so I actually have to do
>
> C-space (move the point) M-right
> C-space (move the point) M-right
> C-space (move the point) M-right

as a workaround, you can shorten the procedure a bit by typing

C-space (move the point) M-right C-x C-x M-right C-x C-x M-right

still a bit suboptimal i agree.

cheers,
 jonas




[O] table as parameter for latex block

2012-03-18 Thread Martin Halder
Hi all,

was trying to use a table as input for a latex block. Is there a way to 
directly reference parts of the table inside the block or do I have to specify 
each parameter as separate parameter ?

Thanks for help,
Martin

This is working:

#+tblname: data
| Name| John Doe |
| Address | Doestreet 42 |
| Country | Doecountry   |

#+name: invoice(name=data[0,1], address=data[1,1], country=data[2,1])
#+begin_src latex
name
address
country
#+end_src

#+RESULTS: invoice
#+BEGIN_LaTeX
John Doe
Doestreet 42
Doecountry
#+END_LaTeX

what I would like to do:

#+name: invoice(data=data)
#+begin_src latex
data[0,1]
data[1,1]
data[2,1]
#+end_src

or even better:

#+name: invoice(data=data)
#+begin_src latex
data['Name']
data['Adress']
data['Country']
#+end_src





Re: [O] Too clumsy to promote/demote a region by multiple levels

2012-03-18 Thread Gustav Wikström
Hi!

Have you tried to use S-M-left and S-M-right? I't doesn't work with regions
but it works for a heading and all its subheadings at the same time.

/Gustav

On Sun, Mar 18, 2012 at 4:40 AM, James Harkins  wrote:

> Is there a reason why M-left and M-right (promote/demote tree headings)
> deactivate the selected region?
>
> That is, if I use C-space and move the point to select a number of
> headings, and I want to demote them by three levels, currently after
> hitting M-right, the region goes away -- so I actually have to do
>
> C-space (move the point) M-right
> C-space (move the point) M-right
> C-space (move the point) M-right
>
> But I would like to be able to do
>
> C-space (move the point) M-right M-right M-right
>
> Is this possible?
>
> I know that if there is no freestanding text underneath the headings, I
> could use C-x r t to add more *'s, but that breaks in a region where one or
> more lines are not headings.
>
> I tried (on a whim) C-u 3 M-right, but the universal argument is ignored
> here.
>
> Thanks,
> James
>
>
> --
> James Harkins /// dewdrop world
> jamshar...@dewdrop-world.net
> http://www.dewdrop-world.net
>
> "Come said the Muse,
> Sing me a song no poet has yet chanted,
> Sing me the universal."  -- Whitman
>
> blog: http://www.dewdrop-world.net/words
> audio clips: http://www.dewdrop-world.net/audio
> more audio: http://soundcloud.com/dewdrop_world/tracks
>
>