[Orgmode] org-htmlslidy

2010-11-12 Thread Dov Grobgeld
org-htmlslidy is an org-mode html export option that outputs the result in
HTML Slidy format, see: http://www.w3.org/Talks/Tools/Slidy2/#%281%29 .

The work in progress may be downloaded from:

https://github.com/dov/org-slidy

Note that the resulting output may be heavily modified by supplying
additional css setup. E.g. the following header to an org file may be used
to choose the color and icons used on the W3C pages (you have to download
them locally as well).

#+STYLE: link rel='stylesheet' href='blue.css' type='text/css'  / link
rel='stylesheet' href='dov.css' type='text/css'  /
#+BIND: org-htmlslidy-html-preamble-footer h1A perl test/h1
#+BIND: org-export-html-preamble div class='background slanty'img
src='graphics/w3c-logo-slanted.jpg' alt='slanted W3C logo' //divdiv
class='background'img alt='' id='head-icon' src='graphics/icon-blue.png'
//a/object/div

Thanks a lot to the author of org-s5, Yann Hodique! org-htmlslidy is just a
slight modification of his module.

Regards,
Dov
___
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] bug: html export, latex fragments and emphasize

2010-11-12 Thread Eric S Fraga
Nicolas Goaziou n.goaz...@gmail.com writes:

 Hello,

 Here is a problem when a latex fragment is split across two lines and
 an emphasize follows. The text won't be italicized upon exporting to
 HTML.

 =
 * latex-fragments bug

   Imagine we have a formula starting here $e^{i\pi} +
   1 = 0$. Now we have a problem with /emphasize/.
 =

 This is because the line starts with a char with 'org-protected
 property and, thus, get caught by the Protected HTML (org-html.el
 l. 1216) part of `org-export-as-html'. In others words, the line is
 inserted as-is in the output buffer, before getting any
 transformation.

Just to confirm that this problem exists for me as well even when using
=\( ... \)= instead of =$ ...$= constructs (which I believe is safer).

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.42.g0fd5ec)

___
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: org-odt list bug - help reproducing?

2010-11-12 Thread Matt Price
On Wed, Nov 10, 2010 at 11:14 AM, Jambunathan K kjambunat...@gmail.comwrote:

 Matt

 I am unable to reproduce the said behaviour.

 From my work-area (which is same as that in git), the odt produced is
 valid. I am attaching the odts produced in my work area. Let me know if
 what is attached is not what you expect.


I wonder if anyone on the list can reproduce the bug I'm finding in
Jambunathan's odt exporter?   The attached org file creates the attached
invalid odt file for me -- this is true both on my main laptop and in a
clean environment I just went to some trouble to create on another computer,
but J cannot reproduce the error.  I'm wondering if perhaps there's some
implicit dependency in J's code somewhere that neither of us sees, and that
isn't fulfilled on either of my systems.  I can't think of any other
explanation

thanks as  always for your help!
Matt


desc_test_short1.odt
Description: Zip archive


desc_test_short_2.odt
Description: application/vnd.oasis.opendocument.text
___
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: org-odt list bug - help reproducing?

2010-11-12 Thread Matt Price
On Fri, Nov 12, 2010 at 7:10 AM, Matt Price mopto...@gmail.com wrote:


 I wonder if anyone on the list can reproduce the bug I'm finding in
 Jambunathan's odt exporter?   The attached org file creates the attached
 invalid odt file for me


gnashing of teeth...  I failed to attach the right files -- attached here is
the original org file which generates desc_test_short_2.odt attached in my
previous email.  thanks,
matt


desc_test_short_2.org
Description: Binary data
___
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: Store link upon sending a message

2010-11-12 Thread Ulf Stegemann
I came back to the matter of storing an org link to a copy of a message
upon sending that message.  The function below does just that and proves
to be quite useful together with a sensible key binding (if you use Gnus
and Gcc that is).

--8--cut herestart8---

(defun ulf-message-send-and-org-gnus-store-link (optional arg)
  Send message with `message-send-and-exit' and store org link to message copy.
If multiple groups appear in the Gcc header, the link refers to
the copy in the last group.
  (interactive P)
  (save-excursion
(save-restriction
  (message-narrow-to-headers)
  (let ((gcc (car (last
   (message-unquote-tokens
(message-tokenize-header
 (mail-fetch-field gcc nil t)  ,)
(buf (current-buffer))
id to from subject desc link newsgroup xarchive)
(message-send-and-exit arg)
(or
 ;; gcc group found ...
 (and gcc
  (save-current-buffer
(progn (set-buffer buf)
   (setq id (org-remove-angle-brackets
 (mail-fetch-field Message-ID)))
   (setq to (mail-fetch-field To))
   (setq from (mail-fetch-field From))
   (setq subject (mail-fetch-field Subject
  (org-store-link-props :type gnus :from from :subject subject
:message-id id :group gcc :to to)
  (setq desc (org-email-link-description))
  (setq link (org-gnus-article-link
  gcc newsgroup id xarchive))
  (setq org-stored-links
(cons (list link desc) org-stored-links)))
 ;; no gcc group found ...
 (message Can not create Org link: No Gcc header found.))

(define-key message-mode-map [(control c) (control meta c)]
  'ulf-message-send-and-org-gnus-store-link)

--8--cut here-end-8---

Ulf


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


[Orgmode] [PATCH] (ELPA): Support for building Package Variants and Package Upload

2010-11-12 Thread Jambunathan K


1 Summary 
~~
  (ELPA): Add support for the following:

  1. Package README files
  2. Upload of Packages to the repository
  3. Building of Package Variants (stable, snapshot ect)

  This patch is backward-compatible and it wouldn't question the
  status-quo. It understands existing scheme of things.

  To exploit this patch, a patched-up package-x.el is highly
  recommended. Read on ...

2 Building Plain Vanilla Packages 
~~

2.1 Notes 
==

   Builds plain vanialla packages. Doesn't upload packages. 

   There will be a WARNING message saying that the package was not
   uploaded. This can be noted and ignored.
   

2.2 Build Procedure 

   1. make PKG_TAG=7.3
  This builds org-7.3.tar
   2. make pkg
  This builds org-20101112.tar

3 Building Package Variants 


3.1 Notes 
==
Modify/Uncomment PKG_SEP and PKG_FLAVOUR setting in Makefile as
desired. 

There is a choice of PKG_SEP. Pick what you like. Use of '-' is
discouraged.

Assumption is:
- stable releases are built with an explicit PKG_TAG
- stable releases are non-flavored while the snapshot builds are
  flavored.

3.2 Build Procedure 

   1. make PKG_TAG=7.3
  This builds org-7.3.tar
   2. make pkg
  This builds o...@snaphsot-20101112.tar

4 Package Uploads 
~~

4.1 Notes 
==
   - PKG_UPLOAD_DIR: directory where the package files are
 uploaded. i.e., it is the *local directory* behind the repo URL
 ([http://orgmode.org/pkg/daily/]). For eg, /var/www/pub/pkg/daily/.

 IMPORTANT NOTE: Remember to include the trailing '/' in the
 directory while setting this variable.

   - PKG_EL_DIR: This is added to the load-path during BATCH
 compilation. The intention is two fold:

 1. load package.el and package-x.el if the build machine is using
Emacs-23 or less (which don't ship with package manager)

 2. Override package.el and package-x.el that ship with Emacs with
a custom or a patched up version.

 IMPORTANT NOTE: The rule for 'pkg-upload' depends on my patch to
 Package Manager which is accepted but not committed yet because
 of the (postal?) delay in FSF copyright requirements.

[http://lists.gnu.org/archive/html/emacs-devel/2010-11/msg00026.html]


4.2 Build Procedure 


   1. make PKG_EL_DIR=~/elisp PKG_UPLOAD_DIR=~/packages/ PKG_TAG=7.3 pkg

  This builds org-7.3.tar and uploads the same to ~/packages
  using package-x.el in ~/elisp/

   2. make PKG_EL_DIR=~/elisp PKG_UPLOAD_DIR=~/packages/ pkg

  This builds org-20101112.tar and uploads the same to
  ~/packages using package-x.el in ~/elisp/

Jambunathan K.

Attachments
~~~

From 06d227cc4d4e3ac86320690ebbe184bb804d9bf1 Mon Sep 17 00:00:00 2001
From: Jambunathan K kjambunat...@gmail.com
Date: Fri, 12 Nov 2010 16:32:51 +0530
Subject: [PATCH] (ELPA): Support for building Package Variants and Package Upload.

(PKG_TAG): Use PKG_TAG to control package flavour. If unspecified,
assume a snapshot build.

(PKG_SEP, PKG_FLAVOUR): New config variables for building various
flavours of ELPA tarball. For eg., org-7.3.tar,
o...@snapshot-20101112.tar, org-snapshot-20101112 etc.

(PKG_FILES): Removed
(PKG_BASE_FILES): Files here end up in the root dir.
(PKG_DOC_FILES): Files here end up in the doc dir.

(PKG_README_ORG_FILE): README file

(PKG_EL_DIR): Load path for package.el and package-x.el. Useful if the
build machine runs an 'old' Emacs or if the build process requires a
patched up versions of these files.

(PKG_UPLOAD_DIR): 'pub' dir of the webserver serving the ELPA tarball.

(pkg-upload, pkg-readme): New targets subsumed within pkg target.
---
diff --git a/Makefile b/Makefile
old mode 100644
new mode 100755
index 0b15abe..5c13d8b
--- a/Makefile
+++ b/Makefile
@@ -165,18 +165,44 @@ TEXIFILES   = doc/org.texi
 INFOFILES   = doc/org
 
 # Package Manager (ELPA)
+
+# PKG_TAG = 
+
+ifndef PKG_TAG
+# PKG_SEP = @
+# PKG_SEP = -
+# PKG_SEP = .
+# PKG_FLAVOUR = snapshot
 PKG_TAG = $(shell date +%Y%m%d)
+endif
+
+PKG_BNAME = org
+PKG_QNAME = $(PKG_BNAME)$(PKG_SEP)$(PKG_FLAVOUR)
+PKG_FNAME = $(PKG_QNAME)-$(PKG_TAG)
+
 PKG_DOC = Outline-based notes management and organizer
 PKG_REQ = nil
 
-PKG_FILES = $(LISPFILES0)		\
-doc/dir doc/org		\
-doc/pdflayout.sty		\
-doc/org.pdf			\
-doc/orgguide.pdf		\
-doc/orgcard.tex		\
-doc/orgcard.pdf		\
-doc/orgcard_letter.pdf
+PKG_BASE_FILES = $(LISPFILES0)  \
+ doc/dir doc/org
+
+PKG_DOC_FILES = \
+doc/org.pdf \
+doc/org.html\
+doc/orgguide.pdf\
+doc/orgcard.txt \
+doc/orgcard.pdf \
+doc/orgcard_letter.pdf

Re: [Orgmode] bug: html export, latex fragments and emphasize

2010-11-12 Thread Carsten Dominik


On Nov 11, 2010, at 7:28 PM, Nicolas Goaziou wrote:


Hello,

Here is a problem when a latex fragment is split across two lines and
an emphasize follows. The text won't be italicized upon exporting to
HTML.

=
* latex-fragments bug

 Imagine we have a formula starting here $e^{i\pi} +
 1 = 0$. Now we have a problem with /emphasize/.
=

This is because the line starts with a char with 'org-protected
property and, thus, get caught by the Protected HTML (org-html.el
l. 1216) part of `org-export-as-html'. In others words, the line is
inserted as-is in the output buffer, before getting any
transformation.

I'm not sure how it should be done (I don't get yet the usefulness of
this Protected HTML part), but that piece of code may be moved after
the `org-html-expand' call, as long as every sub-function in
`org-html-expand' has a check to prevent modifying protected stuff
(this not yet the case for `org-export-with-emphasize' and
`org-html-protect' while others seem ok).

But even in this case, every function getting called after that would
be ignored. So, for example, links would not be inserted.

Couldn't the Protected HTML part be removed altogether?


Hi Nicolas,

I am not entirely sure if it could be removed.  The origin of this
is to make begin_html ... end_html work to keep entire blocks  
unmodified.  It is possible that the code after this line by now has  
enough checks for protectedness - but I am not sure.


For the time being, I have pushed a different fix which does fix the  
specific issue you show, but will still fail if the math expression in  
more than 2 lines :(


It might be worth while to switch the protected html part off and see  
what happens - but that would have to be done on a special branch with  
significant testing by a number of people.


Regards

- 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: Store link upon sending a message

2010-11-12 Thread Eric S Fraga
Ulf Stegemann ulf-n...@zeitform.de writes:

 I came back to the matter of storing an org link to a copy of a message
 upon sending that message.  The function below does just that and proves
 to be quite useful together with a sensible key binding (if you use Gnus
 and Gcc that is).

Very nice!  Works very well.  Thanks.

Instead of binding this to a command sequence, is there any hook we can
attach the function to so that it's invoked for every message I send
(I'm somewhat of a gnus noob unfortunately although I'm learning...)?  I
ask because I alternative between =C-c C-c= and =C-c C-j= for sending
emails and I would need to provide two alternatives to incorporate your
function.

Thanks again,
eric
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.42.g0fd5ec)

___
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: Store link upon sending a message

2010-11-12 Thread Ulf Stegemann
Eric S. Fraga ucec...@ucl.ac.uk wrote:

 Ulf Stegemann ulf-n...@zeitform.de writes:

 I came back to the matter of storing an org link to a copy of a message
 upon sending that message.  The function below does just that and proves
 to be quite useful together with a sensible key binding (if you use Gnus
 and Gcc that is).

 Very nice!  Works very well.  Thanks.

 Instead of binding this to a command sequence, is there any hook we can
 attach the function to so that it's invoked for every message I send
 (I'm somewhat of a gnus noob unfortunately although I'm learning...)?  I
 ask because I alternative between =C-c C-c= and =C-c C-j= for sending
 emails and I would need to provide two alternatives to incorporate your
 function.

hmmm, never thought of this, probably because I never use
`gnus-delay-article'.  You could try to put the function into
`message-send-hook' (but you should remove the call to
`message-send-and-exit' first).  I don't know if this would work as I
don't know if the Gcc magic (incl. removal of Gcc header) is done before
or after that hook.  If the Gcc header has been removed when
`message-send-hook' is called than you'll have to look for a different
hook to use.  If the Gcc header is still present, it should probably
work as expected but note that in that case the org link will be created
before the actual copying of the message took place. If something goes
wrong with the latter this will leave you with a bogus org link (which,
however, is probably not much of a problem).

Ulf


___
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] [PATCH] (ELPA): Support for building Package Variants and Package Upload

2010-11-12 Thread Carsten Dominik

Hi Jambunathan,

thanks for this!


2.2 Build Procedure

  1. make PKG_TAG=7.3
 This builds org-7.3.tar


I guess this must be

 make pkg PKG_TAG=...

right?

I think it would be good to *not* use a name that is just like the  
normal org distribution files.  I am distributing under the names


org-7.3.tar.gz
org-7.3.zip

or is this not a possible problem?

- Carsten



  2. make pkg
 This builds org-20101112.tar

3 Building Package Variants


3.1 Notes
==
   Modify/Uncomment PKG_SEP and PKG_FLAVOUR setting in Makefile as
   desired.

   There is a choice of PKG_SEP. Pick what you like. Use of '-' is
   discouraged.

   Assumption is:
   - stable releases are built with an explicit PKG_TAG
   - stable releases are non-flavored while the snapshot builds are
 flavored.

3.2 Build Procedure

  1. make PKG_TAG=7.3
 This builds org-7.3.tar
  2. make pkg
 This builds o...@snaphsot-20101112.tar

4 Package Uploads
~~

4.1 Notes
==
  - PKG_UPLOAD_DIR: directory where the package files are
uploaded. i.e., it is the *local directory* behind the repo URL
([http://orgmode.org/pkg/daily/]). For eg, /var/www/pub/pkg/ 
daily/.


IMPORTANT NOTE: Remember to include the trailing '/' in the
directory while setting this variable.

  - PKG_EL_DIR: This is added to the load-path during BATCH
compilation. The intention is two fold:

1. load package.el and package-x.el if the build machine is using
   Emacs-23 or less (which don't ship with package manager)

2. Override package.el and package-x.el that ship with Emacs with
   a custom or a patched up version.

IMPORTANT NOTE: The rule for 'pkg-upload' depends on my patch to
Package Manager which is accepted but not committed yet because
of the (postal?) delay in FSF copyright requirements.

   [http://lists.gnu.org/archive/html/emacs-devel/2010-11/msg00026.html 
]



4.2 Build Procedure


  1. make PKG_EL_DIR=~/elisp PKG_UPLOAD_DIR=~/packages/  
PKG_TAG=7.3 pkg


 This builds org-7.3.tar and uploads the same to ~/packages
 using package-x.el in ~/elisp/

  2. make PKG_EL_DIR=~/elisp PKG_UPLOAD_DIR=~/packages/ pkg

 This builds org-20101112.tar and uploads the same to
 ~/packages using package-x.el in ~/elisp/

Jambunathan K.

Attachments
~~~

From 06d227cc4d4e3ac86320690ebbe184bb804d9bf1 Mon Sep 17 00:00:00 2001
From: Jambunathan K kjambunat...@gmail.com
Date: Fri, 12 Nov 2010 16:32:51 +0530
Subject: [PATCH] (ELPA): Support for building Package Variants and  
Package Upload.


(PKG_TAG): Use PKG_TAG to control package flavour. If unspecified,
assume a snapshot build.

(PKG_SEP, PKG_FLAVOUR): New config variables for building various
flavours of ELPA tarball. For eg., org-7.3.tar,
o...@snapshot-20101112.tar, org-snapshot-20101112 etc.

(PKG_FILES): Removed
(PKG_BASE_FILES): Files here end up in the root dir.
(PKG_DOC_FILES): Files here end up in the doc dir.

(PKG_README_ORG_FILE): README file

(PKG_EL_DIR): Load path for package.el and package-x.el. Useful if the
build machine runs an 'old' Emacs or if the build process requires a
patched up versions of these files.

(PKG_UPLOAD_DIR): 'pub' dir of the webserver serving the ELPA tarball.

(pkg-upload, pkg-readme): New targets subsumed within pkg target.
---
diff --git a/Makefile b/Makefile
old mode 100644
new mode 100755
index 0b15abe..5c13d8b
--- a/Makefile
+++ b/Makefile
@@ -165,18 +165,44 @@ TEXIFILES   = doc/org.texi
INFOFILES   = doc/org

# Package Manager (ELPA)
+
+# PKG_TAG =
+
+ifndef PKG_TAG
+# PKG_SEP = @
+# PKG_SEP = -
+# PKG_SEP = .
+# PKG_FLAVOUR = snapshot
PKG_TAG = $(shell date +%Y%m%d)
+endif
+
+PKG_BNAME = org
+PKG_QNAME = $(PKG_BNAME)$(PKG_SEP)$(PKG_FLAVOUR)
+PKG_FNAME = $(PKG_QNAME)-$(PKG_TAG)
+
PKG_DOC = Outline-based notes management and organizer
PKG_REQ = nil

-PKG_FILES = $(LISPFILES0)  \
-doc/dir doc/org\
-doc/pdflayout.sty  \
-doc/org.pdf\
-doc/orgguide.pdf   \
-doc/orgcard.tex\
-doc/orgcard.pdf\
-doc/orgcard_letter.pdf
+PKG_BASE_FILES = $(LISPFILES0)  \
+ doc/dir doc/org
+
+PKG_DOC_FILES = \
+doc/org.pdf \
+doc/org.html\
+doc/orgguide.pdf\
+doc/orgcard.txt \
+doc/orgcard.pdf \
+doc/orgcard_letter.pdf
+
+PKG_README_ORG_FILE = ORGWEBPAGE/Changes.org
+PKG_README_TXT_FILE = $(PKG_README_ORG_FILE:%.org=%.txt)
+
+# PKG_EL_DIR =
+# PKG_UPLOAD_DIR =
+
+ifdef PKG_EL_DIR
+BATCH_EXTRA = -eval (setq load-path (cons (expand-file-name \$ 
(PKG_EL_DIR)\) load-path))

+endif

.SUFFIXES: .el .elc .texi
SHELL = /bin/sh
@@ -372,16 +398,46 @@ distfile

Re: [Orgmode] [PATCH 2/2] org-agenda: add org-agenda-day-face-function

2010-11-12 Thread Carsten Dominik

Hi Julien,

to make sure I don't make a mistake here, could you please send a new  
patch which contains all the changes in a single patch.


Sorry about this.

- Carsten

On Nov 8, 2010, at 11:23 AM, Julien Danjou wrote:


* lisp/org-agenda.el (org-agenda-day-face-function): New variable.
(org-agenda-get-day-face): Use org-agenda-day-face-function.

Signed-off-by: Julien Danjou jul...@danjou.info
---
lisp/org-agenda.el |   20 +++-
1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 98371e6..ffd6c90 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1433,6 +1433,14 @@ determines if it is a foreground or a  
background color.

   (string :tag Color)
   (sexp :tag Face))

+(defcustom org-agenda-day-face-function nil
+  Function called to determine what face should be used to display  
a day.

+The only argument passed to that function is the day. It should
+returns a face, or nil if does not want to specify a face and let
+the normal rules apply.
+  :group 'org-agenda-line-format
+  :type 'function)
+
(defcustom org-agenda-category-icon-alist nil
  Alist of category icon to be displayed in agenda views.

@@ -3108,11 +3116,13 @@ no longer in use.

(defun org-agenda-get-day-face (date)
  Return the face DATE should be displayed with.
-  (cond ((org-agenda-todayp date)
-'org-agenda-date-today)
-   ((member (calendar-day-of-week date) org-agenda-weekend-days)
-'org-agenda-date-weekend)
-   (t 'org-agenda-date)))
+  (or (and (functionp org-agenda-day-face-function)
+  (funcall org-agenda-day-face-function date))
+  (cond ((org-agenda-todayp date)
+'org-agenda-date-today)
+   ((member (calendar-day-of-week date) org-agenda-weekend-days)
+'org-agenda-date-weekend)
+   (t 'org-agenda-date

;;; Agenda timeline

--
1.7.2.3


___
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] [PATCH 2/2] org-agenda: add org-agenda-day-face-function

2010-11-12 Thread Julien Danjou
On Fri, Nov 12 2010, Carsten Dominik wrote:

 to make sure I don't make a mistake here, could you please send a new patch
 which contains all the changes in a single patch.

 Sorry about this.

No problem, here it is.

From 38567a7d7a58e523964be216f791e4c78a085c52 Mon Sep 17 00:00:00 2001
From: Julien Danjou jul...@danjou.info
Date: Mon, 8 Nov 2010 15:25:22 +0100
Subject: [PATCH] org-agenda: introduce org-agenda-today, org-agenda-get-day-face and org-agenda-day-face-function

* lisp/org-agenda.el (org-agenda-today): New function.
(org-agenda-get-day-face): New function.
(org-timeline): Use org-agenda-today and org-agenda-get-day-face.
(org-agenda-list): Use org-agenda-today and org-agenda-get-day-face.
(org-todo-list): Use org-agenda-today.
(org-get-all-dates): Use org-agenda-today.
(org-agenda-day-face-function): New variable.
(org-agenda-get-day-face): Use org-agenda-day-face-function.

Signed-off-by: Julien Danjou jul...@danjou.info
---
 lisp/org-agenda.el |   75 +--
 1 files changed, 43 insertions(+), 32 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 583e670..e2d20b5 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1433,6 +1433,14 @@ determines if it is a foreground or a background color.
    (string :tag Color)
    (sexp :tag Face))
 
+(defcustom org-agenda-day-face-function nil
+  Function called to determine what face should be used to display a day.
+The only argument passed to that function is the day. It should
+returns a face, or nil if does not want to specify a face and let
+the normal rules apply.
+  :group 'org-agenda-line-format
+  :type 'function)
+
 (defcustom org-agenda-category-icon-alist nil
   Alist of category icon to be displayed in agenda views.
 
@@ -3106,6 +3114,16 @@ no longer in use.
 		  (progn (delete-overlay o) t)))
 		(overlays-in (point-min) (point-max)
 
+(defun org-agenda-get-day-face (date)
+  Return the face DATE should be displayed with.
+  (or (and (functionp org-agenda-day-face-function)
+	   (funcall org-agenda-day-face-function date))
+  (cond ((org-agenda-todayp date)
+	 'org-agenda-date-today)
+	((member (calendar-day-of-week date) org-agenda-weekend-days)
+	 'org-agenda-date-weekend)
+	(t 'org-agenda-date
+
 ;;; Agenda timeline
 
 (defvar org-agenda-only-exact-dates nil) ; dynamically scoped
@@ -3133,10 +3151,10 @@ dates.
 	 org-timeline-show-empty-dates))
 	 (org-deadline-warning-days 0)
 	 (org-agenda-only-exact-dates t)
-	 (today (time-to-days (current-time)))
+	 (today (org-agenda-today))
 	 (past t)
 	 args
-	 s e rtn d emptyp wd)
+	 s e rtn d emptyp)
 (setq org-agenda-redo-command
 	  (list 'progn
 		(list 'org-switch-to-buffer-other-window (current-buffer))
@@ -3170,8 +3188,7 @@ dates.
 	(progn
 	  (setq past nil)
 	  (insert (make-string 79 ?-) \n)))
-	(setq date (calendar-gregorian-from-absolute d)
-	  wd (calendar-day-of-week date))
+	(setq date (calendar-gregorian-from-absolute d))
 	(setq s (point))
 	(setq rtn (and (not emptyp)
 		   (apply 'org-agenda-get-day-entries entry
@@ -3185,9 +3202,7 @@ dates.
 		 (funcall org-agenda-format-date date))
 	   \n)
 	  (put-text-property s (1- (point)) 'face
- (if (member wd org-agenda-weekend-days)
- 'org-agenda-date-weekend
-   'org-agenda-date))
+ (org-agenda-get-day-face date))
 	  (put-text-property s (1- (point)) 'org-date-line t)
 	  (put-text-property s (1- (point)) 'org-agenda-date-header t)
 	  (if (equal d today)
@@ -3213,7 +3228,7 @@ When EMPTY is non-nil, also include days without any entries.
 	 (if inactive org-ts-regexp-both org-ts-regexp)))
 	 dates dates1 date day day1 day2 ts1 ts2)
 (if force-today
-	(setq dates (list (time-to-days (current-time)
+	(setq dates (list (org-agenda-today
 (save-excursion
   (goto-char beg)
   (while (re-search-forward re end t)
@@ -3324,9 +3339,7 @@ given in `org-agenda-start-on-weekday'.
 	  org-agenda-start-on-weekday nil))
 	 (thefiles (org-agenda-files nil 'ifmode))
 	 (files thefiles)
-	 (today (time-to-days
-		 (time-subtract (current-time)
-(list 0 (* 3600 org-extend-today-until) 0
+	 (today (org-agenda-today))
 	 (sd (or start-day today))
 	 (start (if (or (null org-agenda-start-on-weekday)
 			( org-agenda-ndays 7))
@@ -3339,7 +3352,7 @@ given in `org-agenda-start-on-weekday'.
 	 (day-numbers (list start))
 	 (day-cnt 0)
 	 (inhibit-redisplay (not debug-on-error))
-	 s e rtn rtnall file date d start-pos end-pos todayp nd wd
+	 s e rtn rtnall file date d start-pos end-pos todayp nd
 	 clocktable-start clocktable-end filter)
 (setq org-agenda-redo-command
 	  (list 'org-agenda-list (list 'quote include-all) start-day ndays))
@@ -3397,7 +3410,6 @@ given in `org-agenda-start-on-weekday'.
   (org-agenda-mark-header-line s))
 (while (setq d (pop day-numbers))
   (setq date (calendar-gregorian-from-absolute d)

Re: [Orgmode] [PATCH 2/2] org-agenda: add org-agenda-day-face-function

2010-11-12 Thread Carsten Dominik

Applied, thanks.

I did not test it myself (have grown to trust Julien...), so if  
someone can put this to a test, that would be nice.


Cheers

- Carsten

On Nov 12, 2010, at 9:34 AM, Julien Danjou wrote:


On Fri, Nov 12 2010, Carsten Dominik wrote:

to make sure I don't make a mistake here, could you please send a  
new patch

which contains all the changes in a single patch.

Sorry about this.


No problem, here it is.

From 38567a7d7a58e523964be216f791e4c78a085c52 Mon Sep 17 00:00:00 2001
From: Julien Danjou jul...@danjou.info
Date: Mon, 8 Nov 2010 15:25:22 +0100
Subject: [PATCH] org-agenda: introduce org-agenda-today, org-agenda- 
get-day-face and org-agenda-day-face-function


* lisp/org-agenda.el (org-agenda-today): New function.
(org-agenda-get-day-face): New function.
(org-timeline): Use org-agenda-today and org-agenda-get-day-face.
(org-agenda-list): Use org-agenda-today and org-agenda-get-day-face.
(org-todo-list): Use org-agenda-today.
(org-get-all-dates): Use org-agenda-today.
(org-agenda-day-face-function): New variable.
(org-agenda-get-day-face): Use org-agenda-day-face-function.

Signed-off-by: Julien Danjou jul...@danjou.info
---
lisp/org-agenda.el |   75  
+--

1 files changed, 43 insertions(+), 32 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 583e670..e2d20b5 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1433,6 +1433,14 @@ determines if it is a foreground or a  
background color.

   (string :tag Color)
   (sexp :tag Face))

+(defcustom org-agenda-day-face-function nil
+  Function called to determine what face should be used to display  
a day.

+The only argument passed to that function is the day. It should
+returns a face, or nil if does not want to specify a face and let
+the normal rules apply.
+  :group 'org-agenda-line-format
+  :type 'function)
+
(defcustom org-agenda-category-icon-alist nil
  Alist of category icon to be displayed in agenda views.

@@ -3106,6 +3114,16 @@ no longer in use.
  (progn (delete-overlay o) t)))
(overlays-in (point-min) (point-max)

+(defun org-agenda-get-day-face (date)
+  Return the face DATE should be displayed with.
+  (or (and (functionp org-agenda-day-face-function)
+  (funcall org-agenda-day-face-function date))
+  (cond ((org-agenda-todayp date)
+'org-agenda-date-today)
+   ((member (calendar-day-of-week date) org-agenda-weekend-days)
+'org-agenda-date-weekend)
+   (t 'org-agenda-date
+
;;; Agenda timeline

(defvar org-agenda-only-exact-dates nil) ; dynamically scoped
@@ -3133,10 +3151,10 @@ dates.
 org-timeline-show-empty-dates))
 (org-deadline-warning-days 0)
 (org-agenda-only-exact-dates t)
-(today (time-to-days (current-time)))
+(today (org-agenda-today))
 (past t)
 args
-s e rtn d emptyp wd)
+s e rtn d emptyp)
(setq org-agenda-redo-command
  (list 'progn
(list 'org-switch-to-buffer-other-window (current-buffer))
@@ -3170,8 +3188,7 @@ dates.
(progn
  (setq past nil)
  (insert (make-string 79 ?-) \n)))
-   (setq date (calendar-gregorian-from-absolute d)
- wd (calendar-day-of-week date))
+   (setq date (calendar-gregorian-from-absolute d))
(setq s (point))
(setq rtn (and (not emptyp)
   (apply 'org-agenda-get-day-entries entry
@@ -3185,9 +3202,7 @@ dates.
 (funcall org-agenda-format-date date))
   \n)
  (put-text-property s (1- (point)) 'face
-(if (member wd org-agenda-weekend-days)
-'org-agenda-date-weekend
-  'org-agenda-date))
+(org-agenda-get-day-face date))
  (put-text-property s (1- (point)) 'org-date-line t)
  (put-text-property s (1- (point)) 'org-agenda-date-header t)
  (if (equal d today)
@@ -3213,7 +3228,7 @@ When EMPTY is non-nil, also include days  
without any entries.

 (if inactive org-ts-regexp-both org-ts-regexp)))
 dates dates1 date day day1 day2 ts1 ts2)
(if force-today
-   (setq dates (list (time-to-days (current-time)
+   (setq dates (list (org-agenda-today
(save-excursion
  (goto-char beg)
  (while (re-search-forward re end t)
@@ -3324,9 +3339,7 @@ given in `org-agenda-start-on-weekday'.
  org-agenda-start-on-weekday nil))
 (thefiles (org-agenda-files nil 'ifmode))
 (files thefiles)
-(today (time-to-days
-(time-subtract (current-time)
-   (list 0 (* 3600 org-extend-today-until) 0
+(today 

Re: [Orgmode] [PATCH 2/2] org-agenda: add org-agenda-day-face-function

2010-11-12 Thread Julien Danjou
On Fri, Nov 12 2010, Carsten Dominik wrote:

 Applied, thanks.

 I did not test it myself (have grown to trust Julien...), so if someone can
 put this to a test, that would be nice.

Thanks Carsten.

If people wants to try it, here's an example of what I'm using to mark
days as holidays using the weekend face.

The function tests the category of all entries from all my Org files,
and if the category is Holidays or Vacation, I return the face used
for weekend days. With that I quickly see I can stay at home and hack on
org-mode. :-)

(setq org-agenda-day-face-function
  (defun jd:org-agenda-day-face-holidays-function (date)
Compute DATE face for holidays.
(unless (org-agenda-todayp date)
  (dolist (file (org-agenda-files nil 'ifmode))
(let ((face
   (dolist (entry (org-agenda-get-day-entries file date))
 (let ((category (with-temp-buffer
   (insert entry)
   (org-get-category (point-min)
   (when (or (string= Holidays category)
 (string= Vacation category))
 (return 'org-agenda-date-weekend))
  (when face (return face)))

-- 
Julien Danjou
// ᐰ jul...@danjou.info   http://julien.danjou.info

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


[Orgmode] Re: [PATCH 2/2] Fix broken CUSTOM_ID links

2010-11-12 Thread Carsten Dominik

Hi Jambunata,

this looks good,  However, I would like you to make a change to the  
patch more more clarity.


Could you please write

   (or preferred target)

instead of

   remove

as the ID to be inserted?  Even though these are the same, the first  
version is a lot clearer.


With this change, I will accept the patch.

Thanks!

- Carsten

On Nov 8, 2010, at 7:39 AM, Jambunathan K wrote:



Carsten


On Nov 5, 2010, at 6:53 PM, Jambunathan K wrote:



Note the 'H:1' in options line. Export this to HTML. Note that
CUSTOMID
link is broken. A snippet of relevant HTML section is attached
below.

Change 'H:1' to 'H:3' note that there is no more brokenness.

Possible root cause: When headlines are turned to list 'extra- 
targets'

are not identified correctly.


That is correct - Org does not assign IDs or names to list items,
so it has no place to link to.  This could probably be fixed - anyone
would
like to fix this?



I am attaching a patch. Hope it does the right thing.

tmp.org--- before.html  2010-11-08 19:01:13.796875000 +0530
+++ after.html  2010-11-08 19:00:57.859375000 +0530
@@ -7,7 +7,7 @@
titletmp/title
meta http-equiv=Content-Type content=text/ 
html;charset=iso-8859-1/

meta name=generator content=Org-mode/
-meta name=generated content=2010-11-08 18:57:46 /
+meta name=generated content=2010-11-08 18:56:05 /
meta name=author content=Jambunathan K/
meta name=description content=/
meta name=keywords content=/
@@ -101,7 +101,7 @@
  /li
/ul
ul
-	  li id=sec-1_1_2a name=sec-1_1_2 id=sec-1_1_2/ 
aTarget with CUSTOMID br/
+	  li id=aabbccddeeffa name=sec-1_1_2 id=sec-1_1_2/ 
aTarget with CUSTOMID br/


  p
One
@@ -200,7 +200,7 @@
p class=author Author: Jambunathan K
	a  
href=mailto:kjambunat...@gmail.com;lt;kjambunat...@gmail.comgt;/ 
a

/p
-   p class=date Date: 2010-11-08 18:57:46 /p
+   p class=date Date: 2010-11-08 18:56:05 /p
p class=creatorHTML generated by org-mode 7.3 in emacs 23/p
  /div
/div
0002-Fix-broken-CUSTOM_ID-links-to-outline-levels-exporte.patch

- Carsten



(This bug is unrelated to any of the previous internal link bugs
that I
have reported)

# Input file

#+OPTIONS:   H:1

* Links
** Targets

*** Fuzzy Target

*** Target with CUSTOMID
 :PROPERTIES:
 :CUSTOM_ID: aabbccddeeff
 :END:

*** Dedicated Target
#   Dedicated Target

*** Radioed Target

** References

*** References to Fuzzy Target
 This is a link to [[Fuzzy Target]].

*** References to CUSTOMID links
 This link to  [[#aabbccddeeff][CUSTOMID Target]] is broken.

*** References to Dedicated Target
 There is a link to nodesc [[Dedicated Target]] here. There is a  
link

 to [[Dedicated%20Target][Jump to Dedicated Target]] here.

*** References to Radioed Links
 This section has references to Radioed Target. One more reference
 to Radioed Target.



#+begin_src html
!-- Headline defined here --
ul
 li id=sec-1_1_2
   a name=sec-1_1_2 id=sec-1_1_2
   /a
   Target with CUSTOMID
   br/
 /li
/ul

!-- Headline referenced here   --
ul
 li id=sec-1_2_2
   References to CUSTOMID links
   br/
   This link to
   a href=#aabbccddeeff
 CUSTOMID Target
   /a
   is broken.
 /li
/ul
#+end_src


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



___
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: Store link upon sending a message

2010-11-12 Thread Eric S Fraga
Ulf Stegemann ulf-n...@zeitform.de writes:

 Eric S. Fraga ucec...@ucl.ac.uk wrote:

 Ulf Stegemann ulf-n...@zeitform.de writes:

 I came back to the matter of storing an org link to a copy of a message
 upon sending that message.  The function below does just that and proves
 to be quite useful together with a sensible key binding (if you use Gnus
 and Gcc that is).

 Very nice!  Works very well.  Thanks.

 Instead of binding this to a command sequence, is there any hook we can
 attach the function to so that it's invoked for every message I send
 (I'm somewhat of a gnus noob unfortunately although I'm learning...)?  I
 ask because I alternative between =C-c C-c= and =C-c C-j= for sending
 emails and I would need to provide two alternatives to incorporate your
 function.

 hmmm, never thought of this, probably because I never use
 `gnus-delay-article'.  You could try to put the function into
 `message-send-hook' (but you should remove the call to
 `message-send-and-exit' first).  I don't know if this would work as I
 don't know if the Gcc magic (incl. removal of Gcc header) is done before
 or after that hook.  If the Gcc header has been removed when
 `message-send-hook' is called than you'll have to look for a different
 hook to use.  If the Gcc header is still present, it should probably
 work as expected but note that in that case the org link will be created
 before the actual copying of the message took place. If something goes
 wrong with the latter this will leave you with a bogus org link (which,
 however, is probably not much of a problem).

Thanks.  I realised after sending my earlier message that this is going
to be quite complicated.  There's no point in storing a link when the
message is actually sent (after all, that will be sometime later).  I
would want to store the link when I send the message to the delay queue
(so that I can do something with the link, of course) so there really
need to be two versions of your function.

Should be doable.  I'll think about it some more.

In any case, most of my emails are sent immediately so your function is
very useful already.

Thanks again,
eric
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.42.g0fd5ec)

___
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: Store link upon sending a message

2010-11-12 Thread Ulf Stegemann
Ulf Stegemann ulf-n...@zeitform.de wrote:

 Eric S. Fraga ucec...@ucl.ac.uk wrote:

 Ulf Stegemann ulf-n...@zeitform.de writes:

 I came back to the matter of storing an org link to a copy of a message
 upon sending that message.  The function below does just that and proves
 to be quite useful together with a sensible key binding (if you use Gnus
 and Gcc that is).

 Very nice!  Works very well.  Thanks.

 Instead of binding this to a command sequence, is there any hook we can
 attach the function to so that it's invoked for every message I send
 (I'm somewhat of a gnus noob unfortunately although I'm learning...)?  I
 ask because I alternative between =C-c C-c= and =C-c C-j= for sending
 emails and I would need to provide two alternatives to incorporate your
 function.

 hmmm, never thought of this, probably because I never use
 `gnus-delay-article'.  You could try to put the function into
 `message-send-hook' (but you should remove the call to
 `message-send-and-exit' first).  I don't know if this would work as I
 don't know if the Gcc magic (incl. removal of Gcc header) is done before
 or after that hook.  If the Gcc header has been removed when
 `message-send-hook' is called than you'll have to look for a different
 hook to use.  If the Gcc header is still present, it should probably
 work as expected but note that in that case the org link will be created
 before the actual copying of the message took place. If something goes
 wrong with the latter this will leave you with a bogus org link (which,
 however, is probably not much of a problem).

If the hook approach does not work you could also advise
`gnus-inews-do-gcc', the function that actually creates the message
copies ...

... or you could replace `gnus-inews-do-gcc', e.g. replace the
call to `message-send-and-exit' in
`ulf-message-send-and-org-gnus-store-link' with something like
`gnus-inews-do-gcc-orig' and save it as e.g.
`my-gnus-gcc-and-org-store-link'.  Then you could do something like

(fset 'gnus-inews-do-gcc-orig (symbol-function 'gnus-inews-do-gcc))
(fset 'gnus-inews-do-gcc 'my-gnus-gcc-and-org-store-link)

... but that's all untested ;)

Ulf


___
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: Store link upon sending a message

2010-11-12 Thread Eric S Fraga
Ulf Stegemann ulf-n...@zeitform.de writes:

[...]


 If the hook approach does not work you could also advise
 `gnus-inews-do-gcc', the function that actually creates the message
 copies ...

 ... or you could replace `gnus-inews-do-gcc', e.g. replace the
 call to `message-send-and-exit' in
 `ulf-message-send-and-org-gnus-store-link' with something like
 `gnus-inews-do-gcc-orig' and save it as e.g.
 `my-gnus-gcc-and-org-store-link'.  Then you could do something like

 (fset 'gnus-inews-do-gcc-orig (symbol-function 'gnus-inews-do-gcc))
 (fset 'gnus-inews-do-gcc 'my-gnus-gcc-and-org-store-link)

 ... but that's all untested ;)

two very good suggestions.  Thanks!  I'll try to play with these over
the weekend if I get a chance.
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.42.g0fd5ec)

___
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: Store link upon sending a message

2010-11-12 Thread Ulf Stegemann
Eric S. Fraga ucec...@ucl.ac.uk wrote:

 Thanks.  I realised after sending my earlier message that this is going
 to be quite complicated.  There's no point in storing a link when the
 message is actually sent (after all, that will be sometime later).  I
 would want to store the link when I send the message to the delay queue
 (so that I can do something with the link, of course) so there really
 need to be two versions of your function.

 Should be doable.  I'll think about it some more.

ah, now I seem to understand.  With your scenario I'd probably remove the
call to `message-send-and-exit' from
`ulf-message-send-and-org-gnus-store-link' and advise both
`message-send-and-exit' and `gnus-delay-article' to run the modified
function before execution.  This would leave you with a stored link
right after a `C-c C-c' and `C-c C-j'.  But in case of the latter, the
org link will be bogus until the message has actually been sent.  Could
that be a way to go for you?

Ulf


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


[Orgmode] bug in org-write-agenda?

2010-11-12 Thread Rainer Thiel
I suspect there might be a bug in the org mode 7.3 org-write-agenda
function.  When trying to write a pdf-file, org-mode claims to have
written it, but neither a .ps nor a pdf-File is produced.  Things did
work with org-mode 7.02, and I don't seem to have changed anything but
installing v. 7.3 since the last time it worked fine.
-- 
Prof. Dr. Rainer Thiel
Dekan Philosophische Fakultät
07737 Jena, Germany (EU)
r.th...@uni-jena.de

___
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] [PATCH] (ELPA): Support for building Package Variants and Package Upload

2010-11-12 Thread Jambunathan K
Carsten Dominik carsten.domi...@gmail.com writes:

 Hi Jambunathan,

 thanks for this!

 2.2 Build Procedure
 
   1. make PKG_TAG=7.3
  This builds org-7.3.tar

 I guess this must be

  make pkg PKG_TAG=...

 right?


Yes, I missed the target - 'pkg'. A small but a significant slip.

 I think it would be good to *not* use a name that is just like the
 normal org distribution files.  

There is a config variable for that :-). It is PKG_BNAME (as in 'Package
Base Name'). 


 I am distributing under the names

 org-7.3.tar.gz
 org-7.3.zip


I believe the question here is: How is an ELPA-tar differntiated from a
plain-old snapshot tar? From the user perspective, is there an element
of ambiguity and confusion?

As things stand today, ELPA-tarballs are plain tar files i.e., they are
not zipped. So the packages with above names can only be non-ELPA
tarballs [1]

The only difference between ELPA and non-ELPA tarballs is in the tree
structure. ELPA-tarballs *require* that lisp files and info files be in
the root directory [2].  This is not the case with plain old
tarballs. As it stands today, the 'contrib' files are not zipped in to
the ELPA tarball [3].

One approach of addressing a possible divide between ELPA and non-ELPA
tarballs is to distribute just a single tarball which is also
ELPA-tarball. This would require a modification in the tree-structure of
the conventional tarball and may be some changes to the Makefile.

A second approach of addressing the problem is to wait and watch. May be
by the time Emacs-24 gets out of the door, package manager would not be
too restrictive on where it wants to see the elisp and info files. And a
plain old tar file could as well work well with package manager.

 I am distributing under the names

 org-7.3.tar.gz
 org-7.3.zip

 or is this not a possible problem?

The advantage of using 'org' namespace for the ELPA tarballs is that it
would be deemed as an 'upgrade' to the builtin package 'org'. In that
sense there is a continuity. This privilege would be lost for packages
that doesn't share 'builtins' namespace [4].

As package are identified by their names, a org-snapshot-7.3.tar is
considered by package manager interface as different from org-7.3.tar.

AFAICS, packages get in to '~/.emacs.d/elpa/org-snapshot-7.3/...' and
'~/.emacs.d/elpa/org-7.3/...' and load-path is appropriately modified.

So a reasonably experienced user can have them installed 'in parallel'
and pick and choose what he uses by playing around with load-path. He
can also tie down the package manager not to activate the files, thus
minimizing the package manager functionality to that of a downloader,
compiler and unpacker but not as a 'loader' [5].


,[ C-h f package-initialize RET ]
| package-initialize is an interactive Lisp function in `package.el'.
| 
| (package-initialize optional NO-ACTIVATE)
| 
| Load Emacs Lisp packages, and activate them.
| The variable `package-load-list' controls which packages to load.
| If optional arg NO-ACTIVATE is non-nil, don't activate packages.
| 
| [back]
`


 I am distributing under the names

 org-7.3.tar.gz
 org-7.3.zip

One another way to interpret the question is how would one distinguish
between tarballs that are 'official' (as in released directly by the
maintainer from his official website) and those that are 'unofficial'
(as in forks and derived works).

For the sake of recording my Makefile changes, as well as for the sake
of argument, I could potentially use the following setting:

PKG_BNAME=org
PKG_SEP=@
PKG_FLAVOUR=OpenOffice

and get a o...@openoffice-20101112.tar.

This is where the notion of 'Variants/Flavours/Release Streams/' could
be useful. The string between '@' and 'the version number' could be
standardized as a variant. The advantage of variants is obvious [6].

[1] Possible that Package Manager might start supporting zipped files.

[2] This is a constraint only because 'package manager' is barely
born. Who knows it can become a superman very soon ...

[3] This is so because just because it was done so. Package Manager
provides support for packaging arbitrary data files - icons, sound
files etc etc. There is no reason (apart from download size) which
prevent one from including contrib files.

[4] I haven't experimented much with builtin packages, upgrades,
downgrades etc. Take my remarks here with a pinch of salt. May be
someone who has experimented with package manager could pitch in
with additional insights here ... I am forming my opinion as I go
along.

[5] In some sense package manager is a good 'eye candy'. It is not my
intention to use the word in a negative sense but only as a
convenient metaphor.

[6] This is something that I have proposed to emacs-devel. Variants etc
are purely my own terminology i.e., it doesn't have any official
sanction. See
 
http://lists.gnu.org/archive/html/emacs-devel/2010-10/msg01026.html

This is also one of the reasons why I

[Orgmode] Re: bug in org-write-agenda?

2010-11-12 Thread Rainer Thiel
2010/11/12 Rainer Thiel r.th...@uni-jena.de:
 I suspect there might be a bug in the org mode 7.3 org-write-agenda
 function.  When trying to write a pdf-file, org-mode claims to have
 written it, but neither a .ps nor a pdf-File is produced.  Things did
 work with org-mode 7.02, and I don't seem to have changed anything but
 installing v. 7.3 since the last time it worked fine.

Must have been a temporary problem of my Windows Vista system.  After
a restart, everthing works as expected.  Sorry for the noise.
-- 
Prof. Dr. Rainer Thiel
Dekan Philosophische Fakultät
07737 Jena, Germany (EU)
r.th...@uni-jena.de

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


[Orgmode] bug in docstring for org-emphasis-regexp-components (org.el)

2010-11-12 Thread Robert Goldman
The docstring says:

...This is a list with 6 entries

pre  Chars allowed as prematch.  Beginning of line will be
allowed too.

post Chars allowed as postmatch.  End of line will be allowed too.

border   The chars *forbidden* as border characters.

body-regexp  A regexp like . to match a body character.  Don't use
 non-shy groups here, and don't allow newline here.

newline  The maximum number of newlines allowed in an emphasis exp.

...

That looks like 5 entries to me.

best,
r

___
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] bug in docstring for org-emphasis-regexp-components (org.el)

2010-11-12 Thread Carsten Dominik

Fixed, thanks.  It used to be 6, but the last one was removed later.

- Carsten

On Nov 12, 2010, at 11:05 AM, Robert Goldman wrote:


The docstring says:

...This is a list with 6 entries

pre  Chars allowed as prematch.  Beginning of line will be
allowed too.

post Chars allowed as postmatch.  End of line will be  
allowed too.


border   The chars *forbidden* as border characters.

body-regexp  A regexp like . to match a body character.  Don't use
non-shy groups here, and don't allow newline here.

newline  The maximum number of newlines allowed in an emphasis  
exp.


...

That looks like 5 entries to me.

best,
r

___
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] Bug: org-install must precede customization [7.02trans]

2010-11-12 Thread David Abrahams

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

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

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


There's an undocumented dependency between org-install and
customizations.  In particular, if custom-set-variables is called to set
org-capture-templates, and then org-install is loaded,
org-capture-templates will be reset to nil.  I tested this with 

  emacs -Q

Emacs  : GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29)
 of 2010-05-08 on black.local
Package: Org-mode version 7.02trans

current state:
==
(setq
 org-agenda-deadline-leaders '(D:  D%d: )
 org-clock-in-switch-to-state STARTED
 org-agenda-skip-scheduled-if-deadline-is-shown t
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-todo-keyword-faces '((TODO :foreground medium blue :weight bold)
  (APPT :foreground medium blue :weight bold)
  (NOTE :foreground brown :weight bold)
  (STARTED :foreground dark orange :weight bold)
  (WAITING :foreground red :weight bold)
  (DELEGATED :foreground dark violet :weight bold)
  (DEFERRED :foreground dark blue :weight bold)
  (SOMEDAY :foreground dark blue :weight bold)
  (PROJECT :height 1.5 :weight bold :foreground 
black))
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-agenda-custom-commands '((E Errands (next 3 days) tags
   
ErrandTODO\DONE\TODO\CANCELLED\STYLE\habit\SCHEDULED\+3d\
   ((org-agenda-overriding-header Errands (next 3 
days))

 )
   )
  (A Priority #A tasks agenda 
   ((org-agenda-ndays 1)
(org-agenda-overriding-header Today's priority 
#A tasks: )
(org-agenda-skip-function
 (quote (org-agenda-skip-entry-if (quote 
notregexp) \\=.*\\[#A\\]))
 )
)
   )
  (B Priority #A and #B tasks agenda 
   ((org-agenda-ndays 1)
(org-agenda-overriding-header Today's priority 
#A and #B tasks: )
(org-agenda-skip-function
 (quote (org-agenda-skip-entry-if (quote 
regexp) \\=.*\\[#C\\])))
)
   )
  (w Waiting/delegated tasks tags
   TODO=\WAITING\|TODO=\DELEGATED\
   ((org-agenda-overriding-header 
Waiting/delegated tasks:)
(org-agenda-sorting-strategy
 (quote (todo-state-up priority-down 
category-up)))
)
   )
  (u Unscheduled tasks tags
   
TODO\\TODO\DONE\TODO\CANCELLED\TODO\NOTE\CATEGORY{CEG\\|ABC\\|Bizcard\\|Adagio\\|EVAprint\\|\\IT\\}
   ((org-agenda-overriding-header Unscheduled 
tasks: )


  
(org-agenda-skip-function

   

   
(quote








 (org-agenda-skip-entry-if
  

Re: [Orgmode] HTML export and blogging to blogger.com

2010-11-12 Thread Samuel Wales
Hi Eric,

On 2010-11-12, Eric S Fraga ucec...@ucl.ac.uk wrote:
 Sorry for hijacking the thread to some degree but I moved from Blogger
 to Wordpress because of the more open nature of the latter and I believe
 this fits with the philosophy of org.

I don't think it's a hijacking; many will want to know about other options.

I /started/ with Wordpress.com (their blogger.com-like site) because
of its apparent open philosophy.

But I switched away from them because of their hostile attitude toward
accessibility bug reports, including large fonts.  They claim to value
accessibility highly, but their actions very clearly indicate the
opposite.

It isn't so much their lack of accessibility that bothers me, as much
as their attitude toward customers.  Based on their responses, I did
not have confidence that they would support me if I had any other
showstopper issues with my blog.  I wanted a company I could have a
long-term blogging relationship with.

If I see a change in their attitude, I will consider switching back.

Of course, if you run your own site, merely use their software, and
can hack it yourself or pay somebody to do so, the attitude of their
hosting service will matter less to you.


Samuel

___
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] Proposing a new way for org-get-level-face to behave (customizable)

2010-11-12 Thread Carsten Dominik

Ji Jonathan,

thanks you for this, I have checked in a slightly modified version of  
your patch.


Thanks

- Carsten

On Nov 10, 2010, at 7:15 AM, Jonathan BISSON wrote:


Hi,

I'm new to this list, and an 6-8 month (or so) user of org-mode.

I needed to get my outline-level-9 and further to look at least like  
the

outline-level-8 and not cycling to outline-level-1 as my customization
for this one got a bigger face. And I don't want a child to be bigger
than its parent for visibility purpose.

So I'm proposing this (I could provide a patch but as I'm not using  
the

very last version of orgmode neither the git one, I thought it was
useless to do so):

(defcustom org-cycle-level-faces t
 If non-nil, level styles cycle after level org-n-level-faces, so
level org-n-level-faces+1 is styled like level 1. If nil, then all
levels =org-n-level-faces are styled like level org-n-level-faces
 :group 'org-appearance
 :type 'boolean)

(defun org-get-level-face (n)
 Get the right face for match N in font-lock matching of headlines.
 (setq org-l (- (match-end 2) (match-beginning 1) 1))
 (if org-odd-levels-only (setq org-l (1+ (/ org-l 2
 (if org-cycle-level-faces
 (setq org-f (nth (% (1- org-l) org-n-level-faces) org-level-faces))
 (setq org-f (nth (1- (if ( org-l org-n-level-faces) org-l
org-n-level-faces)) org-level-faces))
 )
 (cond
  ((eq n 1) (if org-hide-leading-stars 'org-hide org-f))
  ((eq n 2) org-f)
  (t (if org-level-color-stars-only nil org-f


Hope it will be of some interest for some of you.

Thanks to quicksilver on irc.freenode.net #org-mode for the help.


Cheers.



___
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] include an .org file and lower the level of all its headers

2010-11-12 Thread Carsten Dominik


On Nov 10, 2010, at 3:46 AM, Jianshi Huang wrote:


Hi,

I know I can include any file using #+INCLUDE.

I need to include several org files, but they were edited
independently as a complete document.

Now I want to lower the levels of headers in these org files
automatically during inclusion. Is there a way to do that?


No.  But since #+include accepts arguments, it could be implemented,
something like

#+include aaa.org :minlevel 4

or so.  I would accept a good patch to this effect.

- 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] Rebinding of home and end keys

2010-11-12 Thread Carsten Dominik

Hi,

is there a git wizard who can find out when these lines were  
introduced in org.el.


(define-key org-mode-map [home] 'org-beginning-of-line)
(define-key org-mode-map [end]  'org-end-of-line)

Maybe the commit message does explain why that was done?

Thanks.

- Carsten

On Nov 10, 2010, at 9:50 AM, Liam Healy wrote:


I have in my .emacs

(global-set-key [(home)] 'beginning-of-buffer)
(global-set-key [(end)] 'end-of-buffer)

Starting with a recent (last few months) org-mode version, the home
and end keys are bound to be beginning of end of line when in org
files.   This happens even if I do my keybinding after I load org.
Can this rebinding be removed, or at least made optional?  I do not
see why these keys are bound at all; these are regular emacs functions
(not org-mode functions) so emacs (by default) and the user (by
resetting the keys globally) can establish themselves what they want.

Org-mode version 7.02trans (release_7.3.10.g7f79)

Thank you.

Liam

___
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] Rebinding of home and end keys

2010-11-12 Thread Liam Healy
Carsten,

git blame lisp/org.el

668e28f4 (Carsten Dominik   2009-09-25 08:03:23 +0100 19025)
(define-key org-mode-map [home] 'org-beginning-of-line)
668e28f4 (Carsten Dominik   2009-09-25 08:03:23 +0100 19026)
(define-key org-mode-map [end]  'org-end-of-line)

Liam

On Fri, Nov 12, 2010 at 2:46 PM, Carsten Dominik
carsten.domi...@gmail.com wrote:
 Hi,

 is there a git wizard who can find out when these lines were introduced in
 org.el.

 (define-key org-mode-map [home] 'org-beginning-of-line)
 (define-key org-mode-map [end]  'org-end-of-line)

 Maybe the commit message does explain why that was done?

 Thanks.

 - Carsten

 On Nov 10, 2010, at 9:50 AM, Liam Healy wrote:

 I have in my .emacs

 (global-set-key [(home)] 'beginning-of-buffer)
 (global-set-key [(end)] 'end-of-buffer)

 Starting with a recent (last few months) org-mode version, the home
 and end keys are bound to be beginning of end of line when in org
 files.   This happens even if I do my keybinding after I load org.
 Can this rebinding be removed, or at least made optional?  I do not
 see why these keys are bound at all; these are regular emacs functions
 (not org-mode functions) so emacs (by default) and the user (by
 resetting the keys globally) can establish themselves what they want.

 Org-mode version 7.02trans (release_7.3.10.g7f79)

 Thank you.

 Liam

 ___
 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] Re: org-odt list bug - help reproducing?

2010-11-12 Thread Jambunathan K

Matt

 On Wed, Nov 10, 2010 at 11:14 AM, Jambunathan K kjambunat...@gmail.com 
 wrote:

 Matt

 I am unable to reproduce the said behaviour.

 From my work-area (which is same as that in git), the odt produced is
 valid. I am attaching the odts produced in my work area. Let me know if
 what is attached is not what you expect.


 I wonder if anyone on the list can reproduce the bug I'm finding in
 Jambunathan's odt exporter?   The attached org file creates the attached
 invalid odt file for me -- this is true both on my main laptop and in a clean
 environment I just went to some trouble to create on another computer, but J
 cannot reproduce the error.  I'm wondering if perhaps there's some implicit
 dependency in J's code somewhere that neither of us sees, and that isn't
 fulfilled on either of my systems.  I can't think of any other explanation


Looks like it had been a pretty rough start for you ... Tried one more
round in reproducing the problem. But I cannot reproduce it at all.

If someone helps me in reproducing the bug, I will be happy to address
it in no time.

To encourage new users to try out the OpenOffice exporter, I have
revised the instructions in How to export to OpenOffice? section of
the README.org file.

- http://repo.or.cz/w/org-mode/oo.git/blob/HEAD:/contrib/odt/README.org

I suggest that you download the entire repo or the snapshot. Check that
you are using the URL that ends in oo.git.

I am *pretty confident* that the OpenOffice exporter can handle simple
text - headlines, paragraphs, lists - very reliably.

How I tried reproducing the problem and failed:

1. I freshly cloned the repository.
2. Started emacs without any customization.
   C:\Program Files\emacs-23.1.91\bin\runemacs.exe --debug-init -Q
3. M-: (setq org-odt-base-dir ~/src/oo/) RET
4. M-x (load-file (expand-file-name ./contrib/odt/setup.el org-odt-base-dir))
5. C-x C-f desc_test_short_2.org
6. I did a C-c C-e O.
7. I am seeing that OpenOffice launches and opens the file
   desc_test_short_2.odt without any complaints.

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


[Orgmode] Re: Rebinding of home and end keys

2010-11-12 Thread Jambunathan K
Carsten Dominik carsten.domi...@gmail.com writes:

 Hi,

 is there a git wizard who can find out when these lines were
 introduced in org.el.

 (define-key org-mode-map [home] 'org-beginning-of-line)
 (define-key org-mode-map [end]  'org-end-of-line)

 Maybe the commit message does explain why that was done?


git blames the following commit:

commit 668e28f4d050b80686937c4b7b8617f16d887ba0
Author: Carsten Dominik carsten.domi...@gmail.com
Date:   Fri Sep 25 08:03:23 2009 +0100

Bind home and end to the org-specific commands

Jambunathan K.

 Thanks.

 - Carsten

 On Nov 10, 2010, at 9:50 AM, Liam Healy wrote:

 I have in my .emacs

 (global-set-key [(home)] 'beginning-of-buffer)
 (global-set-key [(end)] 'end-of-buffer)

 Starting with a recent (last few months) org-mode version, the home
 and end keys are bound to be beginning of end of line when in org
 files.   This happens even if I do my keybinding after I load org.
 Can this rebinding be removed, or at least made optional?  I do not
 see why these keys are bound at all; these are regular emacs functions
 (not org-mode functions) so emacs (by default) and the user (by
 resetting the keys globally) can establish themselves what they want.

 Org-mode version 7.02trans (release_7.3.10.g7f79)

 Thank you.

 Liam

 ___
 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


[Orgmode] Re: Rebinding of home and end keys

2010-11-12 Thread Jambunathan K
Jambunathan K kjambunat...@gmail.com writes:

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

 Hi,

 is there a git wizard who can find out when these lines were
 introduced in org.el.

 (define-key org-mode-map [home] 'org-beginning-of-line)
 (define-key org-mode-map [end]  'org-end-of-line)

 Maybe the commit message does explain why that was done?


 git blames the following commit:

 commit 668e28f4d050b80686937c4b7b8617f16d887ba0
 Author: Carsten Dominik carsten.domi...@gmail.com
 Date:   Fri Sep 25 08:03:23 2009 +0100

 Bind home and end to the org-specific commands


Here are the URLs:
http://repo.or.cz/w/org-mode.git/shortlog?pg=31
http://repo.or.cz/w/org-mode.git/commit/668e28f4d050b80686937c4b7b8617f16d887ba0

Full log also is not very elaborate:
http://repo.or.cz/w/org-mode.git/log/668e28f4d050b80686937c4b7b8617f16d887ba0

Jambunathan K.


 Jambunathan K.

 Thanks.

 - Carsten

 On Nov 10, 2010, at 9:50 AM, Liam Healy wrote:

 I have in my .emacs

 (global-set-key [(home)] 'beginning-of-buffer)
 (global-set-key [(end)] 'end-of-buffer)

 Starting with a recent (last few months) org-mode version, the home
 and end keys are bound to be beginning of end of line when in org
 files.   This happens even if I do my keybinding after I load org.
 Can this rebinding be removed, or at least made optional?  I do not
 see why these keys are bound at all; these are regular emacs functions
 (not org-mode functions) so emacs (by default) and the user (by
 resetting the keys globally) can establish themselves what they want.

 Org-mode version 7.02trans (release_7.3.10.g7f79)

 Thank you.

 Liam

 ___
 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


[Orgmode] Re: org-odt list bug - help reproducing?

2010-11-12 Thread Matt Price
On Fri, Nov 12, 2010 at 3:51 PM, Jambunathan K kjambunat...@gmail.comwrote:


 Matt

  On Wed, Nov 10, 2010 at 11:14 AM, Jambunathan K kjambunat...@gmail.com
 wrote:
 
  Matt
 
 I am *pretty confident* that the OpenOffice exporter can handle simple
 text - headlines, paragraphs, lists - very reliably.

 How I tried reproducing the problem and failed:

 1. I freshly cloned the repository.
 2. Started emacs without any customization.
   C:\Program Files\emacs-23.1.91\bin\runemacs.exe --debug-init -Q
 3. M-: (setq org-odt-base-dir ~/src/oo/) RET
 4. M-x (load-file (expand-file-name ./contrib/odt/setup.el
 org-odt-base-dir))
 5. C-x C-f desc_test_short_2.org
 6. I did a C-c C-e O.
 7. I am seeing that OpenOffice launches and opens the file
   desc_test_short_2.odt without any complaints.



OK, I'm possibly seeing some improvement here.  I logged into my server,
which has no other org or emacs-related software installed.  I followed your
procedure precisely, with a fresh emacs23 install.  Trying to export gives
me the following errors:

Loading /home/matt/src/oo/lisp/org-vm.el (source)...done
Loading /home/matt/src/oo/lisp/org-w3m.el (source)...done
Loading /home/matt/src/oo/lisp/org-wl.el (source)...done
Loading /home/matt/src/oo/lisp/org.el (source)...done
fatal: No names found, cannot describe anything.
Org-mode version 7.3
Select command:
Exporting...
(New file) [3 times]
interblock-initiate-R-buffer: Symbol's function definition is void: R
Select command:
Exporting...
(New file) [3 times]
interblock-initiate-R-buffer: Symbol's function definition is void: R
t
Select command:
Exporting...
(New file) [3 times]
interblock-initiate-R-buffer: Symbol's function definition is void: R
Auto-saving...

---
the odt file doesn't end up being produced at all, presumably something
about the R buffer (don't know why that would be).

interestingly, on my laptop I simply cannot get the O and o menu items to
show up in the export menu buffer.  On this new machine, they only appear
after I reload org-mode.  Not sure why this is the cae, I suppose it could
somehow be related.  Like most people I have a fair number of
emacs-relatedpackages installed on my laptop

thanks again, best,
Matt
___
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] Proposing a new way for org-get-level-face to behave (customizable)

2010-11-12 Thread Jonathan BISSON
On Fri, 2010-11-12 at 13:39 -0600, Carsten Dominik wrote:
 Ji Jonathan,
 
 thanks you for this, I have checked in a slightly modified version of  
 your patch.
 
 Thanks
 
 - Carsten
 
Hope this would be of some help. 

I was thinking about ways to add as much outlines as we wanted. Or ways
to have a cycling through a defined list of outlines (maybe I can start
by doing a cycling through defined elements (like looping through 4-8
only).
I'm looking to the code and git of org in order to understand a little
bit more the philosophy of the project.

Thanks !


___
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] Rebinding of home and end keys

2010-11-12 Thread Carsten Dominik


On Nov 12, 2010, at 1:57 PM, Nick Dokos wrote:


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


Hi,

is there a git wizard who can find out when these lines were
introduced in org.el.

(define-key org-mode-map [home] 'org-beginning-of-line)
(define-key org-mode-map [end]  'org-end-of-line)

Maybe the commit message does explain why that was done?



Probably not, but if anybody would know, it'd be you :-)


Indeed, this commit message shows that I had absolutely no reason  
worth mentioning to do this - so I will just take it back.


Actually I vaguely remember that on some systems [home] and [end] do  
indeed line motions, not buffer motions.  I even vaguely remember that  
someone asked for this change.  But I cannot find the message.  And I  
don't think the bindings make sense, to I have taken them out.


- Carsten




,
| commit 668e28f4d050b80686937c4b7b8617f16d887ba0
| Author: Carsten Dominik carsten.domi...@gmail.com
| Date:   Fri Sep 25 08:03:23 2009 +0100
|
| Bind home and end to the org-specific commands
|
| diff --git a/lisp/ChangeLog b/lisp/ChangeLog
| index 81326e4..ba96911 100755
| --- a/lisp/ChangeLog
| +++ b/lisp/ChangeLog
| @@ -3,6 +3,7 @@
|   * org.el (org-special-ctrl-a/e): Improve documentation and
|   customize type.
|   (org-end-of-line): Don't jump to after the ellipsis.
| + (org-mode-map): Bind home and end as well.
|
|  2009-09-24  Carsten Dominik  carsten.domi...@gmail.com
|
| diff --git a/lisp/org.el b/lisp/org.el
| index a700c4d..b460420 100644
| --- a/lisp/org.el
| +++ b/lisp/org.el
| @@ -16631,6 +16631,8 @@ beyond the end of the headline.
|
|  (define-key org-mode-map \C-a 'org-beginning-of-line)
|  (define-key org-mode-map \C-e 'org-end-of-line)
| +(define-key org-mode-map [home] 'org-beginning-of-line)
| +(define-key org-mode-map [end]  'org-end-of-line)
|
|  (defun org-backward-sentence (optional arg)
|Go to beginning of sentence, or beginning of table field.
`

BTW, the commands were

grep -n '\[home]' lisp/org.el
  to get a line number

git blame -L 19010,1911 lisp/org.el
  this fingers 668e28f4

git show 668e28f4

HTH,
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] Bug: org-install must precede customization [7.02trans]

2010-11-12 Thread Carsten Dominik

Hi David,

thanks for investigating this.

It seems to me that the autoload has caused more problems than it  
solved - so I have removed the autoload again.


- Carsten

On Nov 12, 2010, at 12:45 PM, David Abrahams wrote:



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


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

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


There's an undocumented dependency between org-install and
customizations.  In particular, if custom-set-variables is called to  
set

org-capture-templates, and then org-install is loaded,
org-capture-templates will be reset to nil.  I tested this with

 emacs -Q

Emacs  : GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple- 
appkit-1038.29)

of 2010-05-08 on black.local
Package: Org-mode version 7.02trans

current state:
==
(setq
org-agenda-deadline-leaders '(D:  D%d: )
org-clock-in-switch-to-state STARTED
org-agenda-skip-scheduled-if-deadline-is-shown t
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- 
vars)
org-todo-keyword-faces '((TODO :foreground medium blue :weight  
bold)
 (APPT :foreground medium blue :weight  
bold)

 (NOTE :foreground brown :weight bold)
 (STARTED :foreground dark  
orange :weight bold)

 (WAITING :foreground red :weight bold)
 (DELEGATED :foreground dark  
violet :weight bold)
 (DEFERRED :foreground dark blue :weight  
bold)
 (SOMEDAY :foreground dark blue :weight  
bold)
 (PROJECT :height 1.5 :weight  
bold :foreground black))
org-speed-command-hook '(org-speed-command-default-hook org-babel- 
speed-command-hook)

org-agenda-custom-commands '((E Errands (next 3 days) tags
  ErrandTODO\DONE\TODO 
\CANCELLED\STYLE\habit\SCHEDULED\+3d\
  ((org-agenda-overriding-header  
Errands (next 3 days))


)
  )
 (A Priority #A tasks agenda 
  ((org-agenda-ndays 1)
   (org-agenda-overriding-header  
Today's priority #A tasks: )

   (org-agenda-skip-function
(quote (org-agenda-skip-entry-if  
(quote notregexp) \\=.*\\[#A\\]))

)
   )
  )
 (B Priority #A and #B tasks agenda 
  ((org-agenda-ndays 1)
   (org-agenda-overriding-header  
Today's priority #A and #B tasks: )

   (org-agenda-skip-function
(quote (org-agenda-skip-entry-if  
(quote regexp) \\=.*\\[#C\\])))

   )
  )
 (w Waiting/delegated tasks tags
  TODO=\WAITING\|TODO=\DELEGATED\
  ((org-agenda-overriding-header  
Waiting/delegated tasks:)

   (org-agenda-sorting-strategy
(quote (todo-state-up priority-down  
category-up)))

   )
  )
 (u Unscheduled tasks tags
  TODO\\TODO\DONE\TODO 
\CANCELLED\TODO\NOTE\CATEGORY{CEG\\|ABC\\|Bizcard\\|Adagio\ 
\|EVAprint\\|\\IT\\}
  ((org-agenda-overriding-header  
Unscheduled tasks: )


 (org 
-agenda-skip-function



  
(quote



(org 
-agenda-skip-entry-if








   (quote 
 scheduled)








   (quote 
 deadline)









Re: [Orgmode] [PATCH] AM/PM support on the agenda timegrid

2010-11-12 Thread Carsten Dominik


On Nov 6, 2010, at 6:20 PM, Christopher Allan Webber wrote:


And I'm indifferent, am/pm works for me :)

Pushed a patch.


I could not find that patch in the branch you earlier mentioned.
Anyway, I have installed your patch and made this last change myself.

For future patches, I will be needing a signed FSF copyright  
assignment, please.


Thanks!

- Carsten



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


Hi Christopher,

can I convince you to use am and pm instead of AM and PM?  The
capitals hurt my eyes :)

- Carsten

On Nov 6, 2010, at 12:45 PM, Christopher Allan Webber wrote:


Based on off-list contact, apparently at least one other person is
using
this, so FYI I pushed another commit which resolves an issue where
there
was no space between the time and the event.  That's fixed now,  
things

look correct now like:

Saturday6 November 2010
 8:00AM 
ccommons:9:00AM-11:00AM Some weekend work
:work::
10:00AM 
12:00PM 
 2:00PM 
 4:00PM 
 6:00PM 
 8:00PM 

If there's any adjustments I would need to make to get this merged
into
master, let me know.

Christopher Allan Webber cweb...@dustycloud.org writes:


Hello all,

I get distracted parsing 24-hour-time into 12-hour AM/PM style
time.  So
I added support for AM/PM style time on the agenda timegrid.

git clone git://dustycloud.org/org-mode -b ampm

(Check out the ampm branch.)

Then:

#+BEGIN_SRC emacs-lisp
(setq org-agenda-timegrid-use-ampm t)
#+END_SRC

Then just reload the agenda and you're good!


___
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] [PATCH] Addition to Library of Babel

2010-11-12 Thread Eric Schulte
Hi Tom,

Thanks for adding this to the Library of Babel.  I've just applied your
patch with some non-functional aesthetic changes.

Cheers -- Eric

Thomas S. Dye t...@tsdye.com writes:

 Add Eric Fraga's GANTT chart code to the Library of Babel.


 Thomas S. Dye, Ph.D.

 T. S. Dye  Colleagues, Archaeologists, Inc.

 Phone: (808) 529-0866 Fax: (808) 529-0884

 http://www.tsdye.com

 ___
 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] [PATCH] babel: delaying call to block preprocessing

2010-11-12 Thread Eric Schulte
Hi Nicolas,

Thanks for making this change, I agree it is appropriate now that Babel
is included in Org-mode.  I've just pushed it up.

Best -- Eric

Nicolas Goaziou n.goaz...@gmail.com writes:

 Hello,

 I'm having a little problem when I want to insert a code block inside
 a list. Here is an example:

 =
 1. Drawing is following:

#+BEGIN_SRC asymptote :file drawing.pdf
unitsize(5cm);
draw(unitcircle);
#+END_SRC


Now find its center with compass only.

 2. Another item.
 =

 Upon exporting this, as the code is removed, the blank lines
 surrounding it join together, creating a 2-blank-lines combo very bad
 for the list processing taking place a few lines later. Indeed, when
 `org-export-preprocess-string' proceeds marking list endings in the
 export string, it sees there two separates lists instead of one.

 So, the following patch moves `org-export-blocks-preprocess' out of
 its hook (now babel is in Org core this isn't needed anymore), and
 make it called somewhat later, after list processing (and after
 removing excluded and archived trees).

 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


[Orgmode] [SOLVED] org-odt list bug

2010-11-12 Thread Matt Price
fixed the problem without really figuring it out.  Basically I think i had
too many versions of org-mode in my load-path, and somehow some of org-odt's
functions were being overridden by the default versions.  I removed the
ubuntu ppa packages from my system, took my old git copy out of my
load-path, and voila! eveyrthing works.  Thanks J!  this is a huge help with
my grant documents, actually, and comes at a very useful time.
matt
___
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-odt: headings without numbering

2010-11-12 Thread Matt Price
Hi Jambunathan,

Is it possible right now to turn off numbering in headlines using org-odt
exporter?  I have num:nil set in my export template but it doesn't seem to
do anything.

Sorry to be no help with the code, too stressed out right now -- at the end
ofhte month I hope to be able to help in little ways.

Matt
___
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] Bug: org-install must precede customization [7.02trans]

2010-11-12 Thread David Abrahams

Hi Carsten,

Is it merely the autoload of org-capture-templates, or is this a
general rule for everything in org-install?  I think I'm perfectly
happy to work with the dependency in place as long as it's documented.
For most people it wouldn't be an issue since custom-* puts its
custom-set-variables call at the end of the file.  I think you need to
be using something like initsplit to see the problem.

At Fri, 12 Nov 2010 16:29:15 -0600,
Carsten Dominik wrote:
 
 Hi David,
 
 thanks for investigating this.
 
 It seems to me that the autoload has caused more problems than it
 solved - so I have removed the autoload again.
 
 - Carsten
 
 On Nov 12, 2010, at 12:45 PM, David Abrahams wrote:
 
 
  Remember to cover the basics, that is, what you expected to happen and
  what in fact did happen.  You don't know how to make a good report?
  See
 
  http://orgmode.org/manual/Feedback.html#Feedback
 
  Your bug report will be posted to the Org-mode mailing list.
  
 
  There's an undocumented dependency between org-install and
  customizations.  In particular, if custom-set-variables is called to
  set
  org-capture-templates, and then org-install is loaded,
  org-capture-templates will be reset to nil.  I tested this with
 
   emacs -Q
 
  Emacs  : GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple- 
  appkit-1038.29)
  of 2010-05-08 on black.local
  Package: Org-mode version 7.02trans
 
  current state:
  ==
  (setq
  org-agenda-deadline-leaders '(D:  D%d: )
  org-clock-in-switch-to-state STARTED
  org-agenda-skip-scheduled-if-deadline-is-shown t
  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- 
  vars)
  org-todo-keyword-faces '((TODO :foreground medium blue :weight
  bold)
   (APPT :foreground medium blue :weight
  bold)
   (NOTE :foreground brown :weight bold)
   (STARTED :foreground dark  orange
  :weight bold)
   (WAITING :foreground red :weight bold)
   (DELEGATED :foreground dark  violet
  :weight bold)
   (DEFERRED :foreground dark blue :weight
  bold)
   (SOMEDAY :foreground dark blue :weight
  bold)
   (PROJECT :height 1.5 :weight  bold
  :foreground black))
  org-speed-command-hook '(org-speed-command-default-hook org-babel- 
  speed-command-hook)
  org-agenda-custom-commands '((E Errands (next 3 days) tags
ErrandTODO\DONE\TODO
  \CANCELLED\STYLE\habit\SCHEDULED\+3d\
((org-agenda-overriding-header
  Errands (next 3 days))
  
  )
)
   (A Priority #A tasks agenda 
((org-agenda-ndays 1)
 (org-agenda-overriding-header
  Today's priority #A tasks: )
 (org-agenda-skip-function
  (quote (org-agenda-skip-entry-if
  (quote notregexp) \\=.*\\[#A\\]))
  )
 )
)
   (B Priority #A and #B tasks agenda 
((org-agenda-ndays 1)
 (org-agenda-overriding-header
  Today's priority #A and #B tasks: )
 (org-agenda-skip-function
  (quote (org-agenda-skip-entry-if
  (quote regexp) \\=.*\\[#C\\])))
 )
)
   (w Waiting/delegated tasks tags
TODO=\WAITING\|TODO=\DELEGATED\
((org-agenda-overriding-header
  Waiting/delegated tasks:)
 (org-agenda-sorting-strategy
  (quote (todo-state-up priority-down
  category-up)))
 )
)
   (u Unscheduled tasks tags
TODO\\TODO\DONE\TODO
  \CANCELLED\TODO\NOTE\CATEGORY{CEG\\|ABC\\|Bizcard\\|Adagio\
  \|EVAprint\\|\\IT\\}
((org-agenda-overriding-header
  Unscheduled tasks: )
 
  
  
   (org
  -agenda-skip-function
 
  
  
(quote
 
 
 
  
   

Re: [Orgmode] Bug: org-install must precede customization [7.02trans]

2010-11-12 Thread Carsten Dominik


On Nov 12, 2010, at 9:28 PM, David Abrahams wrote:



Hi Carsten,

Is it merely the autoload of org-capture-templates, or is this a
general rule for everything in org-install?  I think I'm perfectly
happy to work with the dependency in place as long as it's documented.


I think that this should work, but it clearly does not.  So the only
clean thing is it to remove it.  The proper sequence should be
to first load org-install and the do any other configuration.

- Carsten


For most people it wouldn't be an issue since custom-* puts its
custom-set-variables call at the end of the file.  I think you need to
be using something like initsplit to see the problem.

At Fri, 12 Nov 2010 16:29:15 -0600,
Carsten Dominik wrote:


Hi David,

thanks for investigating this.

It seems to me that the autoload has caused more problems than it
solved - so I have removed the autoload again.

- Carsten

On Nov 12, 2010, at 12:45 PM, David Abrahams wrote:



Remember to cover the basics, that is, what you expected to happen  
and

what in fact did happen.  You don't know how to make a good report?
See

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

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


There's an undocumented dependency between org-install and
customizations.  In particular, if custom-set-variables is called to
set
org-capture-templates, and then org-install is loaded,
org-capture-templates will be reset to nil.  I tested this with

emacs -Q

Emacs  : GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple-
appkit-1038.29)
of 2010-05-08 on black.local
Package: Org-mode version 7.02trans

current state:
==
(setq
org-agenda-deadline-leaders '(D:  D%d: )
org-clock-in-switch-to-state STARTED
org-agenda-skip-scheduled-if-deadline-is-shown t
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-
vars)
org-todo-keyword-faces '((TODO :foreground medium blue :weight
bold)
(APPT :foreground medium blue :weight
bold)
(NOTE :foreground brown :weight bold)
(STARTED :foreground dark  orange
:weight bold)
(WAITING :foreground red :weight bold)
(DELEGATED :foreground dark  violet
:weight bold)
(DEFERRED :foreground dark blue :weight
bold)
(SOMEDAY :foreground dark blue :weight
bold)
(PROJECT :height 1.5 :weight  bold
:foreground black))
org-speed-command-hook '(org-speed-command-default-hook org-babel-
speed-command-hook)
org-agenda-custom-commands '((E Errands (next 3 days) tags
 ErrandTODO\DONE\TODO
\CANCELLED\STYLE\habit\SCHEDULED\+3d\
 ((org-agenda-overriding-header
Errands (next 3 days))

   )
 )
(A Priority #A tasks agenda 
 ((org-agenda-ndays 1)
  (org-agenda-overriding-header
Today's priority #A tasks: )
  (org-agenda-skip-function
   (quote (org-agenda-skip-entry-if
(quote notregexp) \\=.*\\[#A\\]))
   )
  )
 )
(B Priority #A and #B tasks agenda  


 ((org-agenda-ndays 1)
  (org-agenda-overriding-header
Today's priority #A and #B tasks: )
  (org-agenda-skip-function
   (quote (org-agenda-skip-entry-if
(quote regexp) \\=.*\\[#C\\])))
  )
 )
(w Waiting/delegated tasks tags
 TODO=\WAITING\|TODO=\DELEGATED\
 ((org-agenda-overriding-header
Waiting/delegated tasks:)
  (org-agenda-sorting-strategy
   (quote (todo-state-up priority-down
category-up)))
  )
 )
(u Unscheduled tasks tags
 TODO\\TODO\DONE\TODO
\CANCELLED\TODO\NOTE\CATEGORY{CEG\\|ABC\\|Bizcard\\| 
Adagio\

\|EVAprint\\|\\IT\\}
 ((org-agenda-overriding-header
Unscheduled tasks: )


(org
-agenda-skip-function


 
(quote



  

Re: [Orgmode] Bug: org-install must precede customization [7.02trans]

2010-11-12 Thread David Abrahams

Hi Carsten,

I'm sorry to belabor this, but I'm a little confused about what you're
saying.

At Fri, 12 Nov 2010 22:40:10 -0600,
Carsten Dominik wrote:
 
 
 On Nov 12, 2010, at 9:28 PM, David Abrahams wrote:
 
 
  Hi Carsten,
 
  Is it merely the autoload of org-capture-templates, or is this a
  general rule for everything in org-install?  I think I'm perfectly
  happy to work with the dependency in place as long as it's documented.
 
 I think that this should work, but it clearly does not.  So the only
 clean thing is it to remove it.  The proper sequence should be
 to first load org-install and the do any other configuration.

Are you saying it clearly does not based solely on the information I
gave you, or is there something else?  I ask because what you say is
the proper sequence is supported by my experience.  When I did
things in that order, everything worked.  When I didn't, I ran into
this problem.  It still seems to me that fundamental problem was
simply that the ordering requirement wasn't documented... unless
there's some information I'm missing?

Thanks

 
 - Carsten
 
  For most people it wouldn't be an issue since custom-* puts its
  custom-set-variables call at the end of the file.  I think you need to
  be using something like initsplit to see the problem.
 
  At Fri, 12 Nov 2010 16:29:15 -0600,
  Carsten Dominik wrote:
 
  Hi David,
 
  thanks for investigating this.
 
  It seems to me that the autoload has caused more problems than it
  solved - so I have removed the autoload again.
 
  - Carsten
 
  On Nov 12, 2010, at 12:45 PM, David Abrahams wrote:
 
 
  Remember to cover the basics, that is, what you expected to happen
  and
  what in fact did happen.  You don't know how to make a good report?
  See
 
 http://orgmode.org/manual/Feedback.html#Feedback
 
  Your bug report will be posted to the Org-mode mailing list.
  
 
  There's an undocumented dependency between org-install and
  customizations.  In particular, if custom-set-variables is called to
  set
  org-capture-templates, and then org-install is loaded,
  org-capture-templates will be reset to nil.  I tested this with
 
  emacs -Q
 
  Emacs  : GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple-
  appkit-1038.29)
  of 2010-05-08 on black.local
  Package: Org-mode version 7.02trans
 
  current state:
  ==
  (setq
  org-agenda-deadline-leaders '(D:  D%d: )
  org-clock-in-switch-to-state STARTED
  org-agenda-skip-scheduled-if-deadline-is-shown t
  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-
  vars)
  org-todo-keyword-faces '((TODO :foreground medium blue :weight
  bold)
  (APPT :foreground medium blue :weight
  bold)
  (NOTE :foreground brown :weight bold)
  (STARTED :foreground dark  orange
  :weight bold)
  (WAITING :foreground red :weight bold)
  (DELEGATED :foreground dark  violet
  :weight bold)
  (DEFERRED :foreground dark blue :weight
  bold)
  (SOMEDAY :foreground dark blue :weight
  bold)
  (PROJECT :height 1.5 :weight  bold
  :foreground black))
  org-speed-command-hook '(org-speed-command-default-hook org-babel-
  speed-command-hook)
  org-agenda-custom-commands '((E Errands (next 3 days) tags
   ErrandTODO\DONE\TODO
  \CANCELLED\STYLE\habit\SCHEDULED\+3d\
   ((org-agenda-overriding-header
  Errands (next 3 days))

   )
   )
  (A Priority #A tasks agenda 
   ((org-agenda-ndays 1)
(org-agenda-overriding-header
  Today's priority #A tasks: )
(org-agenda-skip-function
 (quote (org-agenda-skip-entry-if
  (quote notregexp) \\=.*\\[#A\\]))
 )
)
   )
  (B Priority #A and #B tasks agenda
  
   ((org-agenda-ndays 1)
(org-agenda-overriding-header
  Today's priority #A and #B tasks: )
(org-agenda-skip-function
 (quote (org-agenda-skip-entry-if
  (quote regexp) \\=.*\\[#C\\])))
)
   )
  (w Waiting/delegated tasks tags
   TODO=\WAITING\|TODO=\DELEGATED\
   ((org-agenda-overriding-header
  Waiting/delegated tasks:)
(org-agenda-sorting-strategy
 (quote 

[Orgmode] Patch 349

2010-11-12 Thread Noorul Islam
I submitted a patch http://patchwork.newartisans.com/patch/349/ which
is yet to get reviewed. I think it is a very small straight forward
one. Or is there any blockers for this thing to be applied.

Thanks and Regards
Noorul

___
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] Bug: org-install must precede customization [7.02trans]

2010-11-12 Thread Carsten Dominik

Hi David,

On Nov 12, 2010, at 11:01 PM, David Abrahams wrote:



Hi Carsten,

I'm sorry to belabor this, but I'm a little confused about what you're
saying.


that is because I just talked garbage.

Let me try a cleaner version.

If I put an autoload cookie in front of a defun, a stub for this  
function will be created in the autoloads file (for Org this is org- 
install.el).  When this file gets loaded and the corresponding form  
evaluated, Emacs knows about this function and it will load the  
corresponding file to get the full function whenever the function is  
first called.


We had a discussion here some point ago where someone complained that  
org-capture-templates was not available for customization before org- 
capture.el actually has been loaded.  I thought that putting an  
autoload cookie in front of a defcustom form would have the desired  
effect.  I had hoped that org-install.el then would make Emacs aware  
of org-capture-templates and load org-capture.el whenever org-capture- 
templates first was needed.


However, it does not work like this.  In org-install.el, the defcustom  
is turned into a defvar, which defines the variable and sets it to nil.
When later the customize forms are evaluated, they see the variable  
already defined and assume that the user has set this value on  
purpose.  So customize does not think it is entitled to overrule the  
users action and so does *not* install its saved value.  So this  
creates a dependence on the load sequence of org-install.el and  
custom.el.  This is bad and unpredictable.  Therefore I clearly prefer  
that org-capture-templates is only available when org-capture indeed  
has been loaded, and that an error is produced when I try to access  
the variable before it is defined.


Moreover, if you use `C-c r C' to customize the variable, it will work  
because the function org-capture is correctly autoloaded.


That is why I have decided to remove the autoload cookie.

Better?

- Carsten



At Fri, 12 Nov 2010 22:40:10 -0600,
Carsten Dominik wrote:



On Nov 12, 2010, at 9:28 PM, David Abrahams wrote:



Hi Carsten,

Is it merely the autoload of org-capture-templates, or is this a
general rule for everything in org-install?  I think I'm perfectly
happy to work with the dependency in place as long as it's  
documented.


I think that this should work, but it clearly does not.  So the only
clean thing is it to remove it.  The proper sequence should be
to first load org-install and the do any other configuration.


Are you saying it clearly does not based solely on the information I
gave you, or is there something else?  I ask because what you say is
the proper sequence is supported by my experience.  When I did
things in that order, everything worked.  When I didn't, I ran into
this problem.  It still seems to me that fundamental problem was
simply that the ordering requirement wasn't documented... unless
there's some information I'm missing?

Thanks



- Carsten


For most people it wouldn't be an issue since custom-* puts its
custom-set-variables call at the end of the file.  I think you  
need to

be using something like initsplit to see the problem.

At Fri, 12 Nov 2010 16:29:15 -0600,
Carsten Dominik wrote:


Hi David,

thanks for investigating this.

It seems to me that the autoload has caused more problems than it
solved - so I have removed the autoload again.

- Carsten

On Nov 12, 2010, at 12:45 PM, David Abrahams wrote:



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

See

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

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


There's an undocumented dependency between org-install and
customizations.  In particular, if custom-set-variables is  
called to

set
org-capture-templates, and then org-install is loaded,
org-capture-templates will be reset to nil.  I tested this with

emacs -Q

Emacs  : GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple-
appkit-1038.29)
of 2010-05-08 on black.local
Package: Org-mode version 7.02trans

current state:
==
(setq
org-agenda-deadline-leaders '(D:  D%d: )
org-clock-in-switch-to-state STARTED
org-agenda-skip-scheduled-if-deadline-is-shown t
org-export-latex-after-initial-vars-hook '(org-beamer-after- 
initial-

vars)
org-todo-keyword-faces '((TODO :foreground medium blue :weight
bold)
   (APPT :foreground medium blue :weight
bold)
   (NOTE :foreground brown :weight bold)
   (STARTED :foreground dark  orange
:weight bold)
   (WAITING :foreground red :weight bold)
   (DELEGATED :foreground dark  violet
:weight bold)
   (DEFERRED :foreground dark blue :weight
bold)
   (SOMEDAY :foreground dark blue :weight
bold)
 

[Orgmode] Re: Bug: org-install must precede customization [7.02trans]

2010-11-12 Thread Anupam Sengupta
 David Abrahams d...@boostpro.com writes:

 Is it merely the autoload of org-capture-templates, or is this a
 general rule for everything in org-install?  I think I'm perfectly
 happy to work with the dependency in place as long as it's
 documented.  For most people it wouldn't be an issue since
 custom-* puts its custom-set-variables call at the end of the
 file.  I think you need to be using something like initsplit to
 see the problem.

The problem also comes up when a separate file is used for storing
the `custom-set-variables', i.e., something like:

(setq custom-file  ~/emacs-custom.el)
(load custom-file)

Because of the autoload, these statements now need to be at the very
end of the init.el file.  Not a big problem, but still something
that needs to be known (and was not required prior to 7.02).

-- 
Anupam Sengupta

___
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: org-install must precede customization [7.02trans]

2010-11-12 Thread Carsten Dominik


On Nov 12, 2010, at 11:55 PM, Anupam Sengupta wrote:


David Abrahams d...@boostpro.com writes:



Is it merely the autoload of org-capture-templates, or is this a
general rule for everything in org-install?  I think I'm perfectly
happy to work with the dependency in place as long as it's
documented.  For most people it wouldn't be an issue since
custom-* puts its custom-set-variables call at the end of the
file.  I think you need to be using something like initsplit to
see the problem.


The problem also comes up when a separate file is used for storing
the `custom-set-variables', i.e., something like:

(setq custom-file  ~/emacs-custom.el)
(load custom-file)

Because of the autoload, these statements now need to be at the very
end of the init.el file.  Not a big problem, but still something
that needs to be known (and was not required prior to 7.02).


It is no longer required now.  Removing the autoload cookie fixes the  
problem.  But you need to re-create org-install.el by running make.


- 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] Patch 349

2010-11-12 Thread Carsten Dominik

Accepted, thanks.

- Carsten

On Nov 12, 2010, at 11:25 PM, Noorul Islam wrote:


I submitted a patch http://patchwork.newartisans.com/patch/349/ which
is yet to get reviewed. I think it is a very small straight forward
one. Or is there any blockers for this thing to be applied.

Thanks and Regards
Noorul

___
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] Re: How to do Properties search by define an agenda command

2010-11-12 Thread David Maus
At Thu, 11 Nov 2010 20:51:58 -0500,
Matt Lundin wrote:
  Looks like to use the intended functionality someone has to patch Org
  mode's tag search to handle multivalue properties.

 I don't believe the space in property values is meant to indicate
 multiple values (i.e., in the same way that : separates tags). Here's
 an example from the manual:

This is a misunderstanding: Yes, you can use space characters in
single value properties and use regexps to simulate multivalue
properties.

But you can't use Org's multivalue properties (C-h f
org-entry-put-multivalued-property RET).

Looks like an inconsistency or a glitch: Org supports putting multiple
values in a property but has no reserved separator for multiple
values.  So there is no way for a function recognize multivalue
properties -- what makes it hard to perform a search for properties
with multiple values w/o having the user enter a regular expression.

Best,
  -- David

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


pgpQh2WhOsVJr.pgp
Description: PGP signature
___
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] query - org-emphasis-regexp-components

2010-11-12 Thread Puneeth
Hi

I was writing a document with Python code in it and I found a minor problem.
There's no way to put a piece of code like s=Hello World as verbatim
or code in my document.

~s=Hello World~ doesn't work because the border in
org-emphasis-regexp-components doesn't allow  or '. I'm not sure why
this is in place. Can this be removed, or have they been put in for a
specific reason, that I can't see?

Thanks,
Puneeth

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


[Orgmode] Patch 352

2010-11-12 Thread Noorul Islam
The patch http://patchwork.newartisans.com/patch/352/ is already
applied in 491a39825b1205442ebe919009f5c11bdc31d7c4. I think this can
be archived.

___
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] Patch 349

2010-11-12 Thread Carsten Dominik

Accepted, thanks.

- Carsten

On Nov 12, 2010, at 11:25 PM, Noorul Islam wrote:


I submitted a patch http://patchwork.newartisans.com/patch/349/ which
is yet to get reviewed. I think it is a very small straight forward
one. Or is there any blockers for this thing to be applied.

Thanks and Regards
Noorul

___
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] %20 in file://... URL

2010-11-12 Thread Vincent Belaïche

[...]


Please, do! :-)

Giovanni


Herein attached follows my patch. Please feel free for brickbats...

   Vincent.

*** org.el.old	Fri Nov  5 19:16:29 2010
--- org.el	Sat Nov 13 05:50:54 2010
***
*** 9639,9647 
  opened in Emacs, unless an entry from org-file-apps that makes
  use of groups in a regexp matches.
  If the file does not exist, an error is thrown.
!   (let* ((file (if (equal path )
  		   buffer-file-name
! 		 (substitute-in-file-name (expand-file-name path
  	 (file-apps (append org-file-apps (org-default-apps)))
  	 (apps (org-remove-if
  		'org-file-apps-entry-match-against-dlink-p file-apps))
--- 9639,9666 
  opened in Emacs, unless an entry from org-file-apps that makes
  use of groups in a regexp matches.
  If the file does not exist, an error is thrown.
!   (let* ((%xx-decoded-path 
! 	  (let ((pos 0) (%xx-decoded-path path))
! 	(setq %xx-decoded-path path)
! 	(while (setq pos (string-match %\\([0-9A-F]\\)\\([0-9A-F]\\) %xx-decoded-path pos))
! 	  (setq pos (1+ pos)
! 		%xx-decoded-path (replace-match 
!   (string (let ((code 0) digit)
! 		(dotimes (i 2)
! 		  (setq 
! 		   digit (aref (match-string (1+ i) %xx-decoded-path) 0)
! 		   code (+ (if (= digit ?9)
! 			   (- digit ?0)
! 			 (- digit 55))
! 			   (* 16 code code))
!   t t %xx-decoded-path)))
! 	;; remove //localhost/ prefix if any
! 	(and (string-match \\`//localhost/ %xx-decoded-path)
! 		 (setq %xx-decoded-path (substring %xx-decoded-path 12)))
! 	%xx-decoded-path))
! 	 (file (if (equal path )
  		   buffer-file-name
! 		 (substitute-in-file-name (expand-file-name %xx-decoded-path
  	 (file-apps (append org-file-apps (org-default-apps)))
  	 (apps (org-remove-if
  		'org-file-apps-entry-match-against-dlink-p file-apps))
2010-11-13  Vincent Belaïche  vincen...@users.sourceforge.net

* org.el (org-open-file): Decode %XX escapes in URL with file
type, so that applications other than browsers are not confused with 
the filename.

___
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] %20 in file://... URL

2010-11-12 Thread Vincent Belaïche



From: vincent@hotmail.fr
To: emacs-orgmode@gnu.org; giovanni.rido...@yahoo.it
Subject: Re: [Orgmode] %20 in file://... URL
Date: Sat, 13 Nov 2010 07:18:42 +0100
CC: vincent@hotmail.fr

 
[...]
 

Please, do! :-)

Giovanni

 
Herein attached follows my patch. Please feel free for brickbats...
 
   Vincent.
 

BTW, I made the patch based on a GIT pull, so the org.el I used
should be almost the latest one --- unless people have pushed new
versions since the time when I made the pull.

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