Re: [Orgmode] Re: [BUG] htmlp and latexp

2011-02-18 Thread Christian Moe

Hi, Jeff,

Check if you've got an old version of org-special-blocks somewhere on 
your loadpath. I did, and it kept me running in circles for a bit.


Yours,
Christian


On 2/18/11 12:14 AM, Jeff Horn wrote:

I'm still encountering this bug.

Org-mode version 7.4 (release_7.4.418.g373c)

This looks like an old release, which is odd. I'm using Eric Schulte's
starter kit, and anyway just switched to the org master branch and
pulled down the latest commits. 'make clean', 'make info', and 'make
lisp/org-install.el' were my next steps.

Is it right to take the last 6 chars and search for a commit through
the web interface? It isn't turning up anything, and that string is
starting look familiar to me.

On Thu, Feb 17, 2011 at 5:50 AM, Jambunathan Kkjambunat...@gmail.com  wrote:

Andreas Lehaandreas.l...@med.uni-goettingen.de  writes:


Hi all,

to make this explicit:  I can not export to latex any more, but instead
I get
  Exporting to LaTeX...
  when: Symbol's value as variable is void: htmlp

Org HEAD
GNU emacs 23.2.1 (debian squeeze)

This is my failing org-file:
* Test
   test



Have you tried recent head?
Enable stacktrace: M-x toggle-debug-on-error
Also include M-x org-version?

Jambunathan K.



- Andreas


Am 16.02.2011 11:03, schrieb Bastien:

Hi Dan,

Dan Davisondandavis...@gmail.com  writes:



Commit ed6d6760268 removed variables htmlp and latexp from
`org-export-preprocess-string'. Nothing wrong with that, but I think it
has broken export for those using org-special-blocks, which contains

#+begin_src emacs-lisp
(defvar htmlp)
(defvar latexp)
(defun org-special-blocks-make-special-cookies ()
   Adds special cookies when #+begin_foo and #+end_foo tokens are
seen.  This is run after a few special cases are taken care of.
   (when (or htmlp latexp)
 (goto-char (point-min))
...
#+end_src


Fixed thanks.



IIuc htmlp and latexp occur occasionally in org code as somewhat
unofficial ways to test am I in the middle of export?.


Now there is a uniform and official (!) way of getting the backend the
user is currently exporting to:

   (eq backend 'html)

...



They also occur in org-exp-blocks, but in deprecated code, so not a
priority to fix.


I fixed them there too.

Thanks for reporting this!





___
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








___
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] Re: [BUG] htmlp and latexp

2011-02-18 Thread Andreas Leha
Hi all,

I did not send to the list, so I resend my last email below.  But for me
I found the issue:  org-exp-bibtex.el is the problem.

Regards,
Andreas


PS:  Here my last email:

Thanks for looking into this.  But just pulled before asking.

I am pulling from git://repo.or.cz/org-mode.git

The latest commit there is
commit c7700d7bbee4f7596feb199b1ec1bc7750d4fb48
Author: Bastien Guerry b...@altern.org
Date:   Wed Feb 16 11:53:28 2011 +0100

* org-html.el (org-export-as-html): expand the HTML title.
   
This fix is a modified version of a patch submitted by Pierre
Téchoueyres.


The problem is still there.

M-x org-version : 7.4

The backtrace (after M-x toggle-debug-on-error) is:

Debugger entered--Lisp error: (void-variable htmlp)
  (if htmlp (progn (org-exp-bibtex-docites ...) (org-exp-bibtex-docites
...)))
  (when htmlp (org-exp-bibtex-docites (lambda nil ...))
(org-exp-bibtex-docites (lambda nil ...)))
  (save-window-excursion (setq oebp-cite-plist (quote nil)) (goto-char
(point-min)) (while (re-search-forward ^#\\+BIBLIOGRAPHY:[ 
]+\\(\\S-+\\)[  ]+\\(\\S-+\\)\\([^^M\n]*\\) nil t) (let ... ...)) (when
htmlp (org-exp-bibtex-docites ...) (org-exp-bibtex-docites ...)))
  org-export-bibtex-preprocess()
  run-hooks(org-export-preprocess-hook)
  org-export-preprocess-string(#(\n\n 0 1 (fontified nil) 1 2
(fontified nil)) :for-backend latex :emph-multiline t :add-text nil
:comments nil :skip-before-1st-heading nil :LaTeX-fragments nil
:timestamps t :footnotes t)
  org-export-latex-first-lines((:latex-image-options width=10em
:exclude-tags (noexport) :select-tags (export) :email
andreas@habakuk :author andreas :html-postamble nil :html-preamble
nil :publishing-directory nil :timestamp nil :expand-quoted-html t
:html-table-tag table border=\2\ cellspacing=\0\ cellpadding=\6\
rules=\groups\ frame=\hsides\ :xml-declaration ((html . ?xml
version=\1.0\ encoding=\%s\?) (php . ?php echo \?xml
version=\\\1.0\\\ encoding=\\\%s\\\ ?\; ?)) :html-extension
html :inline-images maybe :convert-org-links t :agenda-style 
:style-extra  :style  :style-include-scripts t
:style-include-default t :table-auto-headline t :tables t
:time-stamp-file t :creator-info t :email-info nil ...) nil nil)
  org-export-as-latex(nil)
  call-interactively(org-export-as-latex)
  org-export(nil)
  call-interactively(org-export nil nil)







Am 17.02.2011 11:50, schrieb Jambunathan K:
 Andreas Leha andreas.l...@med.uni-goettingen.de writes:

   
 Hi all,

 to make this explicit:  I can not export to latex any more, but instead
 I get
  Exporting to LaTeX...
  when: Symbol's value as variable is void: htmlp

 Org HEAD
 GNU emacs 23.2.1 (debian squeeze)

 This is my failing org-file:
 * Test
   test

 
 Have you tried recent head?  
 Enable stacktrace: M-x toggle-debug-on-error
 Also include M-x org-version? 

 Jambunathan K.


   
 - Andreas


 Am 16.02.2011 11:03, schrieb Bastien:
 
 Hi Dan,

 Dan Davison dandavis...@gmail.com writes:

   
   
 Commit ed6d6760268 removed variables htmlp and latexp from
 `org-export-preprocess-string'. Nothing wrong with that, but I think it
 has broken export for those using org-special-blocks, which contains

 #+begin_src emacs-lisp
 (defvar htmlp)
 (defvar latexp)
 (defun org-special-blocks-make-special-cookies ()
   Adds special cookies when #+begin_foo and #+end_foo tokens are
 seen.  This is run after a few special cases are taken care of.
   (when (or htmlp latexp)
 (goto-char (point-min))
 ...
 #+end_src
 
 
 Fixed thanks.  

   
   
 IIuc htmlp and latexp occur occasionally in org code as somewhat
 unofficial ways to test am I in the middle of export?.
 
 
 Now there is a uniform and official (!) way of getting the backend the
 user is currently exporting to: 

   (eq backend 'html)

 ...

   
   
 They also occur in org-exp-blocks, but in deprecated code, so not a
 priority to fix.
 
 
 I fixed them there too.

 Thanks for reporting this!

   
   

 ___
 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
   

-- 
Universitätsmedizin Göttingen
Abteilung Medizinische Statistik
Humboldtallee 32
37073 Göttingen

Tel: +49 (0)551 39-10710
Fax: +49 (0)551 39-4995

http://www.ams.med.uni-goettingen.de/amsneu/leha.html



University Medical Center Göttingen
Department for Medical Statistics
Humboldtallee 32
37073 Göttingen
Germany

Phone: +49 (0) 551 39-10710
Fax: +49 (0) 551 39-4995

http://www.ams.med.uni-goettingen.de/amsneu/leha-en.html

attachment: andreas_leha.vcf

smime.p7s
Description: S/MIME Cryptographic Signature
___

Re: [Orgmode] Re: [BUG] htmlp and latexp

2011-02-18 Thread Bastien
Hi Andreas,

Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 I did not send to the list, so I resend my last email below.  But for me
 I found the issue:  org-exp-bibtex.el is the problem.

Fixed, thanks.

-- 
 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


Re: [Orgmode] indentation for section headings vs bulleted lists

2011-02-18 Thread Bastien
Hi Linus,

Linus Arver linusar...@gmail.com writes:

 This is very nice. But regular bulleted lists are indented like this:

 - blah blah blah blah
 blah blah blah blah
 blah blah blah blah
  - blah blah blah blah
  blah blah blah blah
  blah blah blah blah

I cannot reproduce this with latest git Org.  What Org version are you
running?

-- 
 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


Re: [Orgmode] Are Org manual and/or the compact guide themselves org files?

2011-02-18 Thread Bastien
Suvayu Ali fatkasuvayu+li...@gmail.com writes:

 As far as I know the org manual is written directly in texinfo and it
 is built when you compile org from git master.

Yes.  I added a FAQ in Worg about this, as this (natural) question 
comes quite often.

-- 
 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


Re: [Orgmode] Does Effort support hours only?

2011-02-18 Thread Bastien
Hi Luke,

Luke Crook l...@balooga.com writes:

 Is it possible to specify estimated effort in something other 
 than hours (0.5, or 0:30)?

No, it's not possible right now.

-- 
 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


Re: [Orgmode] Insert ampersand in HTML export?

2011-02-18 Thread Bastien
Nick Dokos nicholas.do...@hp.com writes:

 #+BIND: org-export-html-protect-char-alist (( . ))

Yes, no quote needed.  Thanks Nick for correcting me.

-- 
 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


Re: [Orgmode] Problem with org-time-stamp co

2011-02-18 Thread Bastien
Hi Michael,

Michael Käufl org-m...@lists.michael-kaeufl.de writes:

 I tried to enter a date before 01/01/1970 using “C-c .” (org-time-stamp) and 
 org replaced the year by 2011. (The same problem occurs with org-time-stamp-
 inactive and the C-u prefixed variants.)

 Although I guess that this is related to the unix time, which starts on 
 01/01/1970 00:00, my lisp skills aren't good enough to let me find the 
 responsible code line.

 Maybe there is someone who can fix this or tell me that it's a feature, not a 
 bug;)

The attached patch allows dates before 1970.  I tested it and I didn't
see any side-effect so far -- but there must a good reason why we have 
this limitation.

Carsten, could you tell where this limitation is necessary?

Thanks,

diff --git a/lisp/org.el b/lisp/org.el
index 655d106..bdd808d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -14667,7 +14667,6 @@ user.
 	 (nth 2 tl))
 	(setq org-time-was-given t))
 (if ( year 100) (setq year (+ 2000 year)))
-(if ( year 1970) (setq year (nth 5 defdecode))) ; not representable
 (setq org-read-date-analyze-futurep futurep)
 (list second minute hour day month year)))

-- 
 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


Re: [Orgmode] Re: [CRASH] org-pretty-entities causes emacs to take 100% CPU

2011-02-18 Thread Bastien
Hi Vladimir,

Vladimir Alexiev vladi...@sirma.bg writes:

 not able to reproduce this
 with GNU Emacs 24.0.50.2 of 2011-02-15.

 Can I get this from somewhere, built for W32/cygwin?
 I got 24.0.50.1 from file Emacs24.BZR.102298.Win32.20101110.zip
 from http://ourcomments.org/Emacs/DL/EmacsW32/EmacsCVS/unptch/ .
 I looked there for a newer version, but there isn't one.

I cc Lennart, who can perhaps answer -- I'm not using windows.

-- 
 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


Re: [Orgmode] A way to export agenda with links into org-files to html ?

2011-02-18 Thread Hrvoje Niksic
[ Please keep me in the Cc when replying ]

Bastien bastien.gue...@wikimedia.fr writes:

 and how should htmlize find them in the buffer?

 See org-*-link-regexp regular expressions.

I was thinking in a more general way.

Maybe applications such as orgmode could mark hyperlinks with text
properties and htmlize could recognize them and convert them to real
links, without fragile (and slow) regexp magic.

For example, Gnus uses the `mouse-face' property to highlight the URLs
in the article buffer.  The `button' property contains the details about
the button.

___
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] Re: Can I input multiline in a cell?

2011-02-18 Thread Bastien
Wang Coeus wangco...@gmail.com writes:

 For such a kind of situation, we only can implement with table.el,
 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] Re: Does Effort support hours only?

2011-02-18 Thread Sébastien Vauban
Hi Bastien and Luke,

Bastien wrote:
 Luke Crook l...@balooga.com writes:
 Is it possible to specify estimated effort in something other than hours
 (0.5, or 0:30)?

 No, it's not possible right now.

But I second this idea: that'd be a great addition. Too often, we have to play
with figures such as 64:00 or 80:00 just to indicate 8 or 10 days...

Being able to specify suffixes like `d' for days or `w' for weeks would be
awesome. But I guess it's very, very complex, though.

Best regards,
  Seb

-- 
Sébastien Vauban


___
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: [BUG] htmlp and latexp

2011-02-18 Thread Bastien
Hi Dan,

Dan Davison dandavis...@gmail.com writes:

 I was thinking that if it were defvard in org.el, say as

 (defvar org-export-current-backend nil)

 then any code could use (null org-export-current-backend) to test
 whether org is currently exporting or not. Otherwise, the code has to be
 certain that it has been called during export if it is going to access
 the variable.

I agree this would be a good idea.  If you have time, please send a
patch.  Otherwise, I just put it [somewhere] in my own todo list...

Thanks!

-- 
 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


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-18 Thread Bastien
brian powell briangpowel...@gmail.com writes:

 Forget all previous emails from me on this thread; 

Done :)

The font you use might causes problems for fixed-font emails you *read*
but problems for emails you send are caused by using HTML.  Go to gmail
parameters and deactivate HTML when sending, it's generally better, at
least for this list...

Thanks!

-- 
 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


Re: [Orgmode] Error when publishing to HTML

2011-02-18 Thread Manuel Giraud
Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 #+begin_src emacs-lisp
 (add-to-list 'org-publish-project-alist
  '((orgfiles
 :base-directory ~/src/web-in-org/org/
 :base-extension org
 :publishing-directory ~/src/web-in-org/public_html/
 :publishing-function org-publish-org-to-html
 :section-numbers nil
 :table-of-contents nil
 :auto-sitemap t
 :sitemap-title Sitemap
 :style link rel=\stylesheet\ href=\css/worg.css\ 
 type=\text/css\/)
(css
 :base-directory ~/src/web-in-org/org/css/
 :base-extension css
 :publishing-directory ~/src/web-in-org/public_html/css/
 :publishing-function org-publish-attachment)
(mysite
 :components (orgfiles css
 #+end_src

Ok, I think I found your problem here: your add-to-list create a too
much nested list here. You could either do:

#+begin_src emacs-lisp
(setq org-publish-project-alist nil)
(add-to-list 'org-publish-project-alist
 '(orgfiles
:base-directory ~/src/web-in-org/org/
:base-extension org
:publishing-directory ~/src/web-in-org/public_html/
:publishing-function org-publish-org-to-html
:section-numbers nil
:table-of-contents nil
:auto-sitemap t
:sitemap-title Sitemap
:style link rel=\stylesheet\ href=\css/worg.css\ 
type=\text/css\/))

(add-to-list 'org-publish-project-alist
 '(css
:base-directory ~/src/web-in-org/org/css/
:base-extension css
:publishing-directory ~/src/web-in-org/public_html/css/
:publishing-function org-publish-attachment))

(add-to-list  'org-publish-project-alist
  '(mysite
:components (orgfiles css))
#+end_src

or (as shown in documentation examples):

#+begin_src emacs-lisp
(setq org-publish-project-alist
 '((orgfiles
:base-directory ~/src/web-in-org/org/
:base-extension org
:publishing-directory ~/src/web-in-org/public_html/
:publishing-function org-publish-org-to-html
:section-numbers nil
:table-of-contents nil
:auto-sitemap t
:sitemap-title Sitemap
:style link rel=\stylesheet\ href=\css/worg.css\ 
type=\text/css\/)
   (css
:base-directory ~/src/web-in-org/org/css/
:base-extension css
:publishing-directory ~/src/web-in-org/public_html/css/
:publishing-function org-publish-attachment)
   (mysite
:components (orgfiles css
#+end_src

Best regards,
-- 
Manuel Giraud

___
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] latex table export not centered

2011-02-18 Thread Bastien
Hi Andreas,

Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Thanks for looking into this.  Yes,  for me this issue still persists.

I've just fixed it in git -- thanks for double-checking!

-- 
 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] Org-mode HTML export and Blueprint CSS

2011-02-18 Thread Chris Lowis
Hi,

Does anyone have an example of using org-mode HTML export with a CSS
framework such as Blueprint? Specific problems I'm having:

- suppressing the automatically generated CSS (or customising which
classes get added on a per-file basis)
- wrapping specific blocks of markup in the Blueprint-specific classes
(e.g. div class=span-15 prepend-1 colborder )
- including my own CSS file - preferably as a multi-line block of CSS
in my org-file rather than an external file include.

Hope someone can help!

Chris

___
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: Does Effort support hours only?

2011-02-18 Thread Lawrence Mitchell
Sébastien Vauban wrote:
 Hi Bastien and Luke,

 Bastien wrote:
 Luke Crook l...@balooga.com writes:
 Is it possible to specify estimated effort in something other than hours
 (0.5, or 0:30)?

 No, it's not possible right now.

 But I second this idea: that'd be a great addition. Too often, we have to play
 with figures such as 64:00 or 80:00 just to indicate 8 or 10 days...

 Being able to specify suffixes like `d' for days or `w' for weeks would be
 awesome. But I guess it's very, very complex, though.

Turns out probably not, unless I've missed something.  I think
this set of patches does what's necessary to allow duration
strings in effort properties.  And as a bonus its backwards
compatible to the old style.  Try it and see if it works, if it
does I'll roll it into a proper patch.

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 54de775..6634801 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5319,7 +5319,7 @@ Any match of REMOVE-RE will be removed from TXT.
   (get-text-property 0 'org-marker txt)))
(error nil)))
(when effort
- (setq neffort (org-hh:mm-string-to-minutes effort)
+ (setq neffort (org-duration-string-to-minutes effort)
effort (setq effort (concat [ effort ] )
 
   (when remove-re
@@ -6046,7 +6046,7 @@ E looks like \+2:25\.
   ((equal op ??) op)
   (t '=)))
 (list 'org-agenda-compare-effort (list 'quote op)
- (org-hh:mm-string-to-minutes e
+ (org-duration-string-to-minutes e
 
 (defun org-agenda-compare-effort (op value)
   Compare the effort of the current line with VALUE, using OP.
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 07cc952..0747210 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -486,7 +486,7 @@ If not, show simply the clocked time like 01:50.
 (m (- clocked-time (* 60 h
 (if org-clock-effort
(let* ((effort-in-minutes
-   (org-hh:mm-string-to-minutes org-clock-effort))
+   (org-duration-string-to-minutes org-clock-effort))
   (effort-h (floor effort-in-minutes 60))
   (effort-m (- effort-in-minutes (* effort-h 60)))
   (work-done-str
@@ -560,10 +560,10 @@ the mode line.
;; A string.  See if it is a delta
(setq sign (string-to-char value))
(if (member sign '(?- ?+))
-  (setq current (org-hh:mm-string-to-minutes current)
+  (setq current (org-duration-string-to-minutes current)
 value (substring value 1))
 (setq current 0))
-   (setq value (org-hh:mm-string-to-minutes value))
+   (setq value (org-duration-string-to-minutes value))
(if (equal ?- sign)
   (setq value (- current value))
 (if (equal ?+ sign) (setq value (+ current value)
@@ -580,7 +580,7 @@ the mode line.
   Show notification if we spent more time than we estimated before.
 Notification is shown only once.
   (when (org-clocking-p)
-(let ((effort-in-minutes (org-hh:mm-string-to-minutes org-clock-effort))
+(let ((effort-in-minutes (org-duration-string-to-minutes org-clock-effort))
  (clocked-time (org-clock-get-clocked-time)))
   (if (setq org-task-overrun
(if (or (null effort-in-minutes) (zerop effort-in-minutes))
diff --git a/lisp/org.el b/lisp/org.el
index 82a0986..3e8fbba 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15446,6 +15446,32 @@ If no number is found, the return value is 0.
 (string-to-number (match-string 1 s)))
(t 0)))
 
+(defun org-duration-string-to-minutes (s)
+  Convert a duration string S to minutes.
+
+A bare number is interpreted as minutes, the following suffixes are
+recognised:
+ h - hours
+ d - days
+ w - weeks (7 days)
+ m - months (30 days)
+ y - years (365 days)
+
+Entries containing a colon are interpreted as H:MM by
+`org-hh:mm-string-to-minutes'.
+  (let ((conversion `((h . 60)
+ (d . ,(* 60 24))
+ (w . ,(* 60 24 7))
+ (m . ,(* 60 24 7 30))
+ (y . ,(* 60 24 7 365
+   (result 0))
+(while (string-match \\([0-9]+\\)\\([hdwmy]\\) s)
+  (incf result (* (cdr (assoc (match-string 2 s) conversion))
+ (string-to-number (match-string 1 s
+  (setq s (replace-match  nil t s)))
+(incf result (org-hh:mm-string-to-minutes s))
+result))
+
  Files
 
 (defun org-save-all-org-buffers ()

-- 
Lawrence Mitchell we...@gmx.li


___
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] [babel][patch] C++ inconsistencies

2011-02-18 Thread Martyn Jago

Hi

I've noticed a couple of minor inconsistencies with C++ export...

 - According to the Org manual (section 14.7 Languages) the identifier
   for C++ is C++ (upper-case), but in practice this fails and the
   identifier c++ (lower-case) must be used. In general, identifiers
   appear to be lower-case words or upper-case single characters (such
   as C and R) so perhaps this is a bug?

 - Within org-babel cpp is used to identify C++, however using cpp as an
   identifier actually exports as if it were a C block. 

If it is desired the following patch changes the C++ identifier to C++,
and maps cpp identifier also to C++, although perhaps it is better to
maintain c++ also for backward compatibility?

Regards

Martyn


diff --git a/lisp/ob-C.el b/lisp/ob-C.el
index da0e768..86ec783 100644
--- a/lisp/ob-C.el
+++ b/lisp/ob-C.el
@@ -56,10 +56,10 @@ is currently being evaluated.)
 
 (defun org-babel-execute:cpp (body params)
   Execute BODY according to PARAMS.  This function calls
-`org-babel-execute:C'.
-  (org-babel-execute:C body params))
+`org-babel-execute:C++'.
+  (org-babel-execute:C++ body params))
 
-(defun org-babel-execute:c++ (body params)
+(defun org-babel-execute:C++ (body params)
 Execute a block of C++ code with org-babel.  This function is
 called by `org-babel-execute-src-block'.
   (let ((org-babel-c-variant 'cpp)) (org-babel-C-execute body params)))


---

Org-mode version 7.4
GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.0) of
2011-02-18



___
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: Error when publishing to HTML

2011-02-18 Thread Sébastien Vauban
Hi Manuel,

Manuel Giraud wrote:
 Sébastien Vauban wxhgmqzgw...@spammotel.com writes:
 #+begin_src emacs-lisp
 (add-to-list 'org-publish-project-alist
  '((orgfiles
 :base-directory ~/src/web-in-org/org/
 :base-extension org
 :publishing-directory ~/src/web-in-org/public_html/
 :publishing-function org-publish-org-to-html
 :section-numbers nil
 :table-of-contents nil
 :auto-sitemap t
 :sitemap-title Sitemap
 :style link rel=\stylesheet\ href=\css/worg.css\ 
 type=\text/css\/)
(css
 :base-directory ~/src/web-in-org/org/css/
 :base-extension css
 :publishing-directory ~/src/web-in-org/public_html/css/
 :publishing-function org-publish-attachment)
(mysite
 :components (orgfiles css
 #+end_src

 Ok, I think I found your problem here: your add-to-list create a too much
 nested list here.

That was it. THANKS A LOT for your (successful) investigation...

Stupid of me... OK, that's an easy mistake to make. BTW, would you see a
better report mechanism in such cases? I definitely won't be the only one to
make it.

Best regards,
  Seb

-- 
Sébastien Vauban


___
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] Org-capture and ECB

2011-02-18 Thread Alain Clément
The culprit is:

#+begin_src emacs-lisp
(setq ecb-layout-name left13)
#+end_src

Other layouts induce the same problem, for instance left2, left3 and
left9.

Best regards,
- Alain

2011/2/16 Alain Clément alain.clem...@unil.ch

 Thank you Konrad for your feedback on this. I'll then try to isolate my
 configuration issue and I'll keep you informed.
 - Alain

 2011/2/16 Konrad Hinsen konrad.hin...@fastmail.net

 On 16 Feb, 2011, at 17:25 , Alain Clément wrote:

  I see no way to reproduce this error without (installing and) activating
 ECB. Actually, as soon as I desactivate ECB, org-capture works seamlessly
 with my configuration.

 I use both org-mode and ECB, but I didn't notice any problem with
 org-capture until now. I'd be interested in reproducing your problem in
 order to help with a solution.

 Konrad.





 --



 Alain Clément
 Dr ès sc. mathématiques

 Université de Lausanne
 Quartier UNIL-Centre
 Bâtiment Unicentre
 Bureau 339
 CH-1015 Lausanne

 T. +41 21 692 20 36 (direct)
 T. +41 21 692 20 60 (secrétariat)

 alain.clem...@unil.ch




-- 



Alain Clément
Dr ès sc. mathématiques

Université de Lausanne
Quartier UNIL-Centre
Bâtiment Unicentre
Bureau 339
CH-1015 Lausanne

T. +41 21 692 20 36 (direct)
T. +41 21 692 20 60 (secrétariat)

alain.clem...@unil.ch
___
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] Re: [Accepted] Re: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-02-18 Thread Bastien
Hi Carsten and all,

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

 For what it is worth, and for the record, I still do not
 believe that this is the correct solution to the problem.

I've finally push a fix for this problem.  

The issue appeared when trying to redo a block agenda command,
where previous restrictions were not taking into account.

I tested the fix on various agenda custom views, with the tests 
provided by Michael (thanks!) and it looks fine.

Please report any problem, this issue is pretty essential.

Special thanks to Matt and Michael for their reports!

-- 
 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


Re: [Orgmode] Org-capture and ECB

2011-02-18 Thread Konrad Hinsen
At Fri, 18 Feb 2011 13:30:27 +0100,
Alain Clément wrote:

 The culprit is:
 
 #+begin_src emacs-lisp
 (setq ecb-layout-name left13)
 #+end_src
 
 Other layouts induce the same problem, for instance left2, left3 and
 left9.

I am using left3 as my default layout, but I haven't noticed any
problems. I did modify the window layout though, so it's not the
original version of left3.

Konrad.

___
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] Problem with org-time-stamp co

2011-02-18 Thread Ian Barton

On 17/02/11 20:15, Suvayu Ali wrote:

On Thu, 17 Feb 2011 16:15:42 +0100
Michael Käuflorg-m...@lists.michael-kaeufl.de  wrote:


Hi,

I tried to enter a date before 01/01/1970 using
“C-c .” (org-time-stamp) and org replaced the year by 2011. (The same
problem occurs with org-time-stamp- inactive and the C-u prefixed
variants.)

Although I guess that this is related to the unix time, which starts
on 01/01/1970 00:00, my lisp skills aren't good enough to let me find
the responsible code line.



I can confirm this issue with



I found the same problem a while ago. I think the conclusion was it was 
an Emacs, rather than an org problem. I am not sure it can be fixed, but 
I would be very happy to be proved wrong!


Ian.


___
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] Re: [Accepted] Re: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-02-18 Thread Gábor Melis
Bastien bastien.gue...@wikimedia.fr writes:

 Hi Carsten and all,

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

 For what it is worth, and for the record, I still do not
 believe that this is the correct solution to the problem.

 I've finally push a fix for this problem.  

 The issue appeared when trying to redo a block agenda command,
 where previous restrictions were not taking into account.

 I tested the fix on various agenda custom views, with the tests 
 provided by Michael (thanks!) and it looks fine.

 Please report any problem, this issue is pretty essential.

 Special thanks to Matt and Michael for their reports!

I confirm that it's working as expected.

___
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] Problem with org-time-stamp co

2011-02-18 Thread Bastien
Hi Ian,

Ian Barton li...@manor-farm.org writes:

 Emacs, rather than an org problem. I am not sure it can be fixed, but I
 would be very happy to be proved wrong!

See the patch I sent this morning, which allows reading date before
1970.  I'm not applying it now, trying to figure out why this limit
was necessary.

HTH,

-- 
 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


Re: [Orgmode] Re: Can I input multiline in a cell?

2011-02-18 Thread brian powell
I haven't sent any HTMl that I know of--I fully embrace the plain text
KISS methods.

I've changed my fonts (all fonts--fixed and otherwise) to a font using the
string  Mono  somewhere in its name, and things seem better reading and
copying-and-pasting into an email buffer like this one--it should take care
of all problems with reading and writing @aligned tables@.

Thanks for pointing that out Bastien (about the fonts)--the FreeMono and
Courier fonts in GOOGLE CHROME are ugly--I tried them all after your
email--I settled on DejaVu Sans Mono Book; but, again, I have never posted
HTML to this list that I remember--I used to work with IETF members on XML
protocols and I'm very familiar with GML, SGML, HTML, XML, etc--I know HTML
when I see it.  The only markup that I inserted was [[file: --but thats
not HTML--its OrgMode?

If I paste text and set its font to XYZ @and@ you allow your browser to view
the XYZ font and character set @and@ you have the XYZ font software
installed and/or your email software has it, then you'll see it the way the
writer intended you to see it.  If you ever see anything from me with
uncovered down/aligned table columns again, please tell me, sorry about
that, it shouldn't happen again.  I strongly believe that problem has been
solved.

(I'll look into turning off HTML sending in my GOOGLE CHROME browser
options--like you suggested Bastien)

As for OrgMode and my idea, my plan: I will be setting ^H as an
end-of-line $ marker in my own code--when I am in a buffer running
OrgMode--and I'll see if I can make multivariate stat. tables like the
example table Wang gave--EMACS has the only regexp engine that is easily
tweaked that way--that I know of (see Regular Expressions, O'Reilly, 1st
edition)

Now, should OrgMode table mode support the creation of tables like the one
Wang gave as an example? I think it should.

--But I'm so giddy about OrgMode as it is right now, I almost don't care!

;-)


On Fri, Feb 18, 2011 at 4:47 AM, Bastien bastien.gue...@wikimedia.frwrote:

 brian powell briangpowel...@gmail.com writes:

  Forget all previous emails from me on this thread;

 Done :)

 The font you use might causes problems for fixed-font emails you *read*
 but problems for emails you send are caused by using HTML.  Go to gmail
 parameters and deactivate HTML when sending, it's generally better, at
 least for this list...

 Thanks!

 --
  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


Re: [Orgmode] Capture while Buffer is narrowed to subtree

2011-02-18 Thread Christopher Allan Webber
Hello Memnon!

I've definitely been experiencing this problem as well.  It's a frequent
annoyance.  It keeps breaking the flow of my orgmode files, since I
narrow to subree all the time, and capture all the time. :(

I don't think this is an intended feature, though I wonder if it's
fixable?  I hope so... I haven't had the chance to investigate the code
(and my fsf papers still haven't arrived so I couldn't fix it even if I
knew how).

Memnon Anon gegendosenflei...@googlemail.com writes:

 Hi,

 I've been working on a large subtree of my main orgfile while it was
 narrowed [C-x n s]. While doing so, I wanted to capture some information
 which usually ends up under * Inbox at the bottom of that file. This
 time, the information ended up in the narrowed buffer with a new *
 Inbox added. I only noticed after a while that my captured TODOs were
 not where I expected them to be.

 I know why this is happening (I guess :) but I was wondering if this was
 intended behaviour. If so, maybe a footnote should be added to the
 manual that hints at possible side effects of `C-x n s'?

 Memnon

 capture template
 #+begin_src emacs-lisp
   (setq 
org-capture-templates 
'((t Todo entry (file+headline ~/life/organizer.org Inbox) * TODO 
 %?\n  %U\n  %i\n  %a)
   (o Someday entry (file+headline ~/life/organizer.org Inbox) * 
 SOMEDAY %?\n  %U\n  %i\n  %a)
   (a Appointment entry (file+headline ~/life/organizer.org Inbox) 
 * APPT %?\n  %^T\n  %U\n  %i\n  %a)
   (b Bookmark entry (file+headline ~/life/bookmarks.org Inbox) * 
 %a %?\n  %u)
   ...))
 #+end_src

 Org-mode version 7.4

 GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on 
 raven, modified by Debian


 ___
 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] Re: Can I input multiline in a cell?

2011-02-18 Thread brian powell
On Fri, Feb 18, 2011 at 10:31 AM, Nick Dokos nicholas.do...@hp.com wrote:

 brian powell briangpowel...@gmail.com wrote:

  I haven't sent any HTMl that I know of--I fully embrace the plain text
 KISS methods.
 

 This very email contained alternatives: an HTML one and a plain-text one.

 Nick


I have no idea what you mean here--maybe earlier emails? (which I requested
we disregard earlier)

I didn't find the option Bastien was refering to--to turn off the sending of
HTML.

I have been experimenting with sending images in GOOGLE CHROME--maybe that
setting is what you complain about/suffer from?  I do want to continue to do
that; but, what exactly you are complaining about, I don't know?

I sent a very complex set of tables (2 emails ago) and all the tables were
covered down/aligned?

Lastly, please remember this thread purposefully contained markup to
pictures and/or [[file: and other probelematic text like multiline
text (this thread) in OrgMode tables--its all experimental what if
stuff--I purposely tried to insert strange things into the OrgMode table?

It was fun and interesting; and, I learned a few things.  Now, please feel
free to delete or disregard anything I've sent to the list.  Anyway, I'm
done with this thread.
___
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] Re: Worg publishing broken?

2011-02-18 Thread Jason Dunsmore
Bastien bastien.gue...@wikimedia.fr writes:

 Matt Lundin m...@imapmail.org writes:

 Would there be any way to get the Worg publishing script or export of
 source code blocks to fail gracefully in these instances? 

 That would be helpful indeed.  

 As a first step, we could handle errors in a more clever way by using
 the variable `noninteractive', testing if Emacs is running in batch
 mode.  In batch mode, instead of blocking the export process with a
 (error ...), we could just logs problems.

 Let's collect places where errors can block the publishing process.

Sounds like a good approach.  I found a few using:

$ git log --oneline | grep -i export | egrep -i 
fix|issue|broke|problem|error|resolve|correct|publish

All the ones I found were related to Babel.

1) Used shell instead of sh for the source block mode.  Fixed by
   commit e4ed828.
2) Used =code-block-name= instead of : code-block-name.
   Fixed by commit 90cb8cb.  When I tested this with by checking out
   90cb8cb and trying to export org-contrib/babel/org-babel.org, I got
   the error org-babel-exp-lob-one-liners: Wrong type argument:
   stringp, nil.
3) Enclosing #+begin_src into #+begin_quote.  Fixed by commit fd3bca5.
   The error is: File mode specification error: (file-error Cannot open
   load file html-helper-mode)

___
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: [babel][patch] C++ inconsistencies

2011-02-18 Thread Martyn Jago
Martyn Jago martyn.j...@btinternet.com writes:

 Hi

 I've noticed a couple of minor inconsistencies with C++ export...

  - According to the Org manual (section 14.7 Languages) the identifier
for C++ is C++ (upper-case), but in practice this fails and the
identifier c++ (lower-case) must be used. In general, identifiers
appear to be lower-case words or upper-case single characters (such
as C and R) so perhaps this is a bug?

  - Within org-babel cpp is used to identify C++, however using cpp as an
identifier actually exports as if it were a C block. 

 If it is desired the following patch changes the C++ identifier to C++,
 and maps cpp identifier also to C++, although perhaps it is better to
 maintain c++ also for backward compatibility?

 Regards

 Martyn


 diff --git a/lisp/ob-C.el b/lisp/ob-C.el
 index da0e768..86ec783 100644
 --- a/lisp/ob-C.el
 +++ b/lisp/ob-C.el
 @@ -56,10 +56,10 @@ is currently being evaluated.)
  
  (defun org-babel-execute:cpp (body params)
Execute BODY according to PARAMS.  This function calls
 -`org-babel-execute:C'.
 -  (org-babel-execute:C body params))
 +`org-babel-execute:C++'.
 +  (org-babel-execute:C++ body params))
  
 -(defun org-babel-execute:c++ (body params)
 +(defun org-babel-execute:C++ (body params)
  Execute a block of C++ code with org-babel.  This function is
  called by `org-babel-execute-src-block'.
(let ((org-babel-c-variant 'cpp)) (org-babel-C-execute body params)))


 ---

 Org-mode version 7.4
 GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.0) of
 2011-02-18



 ___
 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


Hi 

After further inspection and testing the following patch is more
complete (apologies for the noise).

In addition I have a very simple Yaml template if it is of any interest
to anybody. I have a strong use case for tangling Yaml for 'literate
configuration' purposes since I come across some particularly hairy yaml
configuration files for the unit-test libraries Unity, CMock and
Ceedling. 

Regards

Martyn



diff --git a/lisp/ob-C.el b/lisp/ob-C.el
index da0e768..5aa750c 100644
--- a/lisp/ob-C.el
+++ b/lisp/ob-C.el
@@ -38,7 +38,7 @@
 (declare-function org-entry-get org
  (pom property optional inherit literal-nil))
 
-(add-to-list 'org-babel-tangle-lang-exts '(c++ . cpp))
+(add-to-list 'org-babel-tangle-lang-exts '(C++ . cpp))
 
 (defvar org-babel-default-header-args:C '())
 
@@ -46,8 +46,8 @@
   Command used to compile a C source code file into an
   executable.)
 
-(defvar org-babel-c++-compiler g++
-  Command used to compile a c++ source code file into an
+(defvar org-babel-C++-compiler g++
+  Command used to compile a C++ source code file into an
   executable.)
 
 (defvar org-babel-c-variant nil
@@ -56,15 +56,15 @@ is currently being evaluated.)
 
 (defun org-babel-execute:cpp (body params)
   Execute BODY according to PARAMS.  This function calls
-`org-babel-execute:C'.
-  (org-babel-execute:C body params))
+`org-babel-execute:C++'.
+  (org-babel-execute:C++ body params))
 
-(defun org-babel-execute:c++ (body params)
+(defun org-babel-execute:C++ (body params)
 Execute a block of C++ code with org-babel.  This function is
 called by `org-babel-execute-src-block'.
   (let ((org-babel-c-variant 'cpp)) (org-babel-C-execute body params)))
 
-(defun org-babel-expand-body:c++ (body params)
+(defun org-babel-expand-body:C++ (body params)
   Expand a block of C++ code with org-babel according to it's
 header arguments (calls `org-babel-C-expand').
   (let ((org-babel-c-variant 'cpp)) (org-babel-C-expand body params)))
@@ -81,7 +81,7 @@ header arguments (calls `org-babel-C-expand').
 
 (defun org-babel-C-execute (body params)
   This function should only be called by `org-babel-execute:C'
-or `org-babel-execute:c++'.
+or `org-babel-execute:C++'.
   (let* ((tmp-src-file (org-babel-temp-file
C-src-
(cond
@@ -98,7 +98,7 @@ or `org-babel-execute:c++'.
 (format %s -o %s %s %s
 (cond
  ((equal org-babel-c-variant 'c) org-babel-C-compiler)
- ((equal org-babel-c-variant 'cpp) org-babel-c++-compiler))
+ ((equal org-babel-c-variant 'cpp) org-babel-C++-compiler))
 (org-babel-process-file-name tmp-bin-file)
 (mapconcat 'identity
(if (listp flags) flags (list flags))  )

---

Org-mode version 7.4
GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.0) of
2011-02-18



___
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] Re: Can I input multiline in a cell?

2011-02-18 Thread brian powell
I'm not offended; I'm looking into the turning off of html from my GOOGLE
CHROME browser.  I have been experimenting with the new features like
inserting images, etc.

And yes, as you point out that very email has markup (on your side--if you
accept it)--and that very email apologized for the problem and explained
that I would look into it--its still a problem--for you.

Everything looks fine to me now--even when I browse the postings.

I know a lot about MIME and browsers believe me, and email systems and
software and the internet...

you can go and learn something about MIME and what mailers do behind your
back.

--much agreed; this will always be an issue when using GMAIL or other
proprietary mail systems.

Thanks for the help Nick.




On Fri, Feb 18, 2011 at 11:20 AM, Nick Dokos nicholas.do...@hp.com wrote:

 brian powell briangpowel...@gmail.com wrote:


  It was fun and interesting; and, I learned a few things.  Now, please
 feel free to delete or
  disregard anything I've sent to the list.  Anyway, I'm done with this
 thread.
 

 I'm not trying to insult/upbraid/shut you up. And I was not
 offended/insulted/angry or anything like that. You made a statement. I
 pointed out that the statement was wrong. That's all.

 You learnt something from earlier emails.  That's good. Maybe you can
 learn something from this as well: e.g. you can go and learn something
 about MIME and what mailers do behind your back.

 Please do not misunderstand my terseness as anything other than it is:
 the minimal text possible to explain the problem.

 Nick

___
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] Re: [Accepted] Re: Bug: Jumping to a date in the agenda changes view back to 'day' [7.4 (release_7.4.80.g0e5e5)]

2011-02-18 Thread Carsten Dominik

Hi Bastien,

On Feb 18, 2011, at 3:19 PM, Bastien wrote:


Hi Carsten and all,

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


For what it is worth, and for the record, I still do not
believe that this is the correct solution to the problem.


I've finally push a fix for this problem.

The issue appeared when trying to redo a block agenda command,
where previous restrictions were not taking into account.

I tested the fix on various agenda custom views, with the tests
provided by Michael (thanks!) and it looks fine.


wow, you found your way through the agenda code maze.
Looks good to me!  Thanks for getting this fixed, so
that Juliens cleaner implementation can stay the basis
for time span setting.

- Carsten


___
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] Re: Can I input multiline in a cell?

2011-02-18 Thread Joost Kremers
On Fri, Feb 18, 2011 at 10:09:07AM -0500, brian powell wrote:
I haven't sent any HTMl that I know of--I fully embrace the plain text
KISS methods.

well, you're not sending plain text messages. look at your headers:

Content-Type: multipart/mixed; boundary0485505407==

the multipart part means that your messages contain different parts, encoded
in different ways. more precisely in your case, your messages consist of a plain
text part and an html part, both containing the same text.

when i read your message in mutt, this is what it shows:



[-- Autoview using elinks -dump -eval set document.codepage.assume = 
'ISO-8859-1' '/home/joost/tmp/mutt2xkhQU' --]
   I haven't sent any HTMl that I know of--I fully embrace the plain text
   KISS methods.
   [...]



the Autoview using elinks ... part means mutt is calling elinks to display the
message. i.e., it's displaying the html part.


-- 
Joost Kremers
Life has its moments

___
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: Worg publishing broken?

2011-02-18 Thread Jambunathan K

 1) Used shell instead of sh for the source block mode.  Fixed by
commit e4ed828.

If known languages are treated as keywords in #+begin_src context and
fontified appropriately there would be enough visual feedback so that a
user's `eye memory' could catch that something is amiss.

My 2 cents,
Jambunathan K.

___
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] indentation for section headings vs bulleted lists

2011-02-18 Thread Darlan Cavalcante Moreira

In fact, lists are indented like this, but indentation has meaning.

I remember some recent changes announced here in the mailing list to how
lists are handled in org that made lists more powerful. It seems now that
if some text is part or not of the list is controlled by
indentation. Therefore, if you write
#+begin_src org
- blah blah blah blah
  bleh bleh bleh bleh
blih blih blih blih
#+end_src
then bleh bleh bleh bleh is part of the list (as if it were in the same
line of blah blah blah blah), but not blih blih blih blih. You can test
this by exporting and seeing the result.

--
Darlan

At Thu, 17 Feb 2011 22:39:39 -0800,
Linus Arver linusar...@gmail.com wrote:
 
 Hello, I have
 
 #+STARTUP: indent
 
 in my .org file. I notice that section headings get indented like this:
 
 * blah blah blah blah
   blah blah blah blah
   blah blah blah blah
 ** blah blah blah blah
blah blah blah blah
blah blah blah blah
 
 This is very nice. But regular bulleted lists are indented like this:
 
 - blah blah blah blah
 blah blah blah blah
 blah blah blah blah
  - blah blah blah blah
  blah blah blah blah
  blah blah blah blah
 
 How do I make it so that bulleted lists are indented just like the section 
 headings?
 
 -Linus
 
 ___
 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


[Orgmode] Beamer export questions/suggestions

2011-02-18 Thread Derek Thomas
Before I get to my questions, I would like to commend all those
involved in the development of org-mode.  I'm a new user and I've been
amazed by the features, utility, and the support/documentation
provided.

My first question relates to frames in beamer export.  Is it possible
to set a tag or otherwise indicate that a frame should appear without
a title, or as an empty frame (no header or footer)?  My second
question may be more of a suggestion if the feature is not available.
I currently use the testpos package in latex to position my figures in
beamer.  Is there a native org method to specify figure location in
org-beamer?  If not, it could be a nice feature for those preparing
presentations in org especially if it had the option to specify
quadrant location and relative size in a simple manner.  Thanks again,

Derek

___
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] Re: Can I input multiline in a cell?

2011-02-18 Thread suvayu ali
Hi Brian,

On Fri, Feb 18, 2011 at 7:09 AM, brian powell briangpowel...@gmail.com wrote:
 I haven't sent any HTMl that I know of--I fully embrace the plain text
 KISS methods.

This comes up on all mailing lists rather often. On Gmail, to the
right of the rich text formatting bar, there is a Plain text link.
press that to turn off Rich text formatting, which is html in
disguise. I think GMail should be more explicit about this behaviour.
FWIW, I am sending this post from GMail using the plain text setting.

Hope this helps.

--
Suvayu

Open source is the future. It sets us free.

___
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: [babel] Suggestions: GRASS GIS und Lilypond

2011-02-18 Thread Thorsten

Hello, 
sorry for not participating in the discussion, but my exposition
to Orgmode has been recent so I would not have been able to commit
something valuable to the discussion. But I would be a happy user of
both new babel languages grass gis and lilypond, and it seems I'm not
alone.

Especially in the grass gis case it would be really helpfull if an
expert ecologist on the list ;) could write a little tutorial on Worg,
once the grass functionality is available, showing how to do literate
GIS-programming in an org-file, using and integrating all three
languages (grass, R, python).

Thanks for considering my suggestions 
Thorsten


___
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: Does Effort support hours only?

2011-02-18 Thread Herbert Sitz
Lawrence Mitchell wence at gmx.li writes:
  Is it possible to specify estimated effort in something other than hours
  (0.5, or 0:30)?
 
  Being able to specify suffixes like `d' for days or `w' for weeks would be
  awesome. But I guess it's very, very complex, though.
 
 Turns out probably not, unless I've missed something.  I think
 this set of patches does what's necessary to allow duration
 strings in effort properties.  And as a bonus its backwards
 compatible to the old style.  Try it and see if it works, if it
 does I'll roll it into a proper patch.
 

Lawrence -- 

I didn't test the patch, but it looks like it's hard coded to treat 24 hours as
1 day, 168 hours as 1 week, etc.  This seems like it would create more confusion
than there was before.  

In the context of measuring effort I think it's far more common to treat, e.g, 8
hours as the equivalent of a day's work.  Most people have 5 day works weeks,
but some don't. Etc.  In any case, giving user ability to set their own
conversion factors seems like a much-needed part of this.

-- Herb





___
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] [ANN] Lists changes pushed to master

2011-02-18 Thread Nicolas
Hello Org users,

Since a few hours, lists changes are in master branch. Here is a sum up
of the new functionalities:

* What's new

  1. Indentation of text determines again end of items in lists. So,
 some text less indented than the previous item doesn't close the
 whole list anymore, only all items more indented than it.

  2. Alphabetical bullets are implemented, through the use of the
 variable `org-alphabetical-lists'. This also adds alphabetical
 counters like [@c] or [@W].

  3. Lists can now safely contain drawers, inline tasks, or various
 blocks, themselves containing lists. Two variables are controlling
 this: `org-list-forbidden-blocks', and `org-list-export-context'.

  4. Improve `newline-and-indent' (C-j): used in an item, it will keep
 text from moving at column 0. This allows to split text and make
 paragraphs and still not break the list.

  5. Improve `org-toggle-item' (C-c -): used on a region with standard
 text, it will change the region into one item. With a prefix
 argument, it will fallback to the previous behavior and make every
 line in region an item. It permits to easily integrate paragraphs
 inside a list.

  6. `fill-paragraph' (M-q) now understands lists. It can freely be used
 inside items, or on text just after a list, even with no blank line
 around, without breaking everything.

* Incompatible changes

  Lists inside blocks are not seen by outside elements. As a corollary,
  check-boxes in such lists cannot be counted by cookies outside the
  block.

Regards,
  
-- 
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


Re: [Orgmode] Re: [BUG] htmlp and latexp

2011-02-18 Thread Jeff Horn
Thanks to Andreas, Christian, Bastien, and Nick. I didn't know about
org-reload, so that bit is handy. Faster than restarting emacs.

This bug is gone now. My backtrace also indicated org-ex-bibtex.el was
the culprit for me.

On Fri, Feb 18, 2011 at 3:49 AM, Bastien bastien.gue...@wikimedia.fr wrote:
 Hi Andreas,

 Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 I did not send to the list, so I resend my last email below.  But for me
 I found the issue:  org-exp-bibtex.el is the problem.

 Fixed, thanks.

 --
  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




-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/

___
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] Re: Worg publishing broken?

2011-02-18 Thread Bastien
Hi Jambunathan,

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

 1) Used shell instead of sh for the source block mode.  Fixed by
commit e4ed828.

 If known languages are treated as keywords in #+begin_src context and
 fontified appropriately there would be enough visual feedback so that a
 user's `eye memory' could catch that something is amiss.

Good idea -- I need time to explore org-src.el and I'm pretty sure 
Eric and Sebastien will be faster than me :)  

-- 
 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


Re: [Orgmode] Re: [CRASH] org-pretty-entities causes emacs to take 100% CPU

2011-02-18 Thread Lennart Borgman
On Fri, Feb 18, 2011 at 10:20 AM, Bastien bastien.gue...@wikimedia.fr wrote:
 Hi Vladimir,

 Vladimir Alexiev vladi...@sirma.bg writes:

 not able to reproduce this
 with GNU Emacs 24.0.50.2 of 2011-02-15.

 Can I get this from somewhere, built for W32/cygwin?
 I got 24.0.50.1 from file Emacs24.BZR.102298.Win32.20101110.zip
 from http://ourcomments.org/Emacs/DL/EmacsW32/EmacsCVS/unptch/ .
 I looked there for a newer version, but there isn't one.

 I cc Lennart, who can perhaps answer -- I'm not using windows.


I am now only uploading my patched version of Emacs+EmacsW32 since
there are now official binaries built from the trunk available. Please
see

  http://www.emacswiki.org/emacs/CategoryWThirtyTwo

BTW it has been quite a long time since I uploaded Emacs+EmacsW32
officially, but I did an inofficial upload yesterday. (I am not sure
how stable that is though I am using it myself.)

___
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] indentation for section headings vs bulleted lists

2011-02-18 Thread Linus Arver
On Fri, Feb 18, 2011 at 03:18:38PM -0300, Darlan Cavalcante Moreira wrote:
 
 In fact, lists are indented like this, but indentation has meaning.
 
 I remember some recent changes announced here in the mailing list to how
 lists are handled in org that made lists more powerful. It seems now that
 if some text is part or not of the list is controlled by
 indentation. Therefore, if you write
 #+begin_src org
 - blah blah blah blah
   bleh bleh bleh bleh
 blih blih blih blih
 #+end_src
 then bleh bleh bleh bleh is part of the list (as if it were in the same
 line of blah blah blah blah), but not blih blih blih blih. You can test
 this by exporting and seeing the result.
 

I think I failed to explain the problem more accurately. In my original
post, I stated the following behavior:

* blah blah blah blah
  blah blah blah blah
  blah blah blah blah
** blah blah blah blah
   blah blah blah blah
   blah blah blah blah
- blah blah blah blah
blah blah blah blah
blah blah blah blah
 - blah blah blah blah
 blah blah blah blah
 blah blah blah blah

In the above example, there are *only* 4 physical lines of text. That
is, there are only 4 newline characters in the actual text file. The

#+STARTUP: indent

property, from what I understand, merely takes the 4 actual lines and
soft wraps them intelligently, so as to create a series of *fake*
newlines and indents, to give the illusion of multiple, neatly-indented
lines.

My problem was that org-mode handles section headings (*) properly, but
not bulleted list items (-) for some reason, choosing to indent on the
location of the bullet (-) itself, and not the beginning of the actual
leading text. I.e., instead of

 - blah blah blah blah--- a *single* line
 blah blah blah blah
 blah blah blah blah
   - blah blah blah blah  --- another single line
   blah blah blah blah
   blah blah blah blah

I want org-mode to indent it like this:

 - blah blah blah blah
   blah blah blah blah
   blah blah blah blah
   - blah blah blah blah
 blah blah blah blah
 blah blah blah blah

Again, this is a soft wrap issue. I'll try to use the latest git version
of org-mode and see if that helps.

-Linus

___
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: libre/OpenOffice to orgmode

2011-02-18 Thread Jambunathan K
Nagarjuna G nagar...@gnowledge.org writes:

 I have seen this OpenOffice extension
 http://extensions.services.openoffice.org/en/project/wikipublisher,
 and it is included by default when you install libreOffice
 http://www.libreoffice.org/.

 It gave me the idea that why not we can consider making an
 orgpublisher on similar lines.  What other think about it?

Could you please clarify what you are suggesting here - publish from
what to what?. I believe you have already tried Mediawiki exporter. May
be you have something else in mind.

Btw, I have release an org-open/libreoffice exporter a few weeks back.


 --
 Nagarjuna

 ___
 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