Re: [O] Preserving the geometry of a table range

2012-08-26 Thread Michael Brand
Hi Jarmo

could you make a small example with the table content before and after
the yet to be defined formula has been applied, maybe with a
pseudo-formula?

Michael



Re: [O] difficulty installing 7.9 with the new build system: org-version not informative

2012-08-26 Thread Achim Gratz
Bastien writes:
>> I'll add
>> a file to the tarball that just defines these two variables and include
>> that when absolutely no version is defined.  
>
> Can't we just have this in default.mk?  Do we need yet another file?

That would mean I'd have to change default.mk while building the tarball
and then change it back afterwards.  There's no way I can make that
completely foolproof, so I'll rather just generate a file specifically
for the tarball that I can throw away any time without having to keep
state.


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




Re: [O] difficulty installing 7.9 with the new build system: org-version not informative

2012-08-26 Thread Bastien
Achim Gratz  writes:

> Bastien writes:
>>> I'll add
>>> a file to the tarball that just defines these two variables and include
>>> that when absolutely no version is defined.  
>>
>> Can't we just have this in default.mk?  Do we need yet another file?
>
> That would mean I'd have to change default.mk while building the tarball
> and then change it back afterwards.  There's no way I can make that
> completely foolproof, so I'll rather just generate a file specifically
> for the tarball that I can throw away any time without having to keep
> state.

Let me know if I understand correctly: that's because you don't want
default.mk to contain a manually inserted ORGVERSION variable, right?

Otherwise I don't see the problem with having a fallback ORGVERSION
variable in default.mk (which I'll happily insert manually, to have a 
taste of the Good Old Days, when (defconst org-version "...") was
still in org.el... :)

-- 
 Bastien



Re: [O] [PATCH v3 00/11] Taskjuggler exporter improvements

2012-08-26 Thread Bastien
Hi Yann,

Yann Hodique  writes:

> here is a new version of the patch series.

I have now applied those patches to master.

Thanks a lot for this!

-- 
 Bastien



[O] org-sticky-agenda: Refiling broken

2012-08-26 Thread Moritz Ulrich

When I try to refile a TODO from from a sticky agenda, I get the
following error:

--8<---cut here---start->8---
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  org-remove-subtree-entries-from-agenda()
  org-agenda-refile(nil)
  call-interactively(org-agenda-refile nil nil)
--8<---cut here---end--->8---

This happens in the latest release and the one before.


Cheers,
Moritz Ulrich

--
Moritz Ulrich



Re: [O] Preserving the geometry of a table range

2012-08-26 Thread Jarmo Hurri

Greetings Michael.

I can try. Here is an example of the desired low-level functionality
with a simple function. The lookup functions would be built on this.

Does this help?

* an example of low level functionality
  Here is an example of an elisp function working on a range as a list
  of rows. This one first finds the product of the elements on each
  row, and then sums up these products.
#+BEGIN_SRC emacs-lisp
(defun sum-row-prods (rows)
  (apply '+ (mapcar (lambda (row) (apply '* row)) rows)))
#+END_SRC

#+RESULTS:
: sum-row-prods

  Then here we have a table in which the element at @4$1 is given by
  applying the function sum-row-prods to a specific list of
  lists. This works already in org mode, since in the formula for @4$1
  the list of lists is given as a constant. The formula for @4$2
  illustrates the desired functionality, that is, being able to apply
  the function sum-row-prods to range @2$1..@3$2. The result should be
#+BEGIN_SRC emacs-lisp
(sum-row-prods '((2 3) (4 5)))
#+END_SRC

#+RESULTS:
: 26

  but now it naturally gives an error, since the argument to
  sum-row-prods is a list, not a list of lists (rows).

  |  a |  b |
  |+|
  |  2 |  3 |
  |  4 |  5 |
  | 10 | #ERROR |
  #+tblfm: @4$1='(sum-row-prods '((-4 1) (-2 -7)));N::@4$2='(sum-row-prods 
'(@2$1..@3$2));N

  I don't know what the new syntax for referring to a range as a list
  of rows should look like.

--

Jarmo




Re: [O] advice on compiling org 7.9 for OSX Lion.

2012-08-26 Thread Moritz Ulrich

John Hendy writes:

> On Sat, Aug 25, 2012 at 2:39 PM, Achim Gratz  wrote:
>> Filippo A. Salustri writes:
>>> I haven't yet installed Xcode on some of my Lion machines, so I haven't
>>> got 'make' everywhere.
>>
>> Why do you need Xcode to get make?
>
> Having a Mac myself, I'm assuming the answer is that it's just the
> easiest way. Pop in the DVD and install the gcc tools from the extras
> folder. Is there a better way?
>
> John
>

Yes, there is! :-) Use a recent Xcode from the Mac AppStore and install
the command line tools via the option dialog.

--
Moritz Ulrich



Re: [O] org-sticky-agenda: Refiling broken

2012-08-26 Thread Bastien
Moritz Ulrich  writes:

> When I try to refile a TODO from from a sticky agenda, I get the
> following error:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   org-remove-subtree-entries-from-agenda()
>   org-agenda-refile(nil)
>   call-interactively(org-agenda-refile nil nil)
>
> This happens in the latest release and the one before.

Fixed, thanks a lot!

-- 
 Bastien



Re: [O] (Warning: Has attachments) org-odt.el/ org-e-html.el/ org-e-odt.el: Needs new maintainers

2012-08-26 Thread Bastien
Hi Jambunathan,

Jambunathan K  writes:

> [2] If the maintainership of Orgmode project changes hands, please let
> me know.  I can continue from where I left off.  

Can you suggest who as an Org maintainer will make you maintain back
org-odt.el, org-e-html.el and org-e-odt.el?

One sure thing: I'm not a benevolent maintainer *for life*.  I will
continue to work on Org 8.0.  Then chances are that I will hand over
maintainership to someone that is volunteering and that i think is a
good fit.

Any ideas welcome,

-- 
 Bastien



Re: [O] org-sticky-agenda: Refiling broken

2012-08-26 Thread Moritz Ulrich

Bastien writes:

> Moritz Ulrich  writes:
>
>> When I try to refile a TODO from from a sticky agenda, I get the
>> following error:
>>
>> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>>   org-remove-subtree-entries-from-agenda()
>>   org-agenda-refile(nil)
>>   call-interactively(org-agenda-refile nil nil)
>>
>> This happens in the latest release and the one before.
>
> Fixed, thanks a lot!

Seems like `org-agenda-kill' is affected too:

--8<---cut here---start->8---
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  org-remove-subtree-entries-from-agenda(# 12186 12227)
  org-agenda-kill()
  call-interactively(org-agenda-kill nil nil)
--8<---cut here---end--->8---

Sorry for not noticing before!

--
Moritz Ulrich



Re: [O] org-sticky-agenda: Refiling broken

2012-08-26 Thread Bastien
Moritz Ulrich  writes:

> Seems like `org-agenda-kill' is affected too:

And `org-agenda-archive-with' too.

Both should be fixed now, thanks.

-- 
 Bastien



Re: [O] advice on compiling org 7.9 for OSX Lion.

2012-08-26 Thread John Hendy
On Sun, Aug 26, 2012 at 3:58 AM, Moritz Ulrich  wrote:
>
> John Hendy writes:
>
>> On Sat, Aug 25, 2012 at 2:39 PM, Achim Gratz  wrote:
>>> Filippo A. Salustri writes:
 I haven't yet installed Xcode on some of my Lion machines, so I haven't
 got 'make' everywhere.
>>>
>>> Why do you need Xcode to get make?
>>
>> Having a Mac myself, I'm assuming the answer is that it's just the
>> easiest way. Pop in the DVD and install the gcc tools from the extras
>> folder. Is there a better way?
>>
>> John
>>
>
> Yes, there is! :-) Use a recent Xcode from the Mac AppStore and install
> the command line tools via the option dialog.

Well... I guess. If your Xcode is outdated on the DVD and you want to
wait for that big 'ol download. I think we're just talking about the
same thing with slightly different aspects to each method :)

John

>
> --
> Moritz Ulrich



[O] comma as decimal point: bug?

2012-08-26 Thread Rainer Thiel
I have seen that as of v. 7.9, org tables are supposed to accept
commas as decimal points which is useful if you set up tables to be
used in in files where continental conventions are expected to be
followed.

But I cannot see this really works.  I should have expected that the
following two tables should provide the same result:

-->
| Items  | Price |
|+---|
| Item 1 |  15.3 |
| Item 2 |   2.3 |
|+---|
| Sum|  17.6 |
#+TBLFM: @4$2=vsum(@II..@I)

| Items  | Price |
|+---|
| Item 1 |  15,3 |
| Item 2 |   2,3 |
|+---|
| Sum|23 |
#+TBLFM: @4$2=vsum(@II..@I)
<--

As you can see, the outcome is quite different, and wrong when commas
are used instead of decimal points.

The value of org-table-number-regexp should be the standard value in org 7.9:

-->
org-table-number-regexp is a variable defined in `org-table.el'.
Its value is
"^\\([<>]?[-+^.,0-9]*[0-9][-+^.,0-9eEdDx()%:]*\\|\\(0[xX]\\)[0-9a-fA-F]+\\|nan\\)$"
<--

Am I doing wrong something here, or is this a bug in org 7.9?

Best regards, and many thanks in advance

Rainer
-- 
Prof. Dr. Rainer Thiel
Institut für Altertumswissenschaften
07737 Jena, Germany (EU)
r.th...@uni-jena.de



[O] (not so) sticky agendas

2012-08-26 Thread Rainer Thiel
I use to have the agenda for the next 21 days automatically displayed
when Emacs ist run.  For this purpose, I have put

 (org-agenda-list)

as one of the last entries in my .emacs init file (the org-agenda-span
is set to 21 befor in the custom variables).

The agenda thereby displayed is not sticky, though.  When I «bury» it,
it is computed again when pressing C-c a a.  An agenda produced with
C-c a a and then «buried» is sticky and works as expected.

Any help on this?
-- 
Prof. Dr. Rainer Thiel
Institut für Altertumswissenschaften
07737 Jena, Germany (EU)
r.th...@uni-jena.de



Re: [O] [BABEL] [PATCH] Make it possible to use buffer local noweb start/end patterns

2012-08-26 Thread Eric Schulte
"Sean O'Halpin"  writes:

> On Sat, Aug 25, 2012 at 11:50 PM, Eric Schulte  wrote:
>> Are you familiar with file local variables?
>>
>> See (info "(emacs)Specifying File Variables")
>>
>
> Yes. That's what I'm trying to enable. Without the patch, it seems that
> the =with-temp-buffer= used in =org-babel-expand-noweb-references=
> overrides any file local variables. In other words, setting
> =org-babel-noweb-wrap-start= and =org-babel-noweb-wrap-end= using
> file local variables doesn't work for me without this patch. Am I
> missing something?
>

Ah, right you are.  I apologize for not thoroughly understanding your
patch before replying.  I just committed this to the git repo.

Thanks for the contribution!
(and thanks for packaging your patch so that it was easy to apply)

>
> Regards,
> Sean

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



Re: [O] advice on compiling org 7.9 for OSX Lion.

2012-08-26 Thread Filippo A. Salustri
Yes, I download it from the AppStore too.
I just start download before I go to lunch.  It's done long before I get
back.
/fas

On 26 August 2012 04:58, Moritz Ulrich  wrote:

>
> Yes, there is! :-) Use a recent Xcode from the Mac AppStore and install
> the command line tools via the option dialog.
>
> --
> Moritz Ulrich
>
>


-- 
\V/_
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/


Re: [O] Org-mode release 7.9

2012-08-26 Thread Robert Horn

A bug, perhaps ELPA related.  Sorry to be so brief but I've got to run
soon to the station.  I'm going to be tied up for the next week, but if
it's not figured out by then, I'll have time to look in more detail.

I confirmed this on Linux, Mac, and Windows, all emacs 24.1.  All
respond the same.

I decided to try ELPA to upgrade in place for the first time, and used
it to upgrade to the latest org 7.9.  No apparent errors there.  (good
work BTW).

Tests:
 - proper org-version? yes 7.9, no problems reported
 - [f8] to trigger a capture I get the error:

org-capture-select-template: Symbol's function definition is void:
org-contextualize-keys

In my .emacs I've got

(define-key global-map [f8] 'org-capture)

Sorry I don't have time to track this down further.  I'm guessing either
a problem with ELPA packaging or a default value for the new context
stuff that is not ready for the 'org-capture to be the very first thing
done from the emacs startup buffer.  Meanwhile, I dropped back to 7.8.11
until I can figure it out.

R Horn
rjh...@alum.mit.edu



Re: [O] Archiving drawers?

2012-08-26 Thread Bernt Hansen
Bastien  writes:

> Hi Loris,
>
> "Loris Bennett"  writes:
>
>> I have a small number of tasks that I clock into daily.  I have already
>> manually split off the older log entries into a separate draw called
>> OLDLOGS.  However, I was wondering whether there is a way of archiving
>> these log entries while preserving the heading itself in the original
>> org file.
>
> The question is: _where_ to archive those log entries?
>
> The best idea I can think of is another drawer, like you did.
> As for automating this a bit, a nice Elisp exercise :)

When my LOGBOOK entries get too big I clone the task, remove the
repeater and mark it DONE (so I can archive the old entries and continue
with my current stuff)

For habits I keep some history so the current habit graph is correct
and for non-habits I usually (but not always) archive the clock entries
from beginning of this month and earlier.

My trigger for doing this is when I notice todo state changes take a
noticeable amount of time on the agenda.  I do this infrequently so I
haven't bothered automating it.  I do have to manually delete all of the
duplicated notes in the LOGBOOK drawer for the clone (clock lines are
removed in cloned tasks but the notes are not which feels wrong ... but
it hasn't bothered me enough to try to fix it yet.)

I'm sure there's a better way I haven't discovered yet.

Just my 2 cents.

Regards,
Bernt



Re: [O] Org-mode release 7.9

2012-08-26 Thread Achim Gratz
Robert Horn writes:
> Tests:
>  - proper org-version? yes 7.9, no problems reported

Can we see the full output, please?

>  - [f8] to trigger a capture I get the error:
>
> org-capture-select-template: Symbol's function definition is void:
> org-contextualize-keys
>
> In my .emacs I've got
>
> (define-key global-map [f8] 'org-capture)

I've just tried this with a freshly produced ELPA package (except I have
that on "C-c c" not [f8]) and I get the capture template screen
displayed.


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] [BABEL] [PATCH] Make it possible to use buffer local noweb start/end patterns

2012-08-26 Thread Sean O'Halpin
On Sun, Aug 26, 2012 at 3:31 PM, Eric Schulte  wrote:
> [snip]
> I just committed this to the git repo.
>
> Thanks for the contribution!
> (and thanks for packaging your patch so that it was easy to apply)
>
Great! Thanks.



[O] Report on package Org-mode version N/A (N/A @ c:/cygwin/usr/local/share/emacs/site-lisp/org/)

2012-08-26 Thread Robert Adesam
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.


The variable org-version not set properly in orgmode 7.9 installing on
emacs 24.1 with cygwin on windows 7, suspect the new build system as
this was a non-issue with earlier releases...

yours,
/robert

Emacs  : GNU Emacs 24.1.1 (i386-mingw-nt6.1.7601)
 of 2012-06-02 on MARVIN
Package: Org-mode version N/A (N/A @
c:/cygwin/usr/local/share/emacs/site-lisp/org/)

current state:
==
(setq
 org-export-blocks '((src org-babel-exp-src-block nil)
(export-comment org-export-blocks-format-comment t) (ditaa
org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot
nil))
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-archive-location "archive/%s.old::* Archive"
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-refile-targets '(("someday.org" :level . 1) ("inbox.org"
:level . 1) ("tasks.org" :level . 1) ("projects.org" :maxlevel . 2)
("mlt.org" :level . 1))
 org-modules '(org-bbdb org-bibtex org-crypt)
 org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-hide-drawers org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
 org-agenda-custom-commands '(("i" "Inbox entries" tags-todo
"CATEGORY=\"Stuff\"") ("n" "MLT entries" ((tags-todo
"+mlt|CATEGORY=\"MLT\"|CATEGORY=\"MLT PC\"|CATEGORY=\"MLT Notes\"")
(tags 
"+mlt+TODO=\"DONE\"|+mlt+TODO=\"CANCELLED\"|+mlt+TODO=\"DEFERRED\"|CATEGORY=\"MLT\"+TODO=\"DONE\"|CATEGORY=\"MLT\"+TODO=\"CANCELLED\"|CATEGORY=\"MLT\"+TODO=\"DEFERRED\"|CATEGORY=\"MLT
PC\"+TODO=\"DONE\"|CATEGORY=\"MLT
PC\"+TODO=\"CANCELLED\"|CATEGORY=\"MLT
PC\"+TODO=\"DEFERRED\"|CATEGORY=\"MLT
Notes\"+TODO=\"DONE\"|CATEGORY=\"MLT
Notes\"+TODO=\"CANCELLED\"|CATEGORY=\"MLT
Notes\"+TODO=\"DEFERRED\""))) ("w" todo "WAITING") ("d" todo
"DONE|CANCELLED|DEFERRED"))
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-email-link-description-format "Email %c: %.50s"
 org-link-mailto-program '(vm-mail "%a" "%s")
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-interblocks '((src org-babel-exp-non-block-elements))
 org-cycle-separator-lines 0
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-reveal-start-hook '(org-decrypt-entry)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-log-into-drawer "LOGBOOK"
 org-default-notes-file "c:/Users/robert/Dropbox/gtd/inbox.org"
 org-columns-default-format "%60ITEM %TODO %TAGS %6effort(EFFORT){:}"
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-tag-alist '(("@home" . 104) ("@office" . 111) ("@phone" .
112) ("@cms" . 119) ("@computer" . 99) ("@errands" . 101) ("@blog" .
98) ("@ltlunch" . 108) ("@2020" . 50) ("someday" . 115) ("@gul" . 103)
("flov" . 102) ("mlt" . 109) ("dtl" . 100))
 org-global-properties '(("effort_ALL" . "0:10 0:30 1:00 2:00 3:00
4:00 5:00 6:00 8:00"))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-publish-project-alist '(("org-web" :base-directory "~/web"
:base-extension "org" :publishing-directory "/Volumes/robert/.www"
:recursive t :publishing-function org-publish-org-to-html
:headline-levels 4 :auto-preamble t) ("org-web-static" :base-directory
"~/web" :base-extension
"css\\|js\\|png\\|jpg\\|jpeg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
:publishing-directory "/Volumes/robert/.www" :recursive t
:publishing-function org-publish-attachment) ("web" :components
("org-web" "org-web-static")))
 org-agenda-include-diary t
 org-export-latex-classes '(("article"
"\\documentclass{article}\n\\usepackage[utf8x]{inputenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref}\n\\usepackage[swedish]{babel}"
("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" .
"\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" .
"\\subparagraph*{%s}")))
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-show-block-all append local] 5] #[nil
"\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook
org-babel-show-result-all append local] 5] org-babel-result-hide-spec
org-babel

Re: [O] I can't make work 'startup hidestars'

2012-08-26 Thread Ashfaq
: )
Thank you, Phillip, for the info.

At last, I got it right. Selecting manoj-dark color-theme has hid those
stars.


-- 
Sincerely,
Ashfaq


Re: [O] Report on package Org-mode version N/A (N/A @ c:/cygwin/usr/local/share/emacs/site-lisp/org/)

2012-08-26 Thread Brian van den Broek
On 26 August 2012 08:07, Robert Adesam  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.
> 
>
> The variable org-version not set properly in orgmode 7.9 installing on
> emacs 24.1 with cygwin on windows 7, suspect the new build system as
> this was a non-issue with earlier releases...
>
> yours,
> /robert


Hi Robert,

See the thread 
where I posted about the same issue. Achim's reply to my original post
provides the solution.

Best,

Brian vdB



[O] org2blog: referencing to other blog posts?

2012-08-26 Thread Steinar Bang
Is there a way to reference other blog posts in org2blog, other than
using absolute URLs for that article on the server?

I will use absolute URLs as a workaround, if there is no way, but it
would feel better to "work inside the system".

Also is there a way to link related articles, that will show up in the
wordpress blog.

Thanks!




[O] Beamer onlyenv

2012-08-26 Thread Avdi Grimm
I have a lot of slides where I want to incrementally show arbitrary
information or code that is *not* part of a bullet list. I've been doing it
like this:

#+BEAMER: \begin{onlyenv}<2->
...some content...
#+BEAMER: \end{onlyenv}

I haven't been able to find any comprehensive org-beamer docs, and I've
been wondering: is there a nicer way to do this using org's beamer support?

I know about the shorthand syntax for bullet lists:

** <1-> Point 1
** <2-> Point 2
** <3-> etc...

But again, this is for content outside of lists.

Thanks,

--
Avdi


Re: [O] Preserving the geometry of a table range

2012-08-26 Thread Michael Brand
Hi Jarmo

On Sun, Aug 26, 2012 at 10:45 AM, Jarmo Hurri  wrote:

> Does this help?

Yes.

>   but now it naturally gives an error, since the argument to
>   sum-row-prods is a list, not a list of lists (rows).

AFAIK there is no way to get the list of lists.

But if you didn’t already you may consider to separate the calculation
of rows and columns into two steps which I think should be possible in
most cases and use something like this:

| a | b | prod |
|---+---+--|
| 2 | 3 |6 |
| 4 | 5 |   20 |
|   |   |   26 |
#+TBLFM: $3 = '(* $1..$2); N :: @>$3 = '(+ @2..@3); N

or with Calc formulas:

#+TBLFM: $3 = vprod($1..$2) :: @>$3 = vsum(@2..@3)

Michael



Re: [O] Please consider making a donation

2012-08-26 Thread BernardH
Bastien  altern.org> writes:

> 
> Hello all,
> 
> I've been a freelancer for the last two months and I want to continue
> this experience.
> 
> As such, my main challenge is to discipline myself not to spend too 
> much time on Org -- because, as you can imagine, it *is* very tempting.
> 
> So the more donation I receive, the more time I will have for Org.

Great !
You might want to lower the barrier to donate by providing a link to
http://orgmode.org/org-mode-donate.html ☺.
 
BTW, if it is to give you money, why not cut the middlemen and provide
your IBAN ?(As a fellow countryman, it saddened me to pay for €→$(→€ ?)
and to Visa™ and PayPal™ (which I despise) for naught.

Kudos for your great work on Org !

B.




Re: [O] Report on package Org-mode version N/A (N/A @ c:/cygwin/usr/local/share/emacs/site-lisp/org/)

2012-08-26 Thread Achim Gratz
Brian van den Broek writes:
> See the thread 
> where I posted about the same issue. Achim's reply to my original post
> provides the solution.

Besides, it's already solved in Git, so when the archives are next
updated it will work as expected out-of-the-box.


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

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves




[O] build failure

2012-08-26 Thread Erich Neuwirth
I just pulled the latest version of the sources on my MacBook with OSX 10.8.1

Buildung does not work any more, here is the error.
Loading /Users/neuwirth/devel/org-mode/lisp/org-compat.el (source)...
Cannot open load file: ../UTILITIES/org-fixup.el
make[1]: *** [org-version.el] Error 255
make: *** [all] Error 2

So I installed the latest version from ELPA, when I try C-c C-c on the 
following code segment


#+begin_src R :session *RPisa* :results value
2*3
#+end_src

I get the error

Symbol's value as variable is void: org-current-export-file

I get the same error with the minimal code segment

#+begin_src R  
2*3
#+end_src




[O] Alternate format for datetree

2012-08-26 Thread c b
Hi,

I have been using org-mode for about 18 months now and love it. I recently
came across the org-capture file+datetree format and it is just what I am
looking for, except that I need a slightly different format described as
below

Currently format is

* 2012
** 2012-08
*** 2012-08-26 Sunday
 [2012-08-26 Sun 13:00] My note for this Sunday afternoon

Needed format is

* 08
** 26
*** 2012 Sunday
 [2012-08-26 Sun 13:00] My note for this Sunday afternoon

Basically, I need to have the "root" of the date tree on the month,
followed by date and then Year, so that for a particular date, I can see
all yearly activity.

Is there currently a way to alter this?

If not, how would I go about adding a file+monthtree format for org-capture?

Any suggestions would be appreciated

Kindly copy me on the response as I am not subscribed to this mailing list.

Thanks,
c.b.


Re: [O] build failure

2012-08-26 Thread Bastien
Hi Erich,

Erich Neuwirth  writes:

> I just pulled the latest version of the sources on my MacBook with OSX 10.8.1
>
> Buildung does not work any more, here is the error.
> Loading /Users/neuwirth/devel/org-mode/lisp/org-compat.el (source)...
> Cannot open load file: ../UTILITIES/org-fixup.el
> make[1]: *** [org-version.el] Error 255
> make: *** [all] Error 2

Looks like you're behind commit bf352eced, where org-compat.el has been
updated so that it loads utils/org-fixup.el, not UTILITIES/org-fixup.el

Please pull again from git, this is fixed there.

> So I installed the latest version from ELPA

Yes -- still several things to fix to get a working ELPA version.
We're on it.

Let us know if git pull does it for you.  Thanks!

-- 
 Bastien



Re: [O] comma as decimal point: bug?

2012-08-26 Thread Bastien
Hi Rainer,

Rainer Thiel  writes:

> I have seen that as of v. 7.9, org tables are supposed to accept
> commas as decimal points which is useful if you set up tables to be
> used in in files where continental conventions are expected to be
> followed.
>
> But I cannot see this really works.  

Well, the change was purely cosmetic, accepting commas by default 
will just change the way the table is aligned.  See this email by
Nicolas:

  http://article.gmane.org/gmane.emacs.orgmode/59134

But I guess it's confusing to align numbers as if they were numbers,
and to then tell the users "well, they are not really numbers."

I'm in favor of reverting this change and let the user change the
variable if he wants.

What do you - and Nicolas - think?

-- 
 Bastien



Re: [O] comma as decimal point: bug?

2012-08-26 Thread Nicolas Goaziou
Hello,

Rainer Thiel  writes:

> I have seen that as of v. 7.9, org tables are supposed to accept
> commas as decimal points which is useful if you set up tables to be
> used in in files where continental conventions are expected to be
> followed.

Actually, this more subtle. Tables recognize numbers with a comma as the
decimal mark. But it only means such numbers will be properly aligned to
the right. Internally, calculations still require dot separator.

Hope it is clearer now.


Regards,

-- 
Nicolas Goaziou



Re: [O] comma as decimal point: bug?

2012-08-26 Thread Bastien
Nicolas Goaziou  writes:

> But it only means such numbers will be properly aligned to
> the right. Internally, calculations still require dot separator.

Mhh.. but many users might expect the calculation to happen just 
because those strings are aligned as numbers.

The name of the variable is somewhat confusing here.

The default is a bit more rigid, but at least, it is not confusing,
and the variable (possibly renamed) can still be edited.

-- 
 Bastien



Re: [O] comma as decimal point: bug?

2012-08-26 Thread Nicolas Goaziou
Hello,

Bastien  writes:

> Mhh.. but many users might expect the calculation to happen just 
> because those strings are aligned as numbers.

">3.5" will also be recognized and aligned as a number, but you can't
expect calculations to happen on it either.


Regards,

-- 
Nicolas Goaziou



[O] Small suggestion for org-taskjuggler.el

2012-08-26 Thread Bill Day
In working with org-mode's taskjuggler exporter, I have noticed that it
does not support the attributes chargeset and charge in taskjuggler 3.
These attributes are necessary to use taskjuggler's cost estimating
functions.  I am not much of a coder, but I have tried my hand at a patch.

commit 15b522901ff0dcd8a581ad55cd4bf4c3688908ad
Author: Bill Day 
Date:   Sun Aug 26 16:58:32 2012 -0400

Modified taskjuggler to add chargeset and charge

diff --git a/lisp/org-taskjuggler.el b/lisp/org-taskjuggler.el
index aa645d2..2418654 100644
--- a/lisp/org-taskjuggler.el
+++ b/lisp/org-taskjuggler.el
@@ -659,7 +659,7 @@ org-mode priority string."
   '(account start note duration endbuffer endcredit end
 flags journalentry length maxend maxstart minend
 minstart period reference responsible scheduling
-startbuffer startcredit statusnote)))
+startbuffer startcredit statusnote chargeset charge)))
 (insert
  (concat
   "task " unique-id " \"" headline "\" {\n"



-- 
Bill Day
williamson@gmail.com
commit 15b522901ff0dcd8a581ad55cd4bf4c3688908ad
Author: Bill Day 
Date:   Sun Aug 26 16:58:32 2012 -0400

Modified taskjuggler to add chargeset and charge

diff --git a/lisp/org-taskjuggler.el b/lisp/org-taskjuggler.el
index aa645d2..2418654 100644
--- a/lisp/org-taskjuggler.el
+++ b/lisp/org-taskjuggler.el
@@ -659,7 +659,7 @@ org-mode priority string."
  '(account start note duration endbuffer endcredit end
flags journalentry length maxend maxstart minend
minstart period reference responsible scheduling
-   startbuffer startcredit statusnote)))
+   startbuffer startcredit statusnote chargeset charge)))
 (insert
  (concat
   "task " unique-id " \"" headline "\" {\n"


Re: [O] Alternate format for datetree

2012-08-26 Thread John Hendy
On Sun, Aug 26, 2012 at 3:11 PM, c b <24x7x...@gmail.com> wrote:
> Hi,
>
> I have been using org-mode for about 18 months now and love it. I recently
> came across the org-capture file+datetree format and it is just what I am
> looking for, except that I need a slightly different format described as
> below
>
> Currently format is
>
> * 2012
> ** 2012-08
> *** 2012-08-26 Sunday
>  [2012-08-26 Sun 13:00] My note for this Sunday afternoon
>
> Needed format is
>
> * 08
> ** 26
> *** 2012 Sunday
>  [2012-08-26 Sun 13:00] My note for this Sunday afternoon
>
> Basically, I need to have the "root" of the date tree on the month, followed
> by date and then Year, so that for a particular date, I can see all yearly
> activity.
>
> Is there currently a way to alter this?
>
> If not, how would I go about adding a file+monthtree format for org-capture?
>
> Any suggestions would be appreciated

I was looking for something similar and someone provided a custom
capture template that allowed for using inactive timestamps vs. the
default datetree format.

See the example provided here:
- http://osdir.com/ml/emacs-orgmode-gnu/2012-08/msg00396.html

I fiddled with this a bit, not really being familiar and learned a
good bit in the process to achieve your desired format. Give this a
try:

#+begin_src .emacs
(setq org-capture-templates
`(("t" "test" entry
(file+headline "~/file.org"
,(format "%s"
(format-time-string "%m")))
,(format "** %s \n*** %s-%s \n [%s-%s-%s %s %s:%s] "
(format-time-string "%d")
(format-time-string "%Y")
(format-time-string "%A")
(format-time-string "%Y")
(format-time-string "%m")
(format-time-string "%d")
(format-time-string "%a")
(format-time-string "%H")
(format-time-string "%M"))
)))
#+end_src

One thing I couldn't figure out was how to insert a %? after that
second long format option. If I just put in %?, loading .emacs caused
the error "Not enough arguments to format" or something like that. I'm
sure there's some secret elisp escape syntax I just don't know. I
tried various combinations of \ and '("") with no success.

That'd put the finishing touch on things so your cursor was where you wanted it.

Also, for those seeing this... is this how you would accomplish c.b's
goal? I just used the sample provided to me in the earlier mailing
list email to see if I was up for the challenge, but I have no basis
for knowing whether it's a good solution.


Hope that helps!
John

>
> Kindly copy me on the response as I am not subscribed to this mailing list.
>
> Thanks,
> c.b.



Re: [O] Including multiple plots resulting from a loop of R code in LaTeX

2012-08-26 Thread John Hendy
On Thu, Aug 23, 2012 at 11:43 AM, Eric Schulte  wrote:
> John Hendy  writes:
>
>> I'm conducting some neural network analysis, and the results are
>> highly dependent on the random seed set prior to creating the model. I
>> loop through seeds 1-500, storing the predicted values in one data
>> frame and a table of mean sum of squared errors in another table.
>>
>> Then, I use ggplot to create only the 10 or so plots with the lowest
>> error. The loop is something like this:
>>
>> --
>> for(i in 1:10) {
>>
>> filename <- paste("neuralnet-","-seed-",as.character(mse[i,1]),".pdf", 
>> sep="")
>>
>> pdf(filename, width=12, height=8)
>>
>> [ggplot code]
>>
>> dev.off()
>> --
>>
>> What I want to know is how to include the resultant files in LaTeX
>> export. Since my model runs and then sorts by error, I don't know
>> which seeds produce the best files beforehand, so I'd have to look at
>> the error table and manually insert the plot names by hand. Changing
>> results means changing file names by hand again.
>>
>> Any suggestions for things like this where the output of a babel block
>> is not a single file?
>>
>
> Have you tried using header arguments like the following.
>
> :results output raw :exports results
>
> and then printing the file names (including the Org-mode link syntax) to
> STDOUT from within your R code block.

Trying this, but am hung up on directing to STDOUT. I tried just using:

,---
| print(paste("[../plots/",filename,"]",sep=""))
`---

but just ended up with a bunch of strings in the pdf output. In
googling around I found this on SO:
- 
http://stackoverflow.com/questions/4112896/how-can-i-redirect-r-warning-messages-to-stdout

So I tried:

,---
| sink(stdout(),print(paste("[../plots/",filename,"]",sep="")))
`---

But nothing gets printed into pdf at all.

---

Actually, I revisited the above plaint print() statement to see what's
going on and the #+results block contains files like so:

,---
| [1] "[../plots/filename.pdf]"
`---

How do I strip the [1] and the quotes?


Thanks!
John

>
> If I understand correctly that should result in the behavior you're
> after.
>
> Best,
>
>>
>>
>> Thanks,
>> John
>>
>
> --
> Eric Schulte
> http://cs.unm.edu/~eschulte



[O] How to fontify FIXME in tables?

2012-08-26 Thread François Pinard
Hi, Org people.

I just refreshed Org mode from Git today, and as usual, it was fairly
easy.  From the announcement, tons of work accumulated, and I wanted to
take advantage of them!  It's fun putting oneself in a position to
lazily discover new possibilities over something which is already highly
satisfactory! :-)

But this message is more to ask for advice over a cosmetic tiny detail,
really.  I have the habit of fontifying "FIXME" in a special way a bit
everywhere in Emacs.  I use this code:


#+BEGIN_SRC elisp
(defun fp-fontify-fixme ()
  (font-lock-add-keywords
   nil '(("\\" 0 font-lock-warning-face t

(let ((hooks '(c-mode-common-hook change-log-mode-hook
   cperl-mode-hook css-mode-hook emacs-lisp-mode-hook
   html-mode-hook latex-mode-hook lisp-mode-hook
   makefile-mode-hook message-mode-hook org-mode-hook
   php-mode-hook python-mode-hook sh-mode-hook
   shell-mode-hook ssh-config-mode-hook)))
  (while hooks
(add-hook (car hooks) 'fp-fontify-fixme)
(setq hooks (cdr hooks
#+END_SRC


"FIXME" words are fontified as I want by Org, except within tables.
What would be the proper Emacs Lisp incantation to adjust this?

François



Re: [O] Including multiple plots resulting from a loop of R code in LaTeX

2012-08-26 Thread John Hendy
On Thu, Aug 23, 2012 at 11:43 AM, Eric Schulte  wrote:
> John Hendy  writes:
>
>> I'm conducting some neural network analysis, and the results are
>> highly dependent on the random seed set prior to creating the model. I
>> loop through seeds 1-500, storing the predicted values in one data
>> frame and a table of mean sum of squared errors in another table.
>>
>> Then, I use ggplot to create only the 10 or so plots with the lowest
>> error. The loop is something like this:
>>
>> --
>> for(i in 1:10) {
>>
>> filename <- paste("neuralnet-","-seed-",as.character(mse[i,1]),".pdf", 
>> sep="")
>>
>> pdf(filename, width=12, height=8)
>>
>> [ggplot code]
>>
>> dev.off()
>> --
>>
>> What I want to know is how to include the resultant files in LaTeX
>> export. Since my model runs and then sorts by error, I don't know
>> which seeds produce the best files beforehand, so I'd have to look at
>> the error table and manually insert the plot names by hand. Changing
>> results means changing file names by hand again.
>>
>> Any suggestions for things like this where the output of a babel block
>> is not a single file?
>>
>
> Have you tried using header arguments like the following.
>
> :results output raw :exports results
>
> and then printing the file names (including the Org-mode link syntax) to
> STDOUT from within your R code block.

Disregard the previous. I found that I should be using cat(paste(...))
instead of print(), since that removes the [1] from each line.
Unfortunately,

,---
| cat(paste("[[../plots/",filename,"]]",sep=""), sep="\n\n")
`---

still gives me output in orgmode of filenames with no new lines in
between so my plots are being printed 4-up on a page (2 wide, 2 tall)
instead of only 1 wide and 2 tall. If I manually enter new lines in
between the output file names, they behave as they should. How do I
get org to accept the extra newlines I'm trying to add? Executing in
the R session itself behaves as expected and does space the lines.


Thanks,
John

>
> If I understand correctly that should result in the behavior you're
> after.
>
> Best,
>
>>
>>
>> Thanks,
>> John
>>
>
> --
> Eric Schulte
> http://cs.unm.edu/~eschulte



Re: [O] Including multiple plots resulting from a loop of R code in LaTeX

2012-08-26 Thread John Hendy
On Sun, Aug 26, 2012 at 10:15 PM, John Hendy  wrote:
> On Thu, Aug 23, 2012 at 11:43 AM, Eric Schulte  wrote:
>> John Hendy  writes:
>>
>>> I'm conducting some neural network analysis, and the results are
>>> highly dependent on the random seed set prior to creating the model. I
>>> loop through seeds 1-500, storing the predicted values in one data
>>> frame and a table of mean sum of squared errors in another table.
>>>
>>> Then, I use ggplot to create only the 10 or so plots with the lowest
>>> error. The loop is something like this:
>>>
>>> --
>>> for(i in 1:10) {
>>>
>>> filename <- paste("neuralnet-","-seed-",as.character(mse[i,1]),".pdf", 
>>> sep="")
>>>
>>> pdf(filename, width=12, height=8)
>>>
>>> [ggplot code]
>>>
>>> dev.off()
>>> --
>>>
>>> What I want to know is how to include the resultant files in LaTeX
>>> export. Since my model runs and then sorts by error, I don't know
>>> which seeds produce the best files beforehand, so I'd have to look at
>>> the error table and manually insert the plot names by hand. Changing
>>> results means changing file names by hand again.
>>>
>>> Any suggestions for things like this where the output of a babel block
>>> is not a single file?
>>>
>>
>> Have you tried using header arguments like the following.
>>
>> :results output raw :exports results
>>
>> and then printing the file names (including the Org-mode link syntax) to
>> STDOUT from within your R code block.
>
> Disregard the previous. I found that I should be using cat(paste(...))
> instead of print(), since that removes the [1] from each line.
> Unfortunately,
>
> ,---
> | cat(paste("[[../plots/",filename,"]]",sep=""), sep="\n\n")
> `---
>
> still gives me output in orgmode of filenames with no new lines in
> between so my plots are being printed 4-up on a page (2 wide, 2 tall)
> instead of only 1 wide and 2 tall. If I manually enter new lines in
> between the output file names, they behave as they should. How do I
> get org to accept the extra newlines I'm trying to add? Executing in
> the R session itself behaves as expected and does space the lines.

Disregard again... adding multiple newlines with cat() doesn't work,
but I had the idea to do:

cat(paste("[[../plots/",filename,"]]",sep=""), sep="\n")
cat("\n")

Works great. I suppose I can use this to add #+attr_latex options as
well as captions. Cool stuff.

Thanks!

>
>
> Thanks,
> John
>
>>
>> If I understand correctly that should result in the behavior you're
>> after.
>>
>> Best,
>>
>>>
>>>
>>> Thanks,
>>> John
>>>
>>
>> --
>> Eric Schulte
>> http://cs.unm.edu/~eschulte



Re: [O] Alternate format for datetree

2012-08-26 Thread Nick Dokos
John Hendy  wrote:

> On Sun, Aug 26, 2012 at 3:11 PM, c b <24x7x...@gmail.com> wrote:
> > Hi,
> >
> > I have been using org-mode for about 18 months now and love it. I recently
> > came across the org-capture file+datetree format and it is just what I am
> > looking for, except that I need a slightly different format described as
> > below
> >
> > Currently format is
> >
> > * 2012
> > ** 2012-08
> > *** 2012-08-26 Sunday
> >  [2012-08-26 Sun 13:00] My note for this Sunday afternoon
> >
> > Needed format is
> >
> > * 08
> > ** 26
> > *** 2012 Sunday
> >  [2012-08-26 Sun 13:00] My note for this Sunday afternoon
> >
> > Basically, I need to have the "root" of the date tree on the month, followed
> > by date and then Year, so that for a particular date, I can see all yearly
> > activity.
> >
> > Is there currently a way to alter this?
> >
> > If not, how would I go about adding a file+monthtree format for org-capture?
> >
> > Any suggestions would be appreciated
> 
> I was looking for something similar and someone provided a custom
> capture template that allowed for using inactive timestamps vs. the
> default datetree format.
> 
> See the example provided here:
> - http://osdir.com/ml/emacs-orgmode-gnu/2012-08/msg00396.html
> 
> I fiddled with this a bit, not really being familiar and learned a
> good bit in the process to achieve your desired format. Give this a
> try:
> 
> #+begin_src .emacs
> (setq org-capture-templates
> `(("t" "test" entry
> (file+headline "~/file.org"
> ,(format "%s"
> (format-time-string "%m")))
> ,(format "** %s \n*** %s-%s \n [%s-%s-%s %s %s:%s] "
> (format-time-string "%d")
> (format-time-string "%Y")
> (format-time-string "%A")
> (format-time-string "%Y")
> (format-time-string "%m")
> (format-time-string "%d")
> (format-time-string "%a")
> (format-time-string "%H")
> (format-time-string "%M"))
> )))
> #+end_src
> 
> One thing I couldn't figure out was how to insert a %? after that
> second long format option. If I just put in %?, loading .emacs caused
> the error "Not enough arguments to format" or something like that. I'm
> sure there's some secret elisp escape syntax I just don't know. I
> tried various combinations of \ and '("") with no success.
> 

Try

--8<---cut here---start->8---
,(format "** %s \n*** %s-%s \n [%s-%s-%s %s %s:%s] %%?"
--8<---cut here---end--->8---

You basically need to escape the % from being interpreted by format.
C-h f format RET says

,
| ...
| Use %% to put a single % into the output.
| ...
`

Nick

> That'd put the finishing touch on things so your cursor was where you wanted 
> it.
> 
> Also, for those seeing this... is this how you would accomplish c.b's
> goal? I just used the sample provided to me in the earlier mailing
> list email to see if I was up for the challenge, but I have no basis
> for knowing whether it's a good solution.
> 
> 
> Hope that helps!
> John
> 
> >
> > Kindly copy me on the response as I am not subscribed to this mailing list.
> >
> > Thanks,
> > c.b.
> 



[O] Problems Setting Drawers in .emacs

2012-08-26 Thread Rodolfo Aramayo
Hi,

I am having essentially the same problem described on the following thread:

http://thread.gmane.org/gmane.emacs.orgmode/22263

Which is essentially:

when I define in my .emacs file:

;; Define some default drawers.
(setq org-drawers (quote ("PROPERTIES" "SETUP")))

PROPERTIES and SETUP aren't recognised as drawers in my org
files. They don't close and open using tab and the fontification of them
indicates that org isn't recognising them as drawers.
If I however define a drawer in my org file like:
#+DRAWERS: NOTES
this works correctly

I am using Org-mode version 7.8.11 and GNU Emacs 24.1.1
(x86_64-apple-darwin10.8.0)

Are there any known fixes for this issue?

Thanks



Re: [O] Problems Setting Drawers in .emacs

2012-08-26 Thread Nick Dokos
Rodolfo Aramayo  wrote:

> Hi,
> 
> I am having essentially the same problem described on the following thread:
> 
> http://thread.gmane.org/gmane.emacs.orgmode/22263
> 
> Which is essentially:
> 
> when I define in my .emacs file:
> 
> ;; Define some default drawers.
> (setq org-drawers (quote ("PROPERTIES" "SETUP")))
> 
> PROPERTIES and SETUP aren't recognised as drawers in my org
> files. They don't close and open using tab and the fontification of them
> indicates that org isn't recognising them as drawers.
> If I however define a drawer in my org file like:
> #+DRAWERS: NOTES
> this works correctly
> 
> I am using Org-mode version 7.8.11 and GNU Emacs 24.1.1
> (x86_64-apple-darwin10.8.0)
> 
> Are there any known fixes for this issue?
> 

I cannot reproduce this. With the appended minimal .emacs,
I get completion on the drawer names and as far as I can tell
everything works.

Nick

Org-mode version 7.8.11 (release_7.8.11-605-g5f273b @ 
/home/nick/elisp/org-mode/lisp/)

--8<---cut here---start->8---
;;; -*- mode: emacs-lisp -*-
;;; constant part
(add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/lisp"))
(add-to-list 'load-path (expand-file-name 
"~/src/emacs/org/org-mode/contrib/lisp"))

(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))

(require 'org-install)

(setq debug-on-error t)
(setq debug-on-quit t)
(setq eval-expression-print-length nil)
(setq eval-expression-print-level nil)

(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)

;; Define some default drawers.
(setq org-drawers (quote ("PROPERTIES" "SETUP" "NOTES")))
--8<---cut here---end--->8---




[O] #+INCLUDE broken (or changed) in org-mode 7.9? Help!

2012-08-26 Thread Bill Day
The following code used to include the sitemap and a search box in my
published index.html page:

index.org

#+SETUPFILE: ~/elisp/org-templates/level-0.org
#+TITLE: Wiki
#+HTML: 
#+INCLUDE sitemap-generated.org
#+HTML: 
#+INCLUDE search.org
. . .

default.el

(require 'org-publish)
(setq org-publish-project-alist
  '(

 ("wiki-notes"
  :base-directory "~/git/org-mode/wiki"
  :base-extension: "org"
  :publishing-directory "/ssh:[my site]:/usr/local/share/wiki/"
  :recursive t
  :publishing-function org-publish-org-to-html
  :headline-levels 4
  :auto-preamble t
  :table-of-contents nil
  :auto-sitemap t
  :sitemap-filename "sitemap-generated.org"
  :section-numbers nil
  )

("wiki-static"
 :base-directory "~/git/org-mode/wiki/"
 :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
 :publishing-directory "/ssh:[my site]/usr/local/share/wiki/"
 :recursive t
 :publishing-function org-publish-attachment
 )

("wiki" :components ("wiki-notes" "wiki-static"))


))


Now they do not appear anymore.  Any suggestions, please?

Thanks,

Bill Day

-- 
Bill Day
williamson@gmail.com


Re: [O] build failure

2012-08-26 Thread Achim Gratz
Erich Neuwirth writes:
> I just pulled the latest version of the sources on my MacBook with OSX 10.8.1
>
> Buildung does not work any more, here is the error.
> Loading /Users/neuwirth/devel/org-mode/lisp/org-compat.el (source)...
> Cannot open load file: ../UTILITIES/org-fixup.el
> make[1]: *** [org-version.el] Error 255
> make: *** [all] Error 2

This report is unfortunately not very useful since you don't give any
information at what commit you are.  This is especially irksome as that
information would have been in the output just one line above where
you've cut...

So my best guess is that you just need to run make again and all is well
(and since utils/ has now been renamed mk/ it may happen once again).


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




Re: [O] Alternate format for datetree

2012-08-26 Thread John Hendy
On Sun, Aug 26, 2012 at 11:04 PM, Nick Dokos  wrote:
> John Hendy  wrote:
>
>> On Sun, Aug 26, 2012 at 3:11 PM, c b <24x7x...@gmail.com> wrote:
>> > Hi,
>> >
>> > I have been using org-mode for about 18 months now and love it. I recently
>> > came across the org-capture file+datetree format and it is just what I am
>> > looking for, except that I need a slightly different format described as
>> > below
>> >
>> > Currently format is
>> >
>> > * 2012
>> > ** 2012-08
>> > *** 2012-08-26 Sunday
>> >  [2012-08-26 Sun 13:00] My note for this Sunday afternoon
>> >
>> > Needed format is
>> >
>> > * 08
>> > ** 26
>> > *** 2012 Sunday
>> >  [2012-08-26 Sun 13:00] My note for this Sunday afternoon
>> >
>> > Basically, I need to have the "root" of the date tree on the month, 
>> > followed
>> > by date and then Year, so that for a particular date, I can see all yearly
>> > activity.
>> >
>> > Is there currently a way to alter this?
>> >
>> > If not, how would I go about adding a file+monthtree format for 
>> > org-capture?
>> >
>> > Any suggestions would be appreciated
>>
>> I was looking for something similar and someone provided a custom
>> capture template that allowed for using inactive timestamps vs. the
>> default datetree format.
>>
>> See the example provided here:
>> - http://osdir.com/ml/emacs-orgmode-gnu/2012-08/msg00396.html
>>
>> I fiddled with this a bit, not really being familiar and learned a
>> good bit in the process to achieve your desired format. Give this a
>> try:
>>
>> #+begin_src .emacs
>> (setq org-capture-templates
>> `(("t" "test" entry
>> (file+headline "~/file.org"
>> ,(format "%s"
>> (format-time-string "%m")))
>> ,(format "** %s \n*** %s-%s \n [%s-%s-%s %s %s:%s] "
>> (format-time-string "%d")
>> (format-time-string "%Y")
>> (format-time-string "%A")
>> (format-time-string "%Y")
>> (format-time-string "%m")
>> (format-time-string "%d")
>> (format-time-string "%a")
>> (format-time-string "%H")
>> (format-time-string "%M"))
>> )))
>> #+end_src
>>
>> One thing I couldn't figure out was how to insert a %? after that
>> second long format option. If I just put in %?, loading .emacs caused
>> the error "Not enough arguments to format" or something like that. I'm
>> sure there's some secret elisp escape syntax I just don't know. I
>> tried various combinations of \ and '("") with no success.
>>
>
> Try
>
> --8<---cut here---start->8---
> ,(format "** %s \n*** %s-%s \n [%s-%s-%s %s %s:%s] %%?"
> --8<---cut here---end--->8---
>
> You basically need to escape the % from being interpreted by format.
> C-h f format RET says
>
> ,
> | ...
> | Use %% to put a single % into the output.
> | ...
> `

Perfect -- thanks!
John

>
> Nick
>
>> That'd put the finishing touch on things so your cursor was where you wanted 
>> it.
>>
>> Also, for those seeing this... is this how you would accomplish c.b's
>> goal? I just used the sample provided to me in the earlier mailing
>> list email to see if I was up for the challenge, but I have no basis
>> for knowing whether it's a good solution.
>>
>>
>> Hope that helps!
>> John
>>
>> >
>> > Kindly copy me on the response as I am not subscribed to this mailing list.
>> >
>> > Thanks,
>> > c.b.
>>



Re: [O] #+INCLUDE broken (or changed) in org-mode 7.9? Help!

2012-08-26 Thread Nick Dokos
Bill Day  wrote:


> The following code used to include the sitemap and a search box in my
> published index.html page:
> 
> index.org
> 
> #+SETUPFILE: ~/elisp/org-templates/level-0.org
> #+TITLE: Wiki
> #+HTML: 
> #+INCLUDE sitemap-generated.org
> #+HTML: 
> #+INCLUDE search.org
> ...
> Now they do not appear anymore.  Any suggestions, please?

Missing colons probably:

#+INCLUDE: sitemap-generated.org

And there seems to be a bug in the easy template code in org.el:
line 11390 says

("I" "#+INCLUDE %file ?"

and it seems to be missing the colon.

Nick