[O] fastest way to remove the time from a timestamp

2012-04-02 Thread Detlef Steuer
Hi!

I find myself often in a situation where I have to reschedule an appointement
to another day. 
I.e. there is a line in my agenda view for today:

...
unsorted:   13:00-14:00 Scheduled:  APPT testproject
...

Normally I reschedule with S-right etc., but that keeps the *time* information.

Often I would like to remove that detail while rescheduling to another day, 
fixing times later.

I couldn't find a key combo in the manual to do that, but I'm sure there must 
be an easy way.

Thx
Detlef




Re: [O] Ukrainian language export strings (patch attached)

2012-04-02 Thread Bastien
Hi Yuri,

Yury Bulka  writes:

> I want to send you a little patch containing the export strings (like
> "Author", "Table of Contents" etc.) for Ukrainian.

Applied, thanks.

-- 
 Bastien



Re: [O] [patch] Re: meaning of body-only in org-export-as-html

2012-04-02 Thread Bastien
Hi Chris,

Chris Gray  writes:

>> I see one problem in that it would be then be inconsistent with
>> org-export-as-ascii which considers the TOC to be part of the header.  I
>> would like to be able to export just the TOC (as ascii, and I understand
>> a new ascii exporter has been written lately).  The same thing for the
>> html exporter would presumably solve your problem too because then you
>> could export TOC+body (as html)?
>
> The thing is, the docstring is not consistent with the code.  It would
> make my life easier if the code was changed to match the docstring, but
> I would also be okay if the opposite happened.
>
> I am also looking forward to the new exporter being ready, but I guess
> this small issue should be fixed in the current exporter until it is.
>
> I have attached the patch that I suggested for the HTML exporter.

I'm ready to apply this patch, but can you add a proper Emacs 
ChangeLog?

Thanks,

-- 
 Bastien



Re: [O] ATTR_HTML for a clickable image, howto?

2012-04-02 Thread Bastien
Hi François,

pin...@iro.umontreal.ca (François Pinard) writes:

> then I get the display I wanted.  Is there a way for having #+ATTR_HTML
> to be applied to the inner tag instead of the outer one?

Not -- it would not make sense.

I suggest you fix your css instead.

Best,

-- 
 Bastien



Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-02 Thread Bastien
Hi Nick,

Nick Dokos  writes:

> Agreed, but the point is that each and every variable renaming will need
> to be checked in the light of these criteria. Bugs like this have the
> potential of creating havoc for a long time to come.
>
> It may be easier to start from a working state than to try to fix the
> current broken state piecemeal.

The thing is...  Org is working fine here.  Of course, I'm not a
"thousand eyes" by myself and some features might be broken in the
current state, I will continue trying to catch them.

> Besides, I'd rather have a single commit
> in the history that does the right thing: having one commit that creates
> the initial buggy state and then N commits at various times to fix the
> brokenness might create all sorts of problems (breaking bisectability
> e.g.)

Theoretically agreed.  But again: if you look at the diffs from the 
list of commits you sent, most of them are okay.  Let's try to fix the
ones that are *not* okay instead of going backward?  I will revert the 
commits if things are really broken.

Best,

-- 
 Bastien



Re: [O] [PATCH] Separate file time from its tasks times

2012-04-02 Thread Sebastien Vauban
Hi Bastien,

Bastien wrote:
>>> * org-clock.el (org-clocktable-write-default): Make the sum
>>> appear visually correct by not mixing the total time per file
>>> and sub-totals.
>>
>> This can be best understood with an example...
>
> Mhh.. I understand.  While your patch makes the display more consistent
> in terms of hierarchy, I feel it doesn't help readability *that* much.

Not sure to understand what would really help readability from your point of
view. If we can even do better, let's do it...

What I've just noticed over the past months, is that nobody never understood
the totals of the tables I put in PDF reports -- because of the mix of
columns.

> Could send other before/after examples with various clocktables configs?

I've just sent a better example, which should display the usefulness of the
patch.

> I'm also interested in hearing others opinions on this.

Me too.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] ATTR_HTML for a clickable image, howto?

2012-04-02 Thread Christian Moe

François's problem is probably best fixed with CSS as you suggest.

But it might be nice to be able to set an ALT attribute on an image 
used as a link. That doesn't look like it's currently possible with 
Org link syntax and ATTR_HTML.


Just pointing it out, not making a feature request -- should I need to 
use image links, I'm fine with solving this with verbatim HTML.


Yours,
Christian

On 4/2/12 10:14 AM, Bastien wrote:

Hi François,

pin...@iro.umontreal.ca (François Pinard) writes:


then I get the display I wanted.  Is there a way for having #+ATTR_HTML
to be applied to the inner tag instead of the outer one?


Not -- it would not make sense.

I suggest you fix your css instead.

Best,






[O] setting default BibTex file

2012-04-02 Thread Julian Burgos

Dear list,

This should be pretty easy to answer.  I am having some problems 
defining a default BibTex file.  If I put this at the end of my org file,


\bibliographystyle{plain}
\bibliography{/home/julian/Documents/Refs/BibTex/References}

everything works with no problem.  But if I add this to my .emacs file

(setq reftex-default-bibliography 
(quote("home/julian/Documents/Refs/BibTex/References")))


and this to the end of my org file

\bibliographystyle{plain}
\bibliography{}

When I do the LaTex export I get an "undefined citations" error.
Any ideas?

Julian

--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




[O] if featurep then require, why?

2012-04-02 Thread Peter Münster
Hi,

In `org-show-notification', there is

--8<---cut here---start->8---
  (cond
[...]
((featurep 'notifications)
 (require 'notifications)
[...]
--8<---cut here---end--->8---

Why is the (require 'notifications) needed?

-- 
   Peter




[O] [bug] Can't find remote table when name is downcased

2012-04-02 Thread Sebastien Vauban
Hello,

The error

if: Can't find remote table "onsite"

is reported if the table name is in downcase (as in the following example).

Everything is OK when table name is in uppercase.

--8<---cut here---start->8---
* On site

#+tblname: onsite
|   | Date | Persons |
|---+--+-|
|   | [2012-04-03 Tue] |   1 |
|   | [2012-04-04 Wed] |   1 |
|---+--+-|
|   | Total|   2 |
| ^ |  |   Total |
#+TBLFM: $Total=vsum(@-I..-II)

* Remote reference

| Days on site | 2 | j |
#+TBLFM: @1$2=remote(onsite,$Total)::
--8<---cut here---end--->8---

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] setting default BibTex file

2012-04-02 Thread suvayu ali
Hey Julian,

On Mon, Apr 2, 2012 at 13:49, Julian Burgos  wrote:
> But if I add this to my .emacs file
>
> (setq reftex-default-bibliography
> (quote("home/julian/Documents/Refs/BibTex/References")))
>
> and this to the end of my org file
>
> \bibliographystyle{plain}
> \bibliography{}
>
> When I do the LaTex export I get an "undefined citations" error.
> Any ideas?

Org-mode doesn't use reftex for its export. Unless that setting
actually includes the \bibliography{..} in the exported tex file, I
don't think that will have any effect. Actually in the docstring for
the variable I see it says:

  *List of BibTeX database files which should be used if none are
  specified. When `reftex-citation' is called from a document which has
  neither a `\bibliography{..}' statement nor a `thebibliography'
  environment, RefTeX will scan these files instead. Intended for using
  `reftex-citation' in non-LaTeX files. The files will be searched along
  the BIBINPUTS or TEXBIB path.

I think this *only* helps you insert the citations with reftex, you
still have to have that line in the tex file.

Hope this helps.

-- 
Suvayu

Open source is the future. It sets us free.



[O] Bug Regression : Bad SEXP from Org-Class

2012-04-02 Thread Jonathan Leech-Pepin
Hello Org,

As of this morning I am getting the following errors on my work
machine (last updated on Friday) when trying to load my Agenda:

,
| Bad sexp at line 106 in [...]/personal.org: (org-class 2012 03 12
2012 04 28 1 15)
| Bad sexp at line 107 in [...]/personal.org: (org-class 2012 03 12
2012 04 28 3)
| Bad sexp at line 108 in [...]/personal.org: (org-class 2012 03 12
2012 04 28 6 14)
`
(paths trimmed to only indicate relevant file)

The associated lines in my personal.org are:

,
| %%(org-class 2012 03 12 2012 04 28 1 15) 18:30-22:30 BH-210
| %%(org-class 2012 03 12 2012 04 28 3) 18:30-22:30 BH-210
| %%(org-class 2012 03 12 2012 04 28 6 14) 09:00-13:00 BH-210
`

The error only appears on the appropriate days (Monday, Wednesday,
Saturday) if I'm using a daily Agenda, so they are still properly
matching the desired dates.

The only changed in Org-Agenda over the weekend was 6cbf1f4 where
"entry" was replaced by "org-entry" for global dynamic variables.

Regards,

Jonathan



Re: [O] Bug Regression : Bad SEXP from Org-Class

2012-04-02 Thread Bastien
Hi Jonathan,

Jonathan Leech-Pepin  writes:

> As of this morning I am getting the following errors on my work
> machine (last updated on Friday) when trying to load my Agenda:

This should be fixed now, can you confirm?

Thanks!

-- 
 Bastien



Re: [O] if featurep then require, why?

2012-04-02 Thread Bastien
Hi Peter,

Peter Münster  writes:

> In `org-show-notification', there is
>
>   (cond
>   [...]
>   ((featurep 'notifications)
>(require 'notifications)
> [...]
>
> Why is the (require 'notifications) needed?

It is not.  Fixed, thanks.

-- 
 Bastien



Re: [O] Regression in `org-todo'

2012-04-02 Thread Michael Strey
Hi Moritz & Bastien,

This bug fix seems not to be complete.  At least switching the todo
state in repeated tasks and in conjunction with org-checklist didn't
work for me as it used to before the last update.  PFA a patch that
solved the problem for me.

ATTENTION: Please check this patch very carefully.  This is my first
contribution to org-mode and my first patch ever.  My lisp knowledge is
rudimentary and I do not really understand the code.

Thanks to all developers for your work!

Best regards
Michael Strey


On Sun, Apr 01, 2012 at 05:01:12PM +0200, Moritz Ulrich wrote:
> Commit 6cbf1f417222321a47848a7368427ba8a22fe3a5 renames variable
> `last-state' to `org-last-state' in org.el. This change isn't
> reflected in function `org-todo'.
> 
> That causes the following regression: Toggling a TODO state to DONE on
> a headline via C-c C-t (`org-todo') results in: "Symbol's value as
> variable is void: org-last-state".
> This is reproducible in latest HEAD and even in tag 'release_7.8.07'.
> 
> M-x emacs-version: GNU Emacs 24.0.94.1 (i386-apple-darwin11.3.0, NS
> apple-appkit-1138.32) of 2012-03-12 on moritz-macbook.local
> 
> The attached patch contains a simple (two line) fix.
From 554b1ece898c9aaff47e729d6fa746ec21b5eefd Mon Sep 17 00:00:00 2001
From: Michael Strey 
Date: Mon, 2 Apr 2012 16:21:34 +0200
Subject: [PATCH] s/state/org-state/

---
 contrib/lisp/org-checklist.el |2 +-
 lisp/org.el   |   14 +++---
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/contrib/lisp/org-checklist.el b/contrib/lisp/org-checklist.el
index a974874..03c7547 100644
--- a/contrib/lisp/org-checklist.el
+++ b/contrib/lisp/org-checklist.el
@@ -129,7 +129,7 @@ of checkbox items"
 (a2ps-buffer)
 
 (defun org-checklist ()
-  (when (member state org-done-keywords)
+  (when (member org-state org-done-keywords)
 (org-make-checklist-export)
 (org-reset-checkbox-state-maybe)))
 
diff --git a/lisp/org.el b/lisp/org.el
index 9183743..bf30497 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -2429,7 +2429,7 @@ When nil, only the date will be recorded."
 
 (defcustom org-log-note-headings
   '((done .  "CLOSING NOTE %t")
-(state . "State %-12s from %-12S %t")
+(org-state . "State %-12s from %-12S %t")
 (note .  "Note taken on %t")
 (reschedule .  "Rescheduled from %S on %t")
 (delschedule .  "Not scheduled, was %S on %t")
@@ -2458,7 +2458,7 @@ agenda log mode depends on the format of these entries."
  (cons (const :tag "Heading when closing an item" done) string)
  (cons (const :tag
   "Heading when changing todo state (todo sequence only)"
-  state) string)
+  org-state) string)
  (cons (const :tag "Heading when just taking a note" note) string)
  (cons (const :tag "Heading when clocking out" clock-out) string)
  (cons (const :tag "Heading when an item is no longer scheduled" 
delschedule) string)
@@ -11437,10 +11437,10 @@ For calling through lisp, arg is also interpreted in 
the following way:
;; It is now done, and it was not done before
(org-add-planning-info 'closed (org-current-effective-time))
(if (and (not dolog) (eq 'note org-log-done))
-   (org-add-log-setup 'done state this 'findpos 'note)))
+   (org-add-log-setup 'done org-state this 'findpos 'note)))
  (when (and org-state dolog)
;; This is a non-nil state, and we need to log it
-   (org-add-log-setup 'state org-state this 'findpos dolog)))
+   (org-add-log-setup 'org-state org-state this 'findpos dolog)))
;; Fixup tag positioning
(org-todo-trigger-tag-changes org-state)
(and org-auto-align-tags (not org-setting-tags) (org-set-tags nil 
t))
@@ -11938,7 +11938,7 @@ This function is run automatically after each state 
change to a DONE state."
 (org-todo-log-states nil)
 re type n what ts time to-state)
 (when repeat
-  (if (eq org-log-repeat t) (setq org-log-repeat 'state))
+  (if (eq org-log-repeat t) (setq org-log-repeat 'org-state))
   (setq to-state (or (org-entry-get nil "REPEAT_TO_STATE")
 org-todo-repeat-to-state))
   (unless (and to-state (member to-state org-todo-keywords-1))
@@ -11955,7 +11955,7 @@ This function is run automatically after each state 
change to a DONE state."
;; make sure we take a note, not only a time stamp
(setq org-log-note-how 'note))
  ;; Set up for taking a record
- (org-add-log-setup 'state (or done-word (car org-done-keywords))
+ (org-add-log-setup 'org-state (or done-word (car org-done-keywords))
 org-last-state
 'findpos org-log-repeat)))
   (org-back-to-heading t)
@@ -12377,7 +12377,7 @@ EXTRA is additional t

[O] batch export of homepage stopped working

2012-04-02 Thread Detlef Steuer
Hi!

Generating my university homepage stopped working:


Emacs Version:
steuer@vknecht-intel:~/Working-Copies/Homepage-LS> emacs --version
GNU Emacs 23.2.1
Org-Version:
Org-mode version 7.8.07 (release_7.8.07.139.ge391)

steuer@vknecht-intel:~/Working-Copies/Homepage-LS> make steuer-local
emacs --batch \
-eval "(add-to-list 'load-path
\"/home/steuer/GIT/org-mode/lisp/\")"\
--load /home/steuer/GIT/org-mode/lisp/org.el \ --visit steuer.org \
--funcall org-export-as-html-batch
Loading `ob-exp': old-style backquotes detected!
Problems while trying to load feature `org-jsinfo'
OVERVIEW
Loading vc-git...
Loading `ob-exp': old-style backquotes detected!
Invalid read syntax: ". in wrong context"
make: *** [steuer.html] Fehler 255

---

This is an unchanged steuer.org. that was the source for my page for
some time. Any idea what is wrong in my setup?

I noticed afterwards the message appears already when loading
steuer.org, 
even if not in batch mode but seems to do no harm then.

How can I find out the line/paragraph whatever that causes the error?
Any hints?

Thx
Detlef




Re: [O] Regression in `org-todo'

2012-04-02 Thread Bastien
Hi Michael,

Michael Strey  writes:

> This bug fix seems not to be complete.  At least switching the todo
> state in repeated tasks and in conjunction with org-checklist didn't
> work for me as it used to before the last update.  PFA a patch that
> solved the problem for me.

Thanks for reporting this -- this has already been solved in this
commit:

http://orgmode.org/w/?p=org-mode.git;a=commit;h=9d01ca1bf357917de0c496e86405e24c65b5761c

> ATTENTION: Please check this patch very carefully.  This is my first
> contribution to org-mode and my first patch ever.  My lisp knowledge is
> rudimentary and I do not really understand the code.

The rest of the patch isn't relevant as it changes a symbol's name
(s/state/org-state) for which we don't need the value.  

Please test against latest HEAD and tell me if your problem is still
here, it shouldn't.

Thanks!

-- 
 Bastien



Re: [O] batch export of homepage stopped working

2012-04-02 Thread Bastien
Hi Detlef,

Detlef Steuer  writes:

> Generating my university homepage stopped working:

Can you pull latest git HEAD and try to publish using Emacs
interactively, with (setq debug-on-error t)?

Thanks!

-- 
 Bastien



Re: [O] [bug] Can't find remote table when name is downcased

2012-04-02 Thread Bastien
Hi Sébastien,

"Sebastien Vauban"  writes:

> The error
>
> if: Can't find remote table "onsite"
>
> is reported if the table name is in downcase (as in the following
> example).

Can you try this patch and report?

Thanks!

diff --git a/lisp/org-table.el b/lisp/org-table.el
index ae12cee..19367b5 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -3826,7 +3826,7 @@ Use COMMAND to do the motion, repeat if necessary to end up in a data line."
   "Local variable used by `orgtbl-mode'.")
 
 (defconst orgtbl-line-start-regexp
-  "[ \t]*\\(|\\|#\\+\\(TBLFM\\|ORGTBL\\|TBLNAME\\):\\)"
+  "[ \t]*\\(|\\|#\\+\\(tblfm\\|orgtbl\\|tblname\\):\\)"
   "Matches a line belonging to an orgtbl.")
 
 (defconst orgtbl-extra-font-lock-keywords

-- 
 Bastien


Re: [O] ATTR_HTML for a clickable image, howto?

2012-04-02 Thread Bastien
Hi Christian,

Christian Moe  writes:

> François's problem is probably best fixed with CSS as you suggest.
>
> But it might be nice to be able to set an ALT attribute on an image used as
> a link. That doesn't look like it's currently possible with Org link syntax
> and ATTR_HTML.

Agreed -- this is where Nicolas' new export engine will help,
with a more comprehensive syntax for each element.

> Just pointing it out, not making a feature request -- should I need to use
> image links, I'm fine with solving this with verbatim HTML.

Sure.  Thanks for insisting on this anyway!

Best,

-- 
 Bastien



Re: [O] setting default BibTex file

2012-04-02 Thread Nick Dokos
suvayu ali  wrote:

> Hey Julian,
> 
> On Mon, Apr 2, 2012 at 13:49, Julian Burgos  wrote:
> > But if I add this to my .emacs file
> >
> > (setq reftex-default-bibliography
> > (quote("home/julian/Documents/Refs/BibTex/References")))
> >
> > and this to the end of my org file
> >
> > \bibliographystyle{plain}
> > \bibliography{}
> >
> > When I do the LaTex export I get an "undefined citations" error.
> > Any ideas?
> 
> Org-mode doesn't use reftex for its export. Unless that setting
> actually includes the \bibliography{..} in the exported tex file, I
> don't think that will have any effect. Actually in the docstring for
> the variable I see it says:
> 
>   *List of BibTeX database files which should be used if none are
>   specified. When `reftex-citation' is called from a document which has
>   neither a `\bibliography{..}' statement nor a `thebibliography'
>   environment, RefTeX will scan these files instead. Intended for using
>   `reftex-citation' in non-LaTeX files. The files will be searched along
>   the BIBINPUTS or TEXBIB path.
> 
> I think this *only* helps you insert the citations with reftex, you
> still have to have that line in the tex file.
> 

... but you can shorten it by setting BIBINPUTS in your .profile/.login/whatever
and then using

\bibliography{References}

in your .org/.tex files.

Nick



Re: [O] Bug Regression : Bad SEXP from Org-Class

2012-04-02 Thread Jonathan Leech-Pepin
I can confirm that it is fixed.

Thank you.

On Mon, Apr 2, 2012 at 10:46, Bastien  wrote:
> Hi Jonathan,
>
> Jonathan Leech-Pepin  writes:
>
>> As of this morning I am getting the following errors on my work
>> machine (last updated on Friday) when trying to load my Agenda:
>
> This should be fixed now, can you confirm?
>
> Thanks!
>
> --
>  Bastien
>



Re: [O] Bug: Tag Completion Not Prompting for all tags

2012-04-02 Thread Mike McLean
Bastion

The dangers of minimal testing setups is rearing its ugly head. I can
confirm that your latest patch does fix the minimal example that I
provided. It does not, sadly, fix a similar case where the org-tag-alist
variable includes the :startgroup and :endgroup tokens. If you can my most
recent steps to reproduce, step 1.3, and add those tokens, the error is
"Wrong type argument: stringp, :endgroup"

Thank you for you patience :)

On Saturday, March 31, 2012, Bastien wrote:

> Hi Mike,
>
> Mike McLean > writes:
>
> > Bastien
> >
> > I can verify that this has fixed the problem with tag completion not
> > prompting for all tags. I see that commit
> > 647396464d563634b980127673cf61769663407e has added a wrapper
> > (append that combines buffer-tags with (mapcar 'car table).
> >
> > This has, however, exposed a new bug and conflict
> > with org-completion-use-ido that I can minimally reproduce below.
>
> This is now fixed, thanks!
>
> --
>  Bastien
>


Re: [O] Bug: Tag Completion Not Prompting for all tags

2012-04-02 Thread Mike McLean
Apologies, I blame my iOS spell check for the "correction" of the spelling
on your name :(

Of course I should have seen it before I hit send, too ... Sigh

On Monday, April 2, 2012, Mike McLean wrote:

> Bastion
>
> The dangers of minimal testing setups is rearing its ugly head. I can
> confirm that your latest patch does fix the minimal example that I
> provided. It does not, sadly, fix a similar case where the org-tag-alist
> variable includes the :startgroup and :endgroup tokens. If you can my most
> recent steps to reproduce, step 1.3, and add those tokens, the error is
> "Wrong type argument: stringp, :endgroup"
>
> Thank you for you patience :)
>
> On Saturday, March 31, 2012, Bastien wrote:
>
>> Hi Mike,
>>
>> Mike McLean  writes:
>>
>> > Bastien
>> >
>> > I can verify that this has fixed the problem with tag completion not
>> > prompting for all tags. I see that commit
>> > 647396464d563634b980127673cf61769663407e has added a wrapper
>> > (append that combines buffer-tags with (mapcar 'car table).
>> >
>> > This has, however, exposed a new bug and conflict
>> > with org-completion-use-ido that I can minimally reproduce below.
>>
>> This is now fixed, thanks!
>>
>> --
>>  Bastien
>>
>


Re: [O] [bug] Can't find remote table when name is downcased

2012-04-02 Thread Sebastien Vauban
Hi Bastien,

Bastien wrote:
> "Sebastien Vauban"  writes:
>
>> The error
>>
>> if: Can't find remote table "onsite"
>>
>> is reported if the table name is in downcase (as in the following
>> example).
>
> Can you try this patch and report?

1. Applied the patch manually.
2. Restarted Emacs (to be sure, as it is a defconst).
3. Tested.

   But, no, it does not work on the provided example: remote table is still
   not found.

4. Upcased `tblname'
5. Re-tested. Table is well found.

So, the patch did not change the apparent behavior...

BTW, when "finding ID locations" (launched because the remote table was not
found in the buffer itself), 2 errors are reported in Worg files:

- Duplicate ID "mid:i929ov%24dpe%241%40dough%2Egmane%2Eorg", also in file 
c:/home/sva/src/worg/org-issues.org
- Duplicate ID "mid:4C90E885%2E7010409%40sift%2Einfo", also in file 
c:/home/sva/src/worg/org-issues.org

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Bug: Tag Completion Not Prompting for all tags

2012-04-02 Thread Bastien
Mike McLean  writes:

> Apologies, I blame my iOS spell check for the "correction" of the
> spelling on your name :(
>
> Of course I should have seen it before I hit send, too ... Sigh

No problem -- actually "Bastion" means "fortress" in french...  
that's an inspiring image for the resistence I try to show while
sorting out the current problems :)

-- 
 Bastien



Re: [O] [bug] Can't find remote table when name is downcased

2012-04-02 Thread Bastien
Hi Sébastien,

"Sebastien Vauban"  writes:

> Bastien wrote:
>> "Sebastien Vauban"  writes:
>>
>>> The error
>>>
>>> if: Can't find remote table "onsite"
>>>
>>> is reported if the table name is in downcase (as in the following
>>> example).
>>
>> Can you try this patch and report?
>
> 1. Applied the patch manually.
> 2. Restarted Emacs (to be sure, as it is a defconst).
> 3. Tested.
>
>But, no, it does not work on the provided example: remote table is still
>not found.

Please test this new patch.

I won't apply this before we sort out the conventions around using
downcase/uppercase keywords, as Ilya stated a while ago.

Thanks,

diff --git a/lisp/ob.el b/lisp/ob.el
index 726245c..49ce76a 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -439,3 +439,3 @@ specific header arguments as well.")
 
-(defvar org-babel-data-names '("TBLNAME" "RESULTS" "NAME"))
+(defvar org-babel-data-names '("tblname" "results" "name"))
 
diff --git a/lisp/org-table.el b/lisp/org-table.el
index ae12cee..4bf025b 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -3828,3 +3828,3 @@ Use COMMAND to do the motion, repeat if necessary to end up in a data line."
 (defconst orgtbl-line-start-regexp
-  "[ \t]*\\(|\\|#\\+\\(TBLFM\\|ORGTBL\\|TBLNAME\\):\\)"
+  "[ \t]*\\(|\\|#\\+\\(tblfm\\|orgtbl\\|tblname\\):\\)"
   "Matches a line belonging to an orgtbl.")
@@ -4734,3 +4734,3 @@ list of the fields in the rectangle ."
 	(if (re-search-forward
-		 (concat "^[ \t]*#\\+TBLNAME:[ \t]*" (regexp-quote name-or-id) "[ \t]*$")
+		 (concat "^[ \t]*#\\+tblname:[ \t]*" (regexp-quote name-or-id) "[ \t]*$")
 		 nil t)


-- 
 Bastien


Re: [O] Bug: Tag Completion Not Prompting for all tags

2012-04-02 Thread Bastien
Hi Mike,

Mike McLean  writes:

> The dangers of minimal testing setups is rearing its ugly head. 

You bet :)

> I can
> confirm that your latest patch does fix the minimal example that I
> provided. It does not, sadly, fix a similar case where the
> org-tag-alist variable includes the :startgroup and :endgroup tokens.
> If you can my most recent steps to reproduce, step 1.3, and add those
> tokens, the error is "Wrong type argument: stringp, :endgroup"

Can you resubmit the full test case?

> Thank you for you patience :)

Thanks for your collaboration :)

-- 
 Bastien



Re: [O] batch export of homepage stopped working

2012-04-02 Thread Detlef Steuer
On Mon, 02 Apr 2012 17:04:22 +0200
Bastien  wrote:

> Hi Detlef,
> 
> Detlef Steuer  writes:
> 
> > Generating my university homepage stopped working:
> 
> Can you pull latest git HEAD and try to publish using Emacs
> interactively, with (setq debug-on-error t)?

Works like a charm now! Thx!

Detlef

> 
> Thanks!
> 
> -- 
>  Bastien
> 
> 





[O] Org release 7.8.08 (BUGFIX-only release)

2012-04-02 Thread Bastien
Hi all, 

I released 7.8.08.

This release fixes the most obvious problems introduced 
by the renaming of some variables in Org 7.8.07.

Please spread the word and test this release heavily.

  http://orgmode.org/org-7.8.08.zip
  http://orgmode.org/org-7.8.08.tar.gz
  http://orgmode.org/org-mode-download.html

Thanks,

-- 
 Bastien



Re: [O] [PATCH 2/2] Allow org-collector to display heading indentation by passing ':indent t' to the propview block.

2012-04-02 Thread Bastien
Hi Nicolas,

Nicolas Girard  writes:

> ---
>  contrib/lisp/org-collector.el |   22 +-
>  1 files changed, 17 insertions(+), 5 deletions(-)

Thanks for the patch.  Can you add an Emacs ChangeLog entry?

See http://orgmode.org/worg/org-contribute.html#sec-5 for details.

Also, have you signed the FSF papers?  

I'm sending you the form to fill in in a private email.

Thanks,

-- 
 Bastien



[O] buffer-local org-agenda-files & embedded agenda-view

2012-04-02 Thread Mirko Vukovic
Hello,

I would like to have a buffer (and the associated file) that contain the agenda
view for a few select files.  Is that possible?

They way it might work (in pseudo-code & using babel)

< begin org file
#+org-agenda-files: file-1.org file-2.org file-3.org ;; these are full files


#+begin local-agenda-view
TODO: file-1
IN-PROGRESS: file-2
COMPLETE: file-3
#+end local-agenda-view

< end org file

So, when visiting the above file, or executing C-c C-c, the org-agenda-files
would be refreshed, as would be the local-agenda-view block.  In this example,
the agenda-view is non-standard.

So, is the following possible
- buffer local agenda-files that are set in the declarations
- embedded agenda view
- view customized as shown above

If that is not possible, what variables & functions would I need to look at?

Thank you,

Mirko




Re: [O] Org release 7.8.08 (BUGFIX-only release)

2012-04-02 Thread Chris Randle

Hi

On 2012-04-02 17:41, Bastien wrote:

I released 7.8.08.



Please spread the word and test this release heavily.


org-version reports 7.8.07

--
Chris Randle



Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-02 Thread Achim Gratz
Bastien writes:
> Let's do some heavy testing against current HEAD and let's carefully 
> review code.  But let's not panic -- Emacs is still in pretest, that's
> the whole purpose of a pretest.  

It looks like you've already took care of the fixes.  Anything that you
specifically want to review?  The TODO stuff would not escape Bernt's
scrutiny, I suspect...


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

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




Re: [O] Org release 7.8.08 (BUGFIX-only release)

2012-04-02 Thread Bastien
Chris Randle  writes:

> org-version reports 7.8.07

Fixed.

-- 
 Bastien



Re: [O] Org release 7.8.08 (BUGFIX-only release)

2012-04-02 Thread Achim Gratz
Bastien writes:
> Chris Randle  writes:
>
>> org-version reports 7.8.07
>
> Fixed.

...and if you already picked up the un-annotated tag in your cloned
repo: you need to

git tag -d release_7.8.08
git remote update

to get the correct version.


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

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra




[O] orgmode resume / cv examples?

2012-04-02 Thread Greg Troxel

I remember people talking about preparing resumes in org, with the
primary target being latex export.  I saved a few postings, but hadn't
really paid attention.

Now, I am paying more attention :-) I tried to chase down the
references, but didn't find a full source example, and no pointers on
worg.

I found

  http://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg00998.html

which pointed to

  https://github.com/punchagan/resume

which seems promising, but I have not tried it yet.

There are also things like this:

  
http://www.howtotex.com/general/a-guide-to-building-a-plain-and-simple-latex-cv/
  http://www.ctan.org/tex-archive/macros/latex/contrib/moderncv/
  http://mirror.hmc.edu/ctan/help/Catalogue/entries/ecv.html
  http://stefano.italians.nl/archives/50

which aren't about orgmode, just latex.

I found a resume that obviously had used org, but not the org-mode
source file:

  http://adamsonj.ninth.su/cv.html


Thanks,
Greg


pgphWPm8z4E6z.pgp
Description: PGP signature


Re: [O] Bug: Tag Completion Not Prompting for all tags

2012-04-02 Thread Mike McLean
Yes,  but not until later tonight at the earliest. I have limited access to
personal email at work (iPad only) which is not conducive to emailing test
cases

On Monday, April 2, 2012, Bastien wrote:

>
> Can you resubmit the full test case?
>
>
>
> --
>  Bastien
>
>


[O] Bug: Tag Completion Not Prompting for all tags

2012-04-02 Thread Mike McLean
Yes,  but not until later tonight at the earliest. I have limited access to
personal email at work (iPad only

On Monday, April 2, 2012, Bastien wrote:

>
> Can you resubmit the full test case?
>
>
>
> --
>  Bastien
>
>


Re: [O] Org release 7.8.07 (BUGFIX-only release)

2012-04-02 Thread Achim Gratz
Achim Gratz writes:
> (defmacro org-find-library-name (library)
>   (if (fboundp 'find-library-name)
>   `(file-name-directory (find-library-name ,library))
> ; XEmacs does not have `find-library-name'
> `(file-name-directory (find-library ,library nil (lambda (lib ignore) 
> lib)

Scratch that, of course it needs to evaluate to a function... better
something like this:

(defmacro org-compat-when-fboundp (symbol form1 form2)
  (if (fboundp symbol)
  form1
form2))
(org-compat-when-fboundp find-library-name
(declare-function find-library-name "find-func"  (library))
  (declare-function find-library "lib-complete"  (library codesys func)))
(defun org-find-library-name (library)
  (org-compat-when-fboundp find-library-name
  (file-name-directory (find-library-name library))
; XEmacs does not have `find-library-name'
(file-name-directory (find-library library nil (lambda (lib ignore) lib)


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

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada




Re: [O] Regression in `org-todo'

2012-04-02 Thread Michael Strey
Hi Bastien,

On Mon, Apr 02, 2012 at 05:03:04PM +0200, Bastien wrote:
> ...
> Please test against latest HEAD and tell me if your problem is still
> here, it shouldn't.
 
I confirm that the problem is solved.  Thank you!

It's interesting to see how a bug in a module from the contrib path can
cause strange behaviour of org-mode's core functions.

Best regards
Michael Strey



Re: [O] [bug] Can't find remote table when name is downcased

2012-04-02 Thread Sebastien Vauban
Hi Bastien,

Bastien wrote:
> "Sebastien Vauban"  writes:
>> Bastien wrote:
>>> "Sebastien Vauban"  writes:
>>>
 The error

 if: Can't find remote table "onsite"

 is reported if the table name is in downcase (as in the following
 example).
>>
>> 1. Applied the patch manually.
>> 2. Restarted Emacs (to be sure, as it is a defconst).
>> 3. Tested.
>>
>>But, no, it does not work on the provided example: remote table is still
>>not found.
>
> Please test this new patch.

I confirm that the problem is solved. Thank you!

> I won't apply this before we sort out the conventions around using
> downcase/uppercase keywords, as Ilya stated a while ago.

I don't understand your last point. From what you said on
http://thread.gmane.org/gmane.emacs.orgmode/50916/focus=50956, I imagine
you're talking of the formatting in the manual.

But why not allowing all types of cases (at least: all uppercase and all
downcase) inside Org itself?

Anyway, thanks for the fix...

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Regression in `org-todo'

2012-04-02 Thread Bastien
Hi Michael,

Michael Strey  writes:

> It's interesting to see how a bug in a module from the contrib path can
> cause strange behaviour of org-mode's core functions.

Indeed.  Perhaps org-checklist.el should be part of core.

Opinions?

-- 
 Bastien



Re: [O] ATTR_HTML for a clickable image, howto?

2012-04-02 Thread Samuel Wales
On 2012-04-02, Bastien  wrote:
> Agreed -- this is where Nicolas' new export engine will help,
> with a more comprehensive syntax for each element.

Is there a description of this part someplace?  Do you mean new syntax
or better semantics for existing syntax?

While the new exporter has advantages, I hope the old exporter will
still be available for a long time.  I will need it for various
purposes, including speed -- I use it for an exact word counter that
works flawlessly -- and some design differences from the new exporter.
 (Also the new exporter does not currently work on 22.)

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com



Re: [O] Regression in `org-todo'

2012-04-02 Thread Nick Dokos
Michael Strey  wrote:

> Hi Bastien,
> 
> On Mon, Apr 02, 2012 at 05:03:04PM +0200, Bastien wrote:
> > ...
> > Please test against latest HEAD and tell me if your problem is still
> > here, it shouldn't.
>  
> I confirm that the problem is solved.  Thank you!
> 
> It's interesting to see how a bug in a module from the contrib path can
> cause strange behaviour of org-mode's core functions.
> 

There is no distinction between contrib and core. Once a module is
loaded (wherever it comes from), it is part of emacs and can cause all
kinds of damage: not just to org, but to the whole running emacs. It's
the price one pays for the convenience of dynamically loading code.  You
can avoid the danger by not loading modules, but then emacs becomes much
less interesting: after all, the "e" stands for "extensible".

And it's not just emacs: if you load a module in linux, it can muck
around with kernel memory and crash your system in no time at all.

The whole microkernel approach was an attempt to have that cake and eat
it too: safely loading modules (they run in a separate address space and
can't touch core kernel memory). Nobody has found a way to make it as
fast as a monolithic kernel though (although people have argued forever
about it: the Tanenbaum-Torvalds debate centered exactly around that
point - after you subtract the flaming).

Nick



Re: [O] Regression in `org-todo'

2012-04-02 Thread Nick Dokos
Bastien  wrote:

> Hi Michael,
> 
> Michael Strey  writes:
> 
> > It's interesting to see how a bug in a module from the contrib path can
> > cause strange behaviour of org-mode's core functions.
> 
> Indeed.  Perhaps org-checklist.el should be part of core.
> 
> Opinions?
> 

There might be other reasons to include org-checklist.el in the core,
but as explained in my email to Michael, this is not one of them.

Nick



Re: [O] BUG: Unable to compile on Master

2012-04-02 Thread Jonathan Leech-Pepin
I can confirm it's fixed.

Thank you

On Mon, Apr 2, 2012 at 02:04, Samuel Wales  wrote:
> On 2012-04-01, Bastien  wrote:
>>> same in 22
>>
>> Fixed.  Please try again.
>
> yes, thank you, bastien.
>
> --
> The Kafka Pandemic: http://thekafkapandemic.blogspot.com
>



Re: [O] Regression in `org-todo'

2012-04-02 Thread Bastien
Hi Nick,

Nick Dokos  writes:

> Michael Strey  wrote:
>
>> Hi Bastien,
>> 
>> On Mon, Apr 02, 2012 at 05:03:04PM +0200, Bastien wrote:
>> > ...
>> > Please test against latest HEAD and tell me if your problem is still
>> > here, it shouldn't.
>>  
>> I confirm that the problem is solved.  Thank you!
>> 
>> It's interesting to see how a bug in a module from the contrib path can
>> cause strange behaviour of org-mode's core functions.
>> 
>
> There is no distinction between contrib and core. Once a module is
> loaded (wherever it comes from), it is part of emacs and can cause all
> kinds of damage: not just to org, but to the whole running emacs. It's
> the price one pays for the convenience of dynamically loading code.  You
> can avoid the danger by not loading modules, but then emacs becomes much
> less interesting: after all, the "e" stands for "extensible".

If the features provided by org-checklist.el are useful to many people, 
including them in core seems quite natural.  I don't use it myself, I'm
just wondering how people do.  But I agree with you here that we should
not move things into core inconsiderately.

-- 
 Bastien



Re: [O] Regression in `org-todo'

2012-04-02 Thread Bernt Hansen
Bastien  writes:

> If the features provided by org-checklist.el are useful to many people, 
> including them in core seems quite natural.  I don't use it myself, I'm
> just wondering how people do.  But I agree with you here that we should
> not move things into core inconsiderately.

Hi Bastien,

I use org-checklist for the RESET_CHECK_BOXES functionality on repeating
tasks.

I have lots of repeating tasks with checkboxes to mark what needs to be
completed and the RESET_CHECK_BOXES property clears all of the boxes for
the next repeating event.

My weekly review is one of these types of tasks.  I just walk down the
list and check off the stuff as I do it, and when I'm done I mark the
task done.  All the boxes are ready to be checked again the next time it
comes up.

Regards,
Bernt



[O] not-quite-literal blocks

2012-04-02 Thread Thomas Lord

I am trying to piece together a simple
literate programming system that takes
HTML as input and spews out source files.
The program that "tangles" code fragments
in the HTML into source text will be in XSLT.

Org mode is almost but not quite perfect for
generating the HTML I'd like.  

I'm writing  to ask if I'm overlooking features that
are close to what I want to do, or advice about
whether it makes sense to extend org this way
and, if so, what work is entailed.  (I'm aware
of the existing literate programming features
in org but they are pretty far from what I'm
looking for, I think.)

Right now, I can write something like this:

  #+BEGIN_SRC C
printf ("hello world\n");
  #+END_SRC

and, via HTML export, get:

  printf("hello world\n");
  

What I'd really like is the ability to do this:

  #+BEGIN_SRC C name="Say goodnight, Gracey."
printf ("Goodnight, Gracey\n"); 
  #+END_SRC 

  #+BEGIN_SRC C name="main routine" file="burns.c"
#include 
int main (int argc, char * argv[])
{
  //{{say   goodnight, gracey}}
  return 0;
} 
  #+END_SRC

and get:

   Say goodnight, Gracey.:
   
 printf ("Goodnight Gracey\n");
   

   main routine:
   
 #include 
 int main (int argc, char * argv[])
 {
   //{say   goodnight,
gracey}}
   return 0;
 }
   


You can probably see how if I could get those mangled
"id" attributes in there, along with the hyperlinks,
it's pretty easy to tangle the result to produce a 
source file like:

#include 
int main (int argc, char * argv[])
{
  printf ("Goodnight, Gracey\n");
  return 0;
}

Any suggestions on what I would need to do 
to get code blocks like this?   The precise details of
the particular HTML mark-up are a little bit 
flexible.

Huge "bonus points" if I can specify arbitrary
attributes (not just "id" and "file") *and*
introduce spans with a specific "id" in code.
Like:

   #+BEGIN_SRC C id="print something" params="thing rest"
 printf (/*{thing}*/, /*{rest}*/);
   #+END_SRC

for 

  printf (/*thing*/, ...);


and

#+BEGIN_SRC id="main routine" ...
...
int main (int argc, char * argv[])
{
  //{{print something}thing={"argc is %d\n"}rest={argc}}
  return 0;
}
#+END_SRC

for the obvious HTML expansion, all to ultimately generate
(through the XSLT code):

...
int main (...)
{
   printf ("argc is %d\n", argc);
   ...
}

Thanks,
-t





Re: [O] not-quite-literal blocks

2012-04-02 Thread Eric Schulte
Thomas Lord  writes:

> I am trying to piece together a simple
> literate programming system that takes
> HTML as input and spews out source files.
> The program that "tangles" code fragments
> in the HTML into source text will be in XSLT.
>
> Org mode is almost but not quite perfect for
> generating the HTML I'd like.  
>
> I'm writing  to ask if I'm overlooking features that
> are close to what I want to do, or advice about
> whether it makes sense to extend org this way
> and, if so, what work is entailed.  (I'm aware
> of the existing literate programming features
> in org but they are pretty far from what I'm
> looking for, I think.)
>
> Right now, I can write something like this:
>
>   #+BEGIN_SRC C
> printf ("hello world\n");
>   #+END_SRC
>
> and, via HTML export, get:
>
>   printf("hello world\n");
>   
>
> What I'd really like is the ability to do this:
>
>   #+BEGIN_SRC C name="Say goodnight, Gracey."
> printf ("Goodnight, Gracey\n"); 
>   #+END_SRC 
>   #+BEGIN_SRC C name="main routine" file="burns.c"
> #include 
> int main (int argc, char * argv[])
> {
>   //{{say   goodnight, gracey}}
>   return 0;
> } 
>   #+END_SRC
>
> and get:
>
>Say goodnight, Gracey.:
>
>  printf ("Goodnight Gracey\n");
>
>
>main routine:
>
>  #include 
>  int main (int argc, char * argv[])
>  {
>//{say   goodnight,
> gracey}}
>return 0;
>  }
>
>

This behavior should be fairly easily implemented through customizing
the `org-babel-exp-code-template' variable, you can put any arbitrary
Org-mode text into this template including literal HTML.  See its
documentation string for more information.

>
>
> You can probably see how if I could get those mangled
> "id" attributes in there, along with the hyperlinks,
> it's pretty easy to tangle the result to produce a 
> source file like:
>
> #include 
> int main (int argc, char * argv[])
> {
>   printf ("Goodnight, Gracey\n");
>   return 0;
> }
>
> Any suggestions on what I would need to do 
> to get code blocks like this?   The precise details of
> the particular HTML mark-up are a little bit 
> flexible.
>
> Huge "bonus points" if I can specify arbitrary
> attributes (not just "id" and "file") *and*
> introduce spans with a specific "id" in code.
> Like:
>
>#+BEGIN_SRC C id="print something" params="thing rest"
>  printf (/*{thing}*/, /*{rest}*/);
>#+END_SRC
>
> for 
> 
>   printf (/*thing*/, ...);
> 
>
> and
>
> #+BEGIN_SRC id="main routine" ...
> ...
> int main (int argc, char * argv[])
> {
>   //{{print something}thing={"argc is %d\n"}rest={argc}}
>   return 0;
> }
> #+END_SRC
>
> for the obvious HTML expansion, all to ultimately generate
> (through the XSLT code):
>
> ...
> int main (...)
> {
>printf ("argc is %d\n", argc);
>...
> }
>

If you're willing to hack ob-exp.el locally you could add specific
header arguments to the `org-babel-exp-code-template' template.  I'm not
clear on a good way to do this for *any* header argument which would be
general enough to push up to the main Org-mode trunk.

Cheers,

>
> Thanks,
> -t
>
>
>

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



Re: [O] Sticky Agenda buffer: Announcement and request for testing

2012-04-02 Thread Bastien
Hi Carsten and Max,

"Dominik, Carsten"  writes:

> already in Januar, Max Mikhanosha had published the first
> version of his code to implement multiple agenda buffers.  I have
> worked with him over the last few weeks, and we think that
> it is now quite stable.

I've been trying the agenda-sticky branch a few times now and I love
this feature -- thanks a lot!

One request: I often use buffer restrictions in combination with agenda
views.  For example, I restrict to a first-level tree then run my daily
agenda on that tree.

In this case, using sticky agenda is a bit confusing because I expect 
a completely different agenda view while using the same agenda key (none
of the items in a tree are part of another subtree.)

Could we have an option allowing a set of rules (or a set of agenda
views) for which we want the rebuilding to be done automatically?  I
would turn on this for my daily agenda views.

Thanks,

-- 
 Bastien



Re: [O] Sticky Agenda buffer: Announcement and request for testing

2012-04-02 Thread Bastien
Hi Manuel,

Manuel Hermenegildo  writes:

> But, would it be possible to achieve the behavior I had mistakenly
> assumed? 
>
> Going back to the week view example, Org would remember the rendering
> of each week as you move from one week to another, not recomputing a
> week that has already been visited. The different weeks would be kept
> in different buffers (called, e.g., *Org Agenda (*).
> All these buffers would be recomputed only when g is typed. It woudl
> work the same with, say, day view.
>
> I at least would find that *very* useful (but I do not know how much
> more complicated it is than the current stickiness).

I played around with your idea, storing informations from each agenda
view in a variable `org-agenda-listing' -- which is kind of a "cache"
for agendas.

While the idea is neat, the implementation has to be careful of keeping
old agenda views in sync with the state of the .org buffers, as Samuel
correctly pointed out.

I've nothing mature yet in this area, but I'll surely digg again when
the sticky agenda branch is merged.

Please ping us with this idea again after the merge.

Thanks,

-- 
 Bastien



Re: [O] ATTR_HTML for a clickable image, howto?

2012-04-02 Thread Bastien
Hi Samuel,

Samuel Wales  writes:

> On 2012-04-02, Bastien  wrote:
>> Agreed -- this is where Nicolas' new export engine will help,
>> with a more comprehensive syntax for each element.
>
> Is there a description of this part someplace?  

The reference document for the new org-export.el lives here:

  http://orgmode.org/worg/dev/org-export-reference.html

> Do you mean new syntax
> or better semantics for existing syntax?

I mean "a better description of all possible properties for any
syntactic element."  It should be clear by just skimming through
the link above.

> While the new exporter has advantages, I hope the old exporter will
> still be available for a long time.  I will need it for various
> purposes, including speed -- I use it for an exact word counter that
> works flawlessly -- and some design differences from the new exporter.
>  (Also the new exporter does not currently work on 22.)

Good to know.  We will try to keep things as backward compatible as
possible.  There is no plan to destroy existing code anyway.

Thanks,

-- 
 Bastien



Re: [O] orgmode resume / cv examples?

2012-04-02 Thread Bastien
Hi Greg,

Greg Troxel  writes:

> I remember people talking about preparing resumes in org, with the
> primary target being latex export.  I saved a few postings, but hadn't
> really paid attention.

I guess you forgot to turn your email into a question ;)

Anyway, would be nice to store cv/resume+org informations 
on Worg, as this is becoming a FAQ.  

Would you do that?

Thanks!

-- 
 Bastien



Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-02 Thread Bastien
Hi Achim,

Achim Gratz  writes:

> Bastien writes:
>> Let's do some heavy testing against current HEAD and let's carefully 
>> review code.  But let's not panic -- Emacs is still in pretest, that's
>> the whole purpose of a pretest.  
>
> It looks like you've already took care of the fixes.  Anything that you
> specifically want to review?  The TODO stuff would not escape Bernt's
> scrutiny, I suspect...

There are these warnings left while compiling Org in Emacs 24:

1. one about `buffer-substring-filters'
2. one about `entry' not having a prefix
3. one about `date', `annotation', 'initial' not having a prefix

We should write a compatibility function to get rid of the first
warning.

Prefixing `entry' is not straightforward but should be possible.

As for the last warnings, I think we'll have to live with it,
but chasing down places where *some* instance can be prefixed
(or renamed with a more explicit name) could be good.  Not a
high priority though.

Nothing here is critical right now -- thanks for your help!

-- 
 Bastien



[O] 24.0.95; (org) outline-style cycling + outline-mode

2012-04-02 Thread Jambunathan K
1. Install the following hook

 (add-hook 'outline-mode-hook
   (lambda ()
 (define-key outline-mode-map [(tab)] 'org-cycle)
 (define-key outline-mode-map [(shift tab)] 'org-global-cycle)))

2. (setq debug-on-error t)
3. Visit NEWS file with C-h n
4. Place the cursor at the end of the line as shown below.

, ^ is where the cursor is.
|  ---^^
|  ** Emacs can be compiled with SELinux support.^^
|  This happens by default if a suitably recent version of the library is
|  found at build time.  To prevent this, use the configure option
|  `--without-selinux'.  See below for SELinux features.
| 
|
`

5. Press S-TAB. The following error is reported.  I would expect some
   sort of cycling to happen.
   let: Wrong type argument: stringp, nil

6. This doesn't happen if I am in the middle of a paragraph/line.

7. Here is the sequence of calls.

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  looking-at(nil)
  (let ((case-fold-search nil)) (looking-at org-todo-line-regexp))
  (save-excursion (beginning-of-line 1) (let ((case-fold-search nil)) 
(looking-at org-todo-line-regexp)))
  (and (looking-at "[   ]*$") (save-excursion (beginning-of-line 1) (let 
((case-fold-search nil)) (looking-at org-todo-line-regexp))) (string= 
(match-string 3) ""))
  org-point-at-end-of-empty-headline()
  (if (org-point-at-end-of-empty-headline) (progn (setq this-command (quote 
org-cycle-level)) (let ((cur-level (org-current-level)) (prev-level 
(org-get-previous-line-level))) (cond ((= prev-level 0) (loop repeat (/ (- 
cur-level 1) (org-level-increment)) do (org-do-promote))) ((= prev-level 
cur-level) (org-do-demote)) ((= prev-level 1) (loop repeat (/ (- cur-level 1) 
(org-level-increment)) do (org-do-promote))) ((= cur-level 1) (loop repeat (/ 
(- prev-level 1) (org-level-increment)) do (org-do-demote))) ((< cur-level 
prev-level) (org-do-promote)) ((> cur-level prev-level) (loop repeat (+ 1 (/ 
... ...)) do (org-do-promote t)))
  (when (org-point-at-end-of-empty-headline) (setq this-command (quote 
org-cycle-level)) (let ((cur-level (org-current-level)) (prev-level 
(org-get-previous-line-level))) (cond ((= prev-level 0) (loop repeat (/ (- 
cur-level 1) (org-level-increment)) do (org-do-promote))) ((= prev-level 
cur-level) (org-do-demote)) ((= prev-level 1) (loop repeat (/ (- cur-level 1) 
(org-level-increment)) do (org-do-promote))) ((= cur-level 1) (loop repeat (/ 
(- prev-level 1) (org-level-increment)) do (org-do-demote))) ((< cur-level 
prev-level) (org-do-promote)) ((> cur-level prev-level) (loop repeat (+ 1 (/ (- 
cur-level prev-level) (org-level-increment))) do (org-do-promote t))
  (let ((org-adapt-indentation nil)) (when (org-point-at-end-of-empty-headline) 
(setq this-command (quote org-cycle-level)) (let ((cur-level 
(org-current-level)) (prev-level (org-get-previous-line-level))) (cond ((= 
prev-level 0) (loop repeat (/ (- cur-level 1) (org-level-increment)) do 
(org-do-promote))) ((= prev-level cur-level) (org-do-demote)) ((= prev-level 1) 
(loop repeat (/ (- cur-level 1) (org-level-increment)) do (org-do-promote))) 
((= cur-level 1) (loop repeat (/ (- prev-level 1) (org-level-increment)) do 
(org-do-demote))) ((< cur-level prev-level) (org-do-promote)) ((> cur-level 
prev-level) (loop repeat (+ 1 (/ ... ...)) do (org-do-promote t)))
  org-cycle-level()
  (or (org-cycle-level) (org-cycle-item-indentation))
  (and org-cycle-level-after-item/entry-creation (or (org-cycle-level) 
(org-cycle-item-indentation)))
  (or (run-hook-with-args-until-success (quote org-tab-first-hook)) (and 
org-cycle-level-after-item/entry-creation (or (org-cycle-level) 
(org-cycle-item-indentation
  (if (or (run-hook-with-args-until-success (quote org-tab-first-hook)) (and 
org-cycle-level-after-item/entry-creation (or (org-cycle-level) 
(org-cycle-item-indentation nil (let* ((limit-level (or org-cycle-max-level 
(and (boundp (quote org-inlinetask-min-level)) org-inlinetask-min-level (1- 
org-inlinetask-min-level (nstars (and limit-level (if org-odd-levels-only 
(and limit-level (1- ...)) limit-level))) (org-outline-regexp (if (not (eq 
major-mode (quote org-mode))) outline-regexp (concat "\\*" (if nstars (format 
"\\{1,%d\\} " nstars) "+ " (bob-special (and org-cycle-global-at-bob (not 
arg) (bobp) (not (looking-at org-outline-regexp (org-cycle-hook (if 
bob-special (delq (quote org-optimize-window-after-visibility-change) 
(copy-sequence org-cycle-hook)) org-cycle-hook)) (pos (point))) (if (or 
bob-special (equal arg (quote (4 (setq arg t)) (cond ((equal arg (quote 
(16))) (setq last-command (quote dummy)) (org-set-startup-visibility) (message 
"Startup visibility, plus VISIBILITY properties")) ((equal arg (quote (64))) 
(show-all) (message "Entire buffer visible, including drawers")) 
((org-at-table-p (quote any)) (if (org-at-table\.el-p) (message "Use C-c ' to 
edit table.el tables") (if arg (org-table-edit-fi

Re: [O] buffer-local org-agenda-files & embedded agenda-view

2012-04-02 Thread Bastien
Hi Mirko,

Mirko Vukovic  writes:

> I would like to have a buffer (and the associated file) that contain the 
> agenda
> view for a few select files.  Is that possible?
>
> They way it might work (in pseudo-code & using babel)
>
> < begin org file
> #+org-agenda-files: file-1.org file-2.org file-3.org ;; these are full files
>
>
> #+begin local-agenda-view
> TODO: file-1
> IN-PROGRESS: file-2
> COMPLETE: file-3
> #+end local-agenda-view
>
> < end org file

Agenda views rely on two things: a list of selected items, a display
mechanism for these items in a dedicated buffer (either one single
buffer, or several buffers when using sticky agenda views.)

What you're asking for would be possible if the list of items were 
stored somewhere else than in a dedicated buffer -- which is not the
case right now (see also my recent reply to Manuel.)

> So, when visiting the above file, or executing C-c C-c, the org-agenda-files
> would be refreshed, as would be the local-agenda-view block.  In this example,
> the agenda-view is non-standard.
>
> So, is the following possible
> - buffer local agenda-files that are set in the declarations
> - embedded agenda view
> - view customized as shown above
>
> If that is not possible, what variables & functions would I need to
> look at?

You can try to digg the idea of `org-agenda-listing' further.

Good luck!

-- 
 Bastien



Re: [O] fastest way to remove the time from a timestamp

2012-04-02 Thread Bastien
Hi Detlef,

Detlef Steuer  writes:

> Often I would like to remove that detail while rescheduling to another day, 
> fixing times later.
>
> I couldn't find a key combo in the manual to do that, but I'm sure
> there must be an easy way.

I use this:

C-c C-s [reschedule from calendar or using +2d] 15:55   <<< change the time

-- 
 Bastien



Re: [O] org-crypt won't work with new version of gpg

2012-04-02 Thread Bastien
Eric Abrahamsen  writes:

> I've got `org-crypt-key' set to my private key, and other than that no
> real customizations. Any hints very welcome!

Looks like the problem comes from either gpg only or the gpg/epg
interaction... sorry I can't help further.

-- 
 Bastien



Re: [O] Problems with (defvar foo) and Emacs 23

2012-04-02 Thread Achim Gratz
Bastien writes:
> 1. one about `buffer-substring-filters'
> We should write a compatibility function to get rid of the first
> warning.

Actually it is a variable and it "just" needs to be aliased suitably,
depending on which Emacs version it encounters.  This should be done
with a macro in org-compat.el (which doesn't exist yet, see my attempt
at such a macro in another thread), then org can use the aliased name
only.  In general I'd say org-compat.el is in need of some love.

> 2. one about `entry' not having a prefix
> Prefixing `entry' is not straightforward but should be possible.

I don't know enough about its uses to help here.

> 3. one about `date', `annotation', 'initial' not having a prefix
> As for the last warnings, I think we'll have to live with it,
> but chasing down places where *some* instance can be prefixed
> (or renamed with a more explicit name) could be good.  Not a
> high priority though.

I think one could also alias these (the prefix should be that of the
package where they come from), so that all uses within org use that
prefix.  That would probably leave one warning at the point where the
alias is defined, which could be wrapped into with-no-warning.


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

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




Re: [O] How to remote tags from calfw?

2012-04-02 Thread Bastien
OSiUX  writes:

> Using calfw [0], i do not know how to remove remove tags from function
> cfw:open-org-calendar
>
> Anyone can help me?
>
> [0] https://github.com/kiwanami/emacs-calfw

Looks like you'll have a better answer from the author himself:

  SAKURAI Masashi 

HTH,

-- 
 Bastien



Re: [O] identify notes within headlines

2012-04-02 Thread Bastien
Hi Fred,

Fred Hansen  writes:

> Most of my headlines contain only timestamps as content.  Some,
> however, have notes. These notes are usually contextual information
> that will help me to complete a task.  To remember to check the
> notes, I type 'see note' at the end of these headlines. I suppose I
> could also use a tag like ":NOTE:". The problem is that I have to
> remember to add a tag or type "see note".  I don't like the added
> step and I sometimes forget to do it.  Before I began tracking state
> changes I was able to use the elipsis as a visual indication that the
> note had contents, but now all my notes have elipsis.  Does anyone
> have a better (automated) way to identify notes?  Perhaps I a hook
> after org-add-note to add a tag to the headline?  Thanks for any
> suggestions.

I like the idea of being able to identify entries with notes, but 
this is hardly doable, because notes are formatted differently for
different users.

What's doable instead is to have a function mapping the current buffer
and looking for entries with a LOGBOOK drawer.  You can have a look at
`org-map-entries' for a start.

HTH,

-- 
 Bastien



Re: [O] table not returned

2012-04-02 Thread Bastien
Hi Nick,

Nick Dokos  writes:

> BTW, two possible workarounds which "work" with org-babel-string-read:
>
> (org-babel-string-read "[foo]") --> [foo]
>
> (org-babel-string-read "'(bar)") --> (bar)
>
> do *not* work in the original context, so the org-babel-string-read
> problem is probably only part of the story.

Try this:

(org-babel-read "(bar)") => error
(org-babel-read "(bar)" t)   => ok

What is at stake here is that perhaps `org-babel-read' should be more
clever in turning `inhibit-lisp-eval' automatically on in some contexts.
But Eric has the last word on this, I'm not familiar enough with the
code.

Thanks,

-- 
 Bastien



Re: [O] [BUG] html export and org results block and indentation

2012-04-02 Thread Bastien
Nick Dokos  writes:

> Andreas Leha  wrote:
>
>> The difference seems to come from me loading the module
>> org-special-blocks.  Without loading this module, I also get your
>> result.
>
> One mystery down, two to go: so there is a (possible) bug in the html
> exporter with indented #+BEGIN_ORG/#+END_ORG blocks and another
> (possible) bug in org-special-blocks: they are multiplying like
> rabbits :-)

So let's herd rabbits and hang them thread by thread: can you/Andreas
post a bug report for each rabbit with a description of the rabbit's
anatomy and a way to double-check its anatomy?

Thanks!

-- 
 Bastien



Re: [O] Sticky Agenda buffer: Announcement and request for testing

2012-04-02 Thread Carsten Dominik
Hi Bastien,

of course this is how I'd like it to work as well, but this was too hard for 
the moment... :(

On Apr 3, 2012, at 7:33 AM, Bastien b...@gnu.org wrote:

> Hi Carsten and Max,
> 
> "Dominik, Carsten"  writes:
> 
>> already in Januar, Max Mikhanosha had published the first
>> version of his code to implement multiple agenda buffers.  I have
>> worked with him over the last few weeks, and we think that
>> it is now quite stable.
> 
> I've been trying the agenda-sticky branch a few times now and I love
> this feature -- thanks a lot!
> 
> One request: I often use buffer restrictions in combination with agenda
> views.  For example, I restrict to a first-level tree then run my daily
> agenda on that tree.
> 
> In this case, using sticky agenda is a bit confusing because I expect 
> a completely different agenda view while using the same agenda key (none
> of the items in a tree are part of another subtree.)
> 
> Could we have an option allowing a set of rules (or a set of agenda
> views) for which we want the rebuilding to be done automatically?  I
> would turn on this for my daily agenda views.
> 
> Thanks,
> 
> -- 
> Bastien