Re: [O] [babel] inline call within table formula?

2011-07-11 Thread Sebastien Vauban
Hi Eric,

Eric S Fraga wrote:
 Eric Schulte schulte.e...@gmail.com writes:
 The `sbe' macro can be used to evaluate code blocks in table formula.

 Argg, yes, I now remember this coming up in the list a long time
 ago.  Thanks for reminding me.

 I wasn't able to find it using typical keywords unfortunately.  I also
 wasn't able to find it in the info manual.  I'll look around some more.

I confirm it's not easy to find. Did try for 5 mins without success.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [babel] inline call within table formula?

2011-07-11 Thread Bastien
Hi Sébastien,

Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 Eric S Fraga wrote:
 Eric Schulte schulte.e...@gmail.com writes:
 The `sbe' macro can be used to evaluate code blocks in table formula.

 Argg, yes, I now remember this coming up in the list a long time
 ago.  Thanks for reminding me.

 I wasn't able to find it using typical keywords unfortunately.  I also
 wasn't able to find it in the info manual.  I'll look around some more.

 I confirm it's not easy to find. Did try for 5 mins without success.

Patch welcome!

-- 
 Bastien



Re: [O] xemacs error when calling org-install

2011-07-11 Thread Sebastien Vauban
Hi Volker and David,

David Maus wrote:
 At Wed, 08 Dec 2010 10:06:19 +0100, Dr. Volker Zell wrote:
 Under xemacs when calling the following from org-mode-7.3 I get:

 (require 'org-install)  - Wrong number of arguments: custom-autoload, 3

 This is because xemacs defines custom-autoload only with two arguments:

 `custom-autoload' is a compiled Lisp function
   -- loaded from 
 /misc/src/release/xemacs-21.5.28-3/src/xemacs-21.5.28/lisp/custom.elc
 (custom-autoload SYMBOL LOAD)

 Documentation:
 Mark SYMBOL as autoloaded custom variable and add dependency LOAD.

 This is a problem, indeed: The autoloads in org-install.el are
 generated by the Makefile (i.e. make org-install.el).  The stable
 version of Org mode ships with a pre-generated org-install.el and
 without recreating this file with Xemacs it won't run.

 The =custom-autoload= is created only once for ob-tangle.el:

I've tried to run my .emacs against XEmacs, and ran into the same problem.

1. Is nobody using XEmacs with Org-mode or
2. am I missing something big?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] org-capture does not fully clean up after C-c C-k

2011-07-11 Thread Leo
On 2011-06-16 15:51 +0800, Carsten Dominik wrote:
 Hi Leo,

 I am unable to reproduce this.  I do get an empty line the first time,
 but when the empty line is already there, then there is no problem.

 Do you find the insertion of this one empty line a problem?

 - Carsten

Sorry for the long delay. I can reproduce this in Emacs -q with

  (setq org-blank-before-new-entry '((heading)))

Leo



[O] Changing packages and their order in LaTeX export

2011-07-11 Thread Dror Atariah
I need to include 'amsmath' package in my LaTeX export. Using #+LATEX_HEADER: 
\usepackage{xyz} adds it at the end of the list, and then there are LaTeX 
related problems.

I tried to find where the default list is defined - it seems like it is in 
org.el. However, I have several copies of this file, and I don't know which one 
is the right one to change.

So, two questions:
1. Should I change the org.el or is it somewhere else?
2. If it is the org.el, then how can I tell which file is the one which is 
used? Should I restart emacs after each edit of this file for the changes to 
take effect?

Thanks!
Dror Atariah


Re: [O] [babel] inline call within table formula?

2011-07-11 Thread Eric S Fraga
Bastien b...@altern.org writes:

 Hi Sébastien,

 Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 Eric S Fraga wrote:
 Eric Schulte schulte.e...@gmail.com writes:
 The `sbe' macro can be used to evaluate code blocks in table formula.

 Argg, yes, I now remember this coming up in the list a long time
 ago.  Thanks for reminding me.

 I wasn't able to find it using typical keywords unfortunately.  I also
 wasn't able to find it in the info manual.  I'll look around some more.

 I confirm it's not easy to find. Did try for 5 mins without success.

 Patch welcome!

On my TODO list! ;-)

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.6 (release_7.6.35.g30182)



[O] bug#9040: 24.0.50; wrong type argument: listp t when invoking org-ctrl-c-ctrl-c

2011-07-11 Thread Bastien
Hi Martin and Steve,

martin rudalics rudal...@gmx.at writes:

 which is probably the expected behavior.  What shall I do?

Nothing.  I cannot reproduce this error, and this is surely 
an old error -- will be fixed when I commit Org 7.6 or 7.6.1
to Emacs trunk.

Thanks for looking into this,

-- 
 Bastien





[O] Web bookmarks in ORG?

2011-07-11 Thread Angel de Vicente
Hi,

Is there anyone using ORG for keeping web bookmarks? Basically I'm
looking at Delicious-like functionality, where I just put tags to web
addresses and I can search the bookmarks either for their name or with
tags. 

I have looked at webjump and w3m but they seem to keep old-fashioned
ways for organizing the bookmark file. I just thought that perhaps this
could be done with Org. Any ideas?

Thanks,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




[O] [PATCH] `org-set-property' to use the last set property as default prompt

2011-07-11 Thread Bastien
I'm testing whether patchwork catches the patches again.

You are free to test the feature as well :)

From 2064e28c44ffc6f4020c8a5ec46e0d6bcf559c01 Mon Sep 17 00:00:00 2001
From: Bastien Guerry b...@altern.org
Date: Mon, 11 Jul 2011 12:10:32 +0200
Subject: [PATCH] Make `org-set-property' defaults to the last set property.

* org.el (org-last-set-property): New variable.
(org-read-property-name): Use the new variable: the prompt
defaults to the last property set, unless there is a property
in the line at point.
---
 lisp/org.el |   15 +--
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 9cf48f0..00db4d5 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -14115,12 +14115,13 @@ This is computed according to `org-property-set-functions-alist'.
   Read a property name.
   (let* ((completion-ignore-case t)
 	 (keys (org-buffer-property-keys nil t t))
-	 (default-prop (save-excursion
-	 		 (save-match-data
-	 		   (beginning-of-line)
-	 		   (and (looking-at ^\\s-*:\\([^:\n]+\\):)
-	 			(null (string= (match-string 1) END))
-	 			(match-string 1)
+	 (default-prop (or (save-excursion
+			 (save-match-data
+			   (beginning-of-line)
+			   (and (looking-at ^\\s-*:\\([^:\n]+\\):)
+(null (string= (match-string 1) END))
+(match-string 1
+			   org-last-set-property))
 	 (property (org-icompleting-read
 		(concat Property
 			(if default-prop (concat  [ default-prop ]) )
@@ -14136,6 +14137,7 @@ This is computed according to `org-property-set-functions-alist'.
 			  keys)))
 	  property
 
+(defvar org-last-set-property nil)
 (defun org-set-property (property value)
   In the current entry, set PROPERTY to VALUE.
 When called interactively, this will prompt for a property name, offering
@@ -14146,6 +14148,7 @@ in the current file.
   (interactive (list nil nil))
   (let* ((property (or property (org-read-property-name)))
 	 (value (or value (org-read-property-value property
+(setq org-last-set-property property)
 (unless (equal (org-entry-get nil property) value)
   (org-entry-put nil property value
 
-- 
1.7.5.2


-- 
 Bastien


Re: [O] [PATCH] `org-set-property' to use the last set property as default prompt

2011-07-11 Thread Bastien
Bastien b...@altern.org writes:

 I'm testing whether patchwork catches the patches again.

This works fine:

  http://patchwork.newartisans.com/patch/824/

Guys, the patchwork is back usable.

Thanks to John for the time he spent fixing this issue!

-- 
 Bastien



Re: [O] Changing packages and their order in LaTeX export

2011-07-11 Thread Jambunathan K
Dror Atariah dror...@gmail.com writes:

 I need to include 'amsmath' package in my LaTeX export. Using
 #+LATEX_HEADER: \usepackage{xyz} adds it at the end of the list, and
 then there are LaTeX related problems.
 I tried to find where the default list is defined - it seems like it
 is in org.el. However, I have several copies of this file, and I don't
 know which one is the right one to change.

Does M-x customize-group RET org-export-latex RET show something that
could be of interest to you.

As a user, in principle, you should refuse to look at elisp files. But
it's a very good idea to look at the manuals though.

http://orgmode.org/manual/LaTeX-and-PDF-export.html#LaTeX-and-PDF-export

 So, two questions:
 1. Should I change the org.el or is it somewhere else?
 2. If it is the org.el, then how can I tell which file is the one
 which is used? Should I restart emacs after each edit of this file for
 the changes to take effect?

 Thanks!
 Dror Atariah


-- 



Re: [O] Web bookmarks in ORG?

2011-07-11 Thread Jambunathan K


 Hi,

 Is there anyone using ORG for keeping web bookmarks? Basically I'm
 looking at Delicious-like functionality, where I just put tags to web
 addresses and I can search the bookmarks either for their name or with
 tags. 

Look at quickurl. I have been using it for quite sometime now. This is
not Org related.

You can also search for org-protocol + org-capture + firefox and you
will be able to see some solutions that fit your needs.

 I have looked at webjump and w3m but they seem to keep old-fashioned
 ways for organizing the bookmark file. I just thought that perhaps this
 could be done with Org. Any ideas?

 Thanks,

-- 



Re: [O] Changing packages and their order in LaTeX export

2011-07-11 Thread Dror Atariah
 I need to include 'amsmath' package in my LaTeX export. Using
 #+LATEX_HEADER: \usepackage{xyz} adds it at the end of the list, and
 then there are LaTeX related problems.
 I tried to find where the default list is defined - it seems like it
 is in org.el. However, I have several copies of this file, and I don't
 know which one is the right one to change.
 
 Does M-x customize-group RET org-export-latex RET show something that
 could be of interest to you.
This worked for me! Where did you find it in the manual? I looked there. 
Sometimes the manual's instructions are too cryptic for me - in the sense that 
I find the variable name, but I don't know how to change it.
 
 As a user, in principle, you should refuse to look at elisp files. But
 it's a very good idea to look at the manuals though.
Thanks for the tip!

 2. If it is the org.el, then how can I tell which file is the one
 which is used? Should I restart emacs after each edit of this file for
 the changes to take effect?
Can you still answer this question? How can I ask emacs to tell me where is the 
file it is using and should I restart after each such change?

Thanks,
Dror




Re: [O] RFC: Revisit org-export-content-div (in the context of org-s5)

2011-07-11 Thread Bastien
Hi Jambunathan,

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

 Couple of comments wrt org-export-content-div:

 1. Should be renamed to org-export-html-content-div

Done.

 2. If we look at org-s5.el[1], we see the following usage where
apparently div id=content is essentially replaced by div
class=presentation with a bunch of leading and trailing stuff.

 #+begin_src emacs-lisp
   (lambda ()
 (save-excursion
   (replace-regexp
(regexp-quote div id=\content\)
(let ((info `((author . ,author)
  (title . ,title)
  (date . ,(substring date 0 10)
  (join `(div class=\layout\
  div id=\controls\!-- no edit --/div
  div id=\currentSlide\!-- no edit --/div
  div id=\header\/div
  div id=\footer\
  ,(org-fill-template org-s5-title-string-fmt info)
  /div
  /div
  
  div class=\presentation\
  ,(org-fill-template org-s5-title-page-fmt info)))
 #+end_src

 3. Considering (2) above it might be worthwhile defining the
customization as below (for a first cut)

 #+begin_src emacs-lisp
   (defcustom org-export-html-content-div %s div %s %s ; note the html in 
 prefix
 The name of the container DIV that holds all the page contents.
 :group 'org-export-htmlize
 :type 'string)
 #+end_src

This looks to complicated to me.

I've introduced a new defcustom `org-export-html-before-content-div'
which lets the user place arbitrary HTML code before the main container.

org-s5.el could you this instead of replacing the div id=content.

-- 
 Bastien



Re: [O] RFC: Revisit org-export-content-div (in the context of org-s5)

2011-07-11 Thread Bastien
Jambunathan K kjambunat...@gmail.com writes:

 #+begin_src emacs-lisp
   (defcustom org-export-html-content-div %s div %s %s ; note the html in 
 prefix
 The name of the container DIV that holds all the page contents.
 :group 'org-export-htmlize
 :type 'string)
 #+end_src

 Btw, The :group tag seems NOT OK to me as well.

Fixed, thanks!

-- 
 Bastien



Re: [O] Changing packages and their order in LaTeX export

2011-07-11 Thread Bastien
Hi Dror,

please make an effort while quoting people -- your email is barely
readable.  

Dror Atariah dror...@gmail.com writes:

 I need to include 'amsmath' package in my LaTeX export. Using
 #+LATEX_HEADER: \usepackage{xyz} adds it at the end of the list, and
 then there are LaTeX related problems.
 I tried to find where the default list is defined - it seems like it
 is in org.el. However, I have several copies of this file, and I don't
 know which one is the right one to change.
 
 Does M-x customize-group RET org-export-latex RET show something that
 could be of interest to you.
 This worked for me! Where did you find it in the manual? 

Did you look at this section?

  12.6.2 Header and sectioning structure

There is mentioned the `org-export-latex-class' variable.

Then you can do

  C-h v org-export-latex-class RET

to get information about the variable, and see in what customization
group it belongs.

 I looked
 there. Sometimes the manual's instructions are too cryptic for me - in
 the sense that I find the variable name, but I don't know how to change
 it.

Just do `C-h v' after a variable's name, it will describe the variable.
From the buffer containing the description, you can follow a link to
customize it.

 2. If it is the org.el, then how can I tell which file is the one
 which is used? Should I restart emacs after each edit of this file for
 the changes to take effect?

 Can you still answer this question? How can I ask emacs to tell me where is
 the file it is using

C-h v org-export-latex-class RET will tell you.

  and should I restart after each such change?

No.  If you change things in Org Elisp files, you need to reload Org
with M-x org-reload RET

HTH,

PS: While insisting on getting an answer, please be extra careful of
having a readable email ;)

-- 
 Bastien



Re: [O] Changing packages and their order in LaTeX export

2011-07-11 Thread Michael Markert
On 11 Jul 2011, Dror Atariah wrote:
 2. If it is the org.el, then how can I tell which file is the one
 which is used? Should I restart emacs after each edit of this file
 for the changes to take effect?
 Can you still answer this question? How can I ask emacs to tell me
 where is the file it is using and should I restart after each such
 change?

A combination of describe-{function,variable,...} (to get the filename)
and locate-library (to get the exact location -- you can also follow the
link in describe-*) tells you this. And no you don't have to restart
after that change you just have to reload (and recompile beforehand if
it was compiled) it.

But that's only a must if you change the file! A more sensible approach
is using customize. With X-c customize-group RET org RET you can browse
through all org settings that are thought to be changed. And don't
forget to set/save in that dialog.

Michael


pgpjcesvdEKIo.pgp
Description: PGP signature


Re: [O] patch makefile solve a couple debian build problems and a slackware build problem

2011-07-11 Thread Bastien
Hi Achim,

 I went ahead with splitting the Makefile up, it now looks like this:

this looks like a flexible solution we might use.

When you have time, please provide a patch to this effect.

Thanks for you work!

-- 
 Bastien



Re: [O] patch makefile solve a couple debian build problems and a slackware build problem

2011-07-11 Thread Bastien
Hi Achim,

Achim Gratz strom...@nexgo.de writes:

 It looks like the two targets relase and fixrelease have not actually
 been used and at least fixrelease would not do what the comment is
 trying to imply it should be doing.  If nobody uses them, these two
 targets should probably be removed.

The targets release and fixrelease are for Org's maintainers.

 Then there's all the stuff that makes sense only on the orgmode server,
 do not run on your computer: if so, would it not be preferrable to fail
 these targets when not run on the orgmode server, either by checking an
 environment variable or a file that only exists on the server?

Yes -- maybe with a warning like: These target is meant for using by
the maintainers.

The other solution would be to simply remove these target and to use 
a local Makefile on the server.  It's more clean from the user's point 
of view, and just some little extra work for the maintainers.

What would you suggest?

 Is there any reason why the phony targets are not declared to be
 phony?

phony?



 Regards,
 Achim.

-- 
 Bastien



[O] [PATCH] org-latex.el: New defcustom `org-export-latex-quotes' to control quotes.

2011-07-11 Thread Bastien
From 08c8be7e0403f58a16670a84dbd66d7dd34c7b43 Mon Sep 17 00:00:00 2001
From: Bastien Guerry b...@altern.org
Date: Mon, 11 Jul 2011 15:10:00 +0200
Subject: [PATCH] org-latex.el: New defcustom `org-export-latex-quotes' to
 control quotes.

* org-latex.el (org-export-latex-quotes): New defcustom.
(org-export-latex-quotation-marks): Use it.

This allows users to define what quotes they want to use as a
replacement of english double-quotes while exporting to LaTeX.

In particular, if you use the csquote package, you can configure
Org to output something like \endquote{some quoted text} instead
of some quoted text.

Thanks to Frederik for bringing this issue up, and to Thomas S.
Dye, Nick Dokos and Stefan Nobis for elaborating this solution.
---
 lisp/org-latex.el |   53 ++---
 1 files changed, 38 insertions(+), 15 deletions(-)

diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index e1c85ce..34ceca9 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -321,6 +321,32 @@ will be filled with the link, the second with its description.
   :group 'org-export-latex
   :type 'string)
 
+(defcustom org-export-latex-quotes
+  '((fr (\\(\\s-\\|[[(]\\)\ . «~) (\\(\\S-\\)\ . ~») (\\(\\s-\\|(\\)' . '))
+(en (\\(\\s-\\|[[(]\\)\ . ``) (\\(\\S-\\)\ . '') (\\(\\s-\\|(\\)' . `)))
+  Alist for quotes to use when converting english double-quotes.
+
+The CAR of each item in this alist is the language code.
+The CDR of each item in this alist is a list of three CONS:
+- the first CONS defines the opening quote;
+- the second CONS defines the closing quote;
+- the last CONS defines single quotes.
+
+For each item in a CONS, the first string is a regexp
+for allowed characters before/after the quote, the second
+string defines the replacement string for this quote.
+  :group 'org-export-latex
+  :type '(list
+	  (cons :tag Opening quote
+		(string :tag Regexp for char before) 
+		(string :tag Replacement quote ))
+	  (cons :tag Closing quote
+		(string :tag Regexp for char after ) 
+		(string :tag Replacement quote ))
+	  (cons :tag Single quote
+		(string :tag Regexp for char before) 
+		(string :tag Replacement quote 
+
 (defcustom org-export-latex-tables-verbatim nil
   When non-nil, tables are exported verbatim.
   :group 'org-export-latex
@@ -1624,21 +1650,18 @@ links, keywords, lists, tables, fixed-width
 
 (defun org-export-latex-quotation-marks ()
   Export quotation marks depending on language conventions.
-  (let* ((lang (plist-get org-export-latex-options-plist :language))
-	 (quote-rpl (if (equal lang fr)
-			'((\\(\\s-\\)\ «~)
-			  (\\(\\S-\\)\ ~»)
-			  (\\(\\s-\\)' `))
-		  '((\\(\\s-\\|[[(]\\)\ ``)
-			(\\(\\S-\\)\ '')
-			(\\(\\s-\\|(\\)' `)
-(mapc (lambda(l) (goto-char (point-min))
-	(while (re-search-forward (car l) nil t)
-	  (let ((rpl (concat (match-string 1)
- (org-export-latex-protect-string
-  (copy-sequence (cadr l))
-		(org-if-unprotected-1
-		 (replace-match rpl t t) quote-rpl)))
+  (mapc (lambda(l)
+	  (goto-char (point-min))
+	  (while (re-search-forward (car l) nil t)
+	(let ((rpl (concat (match-string 1)
+			   (org-export-latex-protect-string
+(copy-sequence (cdr l))
+	  (org-if-unprotected-1
+	   (replace-match rpl t t) 
+	(cdr (or (assoc (plist-get org-export-latex-options-plist :language)
+			org-export-latex-quotes)
+		 ;; falls back on english
+		 (assoc en org-export-latex-quotes)
 
 (defun org-export-latex-special-chars (sub-superscript)
   Export special characters to LaTeX.
-- 
1.7.5.2


-- 
 Bastien


Re: [O] Calendar-like view of the org-agenda

2011-07-11 Thread Bastien
Marcus Klemm marcus.kl...@googlemail.com writes:

 I love org-mode for its power and flexibility but I grew up using an
 Amiga, laughing at the MS-DOS users with their ancient text mode
 interfaces and I still can't force myself to like that aspect of org.
 So everything that makes it look more graphic is welcome to me.

Com'on Marcus!  I grew up with an ATARI 520ST, close to the Amiga in
graphical possibilities... and I still love plain text :)

-- 
 Bastien



Re: [O] Question to the list about csquotes

2011-07-11 Thread Bastien
Hi Nick, Thomas and Frederik,

I've just sent a patch for this question: it sticks to the 
solution suggested in this thread, with minor variations.
Thanks all for working out this simple solution!

It defines a new `org-export-latex-quotes' variable -- please
see the docstring.

The default behavior reproduces the current behavior, so no
one should be hurt in the process.

Thanks for any feedback,

-- 
 Bastien



Re: [O] Web bookmarks in ORG?

2011-07-11 Thread Jason Dunsmore
Angel de Vicente ang...@iac.es writes:

 Is there anyone using ORG for keeping web bookmarks? Basically I'm
 looking at Delicious-like functionality, where I just put tags to web
 addresses and I can search the bookmarks either for their name or with
 tags.

For a while, I was keeping an Org file with bookmarks organized
del.icio.us-style, eg:

--8---cut here---start-8---
* [[http://url1.com][Title1]] :tag1:tag2:tag3:

Notes...

* [[http://url2.com][Title2]] :tag1:tag2:tag3:

Notes...

* ...
--8---cut here---end---8---

But then I started incorporating the links into the body of my notes (I
keep a notebook directory with an Org file for each broad subject and
Org headings/subheadings for more granular organization).  I found the
web links much more useful in the context of my notes, so I stopped
using the del.icio.us-style format.

Regards,
Jason



Re: [O] [PATCH] org-latex.el: New defcustom `org-export-latex-quotes' to control quotes.

2011-07-11 Thread Stefan Nobis
Bastien b...@altern.org writes:

 Org to output something like \endquote{some quoted text} instead

s/endquote/enquote/

-- 
Until the next mail...,
Stefan.


pgpzl49iatYmp.pgp
Description: PGP signature


Re: [O] Don't ask, don't run

2011-07-11 Thread Ken Williams
Eric Schulte schulte.eric at gmail.com writes:

 There is no way to customize `org-confirm-evaluate' to achieve this
 behavior, however it can be accomplished through creative use of the
 :eval header argument, by using the `org-export-current-backend'
 variable to inhibit evaluation during export.
 
 #+begin_src emacs-lisp :eval (if org-export-current-backend never
  yes) :exports results
   (message launch missles)
 #+end_src

I see, thanks.  Since I'm new to this, can I confirm my understanding 
here?  It tests whether the 'org-export-current-backend' variable is
set, which means we're currently exporting, and if so, we set the 
:eval argument to never.  Otherwise we set it to yes, which means
evaluate it without asking.

Assuming that understanding is correct, I have a couple of followup
questions.

1) http://orgmode.org/manual/eval.html doesn't list the yes option, 

2) Is there a similar variable I might test to check whether it's currently
doing an explicit C-c C-c action?  If there were, I might prefer 
something like :eval (if org-export-current-backend never (if 
org-doing-c-c-c-c yes query)), so that I cover some other
scenario besides export or C-c C-c.

3) Finally, is there a way to add this argument fanciness implicitly
to *all* the source blocks in my file?  Or will it have to go on 
all of them?

Thanks much.

 -Ken




Re: [O] patch makefile solve a couple debian build problems and a slackware build problem

2011-07-11 Thread Achim Gratz
Bastien b...@altern.org writes:
 The targets release and fixrelease are for Org's maintainers.

Yes, but if they've been used, no trace is to be found in the repository
and in any case, what fixrelease is supposed to be doing is not what it
actually does — it's currently an exact copy of release. I'll sort it
out and make a proposal…

 The other solution would be to simply remove these target and to use 
 a local Makefile on the server.  It's more clean from the user's point 
 of view, and just some little extra work for the maintainers.

 What would you suggest?

As detailed in my other posting I'd remove them from the Makefile that
is distributed and the server would have an extra file with those
targets that are useful only there.  Gory details to follow.

 Is there any reason why the phony targets are not declared to be
 phony?

 phony?

A target whose recipe doesn't produce a file with the same name is
called phony in make-speech; I used to call them decoys.  The problem
with that age-old make idiom is when someone inadvertently creates a
file with that name — say, test — and make test suddenly doesn't
work anymore, so most makes allow you to declare them to avoid that
particular trap.


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

SD adaptation for Waldorf Blofeld V1.15B11:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] [babel] inline call within table formula?

2011-07-11 Thread Eric Schulte
Eric S Fraga e.fr...@ucl.ac.uk writes:

 Bastien b...@altern.org writes:

 Hi Sébastien,

 Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 Eric S Fraga wrote:
 Eric Schulte schulte.e...@gmail.com writes:
 The `sbe' macro can be used to evaluate code blocks in table formula.

 Argg, yes, I now remember this coming up in the list a long time
 ago.  Thanks for reminding me.

 I wasn't able to find it using typical keywords unfortunately.  I also
 wasn't able to find it in the info manual.  I'll look around some more.

 I confirm it's not easy to find. Did try for 5 mins without success.

 Patch welcome!

 On my TODO list! ;-)

Fantastic, this is sorely missing from the info manual, although I think
the function documentation should be useful.

Thanks -- Eric

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



Re: [O] Calendar-like view of the org-agenda

2011-07-11 Thread Sebastien Vauban
Hi Tassilo,

Tassilo Horn wrote:
 I've also made the characters used for table rendering customizable, so
 that you can use nice unicode glyphs.

   http://dl.dropbox.com/u/30611246/img/calfw-unicode.png

Now that this has been made configurable, could you share your customization
for getting such a (very) nice view?  Which characters are you using?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] patch makefile solve a couple debian build problems and a slackware build problem

2011-07-11 Thread Achim Gratz
Bastien b...@altern.org writes:
 this looks like a flexible solution we might use.

Good.

 When you have time, please provide a patch to this effect.

I'll be on it, I should have something to show maybe next weekend.
Instead of posting a series of patches to the list, I'll add a feature
branch to my orgmode clone on repo.or.cz — I think that should be easier
to follow since I expect there will be a few versions back-and-forth
before things settle.

 Thanks for you work!

You're welcome.


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

Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] Thanks for Lilypond export (and minor comments)

2011-07-11 Thread Bastien
Hi Suvayu,

thanks for sharing this suggestion and to make it so clear.

I understand the model you describe and I see why it's appropriate for
projects like git -- as IIUC, your proposal is very close to the one
described by git's maintainer.

Let me summarize my ideas about how we should use git for Org.

I have three principles.

(1) git should reduce maintainer(s)'s work
(2) git should let more developers submit patches
(3) git should ease collaboration on fixes and new features

I put them here in priority order.

Yes, it means that I'm more interested in being lazy than in having more
patches, and in having more patches than in easing collaboration between
developers.

I think it works so far for three reasons:

- I'm not *that* lazy :)

- The latest git HEAD is stable enough so that many people live on it,
  and can send feedback on patches.

- Contributors rarely need to collaborate on fixes and features and when
  they do so, they collaborate by discussing on the mailing list.

More branches (master, maint, feature-1,...) means more _incompressible_
work for the maintainers, even when they are ninjas of the git Three Way
Merges.  This additional work is only worth undertaking when people are
*really* using the branches to collaborate -- which is quite unlikely to
happen given the three reasons above, and also given the fact that the
release pace of stable versions is quite fast.

Last but not least, sticking to the current usage of git (i.e. commit
into master as much as possible, commit only to maint for bugfixes that
need to be released independantly) doesn't prevent using public branches
from time to time -- we did it with Julien Danjou before.

Hope it helps understanding my approach!

It's all based on the idea if it works, don't break it.

But I'm open to any change if (and when) we need it.

Best,

-- 
 Bastien



Re: [O] Web bookmarks in ORG?

2011-07-11 Thread Angel de Vicente
Hi,

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

 Angel de Vicente ang...@iac.es writes:

 Is there anyone using ORG for keeping web bookmarks? Basically I'm
 looking at Delicious-like functionality, where I just put tags to web
 addresses and I can search the bookmarks either for their name or with
 tags.

 For a while, I was keeping an Org file with bookmarks organized
 del.icio.us-style, eg:


 --8---cut here---start-8---
 * [[http://url1.com][Title1]] :tag1:tag2:tag3:

 Notes...

 * [[http://url2.com][Title2]] :tag1:tag2:tag3:

 Notes...

 * ...
 --8---cut here---end---8---

I guess I was looking for something a bit more automatic... I would like
to have at least two of the delicious functionalities:

1) to get automatic category suggestion (or at least to get them
completed when pressing TAB or similar), and

2) a nice way to look for all the bookmarks that are in category X

I was looking to have it done perhaps with BBDB, instead, but I wouldn't
like to get a mess when writing mails. 

I'm open to suggestions,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] Web bookmarks in ORG?

2011-07-11 Thread Angel de Vicente
Hi,

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

 Hi,

 Is there anyone using ORG for keeping web bookmarks? Basically I'm
 looking at Delicious-like functionality, where I just put tags to web
 addresses and I can search the bookmarks either for their name or with
 tags. 

 Look at quickurl. I have been using it for quite sometime now. This is
 not Org related.

Thanks, but I'm specifically looking for a way to organize bookmarks
with tags for easy storing/searching, and as far as I can tell, quickurl
does not provide anything in that respect?

Cheers,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] Don't ask, don't run

2011-07-11 Thread Eric Schulte
Ken Williams ken.willi...@thomsonreuters.com writes:

 Eric Schulte schulte.eric at gmail.com writes:

 There is no way to customize `org-confirm-evaluate' to achieve this
 behavior, however it can be accomplished through creative use of the
 :eval header argument, by using the `org-export-current-backend'
 variable to inhibit evaluation during export.
 
 #+begin_src emacs-lisp :eval (if org-export-current-backend never
  yes) :exports results
   (message launch missles)
 #+end_src

 I see, thanks.  Since I'm new to this, can I confirm my understanding 
 here?  It tests whether the 'org-export-current-backend' variable is
 set, which means we're currently exporting, and if so, we set the 
 :eval argument to never.  Otherwise we set it to yes, which means
 evaluate it without asking.

 Assuming that understanding is correct, I have a couple of followup
 questions.

 1) http://orgmode.org/manual/eval.html doesn't list the yes option, 


OK, I've just updated this documentation.  There actually is no yes
option, a more clear version of my snippet above would have set :eval to
nil when not in export.  Any value of :eval which is no never or no
will result in the default behavior as determined by
org-confirm-babel-evaluate.


 2) Is there a similar variable I might test to check whether it's currently
 doing an explicit C-c C-c action?  If there were, I might prefer 
 something like :eval (if org-export-current-backend never (if 
 org-doing-c-c-c-c yes query)), so that I cover some other
 scenario besides export or C-c C-c.


hmm, I'm not sure... you could try `called-interactively-p' e.g.,

  (if (called-interactively-p 'interactive) yes query)


 3) Finally, is there a way to add this argument fanciness implicitly
 to *all* the source blocks in my file?  Or will it have to go on 
 all of them?


Yes, place it in a #+Babel: line at the top of the file, see
http://orgmode.org/manual/Using-header-arguments.html

Best -- Eric


 Thanks much.

  -Ken



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



Re: [O] Thanks for Lilypond export (and minor comments)

2011-07-11 Thread suvayu ali
Hi Bastien,

On Mon, Jul 11, 2011 at 6:50 PM, Bastien b...@altern.org wrote:
 This additional work is only worth undertaking when people are
 *really* using the branches to collaborate -- which is quite unlikely to
 happen given the three reasons above

I failed to consider the above bit of information when I wrote my
earlier email. Given the above, the present development model makes
good sense (simplicity being its _strongest_ point). :)

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] patch makefile solve a couple debian build problems and a slackware build problem

2011-07-11 Thread Bastien
Achim Gratz strom...@nexgo.de writes:

 Yes, but if they've been used, no trace is to be found in the repository
 and in any case, what fixrelease is supposed to be doing is not what it
 actually does — it's currently an exact copy of release. I'll sort it
 out and make a proposal…

Would be nice, thanks.

I never had to use fixrelease so far, no surprise I didn't notice this.

 As detailed in my other posting I'd remove them from the Makefile that
 is distributed and the server would have an extra file with those
 targets that are useful only there.  Gory details to follow.

Okay - thanks!

 A target whose recipe doesn't produce a file with the same name is
 called phony in make-speech; I used to call them decoys.  The problem
 with that age-old make idiom is when someone inadvertently creates a
 file with that name — say, test — and make test suddenly doesn't
 work anymore, so most makes allow you to declare them to avoid that
 particular trap.

I learned something -- thanks for the explanations!

-- 
 Bastien



Re: [O] Web bookmarks in ORG?

2011-07-11 Thread Bastien
Hi Angel,

maybe you can have a look at GNU recutils:

  http://www.gnu.org/s/recutils/

I'd be curious to know if recutils has been used to store
and manage bookmarks, but I think it's a natural fit.

We had some discussion with the author, Jose E. Marchesi, 
who is an this list -- and recutils/org integration is not
impossible either.

HTH,

-- 
 Bastien



Re: [O] Calendar-like view of the org-agenda

2011-07-11 Thread Manuel Hermenegildo

  Sorry for my less experience of orgmode.
  Can I get a sample task file which contains such complex schedules?

I can illustrate the point with a simple one :-):

* TODO Thank Sakurai for a great tool 2011-07-05 Tue  :MH:
* TODO Write paper  2011-07-05 Tue :JF:

We share org files among different people (e.g., for software
projects) and use tags to determine whose task it is and in whose
agenda it should appear.  The first one should appear in MH's agenda
and the second one in JF's agenda. A lot of people use the same to
have, e.g., a home agenda and a work agenda:

* TODO Buy groceries 2011-07-05 Tue  :home:
* TODO Ask boss for a raise  2011-07-05 Tue :work:

Currently, both tasks will appear in the calfw view. 

In the normal org agenda views the necessary filtering is done via the
org-agenda-custom-commands variable, defining a custom agenda
command with a filter (this is the recommended way of creating
different agendas and todo lists in org). For example, to get an
agenda view with only my tasks, which I identfy with the tag MH I
use (this is my normal agenda view):

(setq org-agenda-custom-commands
  (list
(list 
 a Agenda with (only) my tasks (those that have my tag and a date)
 '((agenda 

((org-agenda-skip-function '(my-skip-by-tags MH))
 (org-agenda-overriding-header 
Agenda -- with (only) my tasks (those that have my tag and a 
date))
 ))

(defun my-skip-by-tags (tag)
  Skip tasks except those that contain tag (with inheritance!). 
  (let ((line-end (save-excursion (progn (end-of-line) (point) ;; return pos
(if (or 
 (member tag (org-get-local-tags)) ;; check first if only local (speed)
 (member tag (org-get-tags-at (point))) ;; rest include inherited tags
 ) 
nil ; do not skip
  line-end))) ; skip, continue after that

The particular filter that I use (my-skip-by-tags) is a function that
checks for inherited tags. I am not sure this can be done with
org-agenda-get-day-entries.  This is why I was suggesting perhaps
using a modified version of org-agenda (a back-end) that would feed
the data computed to calfw (the same could be used for all the other
agenda exports). Or perhaps org-agenda-get-day-entries can be made to
call a filter function like the one above?

Cheers,

Manuel


  From: Manuel Hermenegildo he...@fi.upm.es
  To: Tassilo Horn tass...@member.fsf.org
  Cc: Christopher Allan Webber cweb...@dustycloud.org,
   SAKURAI Masashi m.saku...@kiwanami.net,
   emacs-orgmode@gnu.org
  Subject: Re: [O] Calendar-like view of the org-agenda
  Date: Wed, 6 Jul 2011 11:39:47 +0200
  
  
  First, thanks very much to Sakurai for a wonderful tool and having
  integrated it so well with org!
  
For me, creating a custom org agenda with the next 21 days takes
not much less than building an calfw calendar buffer with 42 days.
  
  Same here, the times are comparable. For me building the org calendar
  is a little slower but it makes sense because it is running some
  filters, while calfw is not.  Which brings me to my question, which is
  related to:
  
One thing which I'm currently missing is that the calfw entries
gathered from org are missing the times (if that's specified using the
'time text property) and are sorted in an order I can't understand.
  
  Seems like calfw is ignoring the org priorities and order.  In my case
  the problem is that calfw is gathering all the tasks ignoring my per
  tag filters. I explain: in my case I only want to see in my agenda
  entries that have a certain tag (my tag): I share org files with other
  people and we assign tasks by marking E.g., I am MH and my tasks are
  like:
  
  * TODO Thank Sakurai for a great tool 2011-07-05 Tue  :MH:
  
  which should appear in my agenda and there are other tasks like:
  
  * TODO Write paper  2011-07-05 Tue :JF:
  
  which should only appear in JF's agenda. This is done using a custom
  agenda command that filters by tag.
  
  It seems to me too complicated to try to reproduce all the nuances and
  capabilities of org agenda generation (priorities, filtering, custom
  views, etc.) and do it all again in calfw --it would always be very
  hard to keep them in sync.
  
  I have not had time to look at the code, but perhaps calfw, instead of
  reading directly the org files could instead use the org code that
  generates the agenda and then present the agenda in its very nice and
  graphical way. I.e., an idea would be to add a back end to the code
  that generates the org agenda which, instead of rendering the agenda
  creates the calfw objects.
  
  Or, perhaps even simpler, calfw could simply read the org-agenda
  buffer (colors and all) instead of reading the org files.  
  
  This would have the enormous advantage that it would always generate
  the tasks with the same order, priorities, filters, customizations,
  etc. as the org agenda.
  
  What do you think?
  
  

Re: [O] patch makefile solve a couple debian build problems and a slackware build problem

2011-07-11 Thread Bastien
Achim Gratz strom...@nexgo.de writes:

 I'll be on it, I should have something to show maybe next weekend.
 Instead of posting a series of patches to the list, I'll add a feature
 branch to my orgmode clone on repo.or.cz — I think that should be easier
 to follow since I expect there will be a few versions back-and-forth
 before things settle.

Okay - I'll follow that branch till the change becomes mature.

Thanks,

-- 
 Bastien



Re: [O] Bulk cut in agenda view

2011-07-11 Thread Bastien
Hi Julien,

Julien Cubizolles j.cubizol...@free.fr writes:

 I often need to purge DONE items from my org files. I have set up a
 special agenda view for checking those items and cutting some subtrees
 from it using bulk commands. I'm using a function adapted from the
 example in the manual (I've no idea if it's the best way to do it
 however) : 

 ,
 | (defun bulk-cut ()
 |   (interactive P)
 |   (let* ((marker (or (org-get-at-bol 'org-hd-marker)
 |  (org-agenda-error)))
 |  (buffer (marker-buffer marker)))
 | (with-current-buffer buffer
 |   (save-excursion
 | (save-restriction
 |   (widen)
 |   (goto-char marker)
 |   (org-back-to-heading t)
 |   (org-cut-subtree))
 `

 Typing B f bulk-cut RET removes the selected items but it's a lot of
 typing for a very useful action in my opinion.

 Could it be added to the list of default bulk actions, with a X key
 for example ?

Please test this patch and try to set `org-agenda-bulk-custom-functions'
(see the docstring).  

Thanks for bringing this up!

From 0c90c476015f4b9e20199df30652bb341fd0d811 Mon Sep 17 00:00:00 2001
From: Bastien Guerry b...@altern.org
Date: Mon, 11 Jul 2011 21:48:44 +0200
Subject: [PATCH] org-agenda.el: New variable for custom bulk action
 functions.

* org-agenda.el (org-agenda-bulk-custom-functions): New
variable for custom bulk action functions.
(org-agenda-bulk-action): Use it.

Thanks to Julien Cubizolles for triggering this idea.
---
 lisp/org-agenda.el |   25 -
 1 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 37f8e84..4209b45 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1695,6 +1695,19 @@ the lower-case version of all tags.
   :group 'org-agenda
   :type 'function)
 
+(defcustom org-agenda-bulk-custom-functions nil
+  Alist of characters and custom functions for bulk action.
+For example, this value makes those two functions available:
+
+  '((?R set-category)
+(?C bulk-cut))
+
+With selected entries in an agenda buffer, `B R' will execute
+set-category on the selected entries.  Note that functions in
+this alist don't need to be quoted.
+  :type 'alist
+  :group 'org-agenda)
+
 (eval-when-compile
   (require 'cl))
 (require 'org)
@@ -8149,7 +8162,13 @@ The prefix arg is passed through to the command if possible.
org-agenda-bulk-marked-entries)
 
   ;; Prompt for the bulk command
-  (message Bulk: [r]efile [$]arch [A]rch-sib [t]odo [+/-]tag [s]chd [S]catter [d]eadline [f]unction)
+  (message (concat Bulk: [r]efile [$]arch [A]rch-sib [t]odo
+		[+/-]tag [s]chd [S]catter [d]eadline [f]unction
+		   (when org-agenda-bulk-custom-functions
+		 (concat  Custom: [
+			 (mapconcat (lambda(f) (char-to-string (car f)))
+	org-agenda-bulk-custom-functions )
+			 ]
   (let* ((action (read-char-exclusive))
 	 (org-log-refile (if org-log-refile 'time nil))
 	 (entries (reverse org-agenda-bulk-marked-entries))
@@ -8243,6 +8262,10 @@ The prefix arg is passed through to the command if possible.
 			 (org-agenda-schedule nil time))
 		 (error nil)))
 
+ ((assoc action org-agenda-bulk-custom-functions)
+  (setq cmd (list (cadr (assoc action org-agenda-bulk-custom-functions)))
+	redo-at-end t))
+
  ((equal action ?f)
   (setq cmd (list (intern
 		   (org-icompleting-read Function: 
-- 
1.7.5.2


-- 
 Bastien


Re: [O] [PATCH] was: patch makefile solve a couple debian build problems and a slackware build problem

2011-07-11 Thread Achim Gratz
Bastien b...@altern.org writes:
 Achim and Nick, can I safely apply your patch or was it still a beta
 version?

I've reworked my patch to include a changelog and correct documentation.
Additionally I've now tested it on Windows, both with Cygwin and Msys.

From 11a243c4c01f5c2802328e3e4f7956abbaafd7e8 Mon Sep 17 00:00:00 2001
From: Achim Gratz strom...@stromeko.de
Date: Sun, 10 Jul 2011 08:42:20 +0200
Subject: [PATCH] remove Makefile target install-info-debian, modify
 install-info to be compatible

* Makefile: remove target install-info-debian and modify target
  install-info so that it is compatible with the older dpkg version
  of install-info that resides in /usr/sbin and may be picked up
  when root is installing info files

Initial reporting by Jude DaShiell, suggestions for changing Makefile
by Nick Dokos.  The solution implemented re-arranges the arguments to
install-info to be compatible with both the dpkg and GNU version of
the program.  On Debian, /usr/bin/install-info is actually a wrapper
that calls /usr/bin/ginstall-info and issues the following warning
when called as root:

This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments

This warning can be safely ignored since we actually prefer that GNU
install-info is called even though we've arranged the arguments to
be compatible with dpkg install-info.

Tested on openSuSE Tumbleweed, Win7/Pro (both MSys and Cygwin) and by
Jude DaShiell on Debian Squeeze and Slackware.

TINYCHANGE
---
 Makefile |3 ---
 doc/org.texi |   18 --
 2 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/Makefile b/Makefile
index fe833d7..eb2597f 100644
--- a/Makefile
+++ b/Makefile
@@ -222,9 +222,6 @@ install-lisp: $(LISPFILES) $(ELCFILES)
 install-info: $(INFOFILES)
 	if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
 	$(CP) $(INFOFILES) $(infodir)
-	$(INSTALL_INFO) --info-file=$(INFOFILES) --info-dir=$(infodir)
-
-install-info-debian: $(INFOFILES)
 	$(INSTALL_INFO) --infodir=$(infodir) $(INFOFILES)
 
 autoloads: lisp/org-install.el
diff --git a/doc/org.texi b/doc/org.texi
index 7f92382..c8ff8a0 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -880,15 +880,21 @@ make install
 @end example
 
 Installing Info files is system dependent, because of differences in the
-@file{install-info} program.  In Debian it copies the info files into the
-correct directory and modifies the info directory file.  In many other
-systems, the files need to be copied to the correct directory separately, and
-@file{install-info} then only modifies the directory file.  Check your system
-documentation to find out which of the following commands you need:
+@file{install-info} program.  The following should correctly install the Info
+files on most systems, please send a bug report if not@footnote{The output
+from install-info (if any) is also system dependent.  In particular Debian
+and it's derivatives use two different versions of install-info and you may
+see the message:
+
+@example
+This is not dpkg install-info anymore, but GNU install-info
+See the man page for ginstall-info for command line arguments
+@end example
+
+@noindent which can be safely ignored.}.
 
 @example
 make install-info
-make install-info-debian
 @end example
 
 Then add the following line to @file{.emacs}.  It is needed so that
-- 
1.7.6




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

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada


[O] Python script to download Google Calendar events

2011-07-11 Thread Felix Geller
Hi,

I wrote a Python script that [1] uses the GData API to download events
for your Google Calendar and prints them to a given org-file. It is a
very tiny script, but perhaps it is of use to other people as well.

Small disclaimer: I've tested this on Mac OS X only, using Python 2.7.2.

Let me know what you think :)


Cheers,
Felix

P.S.: Please excuse double posting if the first version does show up.

Footnotes:

[1] https://bitbucket.org/fgeller/gcal2org/src/8fa7d2b83ab3/gcal2org.py


pgpgVIacIagKU.pgp
Description: PGP signature


Re: [O] [PATCH] was: patch makefile solve a couple debian build problems and a slackware build problem

2011-07-11 Thread Nick Dokos
Achim Gratz strom...@nexgo.de wrote:

 From 11a243c4c01f5c2802328e3e4f7956abbaafd7e8 Mon Sep 17 00:00:00 2001
 From: Achim Gratz strom...@stromeko.de
 Date: Sun, 10 Jul 2011 08:42:20 +0200
 Subject: [PATCH] remove Makefile target install-info-debian, modify
  install-info to be compatible
 
 * Makefile: remove target install-info-debian and modify target
   install-info so that it is compatible with the older dpkg version
   of install-info that resides in /usr/sbin and may be picked up
   when root is installing info files
 
 Initial reporting by Jude DaShiell, suggestions for changing Makefile
 by Nick Dokos.  The solution implemented re-arranges the arguments to
 install-info to be compatible with both the dpkg and GNU version of
 the program.  On Debian, /usr/bin/install-info is actually a wrapper
 that calls /usr/bin/ginstall-info and issues the following warning
 when called as root:
 
 This is not dpkg install-info anymore, but GNU install-info
 See the man page for ginstall-info for command line arguments
 
 This warning can be safely ignored since we actually prefer that GNU
 install-info is called even though we've arranged the arguments to
 be compatible with dpkg install-info.
 
 Tested on openSuSE Tumbleweed, Win7/Pro (both MSys and Cygwin) and by
 Jude DaShiell on Debian Squeeze and Slackware.
 
 TINYCHANGE
 ---
  Makefile |3 ---
  doc/org.texi |   18 --
  2 files changed, 12 insertions(+), 9 deletions(-)
 
 diff --git a/Makefile b/Makefile
 index fe833d7..eb2597f 100644
 --- a/Makefile
 +++ b/Makefile
 @@ -222,9 +222,6 @@ install-lisp: $(LISPFILES) $(ELCFILES)
  install-info: $(INFOFILES)
   if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
   $(CP) $(INFOFILES) $(infodir)
 - $(INSTALL_INFO) --info-file=$(INFOFILES) --info-dir=$(infodir)
 -
 -install-info-debian: $(INFOFILES)
   $(INSTALL_INFO) --infodir=$(infodir) $(INFOFILES)
  
  autoloads: lisp/org-install.el
 diff --git a/doc/org.texi b/doc/org.texi
 index 7f92382..c8ff8a0 100644
 --- a/doc/org.texi
 +++ b/doc/org.texi
 @@ -880,15 +880,21 @@ make install
  @end example
  
  Installing Info files is system dependent, because of differences in the
 -@file{install-info} program.  In Debian it copies the info files into the
 -correct directory and modifies the info directory file.  In many other
 -systems, the files need to be copied to the correct directory separately, and
 -@file{install-info} then only modifies the directory file.  Check your system
 -documentation to find out which of the following commands you need:
 +@file{install-info} program.  The following should correctly install the Info
 +files on most systems, please send a bug report if not@footnote{The output
 +from install-info (if any) is also system dependent.  In particular Debian
 +and it's derivatives use two different versions of install-info and you may
   
   its

 +see the message:
 +
 +@example
 +This is not dpkg install-info anymore, but GNU install-info
 +See the man page for ginstall-info for command line arguments
 +@end example
 +
 +@noindent which can be safely ignored.}.
  
  @example
  make install-info
 -make install-info-debian
  @end example
  
  Then add the following line to @file{.emacs}.  It is needed so that
 -- 
 1.7.6

Looks good to me - tested on Ubuntu 10.10.

Thanks,
Nick



Re: [O] [PATCH] was: patch makefile solve a couple debian build problems and a slackware build problem

2011-07-11 Thread Bastien
Achim Gratz strom...@nexgo.de writes:

 Bastien b...@altern.org writes:
 Achim and Nick, can I safely apply your patch or was it still a beta
 version?

 I've reworked my patch to include a changelog and correct documentation.
 Additionally I've now tested it on Windows, both with Cygwin and Msys.

Great, thanks!

I just applied this patch.

-- 
 Bastien



Re: [O] [PATCH] was: patch makefile solve a couple debian build problems and a slackware build problem

2011-07-11 Thread Bastien
Nick Dokos nicholas.do...@hp.com writes:

 +and it's derivatives use two different versions of install-info and you may

its

Fixed, thanks!

-- 
 Bastien



Re: [O] org-capture does not fully clean up after C-c C-k

2011-07-11 Thread Bastien
Hi Leo,

Leo sdl@gmail.com writes:

 On 2011-06-16 15:51 +0800, Carsten Dominik wrote:
 Hi Leo,

 I am unable to reproduce this.  I do get an empty line the first time,
 but when the empty line is already there, then there is no problem.

 Do you find the insertion of this one empty line a problem?

 - Carsten

 Sorry for the long delay. I can reproduce this in Emacs -q with

   (setq org-blank-before-new-entry '((heading)))

Please let me know if the attached patch fixes this issue.

Thanks,

From 38334f29f4c949cad76c199433f60250a824878d Mon Sep 17 00:00:00 2001
From: Bastien Guerry b...@altern.org
Date: Tue, 12 Jul 2011 00:57:57 +0200
Subject: [PATCH] org-capture.el: Fix bug about insert blank line when
 aborting.

* org-capture.el (org-capture-finalize): bugfix about
inserted blank line when killing the capture buffer and
`org-blank-before-new-entry' tells to not insert anything
before a heading.

Thanks to Leo for reporting this.
---
 lisp/org-capture.el |   12 +++-
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index d547f3d..dd74ecc 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -551,6 +551,9 @@ captured item after finalizing.
 	  (m2 (org-capture-get :end-marker 'local)))
 	  (if (and m1 m2 (= m1 beg) (= m2 end))
 	  (progn
+		(setq m2 (if (cdr (assoc 'heading org-blank-before-new-entry))
+			 m2 (1+ m2))
+		  m2 (if ( (point-max) m2) (point-max) m2))
 		(setq abort-note 'clean)
 		(kill-region m1 m2))
 	(setq abort-note 'dirty)))
@@ -576,16 +579,14 @@ captured item after finalizing.
 		   (org-at-table-p))
 	  (if (org-table-get-stored-formulas)
 	  (org-table-recalculate 'all) ;; FIXME: Should we iterate???
-	(org-table-align)))
-	)
+	(org-table-align
   ;; Store this place as the last one where we stored something
   ;; Do the marking in the base buffer, so that it makes sense after
   ;; the indirect buffer has been killed.
   (org-capture-bookmark-last-stored-position)
 
   ;; Run the hook
-  (run-hooks 'org-capture-before-finalize-hook)
-  )
+  (run-hooks 'org-capture-before-finalize-hook))
 
 ;; Kill the indirect buffer
 (save-buffer)
@@ -665,7 +666,8 @@ already gone.  Any prefix argument will be passed to the refile command.
   (interactive)
   ;; FIXME: This does not do the right thing, we need to remove the new stuff
   ;; By hand it is easy: undo, then kill the buffer
-  (let ((org-note-abort t) (org-capture-before-finalize-hook nil))
+  (let ((org-note-abort t) 
+	(org-capture-before-finalize-hook nil))
 (org-capture-finalize)))
 
 (defun org-capture-goto-last-stored ()
-- 
1.7.5.2


-- 
 Bastien


Re: [O] Calendar-like view of the org-agenda

2011-07-11 Thread Eric S Fraga
Bastien b...@altern.org writes:

 Marcus Klemm marcus.kl...@googlemail.com writes:

 I love org-mode for its power and flexibility but I grew up using an
 Amiga, laughing at the MS-DOS users with their ancient text mode
 interfaces and I still can't force myself to like that aspect of org.
 So everything that makes it look more graphic is welcome to me.

 Com'on Marcus!  I grew up with an ATARI 520ST, close to the Amiga in
 graphical possibilities... and I still love plain text :)

Hey, I grew up with punch cards... I'm still getting used to these
*bold* and /italic/ bits. ;-)

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.6 (release_7.6.35.g30182)



Re: [O] Calendar-like view of the org-agenda

2011-07-11 Thread SAKURAI Masashi
Hi,

At Mon, 11 Jul 2011 17:50:27 +0200,
Sebastien Vauban wrote:
 :
 Tassilo Horn wrote:
  I've also made the characters used for table rendering customizable, so
  that you can use nice unicode glyphs.
 
http://dl.dropbox.com/u/30611246/img/calfw-unicode.png
 
 Now that this has been made configurable, could you share your customization
 for getting such a (very) nice view?  Which characters are you using?

Here is a sample code.

https://gist.github.com/1074205
==
;; Default setting
(setq cfw:fchar-junction ?+
  cfw:fchar-vertical-line ?|
  cfw:fchar-horizontal-line ?-
  cfw:fchar-left-junction ?+
  cfw:fchar-right-junction ?+
  cfw:fchar-top-junction ?+
  cfw:fchar-top-left-corner ?+
  cfw:fchar-top-right-corner ?+ )

;; Nice view (Unicode characters)
(setq cfw:fchar-junction ?╋
  cfw:fchar-vertical-line ?┃
  cfw:fchar-horizontal-line ?━
  cfw:fchar-left-junction ?┣
  cfw:fchar-right-junction ?┫
  cfw:fchar-top-junction ?┯
  cfw:fchar-top-left-corner ?┏
  cfw:fchar-top-right-corner ?┓)
==

Regards,
--
SAKURAI, Masashi (family, given)
m.saku...@kiwanami.net



[O] git repository export to LaTeX

2011-07-11 Thread Henri-Paul Indiogine
Greetings!

1. Something wrong with the git repository?

$ git pull
fatal: The remote end hung up unexpectedly


2. odt export works very well, but I have lost LaTeX export.  I get
the following lines in my *Messages* buffer:

Export buffer:
Exporting to LaTeX...
File ~/Dropbox/dissertation/Proposal.tex no longer exists!
Recognizing tables...done
Loading reftex...done
Recognizing tables...done
Loading reftex...done
org-export-latex-preprocess: Wrong type argument: stringp, nil


I run the latest org-mode from git and GNU Emacs 24.0.50.1

Any ideas?

Thanks,
Henri-Paul



-- 
Henri-Paul Indiogine

Curriculum  Instruction
Texas AM University
TutorFind Learning Centre

Email: hindiog...@gmail.com
Skype: hindiogine
Website: http://people.cehd.tamu.edu/~sindiogine



[O] Again problems with latex inside footnotes.

2011-07-11 Thread Rafael Calsaverini
Hi,
sorry for bothering you again with it, but I'm having a problem with latex
inside footnotes and I couldn't find the answer in the manual.

When I try something like:

8---
blablabla [fn:bla]
[fn:bla] this is what \cite{she} said.
8---

this gets exported as:

---8---
blablabla \footnote{ this is what \cite\{she\} said.
---8---

I believe I'm missing something very basic.
I believe that if I put a #+Latex:xxx the xxx part would be exported
verbatim to the latex file. But this would break the footnote. Is there a
way to insert inline latex snippets?

---
Rafael Calsaverini
Dep. de Física Geral, Sala 336
Instituto de Física - Universidade de São Paulo

rafael.calsaver...@gmail.com
http://stoa.usp.br/calsaverini/weblog
CEL: (11) 7525-6222
USP: (11) 3091-6803


Re: [O] Again problems with latex inside footnotes.

2011-07-11 Thread Rafael Calsaverini
Also, I have problems with equations even when I use \(...\) instead of
$...$.

This, for example:
--8--
* example
Example[fn:note].
[fn:note]An equation: \(\bar{a}\).
---8--

becomes this:

---8---
Example\footnote{An equation: \(\bar\{a\}\). }.
---8---

I'm not really sure, but I suspect this worked before I instaled the latest
version of org-mode.

Sorry for any inconvenience.
--
Rafael Calsaverini
Dep. de Física Geral, Sala 336
Instituto de Física - Universidade de São Paulo

rafael.calsaver...@gmail.com
http://stoa.usp.br/calsaverini/weblog
CEL: (11) 7525-6222
USP: (11) 3091-6803


Re: [O] org-capture does not fully clean up after C-c C-k

2011-07-11 Thread Leo
On 2011-07-12 07:00 +0800, Bastien wrote:
[snipped 14 lines]
 Sorry for the long delay. I can reproduce this in Emacs -q with

   (setq org-blank-before-new-entry '((heading)))

 Please let me know if the attached patch fixes this issue.

 Thanks,

Yes, it fixes this issue.

Leo