[Orgmode] Re: [babel] problem exporting pictures

2010-05-24 Thread Nicolas Goaziou
 Dan Davison writes:

 I can't reproduce this -- it works OK for me using current git master
 and 6.36c tarball. What is written to *Messages* during export? I get

 Exporting to LaTeX...
 org-babel-exp processing...
 executing Asymptote source code block
 asy -globalwrite -f pdf -o test-fig.pdf  /tmp/org-babel-asymptote1650kFe
 (Shell command succeeded with no output)
 finished

I get the same. There is no problem creating the pdf (with C-c C-c and
C-c C-o). But I'm using plain 6.36. 

After updating to latest tarball, the problem is indeed gone, along
with some others annoyances.

Thank you.

Nicolas

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


[Orgmode] PATCH: Xemacs incompatibilities

2010-05-24 Thread Michael Sperber

Dr. Volker Zell dr.volker.z...@oracle.com writes:

  o XEmacs 21.4 (patch 22) Instant Classic [Lucid] (i686-pc-cygwin, Mule) of 
 Sat Jan 31 2009 on vzell-de

Ah ... OK, this is a 21.4 issue.  The attached patch fixes it.

`write-contents-hooks' is not buffer-local by default in 21.4, which is
why the the hook for exiting the org-src mode gets run when anything
saved, and that checks for the mode.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
diff --git a/lisp/org-src.el b/lisp/org-src.el
index 0ac8e6c..63c749c 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -644,8 +644,11 @@ the language, a switch telling if the content should be in 
a single line.
  (setq buffer-file-name
(concat (buffer-file-name (marker-buffer 
org-edit-src-beg-marker))
[ (buffer-name) ]))
- (set (if (featurep 'xemacs) 'write-contents-hooks 
'write-contents-functions)
-  '(org-edit-src-save)))
+ (if (featurep 'xemacs)
+ (progn
+   (make-variable-buffer-local 'write-contents-hooks) ; needed 
only for 21.4
+   (setq write-contents-hooks '(org-edit-src-save)))
+   (setq write-contents-functions '(org-edit-src-save
   (setq buffer-read-only t
 
 (org-add-hook 'org-src-mode-hook 'org-src-mode-configure-edit-buffer)
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] PATCH: Fix minor XEmacs compatibility issue

2010-05-24 Thread Michael Sperber

I'd appreciate if this one could be applied.  I'll fix XEmacs to accept
#Bbinary in the future, but I'd appreciate this one anyway.  Doesn't
really add complexity ...

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
diff --git a/lisp/org-id.el b/lisp/org-id.el
index 66b1790..cf61f8a 100644
--- a/lisp/org-id.el
+++ b/lisp/org-id.el
@@ -330,9 +330,9 @@ So a typical ID could look like \Org:4nd91V40HI\.
(substring rnd 13 16)
(format %x
(logior
-#B1000
+#b1000
 (logand
- #B1011
+ #b1011
  (string-to-number
   (substring rnd 16 18) 16
(substring rnd 18 20)
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: clocktable and :step day with: how to avoid tables with total time *0:00*

2010-05-24 Thread Rainer Stengele

Am 22.05.2010 08:19, schrieb Carsten Dominik:


On May 21, 2010, at 4:51 PM, Rainer Stengele wrote:


Hi all!

Creating clocktables for each day of a month is an excellent feature
in org!
Problem for me is that many resulting tables have a total time of 0:00.
The problem is not really the zero time I spent but the appearance of
the tables with zero total time.

Is there a possibility to skip getting such tables?
Rational: I do not need to show my boss or customer days where I spent
0:00 time on the project.


Hi Rainer,

if you pull, you can now do

:stepskip0 t

in the definition line for the report.

HTH

- Carsten


Hi Carsten,

works perfectly! Excellent extension to report working hours of a project on a 
daily base.

I end up with something like:

Daily report: [2010-04-12 Mo]
| L | Headline | Time   |
|---+--+|
|   | *Total time* | *3:00* |
|---+--+|

Daily report: [2010-04-15 Do]
| L | Headline | Time   |
|---+--+|
|   | *Total time* | *8:15* |
|---+--+|

Daily report: [2010-04-16 Fr]
| L | Headline | Time   |
|---+--+|
|   | *Total time* | *4:30* |
|---+--+|


I will probably have to write a macro to format this into something like:

| Daily reports   | *Total time* |
|-+--|
| [2010-04-20 Di] | *1:14*   |
| [2010-04-21 Mi] | *1:02*   |
| [2010-04-22 Do] | *4:30*   |
| [2010-04-23 Fr] | *6:20*   |


Any chance to get this done automatically in org?


again, Carsten, thanks for implementing the :stepskip0 parameter!

Best

- Rainer



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


[Orgmode] Re: PATCH: Xemacs incompatibilities

2010-05-24 Thread Dan Davison
Michael Sperber sper...@deinprogramm.de writes:

 Dr. Volker Zell dr.volker.z...@oracle.com writes:

  o XEmacs 21.4 (patch 22) Instant Classic [Lucid] (i686-pc-cygwin, Mule) 
 of Sat Jan 31 2009 on vzell-de

 Ah ... OK, this is a 21.4 issue.  The attached patch fixes it.

 `write-contents-hooks' is not buffer-local by default in 21.4, which is
 why the the hook for exiting the org-src mode gets run when anything
 saved, and that checks for the mode.

Thanks for sorting that out Michael. I've applied the patch.

Dan

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


Re: [Orgmode] MobileOrg Android 0.1_alpha

2010-05-24 Thread julien cubizolles
Le mardi 02 mars 2010 à 12:10 +0100, Sven Bretfeld a écrit :

 Oh my god. That's really silly. Just installed USB Debugging. That led
 me to the solution: Ähem ... The URL field has to point to the index.org
 file, not to the directory. That was a misunderstanding. Now it's
 working.

I'm also trying to setup a webdav account, using a demo account but
can't get it to sync.

Here is my setup :

URL : 
http://mydisk.se/demo/index.org

Login:
demo

Password:
demo

The index.org file exists and links to a file named mobileorg.org.

I don't get any error messages when I hit Sync but the mobileorg.org
file doesn't appear. What am I doing wrong ?

 I will try to use MobileOrg and send you feedback.
How is it working for you so far ?

Julien, eager to use org-mode on his phone.


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


Re: [Orgmode] MobileOrg Android 0.1_alpha

2010-05-24 Thread Matthew Jones
You should know that 'mobileorg.org' is the filename used by MobileOrg when
capturing new notes (see:
http://orgmode.org/manual/Pulling-from-MobileOrg.html#Pulling-from-MobileOrg)
can you name the file something else and see if that works for you?

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Mon, May 24, 2010 at 9:36 AM, julien cubizolles j.cubizol...@free.frwrote:

 Le mardi 02 mars 2010 à 12:10 +0100, Sven Bretfeld a écrit :

  Oh my god. That's really silly. Just installed USB Debugging. That led
  me to the solution: Ähem ... The URL field has to point to the index.org
  file, not to the directory. That was a misunderstanding. Now it's
  working.

 I'm also trying to setup a webdav account, using a demo account but
 can't get it to sync.

 Here is my setup :

 URL :
 http://mydisk.se/demo/index.org

 Login:
 demo

 Password:
 demo

 The index.org file exists and links to a file named mobileorg.org.

 I don't get any error messages when I hit Sync but the mobileorg.org
 file doesn't appear. What am I doing wrong ?

  I will try to use MobileOrg and send you feedback.
 How is it working for you so far ?

 Julien, eager to use org-mode on his phone.


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

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


Re: [Orgmode] MobileOrg Android 0.1_alpha

2010-05-24 Thread julien cubizolles
Le lundi 24 mai 2010 à 09:52 -0400, Matthew Jones a écrit :
 You should know that 'mobileorg.org' is the filename used by MobileOrg
 when capturing new notes
 (see: 
 http://orgmode.org/manual/Pulling-from-MobileOrg.html#Pulling-from-MobileOrg) 
 can you name the file something else and see if that works for you?

You were right. I renamed it to essai.org and it's working now.

Also, I noticed a recent fork in your project at github. Are we going to
end up with 2 mobileorg applications for android :-) ?

Anyway, thanks for your help and for provinding android users with this
much needed application.

Julien.



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


Re: [Orgmode] MobileOrg Android 0.1_alpha

2010-05-24 Thread Matthew Jones
Hey Julien,

The other branch I've been working on is a replacement Preferences screen
that fits the Android paradigm for getting and saving preferences... we need
a better way to represent the preferences so that it's not too difficult to
add new settings and have them be available to the application.   Once I'm
finished with those changes I will merge them back into my 'master' branch
which is where I cut releases from.   There are also some branches
maintained by other people that are features that I hope to merge in very
soon... don't worry, there will be no fragmentation of this application.
Glad to know changing the file name worked for you... let me know if you
discover any other issues.

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Mon, May 24, 2010 at 10:04 AM, julien cubizolles j.cubizol...@free.frwrote:

 Le lundi 24 mai 2010 à 09:52 -0400, Matthew Jones a écrit :
  You should know that 'mobileorg.org' is the filename used by MobileOrg
  when capturing new notes
  (see:
 http://orgmode.org/manual/Pulling-from-MobileOrg.html#Pulling-from-MobileOrg)
 can you name the file something else and see if that works for you?

 You were right. I renamed it to essai.org and it's working now.

 Also, I noticed a recent fork in your project at github. Are we going to
 end up with 2 mobileorg applications for android :-) ?

 Anyway, thanks for your help and for provinding android users with this
 much needed application.

 Julien.



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

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


Re: [Orgmode] Xemacs incompatibilities

2010-05-24 Thread Michael Sperber

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

 On May 17, 2010, at 4:39 PM, Michael Sperber wrote:

 In particular, fixing the require won't be enough: org-babel-python.el
 uses `run-python' and interacts with the inferior Python, whereas
 python-mode.el defines `py-shell'.

 Should I try to abstract over the differences?

 Yes, this would be much appreciated. (I think, Eric or Dan?)

OK, I've attached a patch that makes `org-babel-python' work on XEmacs.
Most of the issues are pure XEmacs issues.  Notes:

- XEmacs doesn't have [[:digit:]] - I hope to rectify this in the
  future, but it seems there's no downside in this particular case to
  replacing by [0-9].
- XEmacs doesn't have `move-end-of-line', but does have `end-of-line'.
  I don't understand the intent of having both of these, but the code
  seems fine with `end-of-line'.
- It seems there are way too few `require's throughout org-babel.  I
  don't know if it's OK to add the ones I needed.
- `org-babel-python-evaluate' looked broken as-is: It doesn't use the
  `body' argument properly, the result is (I think) processed in the
  wrong order and not properly split into lines.  I've fixed all these,
  but a review is probably in order.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
diff --git a/contrib/babel/lisp/langs/org-babel-R.el 
b/contrib/babel/lisp/langs/org-babel-R.el
index 289c73d..c1dd67a 100644
--- a/contrib/babel/lisp/langs/org-babel-R.el
+++ b/contrib/babel/lisp/langs/org-babel-R.el
@@ -89,7 +89,7 @@ called by `org-babel-execute-src-block'.
   vars)))
 (org-babel-comint-in-buffer session
   (mapc (lambda (var)
-  (move-end-of-line 1) (insert var) (comint-send-input nil t)
+  (end-of-line 1) (insert var) (comint-send-input nil t)
   (org-babel-comint-wait-for-output session)) var-lines))
 session))
 
diff --git a/contrib/babel/lisp/langs/org-babel-octave.el 
b/contrib/babel/lisp/langs/org-babel-octave.el
index 41a5be6..6cb244f 100644
--- a/contrib/babel/lisp/langs/org-babel-octave.el
+++ b/contrib/babel/lisp/langs/org-babel-octave.el
@@ -92,7 +92,7 @@ specifying a variable of the same value.
  vars)))
 (org-babel-comint-in-buffer session
   (mapc (lambda (var)
-  (move-end-of-line 1) (insert var) (comint-send-input nil t)
+  (end-of-line 1) (insert var) (comint-send-input nil t)
   (org-babel-comint-wait-for-output session)) var-lines))
 session))
 
diff --git a/contrib/babel/lisp/langs/org-babel-python.el 
b/contrib/babel/lisp/langs/org-babel-python.el
index ea2a217..6c8e5de 100644
--- a/contrib/babel/lisp/langs/org-babel-python.el
+++ b/contrib/babel/lisp/langs/org-babel-python.el
@@ -30,6 +30,8 @@
 
 ;;; Code:
 (require 'org-babel)
+(require 'org-babel-tangle)
+(require 'org-babel-comint)
 (require (if (featurep 'xemacs) 'python-mode 'python))
 
 (org-babel-add-interpreter python)
@@ -75,7 +77,7 @@ called by `org-babel-execute-src-block'.
  vars)))
 (org-babel-comint-in-buffer session
   (mapc (lambda (var)
-  (move-end-of-line 1) (insert var) (comint-send-input nil t)
+  (end-of-line 1) (insert var) (comint-send-input)
   (org-babel-comint-wait-for-output session)) var-lines))
 session))
 
@@ -123,7 +125,21 @@ then create.  Return the initialized session.
   (save-window-excursion
 (let* ((session (if session (intern session) :default))
(python-buffer (org-babel-python-session-buffer session)))
-  (run-python)
+  (cond
+   ((fboundp 'run-python) ; python.el
+   (run-python))
+   ((fboundp 'py-shell) ; python-mode.el
+   ;; `py-shell' creates a buffer whose name is the value of
+   ;; `py-which-bufname' with '*'s at the beginning and end
+   (let* ((bufname (if python-buffer
+   (replace-regexp-in-string ^\\*\\([^*]+\\)\\*$ 
\\1 python-buffer) ; zap surrounding *
+ (concat Python- (symbol-name session
+  (py-which-bufname bufname)) ; avoid making a mess with 
buffer-local
+ (py-shell)
+ (setq python-buffer (concat * bufname *
+   (t
+   (error No function available for running an inferior python.)))
+   
   (setq org-babel-python-buffers (cons (cons session python-buffer)
   (assq-delete-all session 
org-babel-python-buffers)))
   session)))
@@ -200,19 +216,24 @@ last statement in BODY, as elisp.
 (org-babel-comint-in-buffer buffer
   (let* ((raw (org-babel-comint-with-output buffer 
org-babel-python-eoe-indicator t
 ;; for some reason python is fussy, and likes enters after 
every input
-(mapc (lambda (statement) (insert statement) 
(comint-send-input nil t))
-  (split-string (org-babel-trim full-body) [\r\n]+))
-(comint-send-input nil 

[Orgmode] Re: Co-maintainer, a least for some time?

2010-05-24 Thread Uday S Reddy

On 5/20/2010 6:52 PM, Thomas Renkert wrote:

What about using launchpad.net for bugtracking?

Bugreports and code reviews can be done via email so they could be cc:ed
to the traditional mailing list while they would show up at the same
time in the web interface.

Also, launchpad encourages more non-programming users to send in and
react on bugs and patches via the answers-interface.

By this, maybe at least some of the maintenance tasks can be distributed
more evenly among people who would occasionaly check out a few lines of
code but who don't feel familiar enough with lisp an a large scale.


Plus 1 for Launchpad.

We use it for maintaining VM and the collection of facilities on the site work 
quite well.  The main downside is its over-reliance on the web.  The other is 
that it uses Bazaar for version control, which is probably not as streamlined 
as Git.

But Launchpad is an integrated project management site that allows you to 
schedule milestores/releases, allocate bugs/issues to them, and makes sure that 
everything gets done.  It provides for a variety of roles such as bug 
supervisor, driver, release manager etc., and allow for bugs/issues to be 
allocated to various members of the team.  For a large team of contributors, 
which is what Org mode seems to be tending towards, it could be a big win.

You can check out the VM home page, https://launchpad.net/vm, to see how it 
works.

Cheers,
Uday



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


[Orgmode] Re: Ignoring non-existent agenda files

2010-05-24 Thread Clifford Caoile
Hello emacs-orgmode mailing list:

I too would like the ability for org-mode to ignore (silently)
non-existent agenda files. This has been discussed before on the
mailing list [1].

Basically my use case is with Emacs on Windows. I have one Org Agenda
file on removable storage (USB memory), which I want to use from
multiple computers, so sometimes that file is not available. I tried
modifying the org-mode elisp files as shown below. When the
interactive prompt non-existent file filename.. [R]emove from list
or [A]bort? is shown, I press the c key to continue.

---gitk output---
[author/committer is me, but info is redacted]
Parent: 6f3026edf161ae2d721f4ac04ed50fdebb16353d (Release 6.35g)

Continuing loading when agenda org files do not exist temporarily (press c)

- lisp/org.el -
index c89c5ac..89c5d88 100644
@@ -14896,6 +14896,8 @@ Optional argument FILE means use this file
instead of the current.
((equal r ?r)
(org-remove-file file)
(throw 'nextfile t))
+   ((equal r ?c)
+   (throw 'nextfile t))
(t (error Abort))

 (defun org-get-agenda-file-buffer (file)
---gitk output end---

Unfortunately, the above doesn't work correctly. I have to press c
multiple times in order to continue.

I think the workaround suggested by Carsten Dominik [1], which is to
delete non-existent files from the org-agenda-files variable once,
could work for me if I change it to check the existence of the files
every time. Do you think this can be implemented as an elisp defadvice
on org-agendaf? Or is there some better way?

References:
[1] http://thread.gmane.org/gmane.emacs.orgmode/17408

Best regards and TIA,
Clifford Caoile

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


Re: [Orgmode] One org file, multiple exports, is it possible?

2010-05-24 Thread Thomas S. Dye

Aloha Carsten,

Thanks for looking into this.  I'm trying to document the different  
ways to export part of an org file to LaTeX in the hope of augmenting  
the tutorial on Worg.  I thought I understood the tag selection logic,  
so the results I got puzzled me.  Now that I know the expected  
behavior, I'll look more closely to see why I'm not getting it.   
Hopefully, I'll be able to puzzle it through myself and won't have to  
pester you and the list with my idea of a minimal .emacs, etc.  I  
appreciate your offer to take another look if I'm not successful.


All the best,
Tom

On May 23, 2010, at 7:20 PM, Carsten Dominik wrote:



On May 24, 2010, at 12:01 AM, Thomas S. Dye wrote:


Thanks Carsten,

That was it.  It works with just the select tags here, too.

One more query.  I get different export results depending on where  
I specify the select tag.  Given the following org-mode file,  
specifying the select tag in the file header with # 
+EXPORT_SELECT_TAGS: @WORK exports only the tree tagged with @WORK,  
but specifying the select tag in the publishing setup with :select- 
tags (@WORK), and without any specification in the file header,  
exports two trees, the first untagged tree and the tree tagged with  
@WORK.


Is this the expected behavior?


Of course not. And I cannot reproduce it either.  Maybe you need to  
make me an exact test case, with minimal .emacs, and both testcase  
files.  Make it as a zip archive, so that I am sure I have the same  
amount of whitespace at the beginning of the files etc.


Thanks.

- Carsten



-- org file -

* Untagged notes before tags
Where do these go?

* Work  
notes 
  :@WORK:

This should end up somewhere.

* Home  
notes 
  :@HOME:

This should end up somewhere else.

-- org file -

All the best,
Tom

On May 23, 2010, at 10:57 AM, Carsten Dominik wrote:



On May 23, 2010, at 8:49 PM, Thomas S. Dye wrote:


Aloha all,

Karl's setup specified keyword arguments for :select-tags but not  
for :exclude-tags.  When I tried this setup with only :select- 
tags it worked as expected for the select tag that occurs first  
in the Org-mode file, but the publishing project defined for the  
select tag that occurs second in the Org-mode file did not work  
as expected. In this case, trees with both select tags appear in  
the output file.


I solved my problem by also specifying exclude tags.

Here is the setup that worked for me.

 .emacs fragment --

(add-to-list 'org-publish-project-alist
   '(work
 :base-directory ~/org/temp/
 :base-extension org
 :publishing-directory ~/org/temp/publish-work/
 :publishing-function org-publish-org-to-latex
 :select-tags (@WORK)
 :exclude-tags (@HOME)
 :title Work Notes
 :include (index.org)
 :exclude \\.org$
 ))

(add-to-list 'org-publish-project-alist
   '(home
 :base-directory ~/org/temp/
 :base-extension org
 :publishing-directory ~/org/temp/publish-home/
 :publishing-function org-publish-org-to-latex
 :select-tags (@HOME)
 :exclude-tags (@WORK)
 :title Home Phone
 :include (index.org)
 :exclude \\.org$
 ))

 .emacs fragment --

 org-mode file --
* Work  
notes 
  :@WORK:

This should end up in publish-work.

* Home  
notes 
  :@HOME:

This should end up in publish-home.
 org-mode file --

I'm wondering, is it really possible to get the expected results  
specifying only select tags and not exclude tags?


Works perfectly fine for me!

Note that changing the publishing alist does not trigger  
republishing.  Use C-u with the publishing command...


- Carsten




All the best,
Tom

On May 23, 2010, at 6:31 AM, Karl Martino wrote:


Hi,

Ah! This worked once I tried this tip Carsten - thanks!  I  
should have

realized that the buffer setting was defeating that there.

You should *not* have a #+TITLE line in the buffer, and you  
should *not*

have  subtree marked - then :title is used.


Eric, thanks for the tip as well.  I will check out org-jekyll  
even
though this worked because producing a blog or some kind of  
knowledge

base from my single-org-mode-life-file sounds great :)

Thanks,

Karl

On Sun, May 23, 2010 at 12:17 PM, Carsten Dominik
carsten.domi...@gmail.com wrote:


On May 23, 2010, at 2:22 PM, Karl Martino wrote:


Hi Carsten,

Thanks for help, unfortunately I tried :title and it is  
ignored.


No, it does in fact work, I just tested it.  Here is the setup  
I used:


(setq org-publish-project-alist
 '((ttt

Re: [Orgmode] GitHub

2010-05-24 Thread Bastien
(Sorry for the late and probably outdated answer.)

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

 - Bastien - I guess on the web server, we would simply make a
   new clone from the new location, right?

Right :)

-- 
 Bastien

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


[Orgmode] Proposal: Emtest as tester

2010-05-24 Thread Tom Breton (Tehom)
At Carsten's request, I am proposing emtest as the tester for
org-mode.  I would like to hear if there are any objections or
questions.

** About Emtest

Emtest is an emacs-based test framework.  It reads tests, runs them on
command and presents their results.  Test suites can be run by suite,
by clause, or by library.

It is extensible and modular.  Nearly everything about it can be
replaced or extended.

One important feature is its testhelp libraries:

 * mocks/filebuf - for making mock files and buffers to run tests in.
 * mocks/dirtree - for making mock directory trees.
 * deep-type-checker - for testing that objects, especially
   structures, are type-correct right down to their leaves.
 * match - for pattern-matching.  When you want to test return values
   or similar, but some fields or elements don't have stable values
   (say, a timestamp or a UUID).
 * tagnames - extremely useful for defining test data and iterating
   over examples.
 * testpoint - useful for:
   1. testing functionality that is called deep inside something else,
  where writing a viable test would mean nearly cloning the
  something else to get the calling conditions right.
   2. Testing functionality that uses other functionality that can't
  be easily controlled by passing arguments.
   3. Testing that under given circumstances a certain point is
  reached, not reached, or reached the right number of times.

Also, in less than perfect shape right now:

 * mocks/keystuffer - work in progress, for capturing canned user input
 * misc and standard - standard testhelp functions.  Works but
   undergoing reorganization.
 * types - type specifications, extending what cl provides.  Right
   now, just a few that I needed.
 * persist - useful for tests of inspected output.  Not working right
   now due to redesign of an underlying package.

** Some questions

  * Where to include it:

* I'm proposing to put it under org-mode/testing/ So the directory
  structure would look like:

  * org-mode

* lisp

* (etc)

* testing

  * emtest

* Many files

  * Some support
  * packages emtest
  * uses.

  * org-agenda

* tests.el

* (And other test files)

  * org-archive

* tests.el

  * org-ascii

  * etc (the other org files' directories of test files)

* (other existing org directories)

  * Should testing of contrib files be in a separate directory?  It's
not clear to me that it needs to be or should be.

  * Loading.

Of course this shouldn't require much extra work to build and
install.  Yet there's a case to be made for not building or
installing it by default, them that don't use it doesn't pay a
cost.

So I'm thinking I should add another target to the makefile to
install it, as well as (of course) a test target.

  * How to include it, git-wise.

What git wants to do with included external projects is to make
them submodules.  However, I'm told that's a pain to deal with,
moreso from the other end than from mine.  And it does seem like it
would be.  Basically git treats a submodule as a single thing, but
still signs it version-wise with a hex ID, and wants it to be the
correct version.  So git insulates you just a little bit, at the
cost of having to deal with an additional repository.

So I'm thinking I'd just include it literally and if that proves
hard to maintain then we still have the other option.


 Tom Breton (Tehom)



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


[Orgmode] Bug: string-match-p does not exist in Emacs 22 [6.36trans (release_6.36.102.g67b5)]

2010-05-24 Thread Bernt Hansen

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


Commit 7831cb788504d4b44221f4a898b6cabaaed4c422 introduced a check using
string-match-p which fails in Emacs 22.

I'm trying to publish my org-mode document update and get the following
stack dump

-Bernt

Debugger entered--Lisp error: (void-function string-match-p)
  (string-match-p ^// str)
  (and type (string-match-p ^// str))
  (if (and type (string-match-p ^// str)) (concat type : str) str)
  (let ((str ...)) (if (and type ...) (concat type : str) str))
  (setq thefile (let (...) (if ... ... str)))
  (let* ((filename path) (components-1 ...) (components-2 ...) (type ...) 
(thefile ...)) (cond (... ...) (t)) (setq thefile (let ... ...)) (if (and 
may-inline-p ...) (progn ... ...) (concat a href=\ thefile \ attr  
... /a)))
  (progn (let* (... ... ... ... ...) (cond ... ...) (setq thefile ...) (if ... 
... ...)))
  (unwind-protect (progn (let* ... ... ... ...)) (set-match-data 
save-match-data-internal (quote evaporate)))
  (let ((save-match-data-internal ...)) (unwind-protect (progn ...) 
(set-match-data save-match-data-internal ...)))
  (save-match-data (let* (... ... ... ... ...) (cond ... ...) (setq thefile 
...) (if ... ... ...)))
  org-html-make-link((:latex-image-options width=10em :exclude-tags 
(noexport) :select-tags (export) :email be...@norang.ca :author Bernt 
Hansen :auto-postamble t :auto-preamble t :postamble nil :preamble nil 
:publishing-directory /ssh:www-d...@www:~/doc.norang.ca/htdocs :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-extension html 
:inline-images t :convert-org-links t :agenda-style  :style-extra link 
rel=\stylesheet\ href=\http://doc.norang.ca/org.css\; type=\text/css\ / 
:style link rel=\stylesheet\ href=\/org.css\ type=\text/css\ / 
:style-include-scripts t :style-include-default nil :table-auto-headline t 
:tables t :time-stamp-file t ...) file 
#(cat5_7956760a6b96bf17f5fb7bbb048d0b1645831aa7.png 0 4 (org-attr nil face 
org-link org-label nil org-attributes nil org-caption nil font-lock-fontified t 
fontified t org-protected t org-no-description t) 4 40 (org-attr nil face 
org-link org-label nil org-attributes nil org-caption nil org-protected t 
org-no-description t) 40 46 (org-attr nil face org-link org-label nil 
org-attributes nil org-caption nil org-protected t org-no-description t) 46 49 
(org-attr nil face org-link org-label nil org-attributes nil org-caption nil 
font-lock-fontified t fontified t org-protected t org-no-description t)) nil 
#(cat5_7956760a6b96bf17f5fb7bbb048d0b1645831aa7.png 0 4 (face org-link 
fontified t font-lock-fontified t org-caption nil org-attributes nil org-label 
nil) 4 40 (face org-link org-caption nil org-attributes nil org-label nil) 40 
46 (face org-link org-caption nil org-attributes nil org-label nil) 46 49 (face 
org-link fontified t font-lock-fontified t org-caption nil org-attributes nil 
org-label nil)) nil 45)
  (if (and (functionp link-validate) (not ...)) desc (org-html-make-link 
opt-plist file path-1 fragment-1 desc-2 attr (org-html-should-inline-p path-1 
descp)))
  (setq rpl (if (and ... ...) desc (org-html-make-link opt-plist file path-1 
fragment-1 desc-2 attr ...)))
  (let* ((components ...) (path-1 ...) (fragment-0 ...) (fragment-1 ...) 
(desc-2 ...)) (setq rpl (if ... desc ...)))
  (progn (let* (... ... ... ... ...) (setq rpl ...)))
  (unwind-protect (progn (let* ... ...)) (set-match-data 
save-match-data-internal (quote evaporate)))
  (let ((save-match-data-internal ...)) (unwind-protect (progn ...) 
(set-match-data save-match-data-internal ...)))
  (save-match-data (let* (... ... ... ... ...) (setq rpl ...)))
  (cond ((equal type internal) (let ... ...)) ((and ... ...) (save-match-data 
... ...)) ((member type ...) (setq rpl ...)) ((member type ...) (setq rpl ...)) 
((string= type coderef) (let* ... ...)) ((functionp ...) (setq rpl ...)) 
((string= type file) (save-match-data ...)) (t (setq rpl ...)))
  (while (string-match org-bracket-link-analytic-regexp++ line start) (setq 
start (match-beginning 0)) (setq path (save-match-data ...)) (setq type (cond 
... ... ...)) (setq path (org-extract-attributes ...)) (setq attr 
(get-text-property 0 ... path)) (setq desc1 (if ... ...) desc2 (if ... ... 
path) descp (and desc1 ...) desc (or desc1 desc2)) (cond (... ...) (... ...) 
(... ...) (... ...) (... ...) (... ...) (... ...) (t ...)) (setq line 
(replace-match rpl t t line) start (+ start ...)))
  (catch (quote nextline) (when (and inquote ...) (insert /pre\n) 

Re: [Orgmode] One org file, multiple exports, is it possible?

2010-05-24 Thread Thomas S. Dye

Aloha Carsten,

I think I need to know what is meant by minimal .emacs.

I've poked around quite a bit now and have discovered two things:

1) Two lines in Karl's org-publish-project-alist triggered the  
unexpected behavior.  These are the lines with the :include  
and :exclude keywords.
2) The unexpected behavior only occurs when org-publish-project-alist  
also contains a project of the form (project-name :components  
(project-name project-name ...)).  Here, I've only checked the  
situation where the offending project involves sub-projects that are  
not Karl's.


I have two reservations about putting together a minimal .emacs:

1) I'm using Eric Schulte's literate emacs starter kit, so my  
initialization files are split up into many parts, only two of which I  
fiddle with.  I'm happily ignorant of what goes on before my two org  
configuration files get processed by Eric's code.
2) The org-publish-project-alist variable in my configuration contains  
paths that are (probably) unique to my system.


That said, if a minimal .emacs is required, please give me some  
direction and I'll do what I can.


All the best,
Tom

On May 23, 2010, at 7:20 PM, Carsten Dominik wrote:



On May 24, 2010, at 12:01 AM, Thomas S. Dye wrote:


Thanks Carsten,

That was it.  It works with just the select tags here, too.

One more query.  I get different export results depending on where  
I specify the select tag.  Given the following org-mode file,  
specifying the select tag in the file header with # 
+EXPORT_SELECT_TAGS: @WORK exports only the tree tagged with @WORK,  
but specifying the select tag in the publishing setup with :select- 
tags (@WORK), and without any specification in the file header,  
exports two trees, the first untagged tree and the tree tagged with  
@WORK.


Is this the expected behavior?


Of course not. And I cannot reproduce it either.  Maybe you need to  
make me an exact test case, with minimal .emacs, and both testcase  
files.  Make it as a zip archive, so that I am sure I have the same  
amount of whitespace at the beginning of the files etc.


Thanks.

- Carsten



-- org file -

* Untagged notes before tags
Where do these go?

* Work  
notes 
  :@WORK:

This should end up somewhere.

* Home  
notes 
  :@HOME:

This should end up somewhere else.

-- org file -

All the best,
Tom

On May 23, 2010, at 10:57 AM, Carsten Dominik wrote:



On May 23, 2010, at 8:49 PM, Thomas S. Dye wrote:


Aloha all,

Karl's setup specified keyword arguments for :select-tags but not  
for :exclude-tags.  When I tried this setup with only :select- 
tags it worked as expected for the select tag that occurs first  
in the Org-mode file, but the publishing project defined for the  
select tag that occurs second in the Org-mode file did not work  
as expected. In this case, trees with both select tags appear in  
the output file.


I solved my problem by also specifying exclude tags.

Here is the setup that worked for me.

 .emacs fragment --

(add-to-list 'org-publish-project-alist
   '(work
 :base-directory ~/org/temp/
 :base-extension org
 :publishing-directory ~/org/temp/publish-work/
 :publishing-function org-publish-org-to-latex
 :select-tags (@WORK)
 :exclude-tags (@HOME)
 :title Work Notes
 :include (index.org)
 :exclude \\.org$
 ))

(add-to-list 'org-publish-project-alist
   '(home
 :base-directory ~/org/temp/
 :base-extension org
 :publishing-directory ~/org/temp/publish-home/
 :publishing-function org-publish-org-to-latex
 :select-tags (@HOME)
 :exclude-tags (@WORK)
 :title Home Phone
 :include (index.org)
 :exclude \\.org$
 ))

 .emacs fragment --

 org-mode file --
* Work  
notes 
  :@WORK:

This should end up in publish-work.

* Home  
notes 
  :@HOME:

This should end up in publish-home.
 org-mode file --

I'm wondering, is it really possible to get the expected results  
specifying only select tags and not exclude tags?


Works perfectly fine for me!

Note that changing the publishing alist does not trigger  
republishing.  Use C-u with the publishing command...


- Carsten




All the best,
Tom

On May 23, 2010, at 6:31 AM, Karl Martino wrote:


Hi,

Ah! This worked once I tried this tip Carsten - thanks!  I  
should have

realized that the buffer setting was defeating that there.

You should *not* have a #+TITLE line in the buffer, and you  
should *not*

have  subtree marked - then :title is used.


Eric, thanks 

[Orgmode] Bug: Publish cache files have invalid read syntax for Emacs 22 [6.36trans (release_6.36.98.g15539)]

2010-05-24 Thread Bernt Hansen

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


The cache files for publishing generated by org-mode are no longer
readable by Emacs 22.

,[ doc-org.cache ]
| (setq org-publish-cache
|   #hash-table 'equal nil 74/100 0x91e7e00)
`

Debugger entered--Lisp error: (invalid-read-syntax #)
  eval-buffer(#buffer  *load* nil /home/bernt/.org-timestamps/doc-org.cache 
nil t)  ; Reading at buffer position 28
  load-with-code-conversion(/home/bernt/.org-timestamps/doc-org.cache 
/home/bernt/.org-timestamps/doc-org.cache nil nil)
  load(/home/bernt/.org-timestamps/doc-org.cache nil nil t)
  load-file(/home/bernt/.org-timestamps/doc-org.cache)
  (if cexists (load-file cache-file))
  (let* ((cache-file ...) (cexists ...)) (if cexists (load-file cache-file)) 
(unless org-publish-cache (setq org-publish-cache ...) (org-publish-cache-set 
:project: project-name) (org-publish-cache-set :cache-file: cache-file)) 
(unless cexists (org-publish-write-cache-file nil)))
  (if (and org-publish-cache (string= ... project-name)) nil (when 
org-publish-cache (org-publish-reset-cache)) (let* (... ...) (if cexists ...) 
(unless org-publish-cache ... ... ...) (unless cexists ...)))
  (unless (and org-publish-cache (string= ... project-name)) (when 
org-publish-cache (org-publish-reset-cache)) (let* (... ...) (if cexists ...) 
(unless org-publish-cache ... ... ...) (unless cexists ...)))
  org-publish-initialize-cache(doc-org)
  (lambda (project) (org-publish-initialize-cache (car project)) (let* (... ... 
... ... ... ... ... ... file) (when preparation-function ...) (if sitemap-p 
...) (while ... ...) (when ... ... ...) (when completion-function ...) 
(org-publish-write-cache-file)))((doc-org :base-directory 
~/git/doc.norang.ca/ :publishing-directory 
/ssh:www-d...@www:~/doc.norang.ca/htdocs :recursive t :section_numbers nil 
:table-of-contents nil :base-extension org :publishing-function 
(org-publish-org-to-html org-publish-org-to-org) :plain-source t 
:htmlized-source t :style-include-default nil :style link rel=\stylesheet\ 
href=\/org.css\ type=\text/css\ / :author-info nil :creator-info nil))
  mapc((lambda (project) (org-publish-initialize-cache (car project)) (let* 
(... ... ... ... ... ... ... ... file) (when preparation-function ...) (if 
sitemap-p ...) (while ... ...) (when ... ... ...) (when completion-function 
...) (org-publish-write-cache-file))) ((doc-org :base-directory 
~/git/doc.norang.ca/ :publishing-directory 
/ssh:www-d...@www:~/doc.norang.ca/htdocs :recursive t :section_numbers nil 
:table-of-contents nil :base-extension org :publishing-function 
(org-publish-org-to-html org-publish-org-to-org) :plain-source t 
:htmlized-source t :style-include-default nil :style link rel=\stylesheet\ 
href=\/org.css\ type=\text/css\ / :author-info nil :creator-info nil) 
(doc-extra :base-directory ~/git/doc.norang.ca/ :publishing-directory 
/ssh:www-d...@www:~/doc.norang.ca/htdocs :base-extension 
css\\|pdf\\|png\\|jpg\\|gif :publishing-function org-publish-attachment 
:recursive t :author nil) (doc-org-mode :base-directory ~/git/org-mode-doc/ 
:publishing-directory /ssh:www-d...@www:~/doc.norang.ca/htdocs :recursive t 
:section_numbers nil :table-of-contents nil :base-extension org 
:publishing-function (org-publish-org-to-html org-publish-org-to-org) 
:plain-source t :htmlized-source t :style-include-default nil :style link 
rel=\stylesheet\ href=\/org.css\ type=\text/css\ / :author-info nil 
:creator-info nil) (doc-org-mode-extra :base-directory ~/git/org-mode-doc/ 
:publishing-directory /ssh:www-d...@www:~/doc.norang.ca/htdocs 
:base-extension css\\|pdf\\|png\\|jpg\\|gif :publishing-function 
org-publish-attachment :recursive t :author nil)))
  org-publish-projects(((doc :components (doc-org doc-extra 
doc-org-mode doc-org-mode-extra
  (let* ((org-publish-use-timestamps-flag ...)) (org-publish-projects (list 
project)))
  (save-window-excursion (let* (...) (org-publish-projects ...)))
  org-publish((doc :components (doc-org doc-extra doc-org-mode 
doc-org-mode-extra)))
  (let ((project ...) (org-publish-use-timestamps-flag ...)) (if (not project) 
(error File %s is not part of any known project ...)) (org-publish project))
  (save-window-excursion (let (... ...) (if ... ...) (org-publish project)))
  org-publish-current-project()
  bh/save-then-publish()
  call-interactively(bh/save-then-publish)
  recursive-edit()
  byte-code(Æ @Ç=ƒ!ÈÉÊ\ˆËÉ!‰A@)¢Ì=ƒ!ÈÍÊ\ˆÎ!ˆÏ ˆÐ!ˆ\fƒcÑed\
VƒWebˆÒ
¥yˆ`dbˆÒ
¥
Zyˆ`|ˆ)ÓcˆebˆÔÕÖ \ˆ× ˆÔØ!ˆÙÊÔØ!ˆŠÚ ˆ+ه [unread-command-char 
debugger-args x debugger-buffer noninteractive debugger-batch-max-lines -1 
debug backtrace-debug 4 t backtrace-frame lambda 5 pop-to-buffer debugger-mode 

[Orgmode] Re: One org file, multiple exports, is it possible?

2010-05-24 Thread Bernt Hansen
Thomas S. Dye t...@tsdye.com writes:

 Aloha Carsten,

 I think I need to know what is meant by minimal .emacs.

I have a minimal.emacs which is a stripped down .emacs that only has
what I need to invoke org-mode for reproducing a problem.

,[ minimal.emacs ]
| (add-to-list 'load-path (expand-file-name ~/git/org-mode/lisp))
| (add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\|txt\\)$ . 
org-mode))
| (setq org-agenda-files '(/tmp/test.org))
| (require 'org-install)
| (require 'org-habit)
| 
| (global-set-key \C-cl 'org-store-link)
| (global-set-key \C-ca 'org-agenda)
| (global-set-key \C-cb 'org-iswitchb)
`

and I load this with emacs -Q -l ~/minimal.emacs.  I'll normally edit it
to add whatever is needed to reproduce the problem in org-mode.

Using a stripped down minimal .emacs files removes broken custom
settings as the cause of the issue and makes it easy to reproduce for
other people.

HTH,
Bernt

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