all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Org-mode version 4.74
@ 2007-05-13  7:35 Carsten Dominik
  2007-05-13 11:43 ` Leo
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Carsten Dominik @ 2007-05-13  7:35 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I have released version 4.74 of Org-mode at

http://www.astro.uva.nl/~dominik/Tools/org/

Enjoy!

- Carsten


Changes in Version 4.74
-----------------------

* Overview

   This release is about exporting agenda views, to HTML, to
   postscript for printing, and to a special format (CSV) for
   further processing in scripts.

* Incompatible Changes

   - The variable `org-agenda-remove-tags-when-in-prefix' has
     been renamed to `org-agenda-remove-tags'.

* Details

   - Agenda views can be exported as plain text, as HTML, and as
     Postscript(R).  This can simply be done from the agenda
     buffer with `C-x C-w' and then specifying a filename like
     `myagenda.html' or `myagenda.ps'.  See section 8.6.4 of the
     manual.

   - Each custom agenda view can specify a list of associated
     files names.  The command `C-c a e' then creates all views
     that have associated file names and exports the views to
     these files.  This is great for producing paper versions of
     your views, to take with you when you don't have your
     computer.  The manual has an example on how to do this, and
     in particular on how to customize the format of the printed
     version.  See section 8.6.4 of the manual.

   - You can produce a CSV format of agenda information with an
     Emacs batch command.  This is greate for further processing
     in scipts.  Thanks to Jason F. McBrayer for this idea.
     See section 8.6.5 of the manual.

   - New variable `org-agenda-skip-deadline-if-done'.  When set,
     a deadline associated with a DONE item will not be shown in
     the agenda.  This is based upon a report by Denis Bueno.

   - Quite a few bug fixes.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Org-mode version 4.74
  2007-05-13  7:35 Org-mode version 4.74 Carsten Dominik
@ 2007-05-13 11:43 ` Leo
  2007-05-13 13:02   ` Leo
  2007-05-13 17:02 ` David Emery
  2007-05-21  4:51 ` Possible bug in " Ruslan Kosolapov
  2 siblings, 1 reply; 8+ messages in thread
From: Leo @ 2007-05-13 11:43 UTC (permalink / raw)
  To: emacs-orgmode

----- Carsten Dominik (2007-05-13) wrote:-----

>   - Agenda views can be exported as plain text, as HTML, and as
>     Postscript(R).  This can simply be done from the agenda
>     buffer with `C-x C-w' and then specifying a filename like
>     `myagenda.html' or `myagenda.ps'.  See section 8.6.4 of the
>     manual.

Start Emacs in a terminal such as xterm and than `C-x C-w' to a .ps
file, I get the following error:

,----
| Debugger entered--Lisp error: (error "`ps-default-fg' and `ps-default-bg' have the same color.
| Text won't appear on page.  Please, check these variables.")
|   signal(error ("`ps-default-fg' and `ps-default-bg' have the same color.\nText won't appear on page.  Please, check these variables."))
|   error("`ps-default-fg' and `ps-default-bg' have the same color.\nText won't appear on page.  Please, check these variables.")
|   ps-begin-job(ps-generate-postscript-with-faces)
|   ps-generate(#<buffer *Org Agenda*> 1 735 ps-generate-postscript-with-faces)
|   ps-spool-with-faces(1 735 nil)
|   ps-print-with-faces(1 735 "/home/leo/t.ps")
|   ps-print-buffer-with-faces("/home/leo/t.ps")
|   (cond ((string-match "\\.html?\\'" file) (require ...) (set-buffer ...) (write-file file) (kill-buffer ...) (message "HTML written to %s" file)) ((string-match "\\.ps\\'" file) (require ...) (ps-print-buffer-with-faces file) (message "Postscript written to %s" file)) (t (let ... ... ... ... ... ...)))
|   (save-window-excursion (cond (... ... ... ... ... ...) (... ... ... ...) (t ...)))
|   (save-excursion (save-window-excursion (cond ... ... ...)))
|   (let nil (save-excursion (save-window-excursion ...)) #<buffer *Org Agenda*>)
|   eval((let nil (save-excursion (save-window-excursion ...)) #<buffer *Org Agenda*>))
|   org-let(nil (save-excursion (save-window-excursion (cond ... ... ...))) #<buffer *Org Agenda*>)
|   org-write-agenda("/home/leo/t.ps")
|   call-interactively(org-write-agenda)
`----

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Org-mode version 4.74
  2007-05-13 11:43 ` Leo
@ 2007-05-13 13:02   ` Leo
  0 siblings, 0 replies; 8+ messages in thread
From: Leo @ 2007-05-13 13:02 UTC (permalink / raw)
  To: emacs-orgmode

----- Leo (2007-05-13) wrote:-----

>>   - Agenda views can be exported as plain text, as HTML, and as
>>     Postscript(R).  This can simply be done from the agenda
>>     buffer with `C-x C-w' and then specifying a filename like
>>     `myagenda.html' or `myagenda.ps'.  See section 8.6.4 of the
>>     manual.
>
> Start Emacs in a terminal such as xterm and than `C-x C-w' to a .ps
> file, I get the following error:

Looks like a bug in ps-print and i have reported to its maintainers.

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Org-mode version 4.74
  2007-05-13  7:35 Org-mode version 4.74 Carsten Dominik
  2007-05-13 11:43 ` Leo
@ 2007-05-13 17:02 ` David Emery
  2007-05-15 11:41   ` Carsten Dominik
  2007-05-21  4:51 ` Possible bug in " Ruslan Kosolapov
  2 siblings, 1 reply; 8+ messages in thread
From: David Emery @ 2007-05-13 17:02 UTC (permalink / raw)
  To: dominik; +Cc: emacs-orgmode

[-- Attachment #1: Type: Text/Plain, Size: 2630 bytes --]

On Date: Sun, 13 May 2007 09:35:15 +0200, Carsten Dominik <dominik@science.uva.nl> wrote:
> I have released version 4.74 of Org-mode at
> 
> http://www.astro.uva.nl/~dominik/Tools/org/
> * Overview
> 
>    This release is about exporting agenda views, to HTML, to
>    postscript for printing, and to a special format (CSV) for
>    further processing in scripts.

Great stuff! But of course as soon as I tried the agenda export to HTML, I
wanted to be able to customize the CSS. So here's a patch that adds a setting:
org-export-agenda-html-style. It's my first attempt at lisp, so I imagine it
could be improved, but it works OK for me so far.

I had originally thought to make the agenda export use org-export-html-style,
(easy enough to do) and add the agenda-specific styles to that. But the fact
that the agenda content gets wrapped in <pre> tags complicates things a
bit. That still might be a better approach, but I think for most people, the
style for <PRE> in regular html export would conflict with that for agenda
export.


Dave



> 
> * Incompatible Changes
> 
>    - The variable `org-agenda-remove-tags-when-in-prefix' has
>      been renamed to `org-agenda-remove-tags'.
> 
> * Details
> 
>    - Agenda views can be exported as plain text, as HTML, and as
>      Postscript(R).  This can simply be done from the agenda
>      buffer with `C-x C-w' and then specifying a filename like
>      `myagenda.html' or `myagenda.ps'.  See section 8.6.4 of the
>      manual.
> 
>    - Each custom agenda view can specify a list of associated
>      files names.  The command `C-c a e' then creates all views
>      that have associated file names and exports the views to
>      these files.  This is great for producing paper versions of
>      your views, to take with you when you don't have your
>      computer.  The manual has an example on how to do this, and
>      in particular on how to customize the format of the printed
>      version.  See section 8.6.4 of the manual.
> 
>    - You can produce a CSV format of agenda information with an
>      Emacs batch command.  This is greate for further processing
>      in scipts.  Thanks to Jason F. McBrayer for this idea.
>      See section 8.6.5 of the manual.
> 
>    - New variable `org-agenda-skip-deadline-if-done'.  When set,
>      a deadline associated with a DONE item will not be shown in
>      the agenda.  This is based upon a report by Denis Bueno.
> 
>    - Quite a few bug fixes.
> 
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

[-- Attachment #2: set_agenda_export_style.diff --]
[-- Type: Text/Plain, Size: 3347 bytes --]

--- org-4.74/org.el	2007-05-13 16:25:40.000000000 +0900
+++ org.el		2007-05-14 01:12:13.000000000 +0900
@@ -2708,6 +2708,90 @@
   :group 'org-export-html
   :type 'string)
 
+(defcustom org-export-agenda-html-style
+"<style type=\"text/css\">
+  html {
+	font-family: Times, serif;
+	font-size: 12pt;
+  }
+  .org-level-1 {
+    font-size: 150%;
+    color: #003399;
+    font-weight: 600;
+  }
+  .org-level-2 {
+    font-size: 130%;
+    color: #003399;
+   font-weight: 600;
+  }
+  .org-level-3 {
+    font-size: 110%;
+    color: #003399;
+   font-weight: 600;
+  }
+  .org-todo {
+    color: #cc6666;Week-agenda:
+    font-weight: bold;
+  }
+  .org-done {
+    color: #339933;
+  }
+  .org-scheduled-today {
+    color: #cc6666;
+  }
+  .org-warning {
+    color: #cc6666;
+    font-weight: 600;
+  }
+
+  a {
+    color: inherit;
+    background-color: inherit;
+    font: inherit;
+    text-decoration: inherit;
+  }
+  a:hover {
+    text-decoration: underline;
+  }
+</style>"
+  "The default style specification for exported HTML Agenda files.
+Since there are different ways of setting style information, this variable
+needs to contain the full HTML structure to provide a style, including the
+surrounding HTML tags.  The style specifications should include definitions
+for new classes todo, done, title, and deadline.  For example, legal values
+would be:
+
+   <style type=\"text/css\">
+       p { font-weight: normal; color: gray; }
+       .org-level-1 { color: black; }
+       .org-level-3 {
+          font-size: 110%;
+          color: #003399;
+          font-weight: 600;
+       }
+       .org-todo {
+          color: #cc6666;Week-agenda:
+          font-weight: bold;
+        }
+        .org-done {
+          color: #339933;
+        }
+        .title { text-align: center; }
+        .todo, .deadline { color: red; }
+        .done { color: green; }
+    </style>
+
+or, if you want to keep the style in a file,
+
+   <link rel=\"stylesheet\" type=\"text/css\" href=\"mystyles.css\">
+
+As the value of this option simply gets inserted into the HTML <head> header,
+you can \"misuse\" it to add arbitrary text to the header."
+  :group 'org-export-html
+  :type 'string)
+
+
+
 (defcustom org-export-html-title-format "<h1 class=\"title\">%s</h1>\n"
   "Format for typesetting the document title in HTML export."
   :group 'org-export-html
@@ -14292,6 +14376,15 @@
 	  ((string-match "\\.html?\\'" file)
 	   (require 'htmlize)
 	   (set-buffer (htmlize-buffer (current-buffer)))
+
+	   ;; replace the <style>...</style> section with org-export-agenda-html-style
+	   (goto-char (point-min))
+	   (kill-region (- (search-forward "<style") 6) 
+			(search-forward "</style>")
+	   )
+	   (insert org-export-agenda-html-style) 
+
+
 	   (write-file file)
 	   (kill-buffer (current-buffer))
 	   (message "HTML written to %s" file))
@@ -17269,6 +17362,8 @@
     (:tables               . org-export-with-tables)
     (:table-auto-headline  . org-export-highlight-first-table-line)
     (:style                . org-export-html-style)
+    ;;; added for agenda html export
+    (:agenda-style         . org-export-agenda-html-style)
     (:convert-org-links    . org-export-html-link-org-files-as-html)
     (:inline-images        . org-export-html-inline-images)
     (:expand-quoted-html   . org-export-html-expand)

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Org-mode version 4.74
  2007-05-13 17:02 ` David Emery
@ 2007-05-15 11:41   ` Carsten Dominik
  2007-05-15 22:34     ` dave
  0 siblings, 1 reply; 8+ messages in thread
From: Carsten Dominik @ 2007-05-15 11:41 UTC (permalink / raw)
  To: David Emery; +Cc: emacs-orgmode

Hi David,

thanks, I will take your patch, with the following changes:


- The name of the variable will be
   `org-agenda-export-html-style'.

- `org-level-3' will no longer be used as a face in the agenda,
   instead I use a new face `org-agenda-structure'.

- The default style will be empty, meaning that the stuff
   provided by htmlize not be changed.  Only if the variable
   `org-agenda-export-html-style contains a string that
   contains <style>...</style>, then it will replace the
   default style as given by htmlize.

- Carsten

On May 13, 2007, at 19:02, David Emery wrote:

> On Date: Sun, 13 May 2007 09:35:15 +0200, Carsten Dominik 
> <dominik@science.uva.nl> wrote:
>> I have released version 4.74 of Org-mode at
>>
>> http://www.astro.uva.nl/~dominik/Tools/org/
>> * Overview
>>
>>    This release is about exporting agenda views, to HTML, to
>>    postscript for printing, and to a special format (CSV) for
>>    further processing in scripts.
>
> Great stuff! But of course as soon as I tried the agenda export to 
> HTML, I
> wanted to be able to customize the CSS. So here's a patch that adds a 
> setting:
> org-export-agenda-html-style. It's my first attempt at lisp, so I 
> imagine it
> could be improved, but it works OK for me so far.
>
> I had originally thought to make the agenda export use 
> org-export-html-style,
> (easy enough to do) and add the agenda-specific styles to that. But 
> the fact
> that the agenda content gets wrapped in <pre> tags complicates things a
> bit. That still might be a better approach, but I think for most 
> people, the
> style for <PRE> in regular html export would conflict with that for 
> agenda
> export.
>
>
> Dave
>
>
>
>>
>> * Incompatible Changes
>>
>>    - The variable `org-agenda-remove-tags-when-in-prefix' has
>>      been renamed to `org-agenda-remove-tags'.
>>
>> * Details
>>
>>    - Agenda views can be exported as plain text, as HTML, and as
>>      Postscript(R).  This can simply be done from the agenda
>>      buffer with `C-x C-w' and then specifying a filename like
>>      `myagenda.html' or `myagenda.ps'.  See section 8.6.4 of the
>>      manual.
>>
>>    - Each custom agenda view can specify a list of associated
>>      files names.  The command `C-c a e' then creates all views
>>      that have associated file names and exports the views to
>>      these files.  This is great for producing paper versions of
>>      your views, to take with you when you don't have your
>>      computer.  The manual has an example on how to do this, and
>>      in particular on how to customize the format of the printed
>>      version.  See section 8.6.4 of the manual.
>>
>>    - You can produce a CSV format of agenda information with an
>>      Emacs batch command.  This is greate for further processing
>>      in scipts.  Thanks to Jason F. McBrayer for this idea.
>>      See section 8.6.5 of the manual.
>>
>>    - New variable `org-agenda-skip-deadline-if-done'.  When set,
>>      a deadline associated with a DONE item will not be shown in
>>      the agenda.  This is based upon a report by Denis Bueno.
>>
>>    - Quite a few bug fixes.
>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> --- org-4.74/org.el	2007-05-13 16:25:40.000000000 +0900
> +++ org.el		2007-05-14 01:12:13.000000000 +0900
> @@ -2708,6 +2708,90 @@
>    :group 'org-export-html
>    :type 'string)
>
> +(defcustom org-export-agenda-html-style
> +"<style type=\"text/css\">
> +  html {
> +	font-family: Times, serif;
> +	font-size: 12pt;
> +  }
> +  .org-level-1 {
> +    font-size: 150%;
> +    color: #003399;
> +    font-weight: 600;
> +  }
> +  .org-level-2 {
> +    font-size: 130%;
> +    color: #003399;
> +   font-weight: 600;
> +  }
> +  .org-level-3 {
> +    font-size: 110%;
> +    color: #003399;
> +   font-weight: 600;
> +  }
> +  .org-todo {
> +    color: #cc6666;Week-agenda:
> +    font-weight: bold;
> +  }
> +  .org-done {
> +    color: #339933;
> +  }
> +  .org-scheduled-today {
> +    color: #cc6666;
> +  }
> +  .org-warning {
> +    color: #cc6666;
> +    font-weight: 600;
> +  }
> +
> +  a {
> +    color: inherit;
> +    background-color: inherit;
> +    font: inherit;
> +    text-decoration: inherit;
> +  }
> +  a:hover {
> +    text-decoration: underline;
> +  }
> +</style>"
> +  "The default style specification for exported HTML Agenda files.
> +Since there are different ways of setting style information, this 
> variable
> +needs to contain the full HTML structure to provide a style, 
> including the
> +surrounding HTML tags.  The style specifications should include 
> definitions
> +for new classes todo, done, title, and deadline.  For example, legal 
> values
> +would be:
> +
> +   <style type=\"text/css\">
> +       p { font-weight: normal; color: gray; }
> +       .org-level-1 { color: black; }
> +       .org-level-3 {
> +          font-size: 110%;
> +          color: #003399;
> +          font-weight: 600;
> +       }
> +       .org-todo {
> +          color: #cc6666;Week-agenda:
> +          font-weight: bold;
> +        }
> +        .org-done {
> +          color: #339933;
> +        }
> +        .title { text-align: center; }
> +        .todo, .deadline { color: red; }
> +        .done { color: green; }
> +    </style>
> +
> +or, if you want to keep the style in a file,
> +
> +   <link rel=\"stylesheet\" type=\"text/css\" href=\"mystyles.css\">
> +
> +As the value of this option simply gets inserted into the HTML <head> 
> header,
> +you can \"misuse\" it to add arbitrary text to the header."
> +  :group 'org-export-html
> +  :type 'string)
> +
> +
> +
>  (defcustom org-export-html-title-format "<h1 
> class=\"title\">%s</h1>\n"
>    "Format for typesetting the document title in HTML export."
>    :group 'org-export-html
> @@ -14292,6 +14376,15 @@
>  	  ((string-match "\\.html?\\'" file)
>  	   (require 'htmlize)
>  	   (set-buffer (htmlize-buffer (current-buffer)))
> +
> +	   ;; replace the <style>...</style> section with 
> org-export-agenda-html-style
> +	   (goto-char (point-min))
> +	   (kill-region (- (search-forward "<style") 6)
> +			(search-forward "</style>")
> +	   )
> +	   (insert org-export-agenda-html-style)
> +
> +
>  	   (write-file file)
>  	   (kill-buffer (current-buffer))
>  	   (message "HTML written to %s" file))
> @@ -17269,6 +17362,8 @@
>      (:tables               . org-export-with-tables)
>      (:table-auto-headline  . org-export-highlight-first-table-line)
>      (:style                . org-export-html-style)
> +    ;;; added for agenda html export
> +    (:agenda-style         . org-export-agenda-html-style)
>      (:convert-org-links    . org-export-html-link-org-files-as-html)
>      (:inline-images        . org-export-html-inline-images)
>      (:expand-quoted-html   . org-export-html-expand)
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Org-mode version 4.74
  2007-05-15 11:41   ` Carsten Dominik
@ 2007-05-15 22:34     ` dave
  0 siblings, 0 replies; 8+ messages in thread
From: dave @ 2007-05-15 22:34 UTC (permalink / raw)
  To: dominik; +Cc: emacs-orgmode

On Date: Tue, 15 May 2007 13:41:18 +0200, Carsten Dominik <dominik@science.uva.nl> wrote:
> thanks, I will take your patch, with the following changes:
> 
> - The name of the variable will be
>    `org-agenda-export-html-style'.
> 
> - `org-level-3' will no longer be used as a face in the agenda,
>    instead I use a new face `org-agenda-structure'.
> 
> - The default style will be empty, meaning that the stuff
>    provided by htmlize not be changed.  Only if the variable
>    `org-agenda-export-html-style contains a string that
>    contains <style>...</style>, then it will replace the
>    default style as given by htmlize.

Sounds good to me. Thanks very much.

Dave

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Possible bug in Org-mode version 4.74
  2007-05-13  7:35 Org-mode version 4.74 Carsten Dominik
  2007-05-13 11:43 ` Leo
  2007-05-13 17:02 ` David Emery
@ 2007-05-21  4:51 ` Ruslan Kosolapov
  2007-05-21  8:27   ` Carsten Dominik
  2 siblings, 1 reply; 8+ messages in thread
From: Ruslan Kosolapov @ 2007-05-21  4:51 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2993 bytes --]


 CD> I have released version 4.74 of Org-mode at
 CD> http://www.astro.uva.nl/~dominik/Tools/org/

1. I got org-mode from http://staff.science.uva.nl/~dominik/Tools/org/org-4.74.tar.gz

2. I configure agenda export as follows:
(setq org-agenda-exporter-settings
      '((htmlize-output-type 'inline-css)))

(setq org-agenda-custom-commands
      '(("w" todo "WAITING" nil ("agenda-waiting.html"))
	("n" todo "NEXT" nil ("agenda-next.html"))
	("f" todo "FREEZED" nil ("agenda-freezed.html"))
	("d" "Agenda + NEXT" ((agenda) (todo "NEXT")) ("agenda+next.html"))
	("c" agenda "" nil ("agenda-current.html"))
	("I" "Ilnar tasks" ((tags "ilnar")) nil ("ilnar-tasks.html"))
	("R" "rk tasks" ((tags "rk")) nil ("rk-tasks.html"))
	))

3. Now when I press C-c a e, error appears (full errmessage in attach):
Debugger entered--Lisp error: (void-variable nosettings)
  (org-write-agenda "agenda-waiting.html" nosettings)

Additional info:
1. When I use C-x C-w in agenda buffer, I get another error (full
errmessage in second attach):
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
  insert(nil 10 "<!-- Created by htmlize-1.30 in inline-css mode. -->\n" "<html>\n  <head>\n" "    <title>" "*Org Agenda*" "</title>\n" "" "")

2. My emacs version is:
 GNU Emacs 22.0.95.1 (i486-pc-linux-gnu, GTK+ Version 2.8.20)
 of 2007-03-03 on pacem, modified by Debian

3. My org-file looks like this:
###################################################
#  Work tasks of QAA Team and personally rk.
#
#  Paradigm:
#   * tags indicates:
#     * responsible peoples
#     * kind of task: attestation task or not
#   * seq_todo indicates state of task
#   * category uses for projects scope showing
#
#Some settings of org-mode follows:
#+STARTUP: lognotestate
#+STARTUP: showall
#+TAGS: { rk(r) sveta(s) kir(k) zalomlenkov(z) ilnar(i) sgunkin(g) const(c) max(m) ikryak(v) } ATT
#+SEQ_TODO: NEW NEXT RESCHEDULED | DONE CANCELED
#+SEQ_TODO: WAITING SOMEDAY | CANCELED
#+SEQ_TODO: FREEZED | CANCELED
#+LINK: wiki http://trac.qa.plesk.ru:8080/wiki/
#+TITLE:     QAA Tasks
#+AUTHOR:    rk
#+EMAIL:     rk@plesk.ru
#+LANGUAGE:  ru
#+OPTIONS:   H:4 num:t toc:t \n:nil @:t ::t |:t ^:t *:t TeX:t LaTeX:nil skip:t
###################################################

#+CATEGORY: Incoming
* Incoming
** NEW Task example 1 :rk:
    DEADLINE: <2007-05-10 Чтв>

#+CATEGORY: General
* General
** NEXT Task example 2	:rk:
    DEADLINE: <2007-05-11 Птн>

4. Other org-configuration things:
(setq org-return-follows-link t)
(setq org-log-done '(done))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-agenda-files (list "~/work/doc/tasks/work.org"))
(setq org-export-html-style "<link rel=stylesheet href=\"style.css\" type=\"text/css\">")
(setq org-agenda-include-all-todo t)
(setq org-fontify-done-headline t)
(setq org-export-mark-todo-in-toc t)

5. Attaches with errors:

[-- Attachment #2: debug-orgmode --]
[-- Type: application/octet-stream, Size: 3275 bytes --]

Debugger entered--Lisp error: (void-variable nosettings)
  (org-write-agenda "agenda-waiting.html" nosettings)
  (let ((htmlize-output-type ...)) (org-write-agenda "agenda-waiting.html" nosettings))
  eval((let ((htmlize-output-type ...)) (org-write-agenda "agenda-waiting.html" nosettings)))
  (while files (eval (list ... ... ...)))
  (progn (flet (...) (eval ...)) (set-buffer "*Org Agenda*") (while files (eval ...)))
  (if files (progn (flet ... ...) (set-buffer "*Org Agenda*") (while files ...)))
  (when files (flet (...) (eval ...)) (set-buffer "*Org Agenda*") (while files (eval ...)))
  (while cmds (setq cmd (pop cmds) thiscmdkey (car cmd) opts (nth 3 cmd) files (org-last cmd)) (if (stringp files) (setq files ...)) (when files (flet ... ...) (set-buffer "*Org Agenda*") (while files ...)) (kill-buffer org-agenda-buffer-name))
  (save-window-excursion (while cmds (setq cmd ... thiscmdkey ... opts ... files ...) (if ... ...) (when files ... ... ...) (kill-buffer org-agenda-buffer-name)))
  (let ((cmds org-agenda-custom-commands) pars cmd thiscmdkey files file bs opts) (while parameters (push ... pars)) (setq pars (reverse pars)) (save-window-excursion (while cmds ... ... ... ...)))
  (lambda (&rest parameters) "Run all custom agenda commands that have a file argument." (let (... pars cmd thiscmdkey files file bs opts) (while parameters ...) (setq pars ...) (save-window-excursion ...)))()
  (org-batch-store-agenda-views)
  org-store-agenda-views()
  call-interactively(org-store-agenda-views)
  (cond ((setq entry ...) (if ... ... ...)) ((equal c 67) (customize-variable ...)) ((equal c 97) (call-interactively ...)) ((equal c 116) (call-interactively ...)) ((equal c 84) (org-call-with-arg ... ...)) ((equal c 109) (call-interactively ...)) ((equal c 77) (org-call-with-arg ... ...)) ((equal c 101) (call-interactively ...)) ((equal c 76) (unless restrict-ok ...) (org-call-with-arg ... arg)) ((equal c 35) (call-interactively ...)) ((equal c 33) (customize-variable ...)) (t (error "Invalid key")))
  (let* ((buf ...) (bfn ...) (restrict-ok ...) (custom org-agenda-custom-commands) c entry key type match lprops) (put (quote org-agenda-files) (quote org-restrict) nil) (setq org-agenda-restrict nil) (move-marker org-agenda-restrict-begin nil) (move-marker org-agenda-restrict-end nil) (setq org-agenda-last-dispatch-buffer (current-buffer)) (save-window-excursion (delete-other-windows) (switch-to-buffer-other-window " *Agenda Commands*") (erase-buffer) (insert ...) (while ... ... ...) (if restrict-ok ...) (goto-char ...) (if ... ...) (message "Press key for agenda command%s" ...) (setq c ...) (message "") (when ... ... ... ... ... ...)) (require (quote calendar)) (cond (... ...) (... ...) (... ...) (... ...) (... ...) (... ...) (... ...) (... ...) (... ... ...) (... ...) (... ...) (t ...)))
  (catch (quote exit) (let* (... ... ... ... c entry key type match lprops) (put ... ... nil) (setq org-agenda-restrict nil) (move-marker org-agenda-restrict-begin nil) (move-marker org-agenda-restrict-end nil) (setq org-agenda-last-dispatch-buffer ...) (save-window-excursion ... ... ... ... ... ... ... ... ... ... ... ...) (require ...) (cond ... ... ... ... ... ... ... ... ... ... ... ...)))
  org-agenda(nil)
  call-interactively(org-agenda)

[-- Attachment #3: debug-orgmode-2 --]
[-- Type: application/octet-stream, Size: 7069 bytes --]

[-- Attachment #4: Type: text/plain, Size: 129 bytes --]




PS: sorry, I have no time for deep investigation now :(

-- 
Ruslan Kosolapov
Plesk QA Department Second Manager
SWsoft, Inc.

[-- Attachment #5: Type: text/plain, Size: 149 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Possible bug in Org-mode version 4.74
  2007-05-21  4:51 ` Possible bug in " Ruslan Kosolapov
@ 2007-05-21  8:27   ` Carsten Dominik
  0 siblings, 0 replies; 8+ messages in thread
From: Carsten Dominik @ 2007-05-21  8:27 UTC (permalink / raw)
  To: Ruslan Kosolapov; +Cc: emacs-orgmode


On May 21, 2007, at 6:51, Ruslan Kosolapov wrote:

>
>  CD> I have released version 4.74 of Org-mode at
>  CD> http://www.astro.uva.nl/~dominik/Tools/org/
>
> 1. I got org-mode from 
> http://staff.science.uva.nl/~dominik/Tools/org/org-4.74.tar.gz
>
> 2. I configure agenda export as follows:
> (setq org-agenda-exporter-settings
>       '((htmlize-output-type 'inline-css)))
>
> (setq org-agenda-custom-commands
>       '(("w" todo "WAITING" nil ("agenda-waiting.html"))
> 	("n" todo "NEXT" nil ("agenda-next.html"))
> 	("f" todo "FREEZED" nil ("agenda-freezed.html"))
> 	("d" "Agenda + NEXT" ((agenda) (todo "NEXT")) ("agenda+next.html"))

there is `nil' missing between the list of commands and
the list of files.  nil stands for the list of options, you
have it right in all other cases.

> 	("c" agenda "" nil ("agenda-current.html"))
> 	("I" "Ilnar tasks" ((tags "ilnar")) nil ("ilnar-tasks.html"))
> 	("R" "rk tasks" ((tags "rk")) nil ("rk-tasks.html"))
> 	))
>
> 3. Now when I press C-c a e, error appears (full errmessage in attach):
> Debugger entered--Lisp error: (void-variable nosettings)
>   (org-write-agenda "agenda-waiting.html" nosettings)

Indeed a bug, will be fixed in 4.75.

>
> Additional info:
> 1. When I use C-x C-w in agenda buffer, I get another error (full
> errmessage in second attach):
> Debugger entered--Lisp error: (wrong-type-argument char-or-string-p 
> nil)
>   insert(nil 10 "<!-- Created by htmlize-1.30 in inline-css mode. 
> -->\n" "<html>\n  <head>\n" "    <title>" "*Org Agenda*" "</title>\n" 
> "" "")

This is another bug, thank you.  You can prevent if for the time being 
by loading htmlize before using the org stuff.  Will be fixed in 4.75 
as well.

Thanks a lot for the detailed report, quite complete!

One more thing:  I strongly advise to use absolute file names in 
org-agenda-custom-commands.

- Carsten

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-05-21  8:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-13  7:35 Org-mode version 4.74 Carsten Dominik
2007-05-13 11:43 ` Leo
2007-05-13 13:02   ` Leo
2007-05-13 17:02 ` David Emery
2007-05-15 11:41   ` Carsten Dominik
2007-05-15 22:34     ` dave
2007-05-21  4:51 ` Possible bug in " Ruslan Kosolapov
2007-05-21  8:27   ` Carsten Dominik

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.