Re: [O] About `open formula'

2013-01-18 Thread Shelagh Manton
On Thu, 17 Jan 2013 13:20:13 +0800, Xue Fuqiao wrote:

> In (info "(org) Editing and debugging formulas"):
> 
> ` (`org-table-fedit-lisp-indent')'
>   Pretty-print or indent Lisp formula at point.  When in a line
>   containing a Lisp formula, format the formula according to
>   Emacs Lisp rules.  Another  collapses the formula back
>   again.  In the open formula,  re-indents just like in
>   Emacs Lisp mode.
> 
> What does the `open formula' mean?  I've searched the Org manual/FAQ and
> web, and I only found this:
> http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-
part2.html
> 
> But it seems that the `open formula' doesn't mean this.

I think perhaps if you read it as "when your cursor in in the formula 
text" it might make more sense. 

Shelagh




[O] Org ELPA update broken?

2013-01-18 Thread Alan L Tyree

I suspect that this is not being updated properly. The latest version
shown by M-x list-packages is org-plus-contrib   20130114

Cheers,
Alan
-- 
Alan L Tyree   http://www2.austlii.edu.au/~alan
Tel:  04 2748 6206 sip:172...@iptel.org



Re: [O] New exporter documentation?

2013-01-18 Thread James Harkins
On Jan 18, 2013 4:11 PM, "Florian Beck"  wrote:
>
> James Harkins  writes:
>
> > Specific question: Is there an easy way to use a given LaTeX template
(.cls and .bib)? (I also found [2] but "easy" is not how I would describe
that.)
>
> The easiest way is probably
... snip code

Thanks - that seems pretty straightforward. I'll try later.
hjh


Re: [O] building org on OSX for aquamacs?

2013-01-18 Thread Filippo Salustri
UPDATE: Almost fixed.

Thanks to John Hendy and W.R. Greene for their suggestions and advice.
John suggested Emacs For OSX Modified, which comes with a recent org
installed, but just *today* they released an update and announced they will
no longer provide org. (That's the story of my life, folks.)
But I did manage to come across Marmalade, which installs into Aquamacs.

My current problem is that the byte-compilation of org 7.9.3d via Marmalade
for Aquamacs fails such that loading org leads to the error "invalid
function: org-check-version."

However, org seems to run fine from the uncompiled src.

Anyways, I'm getting there, thanks to the help from the community.
/fas


On 18 January 2013 06:45, Filippo Salustri  wrote:

> Still hoping someone can advise me.
> Anyone?
> /fas
>
>
> On 12 January 2013 09:51, Filippo Salustri  wrote:
>
>> Anyone got any advice viz building org for aquamacs on OSX?
>> Aquamacs hasn't got -batch, so I can't do the org-only build.
>> /fas
>>
>> --
>> \V/_
>> Filippo A. Salustri, Ph.D., P.Eng.
>> Email: salus...@ryerson.ca
>> http://deseng.ryerson.ca/~fil/
>>
>
>
>
> --
> \V/_
> Filippo A. Salustri, Ph.D., P.Eng.
> Email: salus...@ryerson.ca
> http://deseng.ryerson.ca/~fil/
>



-- 
\V/_
Filippo A. Salustri, Ph.D., P.Eng.
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/


[O] Bug: `org-next-link' doesn't wrap around [7.9.3d (7.9.3d-GNU-Emacs-24-3 (commit e8f5b0ad) @ /usr/local/share/emacs/24.3.50/lisp/org/)]

2013-01-18 Thread Xue Fuqiao

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.


In (info "(org) Handling links"):
`C-c C-x C-n (`org-next-link')'
`C-c C-x C-p (`org-previous-link')'
 Move forward/backward to the next link in the buffer.  At the
 limit of the buffer, the search fails once, and then wraps around.

The way to reproduce this bug:
emacs -Q test.org
C-c C-x C-p

It doesn't wrap around.

Emacs  : GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.13)
 of 2013-01-18 on Emacs
Package: Org-mode version 7.9.3d (7.9.3d-GNU-Emacs-24-3 (commit e8f5b0ad) @ 
/usr/local/share/emacs/24.3.50/lisp/org/)

current state:
==
(setq
 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-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
 org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 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-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 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-export-first-hook '(org-beamer-initialize-open-trackers)
 org-export-interblocks '((src org-babel-exp-non-block-elements))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )


-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao


test.org
Description: Binary data


Re: [O] Wish: switch active time-stamps to inactive when CANCELED

2013-01-18 Thread Daimrod
Viktor Rosenfeld  writes:

> Hi,
>
> Karl Voit wrote:
>
>> But still: there are two steps I have to make: (a) mark as canceled
>> because I want this "CANCELED" string attached and (b) add the
>> ARCHIVE tag.
>
> You can set the ARCHIVE tag when switching the TODO state automatically
> using org-todo-state-tags-triggers.
>
> For example (untestet):
>
> #+BEGIN_SRC emacs-lisp
> (setq org-todo-state-tags-triggers '(("CANCELLED" ("ARCHIVE" . t
> #+END_SRC

Woo, I didn't know this one, that's a nice trick!

> Cheers,
> Viktor

-- 
Daimrod/Greg


pgpLSJRGGZZRc.pgp
Description: PGP signature


Re: [O] Wish: switch active time-stamps to inactive when CANCELED

2013-01-18 Thread Viktor Rosenfeld
Hi,

Karl Voit wrote:

> But still: there are two steps I have to make: (a) mark as canceled
> because I want this "CANCELED" string attached and (b) add the
> ARCHIVE tag.

You can set the ARCHIVE tag when switching the TODO state automatically
using org-todo-state-tags-triggers.

For example (untestet):

#+BEGIN_SRC emacs-lisp
(setq org-todo-state-tags-triggers '(("CANCELLED" ("ARCHIVE" . t
#+END_SRC

Cheers,
Viktor



Re: [O] Wish: switch active time-stamps to inactive when CANCELED

2013-01-18 Thread Nick Dokos
Karl Voit  wrote:

> * Nick Dokos  wrote:
> >
> > You can probably accomplish this with org-after-todo-state-change-hook:
> >
> > Write a function that checks if org-state is "CANCELED", and if so looks
> > for active timestamps and calls org-toggle-timestamp-type on them.
> >
> > Then add the function to the hook.
> 
> Oh, I would have guessed this algorithm overview/principle as well
> :-)
> 

It is more than an algorithm overview/principle: there are specific
suggestions in there - which hook to use, the state variable that you
need to check and the function to toggle the timestamp type are the
"real" thing: nothing vaporous about them.

> But unfortunately, I know that little of ELISP, that I am not able
> to implement it by myself :-(
> 

Time to learn some then - and there is no better way than scratching
your own itch :-)

Nick




Re: [O] New LaTeX exporter, problem with quotes

2013-01-18 Thread Thomas S. Dye
Nicolas Goaziou  writes:

> Hello,
>
> t...@tsdye.com (Thomas S. Dye) writes:
>
>> I just noticed quotes aren't exporting correctly with the new LaTeX
>> exporter.  The old one seems to work fine.
>
> Did you activate smart quotes with either `org-export-with-smart-quotes'
> or #+OPTIONS: ':t first?

No I didn't.  Now that I have, the quotes are just as they should be.

Thanks!

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] Wish: switch active time-stamps to inactive when CANCELED

2013-01-18 Thread Karl Voit
* Nick Dokos  wrote:
>
> You can probably accomplish this with org-after-todo-state-change-hook:
>
> Write a function that checks if org-state is "CANCELED", and if so looks
> for active timestamps and calls org-toggle-timestamp-type on them.
>
> Then add the function to the hook.

Oh, I would have guessed this algorithm overview/principle as well
:-)

But unfortunately, I know that little of ELISP, that I am not able
to implement it by myself :-(

-- 
Karl Voit




Re: [O] Wish: switch active time-stamps to inactive when CANCELED

2013-01-18 Thread Karl Voit
* Daimrod  wrote:
>
> Why doesn't the method with :ARCHIVE: tag fit your needs?
>
> You can mark a subtree to ignore it. This way you keep the whole project
> as a whole.

Good point indeed.

But still: there are two steps I have to make: (a) mark as canceled
because I want this "CANCELED" string attached and (b) add the
ARCHIVE tag.

Without "CANCELED", I would not interpret the event as not attended
by me.

-- 
Karl Voit




Re: [O] Bug (?) in new exporter (export subtree)

2013-01-18 Thread Nicolas Goaziou
Rick Frankel  writes:

> So, it seems that as long as there is a body (or blank) line after the
> parent heading and you position the cursor on that line, it works
> (point at X):
>
> #+begin_src org
> * Title
>   X
> ** heading 1
>text
> ** heading 2
>...
> #+end_src
>
> But if there is no blank line after the "title", there is no way to
> get the expected results with the point either on the title line or
> the first asterix on heading 1:
>
> #+begin_src org
> * Title
> ** heading 1
>text
> ** heading 2
>...
> #+end_src

Indeed, you have to be within the subtree you want to export in order to
effectively export it. In your example there's no such place, so there's
no way to tell which subtree you want to be exported.

This is a reasonable behaviour in my opinion.


Regards,

-- 
Nicolas Goaziou



Re: [O] Prefix arguments, checklists, and lists

2013-01-18 Thread Nicolas Goaziou
Hello,

Robert Horn  writes:

> The keystroke bindings for lists need some examination and repair.  In 7.9.3 
> the situation is:
>
> | Keystrokes  | First Item| Any other item
> |
> |-+---+---|
> | C-c C-c | Toggle completion this item   | Toggle this item  
> |
> | C-u C-c C-c | Toggle checkbox on/off whole list | Toggle checkbox 
> this item |
> | C-u C-u C-c C-c | Set in-progess whole list | Set in-progress 
> this item |
> | M-- C-c C-c | Toggle completion whole list  | Toggle this item  
> |
> | M-- C-u C-c C-c | Toggle completion whole list  | Toggle this item  
> |
> | M-- C-u C-u C-c C-c | Toggle completion whole list  | Toggle this item  
> |
>
>
> Is this what is really intended? The present behavior has the odd
> result that there is no sequence to toggle presence of checkbox for
> the first item, and there is no sequence to set in-progress for the
> first item. The first item must be manually edited. (Or maybe there's
> another sequence that I haven't found.)
>
> I think this is a bug. But the intended behavior is unclear, and the
> proper fix is unclear.

I plan to rewrite C-c C-c using Elements, so the behaviour will slightly
change.

It will be better to discuss about checkboxes when this change is done.


Regards,

-- 
Nicolas Goaziou



Re: [O] New LaTeX exporter, problem with quotes

2013-01-18 Thread Nicolas Goaziou
Hello,

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

> I just noticed quotes aren't exporting correctly with the new LaTeX
> exporter.  The old one seems to work fine.

Did you activate smart quotes with either `org-export-with-smart-quotes'
or #+OPTIONS: ':t first?

I cannot reproduce it.


Regards,

-- 
Nicolas Goaziou



[O] Worg FAQ typo

2013-01-18 Thread David Rogers
Hi all

The second example at

http://orgmode.org/worg/org-faq.html#org-class

is not correct as shown.

It appears to me that it is only missing the < and > signs in the
appropriate places, but I can't be sure. When I add those signs then the
example seems to work for me. I'd appreciate it if someone who knows
better could confirm that that's all it needs.

-- 
Thanks
David R



Re: [O] Agenda search C-c a s

2013-01-18 Thread Alan L Tyree

Nick Dokos writes:

> Alan L Tyree  wrote:
>
>> Emacs version 24.2.1 on Debian Wheezy (with emacs24 from Sid)
>> Org org-plus-contrib-20130114
>> 
>> I started emacs with the min org file as explained in Section 1.4
>> 
>> C-U M-X org-reload
>> 
>> Loaded an agenda file addr.org and added to agenda
>> 
>> M-x agenda
>> 
>> s
>> 
>> Enter a search term in the minibuffer that I know is in addr.org
>> 
>> Obtain the following backtrace:
>> 
>> Debugger entered--Lisp error: (wrong-type-argument listp t)
>>   memq(todo t)
>>   (or (eq org-agenda-show-inherited-tags (quote always)) (memq (quote
>>   todo) org-agenda-show-inherited-tags) (and (eq
>>   org-agenda-show-inherited-tags t) (or (eq
>>   org-agenda-use-tag-inheritance t) (memq (quote todo)
>>   org-agenda-use-tag-inheritance
>>   (setq marker (org-agenda-new-marker (point)) category
>>   (org-get-category) category-pos (get-text-property (point) (quote
>>   org-category-position)) inherited-tags (or (eq
>>   org-agenda-show-inherited-tags (quote always)) (memq (quote todo)
>>   org-agenda-show-inherited-tags) (and (eq
>>   org-agenda-show-inherited-tags t) (or (eq
>>   org-agenda-use-tag-inheritance t) (memq (quote todo)
>>   org-agenda-use-tag-inheritance tags (org-get-tags-at nil (not
>>   inherited-tags)) txt (org-agenda-format-item ""
>>   (buffer-substring-no-properties beg1 (point-at-eol)) category tags
>>   t))
>
> In my version of org:
>
> Org-mode version 7.9.3d (release_7.9.3d-826-gbe0d87.dirty @ 
> /home/nick/elisp/org-mode/lisp/)
>
> the code (in org-agenda.el:org-search-view, around line 4523) looks like this:
>
> ,
> |   (or (eq org-agenda-show-inherited-tags 'always)
> |   (and (listp org-agenda-show-inherited-tags)
> |(memq 'todo 
> org-agenda-show-inherited-tags))
> |   (and (eq org-agenda-show-inherited-tags t)
> |(or (eq org-agenda-use-tag-inheritance t)
> |(memq 'todo 
> org-agenda-use-tag-inheritance
> `
>
> whereas your backtrace shows that your version is missing the (listp
> org-agenda-show-inherited-tags) check.
>
> I believe commit 3c4df588 fixed this bug, so you will need to upgrade.
> Or you can work around it by setting org-agenda-show-inherited-tags
> to a list as described in the variable's documentation.
>
> Nick

Thanks very much Nick. Maybe I'll move to the git version.

Cheers,
Alan

-- 
Alan L Tyree   http://www2.austlii.edu.au/~alan
Tel:  04 2748 6206 sip:172...@iptel.org



[O] escape square brackets to express literal [[]] without link magic?

2013-01-18 Thread Loyall, David
Hello.

I want to add this item:
* TODO change  tags to wiki style [[!img]] tags

...But the square brackets get interpreted as links.

I tried \[\[!img\]\], but that shows up unescaped.

Does org-mode have an escape mechanism?

Thanks, cheers,
--Dave

p.s. I'm new to org-mode and I like it.  I'm excited about the ability to 
execute code from nodes.  Reminds me of leo-editor.


[O] new exporter, conditional options according to backend

2013-01-18 Thread Ezequiel Birman
Is it possible to write something like this with the new exporter?

#+OPTIONS: (if (and (boundp 'org-export-current-backend) (eq 
org-export-current-backend 'e-beamer)) "H:1" "H:3")

>From what I read in org-export.el the backend is stored in a plist, not
sure how to get it's value when exporting.

Or, maybe I need to write a filter function to be run from
org-export-before-process-hook?

-- 
Ezequiel Birman




[O] How to export results to latex?

2013-01-18 Thread Seweryn Kokot
Hello!

I have test1.org file (see below [1]) which I want to export to latex. However
when exporting to latex (both using org-export and org-export-dispatch), the
content of RESULTS is missing in the resulting test1.tex (see below [2]).
What is the reason for that?

One year ago when exporting the same file with ":results org replace" the output
was wrapped with "begin_org ... end_org" now it is wrapped with "begin_src org
..." then the export to latex gives verbatim or lstlisting environments... Any
hints what to do to get the previous behaviour? 


test1.org contents:
#--
#+title: Testing org export to latex
#+STARTUP: showall
#+OPTIONS: toc:nil creator:nil

* Headline

- first list item

foo bar

#+begin_src emacs-lisp :exports results :results drawer replace
  (let ((t1 ""))
  ;;
  (setq t1 (concat t1 (format "- foo \n\n$a = \\unit[%.3f]{m}$\n\n" 3.0)))
  (setq t1 (concat t1 (format "- bar \n\n$b = \\unit[%.3f]{m}$\n\n" 6.0)))
  (concat t1))
#+end_src

#+RESULTS:
:RESULTS:
- second list item

$a = \unit[3.000]{m}$

- third list item

$b = \unit[6.000]{m}$

:END:
#

[2] test1.tex:

% Created 2013-01-18 Fri 16:21
\documentclass[11pt]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[a4paper,left=1.8cm,right=1.8cm,top=1.8cm,bottom=1.8cm]{geometry}
\usepackage[dvips]{graphicx}
\usepackage{url}
\usepackage{xcolor}
\usepackage{units}
\usepackage[breaklinks=true]{hyperref}
\usepackage{amsmath}
\title{Testing org export to latex}
\hypersetup{
  pdfkeywords={},
  pdfsubject={},
  pdfcreator={}}
\begin{document}

\maketitle

\section{Headline}
\label{sec-1}

\begin{itemize}
\item first list item
\end{itemize}

foo bar
\end{document}





Re: [O] version 7.9.3d: compilation fails -- solved, thanks!

2013-01-18 Thread Torsten Anders
> Please edit local.mk to have make use the correct Emacs at least.

Just to confirm that setting the EMACS variable solved the problem, thanks.

I also want to confirm that org-compat.el and org-odt.el now load again, 
without any hacks necessary anymore in ~/.emacs. Thanks again! 

Best wishes,
Torsten

--
Dr Torsten Anders
Course Leader, Music Technology
University of Bedfordshire
Park Square, Room A315
http://www.torsten-anders.de






Re: [O] Wish: switch active time-stamps to inactive when CANCELED

2013-01-18 Thread Nick Dokos
Karl Voit  wrote:

> Hi!
> 
> I tend to keep events that I do not attend in my calendar for
> archiving reasons. But I switch their status to CANCELED.
> Unfortunately, those events still appear on my Google calendar and
> so forth. I get my usual reminders and it messes up my free/busy
> list.
> 
> Therefore, I am thinking that canceled events should turn their
> active time-stamps into inactive with an Org-mode option. This way,
> I can recall them in my agenda by typing ']' (show inactive
> time-stamps) but they do not interfere with my daily workflow.
> 
> What do you think of such an option for Org-mode?
> 

You can probably accomplish this with org-after-todo-state-change-hook:

Write a function that checks if org-state is "CANCELED", and if so looks
for active timestamps and calls org-toggle-timestamp-type on them.

Then add the function to the hook.

And don't forget to post the code here as well as on Worg :-)

Nick



Re: [O] version 7.9.3d: compilation fails

2013-01-18 Thread Achim Gratz
Torsten Anders  beds.ac.uk> writes:
> I tried to update orgmode to the latest version 7.9.3d, but make failed,
> see outputs after this email.

You almost certainly will want to use a different Emacs for compilation, this
must be some Emacs 22 variant (otherwise it would know about declare-function).

> I am on MacOS 10.6.8, and I do not know which emacs the unedited make
> file uses, quite possibly the preinstalled Emacs at the shell. 

Please edit local.mk to have make use the correct Emacs at least.


Best regards,
Achim.





Re: [O] version 7.9.3d: compilation fails

2013-01-18 Thread Uwe Hentzschel

I had the same problem. You should move or rename the orgmode version
located under /Applications/Emacs.app/Contents/Resources/lisp

-uhe

* Torsten Anders  [2013-01-18 13:31:55 +]:


When starting emacs with the unsuccessfully compiled latest version Emacs says

Warning (initialization): An error occurred while loading 
`/Users/torsten/.emacs':

Symbol's value as variable is void: org-babel-temp-file


It might be unrelated, but does 'M-x load-library RET org.el' work with your
latest version?


Same problem:

Loading /Users/torsten/emacs/org-mode/lisp/org.el (source)...
require: Symbol's value as variable is void: org-babel-temp-file

Note that this very error was reported many times during the compilation 
process.

Best wishes,
Torsten

--
Dr Torsten Anders
Course Leader, Music Technology
University of Bedfordshire
Park Square, Room A315
http://www.torsten-anders.de





--
Uwe Hentzschel
Systemingenieur

GMH Systems Ost
Riesaer Straße 1 · 01609 Gröditz
Telefon 035263 62-551 · Fax 035263 62-642
PGP/GPG Key ID: 0x7CFB341C



Re: [O] Agenda search C-c a s

2013-01-18 Thread Nick Dokos
Alan L Tyree  wrote:

> Emacs version 24.2.1 on Debian Wheezy (with emacs24 from Sid)
> Org org-plus-contrib-20130114
> 
> I started emacs with the min org file as explained in Section 1.4
> 
> C-U M-X org-reload
> 
> Loaded an agenda file addr.org and added to agenda
> 
> M-x agenda
> 
> s
> 
> Enter a search term in the minibuffer that I know is in addr.org
> 
> Obtain the following backtrace:
> 
> Debugger entered--Lisp error: (wrong-type-argument listp t)
>   memq(todo t)
>   (or (eq org-agenda-show-inherited-tags (quote always)) (memq (quote
>   todo) org-agenda-show-inherited-tags) (and (eq
>   org-agenda-show-inherited-tags t) (or (eq
>   org-agenda-use-tag-inheritance t) (memq (quote todo)
>   org-agenda-use-tag-inheritance
>   (setq marker (org-agenda-new-marker (point)) category
>   (org-get-category) category-pos (get-text-property (point) (quote
>   org-category-position)) inherited-tags (or (eq
>   org-agenda-show-inherited-tags (quote always)) (memq (quote todo)
>   org-agenda-show-inherited-tags) (and (eq
>   org-agenda-show-inherited-tags t) (or (eq
>   org-agenda-use-tag-inheritance t) (memq (quote todo)
>   org-agenda-use-tag-inheritance tags (org-get-tags-at nil (not
>   inherited-tags)) txt (org-agenda-format-item ""
>   (buffer-substring-no-properties beg1 (point-at-eol)) category tags
>   t))

In my version of org:

Org-mode version 7.9.3d (release_7.9.3d-826-gbe0d87.dirty @ 
/home/nick/elisp/org-mode/lisp/)

the code (in org-agenda.el:org-search-view, around line 4523) looks like this:

,
| (or (eq org-agenda-show-inherited-tags 'always)
| (and (listp org-agenda-show-inherited-tags)
|  (memq 'todo 
org-agenda-show-inherited-tags))
| (and (eq org-agenda-show-inherited-tags t)
|  (or (eq org-agenda-use-tag-inheritance t)
|  (memq 'todo 
org-agenda-use-tag-inheritance
`

whereas your backtrace shows that your version is missing the (listp
org-agenda-show-inherited-tags) check.

I believe commit 3c4df588 fixed this bug, so you will need to upgrade.
Or you can work around it by setting org-agenda-show-inherited-tags
to a list as described in the variable's documentation.

Nick






Re: [O] version 7.9.3d: compilation fails

2013-01-18 Thread Torsten Anders
> I just had some trouble with a certain git version. 

$ git --version
git version 1.7.10.3

Thanks again! 

Best wishes,
Torsten

--
Dr Torsten Anders
Course Leader, Music Technology
University of Bedfordshire
Park Square, Room A315
http://www.torsten-anders.de






Re: [O] version 7.9.3d: compilation fails

2013-01-18 Thread Torsten Anders
When starting emacs with the unsuccessfully compiled latest version Emacs says 

Warning (initialization): An error occurred while loading 
`/Users/torsten/.emacs':

Symbol's value as variable is void: org-babel-temp-file

> It might be unrelated, but does 'M-x load-library RET org.el' work with your
> latest version?

Same problem:

Loading /Users/torsten/emacs/org-mode/lisp/org.el (source)...
require: Symbol's value as variable is void: org-babel-temp-file

Note that this very error was reported many times during the compilation 
process.

Best wishes,
Torsten

--
Dr Torsten Anders
Course Leader, Music Technology
University of Bedfordshire
Park Square, Room A315
http://www.torsten-anders.de





Re: [O] version 7.9.3d: compilation fails

2013-01-18 Thread Thorsten Jolitz
Torsten Anders  writes:

> I tried to update orgmode to the latest version 7.9.3d, but make failed, see
> outputs after this email.

It might be unrelated, but does 'M-x load-library RET org.el' work with your
latest version? I just had some trouble with a certain git version. 

-- 
cheers,
Thorsten




Re: [O] building org on OSX for aquamacs?

2013-01-18 Thread Filippo Salustri
Still hoping someone can advise me.
Anyone?
/fas


On 12 January 2013 09:51, Filippo Salustri  wrote:

> Anyone got any advice viz building org for aquamacs on OSX?
> Aquamacs hasn't got -batch, so I can't do the org-only build.
> /fas
>
> --
> \V/_
> Filippo A. Salustri, Ph.D., P.Eng.
> Email: salus...@ryerson.ca
> http://deseng.ryerson.ca/~fil/
>



-- 
\V/_
Filippo A. Salustri, Ph.D., P.Eng.
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/


Re: [O] Wish: switch active time-stamps to inactive when CANCELED

2013-01-18 Thread Daimrod
Karl Voit  writes:

> * Daimrod  wrote:
>>
>> Org Mode has already facilities for archiving.
>
> Thanks for the pointer but I know and I am using archiving in
> Org-mode.
>
>> In both cases they won't be displayed in the Agenda unless you active
>> them (v a or v A).
>
> Right.
>
> But in my workflow, I only archive whole projects when they are
> finished completely. For multiple reasons, I don't want to separate
> single events from the projects upfront.

Why doesn't the method with :ARCHIVE: tag fit your needs?

You can mark a subtree to ignore it. This way you keep the whole project
as a whole.

> I should have mentioned that in my first post, yes.

-- 
Daimrod/Greg


pgpfWUp13covR.pgp
Description: PGP signature


[O] version 7.9.3d: compilation fails

2013-01-18 Thread Torsten Anders
Dear all, 

I tried to update orgmode to the latest version 7.9.3d, but make failed, see 
outputs after this email.

I am on MacOS 10.6.8, and I do not know which emacs the unedited make file 
uses, quite possibly the preinstalled Emacs at the shell. 

Best wishes,
Torsten

--
Dr Torsten Anders
Course Leader, Music Technology
University of Bedfordshire
Park Square, Room A315
http://www.torsten-anders.de


-

Infoserves-MacBook-Pro-69:org-mode torsten$ make
==
= Invoke "make help" for a synopsis of make targets. =
= Created a default local.mk template.   =
= Setting "oldorg" as the default target.=
= Please adapt local.mk to your local setup! =
==
Loading /Users/torsten/emacs/org-mode/lisp/org-compat.el (source)...
Loading /Users/torsten/emacs/org-mode/mk/org-fixup.el (source)...
Wrote /Users/torsten/emacs/org-mode/local.mk
make -C doc clean;  make -C lisp clean;
rm -f org *.pdf *.html *_letter.tex org-version.inc \
  *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs \
  *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps
rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc 
org-install.elc
rm -f *.elc
make -C lisp compile
rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc 
org-install.elc
org-version: 7.9.3d (7.9.3d-dist)
Loading /Users/torsten/emacs/org-mode/lisp/org-compat.el (source)...
Loading /Users/torsten/emacs/org-mode/mk/org-fixup.el (source)...
Wrote /Users/torsten/emacs/org-mode/lisp/org-version.el
org-loaddefs: 7.9.3d (7.9.3d-dist)
Loading /Users/torsten/emacs/org-mode/lisp/org-compat.el (source)...
Loading /Users/torsten/emacs/org-mode/mk/org-fixup.el (source)...
Generating autoloads for ob-C.el...
Generating autoloads for ob-C.el...done
Generating autoloads for ob-R.el...
Generating autoloads for ob-R.el...done
Generating autoloads for ob-asymptote.el...
Generating autoloads for ob-asymptote.el...done
Generating autoloads for ob-awk.el...
Generating autoloads for ob-awk.el...done
Generating autoloads for ob-calc.el...
Generating autoloads for ob-calc.el...done
Generating autoloads for ob-clojure.el...
Generating autoloads for ob-clojure.el...done
Generating autoloads for ob-comint.el...
Generating autoloads for ob-comint.el...done
Generating autoloads for ob-css.el...
Generating autoloads for ob-css.el...done
Generating autoloads for ob-ditaa.el...
Generating autoloads for ob-ditaa.el...done
Generating autoloads for ob-dot.el...
Generating autoloads for ob-dot.el...done
Generating autoloads for ob-emacs-lisp.el...
Generating autoloads for ob-emacs-lisp.el...done
Generating autoloads for ob-eval.el...
Generating autoloads for ob-eval.el...done
Generating autoloads for ob-exp.el...
Generating autoloads for ob-exp.el...done
Generating autoloads for ob-fortran.el...
Generating autoloads for ob-fortran.el...done
Generating autoloads for ob-gnuplot.el...
Generating autoloads for ob-gnuplot.el...done
Generating autoloads for ob-haskell.el...
Generating autoloads for ob-haskell.el...done
Generating autoloads for ob-io.el...
Generating autoloads for ob-io.el...done
Generating autoloads for ob-java.el...
Generating autoloads for ob-java.el...done
Generating autoloads for ob-js.el...
Generating autoloads for ob-js.el...done
Generating autoloads for ob-keys.el...
Generating autoloads for ob-keys.el...done
Generating autoloads for ob-latex.el...
Generating autoloads for ob-latex.el...done
Generating autoloads for ob-ledger.el...
Generating autoloads for ob-ledger.el...done
Generating autoloads for ob-lilypond.el...
Generating autoloads for ob-lilypond.el...done
Generating autoloads for ob-lisp.el...
Generating autoloads for ob-lisp.el...done
Generating autoloads for ob-lob.el...
Generating autoloads for ob-lob.el...done
Generating autoloads for ob-matlab.el...
Generating autoloads for ob-matlab.el...done
Generating autoloads for ob-maxima.el...
Generating autoloads for ob-maxima.el...done
Generating autoloads for ob-mscgen.el...
Generating autoloads for ob-mscgen.el...done
Generating autoloads for ob-ocaml.el...
Generating autoloads for ob-ocaml.el...done
Generating autoloads for ob-octave.el...
Generating autoloads for ob-octave.el...done
Generating autoloads for ob-org.el...
Generating autoloads for ob-org.el...done
Generating autoloads for ob-perl.el...
Generating autoloads for ob-perl.el...done
Generating autoloads for ob-picolisp.el...
Generating autoloads for ob-picolisp.el...done
Generating autoloads for ob-plantuml.el...
Generating autoloads for ob-plantuml.el...done
Generating autoloads for ob-python.el...
Generating autoloads for ob-python.el...done
Generating autoloads for ob-ref.el...
Generating autoloads for ob-ref.el...done
Generating autoloads for ob-ruby.el...
Generating autoloads for ob-ruby.el...done
Generating autoloads for ob-sass.el...
Generating autoloads for ob-sass.el...done
Genera

Re: [O] Wish: switch active time-stamps to inactive when CANCELED

2013-01-18 Thread Karl Voit
* Daimrod  wrote:
>
> Org Mode has already facilities for archiving.

Thanks for the pointer but I know and I am using archiving in
Org-mode.

> In both cases they won't be displayed in the Agenda unless you active
> them (v a or v A).

Right.

But in my workflow, I only archive whole projects when they are
finished completely. For multiple reasons, I don't want to separate
single events from the projects upfront.

I should have mentioned that in my first post, yes.

-- 
Karl Voit




Re: [O] Wish: switch active time-stamps to inactive when CANCELED

2013-01-18 Thread Daimrod
Karl Voit  writes:

> Hi!

Hi,

> I tend to keep events that I do not attend in my calendar for
> archiving reasons. But I switch their status to CANCELED.
> Unfortunately, those events still appear on my Google calendar and
> so forth. I get my usual reminders and it messes up my free/busy
> list.
>
> Therefore, I am thinking that canceled events should turn their
> active time-stamps into inactive with an Org-mode option. This way,
> I can recall them in my agenda by typing ']' (show inactive
> time-stamps) but they do not interfere with my daily workflow.
>
> What do you think of such an option for Org-mode?

Org Mode has already facilities for archiving.

You can either tag a headline and its children with the `archive' tag
(bound to C-c C-x a) or archive a headline and its children in a
separated file (bound to C-c $).

In both cases they won't be displayed in the Agenda unless you active
them (v a or v A).

See (info "(org) Archiving") for a complete description of Archiving in
Org Mode.

-- 
Daimrod/Greg


pgp5OycYv2Vpc.pgp
Description: PGP signature


[O] Export of subtree does not include header

2013-01-18 Thread Søren Aagaard Mikkelsen
I have used orgmode for a while, but hasn't used any of its advanced
features that much. I'm currently writing a minutes report and what to
export a specific subtree, e.g.

* Minutes from <2013-01-11>

* Minutes from <2013-01-18><--- Want to export this only

Then I press C-c @, which marks the subtree, and then I press C-c C-e
and export it as a pdf-document.

The problem is that I want the top section to remain the same, i.e. "Minutes 
from
<2013-01-18>" is the top section and the others to be subsection of
that.

Currently, it surely exports the right subtree but the top-section is
not "Minutes from <2013-01-18>", but the bullet after that.




Re: [O] Export a weekly calendar view from org-agenda

2013-01-18 Thread Karl Voit
* Torsten Wagner  wrote:
>
> Hey Kyle,
> thanks for the info I will look into it.
> Maybe I should say more specific, I am looking for a typical calendar view
> (sort of table) as you know them from paper-based organizers.

Probably [1] might be of use for you. But I do not know, how easy it
is to bring it on paper. Please report.

  1. https://github.com/kiwanami/emacs-calfw
-- 
Karl Voit




[O] Wish: switch active time-stamps to inactive when CANCELED

2013-01-18 Thread Karl Voit
Hi!

I tend to keep events that I do not attend in my calendar for
archiving reasons. But I switch their status to CANCELED.
Unfortunately, those events still appear on my Google calendar and
so forth. I get my usual reminders and it messes up my free/busy
list.

Therefore, I am thinking that canceled events should turn their
active time-stamps into inactive with an Org-mode option. This way,
I can recall them in my agenda by typing ']' (show inactive
time-stamps) but they do not interfere with my daily workflow.

What do you think of such an option for Org-mode?

-- 
Karl Voit




Re: [O] New exporter documentation?

2013-01-18 Thread Florian Beck
James Harkins  writes:

> Specific question: Is there an easy way to use a given LaTeX template (.cls 
> and .bib)? (I also found [2] but "easy" is not how I would describe that.)

The easiest way is probably

#+BEGIN_SRC emacs-lisp
(require 'org-export)
(require 'org-e-latex)

(setq org-e-latex-default-class "new-article")

(add-to-list
 'org-e-latex-classes
 '("new-article" "\\documentclass[10pt]{my-style}
\n\\bibliography{/path/to/bibfile.bib}"
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}")
  ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
#+END_SRC

This works just like `org-export-latex-classes' but see the docstring.

Now you are ready to go: M-x org-export-dispatch


-- 
Florian Beck



Re: [O] New exporter documentation?

2013-01-18 Thread Thomas S. Dye
Aloha James,

James Harkins  writes:

> I apologize in advance for what is likely to be a dumb question, but
> I'm struggling to find documentation of the new exporter. Google
> pointed to [1], but this is documentation for developers of new
> backends. I only want to use the existing backends, and I want to
> understand how the new _exporter_ is different from the old__.
>
> Specific question: Is there an easy way to use a given LaTeX template
> (.cls and .bib)? (I also found [2] but "easy" is not how I would
> describe that.)

Not a dumb question. The Org mode community is working to move the new
exporter out of contrib/. The documentation at this point is the source
code, several of Nicolas Goaziou's posts to the mailing list, and some
"not easy" experiments that you've found.

The answer to your specific question is, yes, this works in the same way
as the old exporter. The following set up is one that I'm using for an
article prepared for PLOS-One. See the variable org-e-latex-classes for
how to use a LaTeX cls file. See the \bibliographystyle{} command for
how to specify a particular .bib file. I run the editing-setup code
block when I first enter the buffer. The export-setup-plos-one code
block needs to be tangled so there is an init-plos.el file in the same
folder as the Org mode file. If you change the name of the tangled file,
then this needs to be changed also in the variable
org-export-async-init-file in the editing-setup source code block.
Beware! The asynchronous export is habit forming :)

** Editing setup
#+name: editing-setup
#+header: :noweb yes
#+header: :results silent
#+begin_src emacs-lis p
  (require 'org-e-latex)
  (setq org-export-in-background t)
  (setq org-export-async-debug t)
  (setq org-export-async-init-file (expand-file-name "init-plos.el"))
  (setq org-entities-user nil)
  (add-to-list 'org-entities-user '("space" "\\ " nil " " " " " " "–"))
  (add-to-list 'org-entities-user '("amacron" "\\={a}" nil "ā" "a" "a" 
"ā"))
  (add-to-list 'org-entities-user '("emacron" "\\={e}" nil "ē" "e" "e" 
"ē"))
  (add-to-list 'org-entities-user '("imacron" "\\={\\i}" nil "ī" "i" "i" 
"ī"))
  (add-to-list 'org-entities-user '("omacron" "\\={o}" nil "ō" "o" "o" 
"ō"))
  (add-to-list 'org-entities-user '("umacron" "\\={u}" nil "ū" "u" "u" 
"ū"))
  (add-to-list 'org-entities-user '("Amacron" "\\={A}" nil "Ā" "A" "A" 
"Ā"))
  (add-to-list 'org-entities-user '("Emacron" "\\={E}" nil "Ē" "E" "E" 
"Ē"))
  (add-to-list 'org-entities-user '("Imacron" "\\={I}" nil "Ī" "I" "I" 
"Ī"))
  (add-to-list 'org-entities-user '("Omacron" "\\={O}" nil "Ō" "O" "O" 
"Ō"))
  (add-to-list 'org-entities-user '("Umacron" "\\={U}" nil "Ū" "U" "U" 
"Ū"))
  (define-key org-mode-map (kbd "C-c e") 'org-export-dispatch)
  <>
#+end_src

** Export setup for PLOS-One
#+name: export-setup-plos-one
#+header: :noweb yes
#+header: :results silent
#+header: :tangle init-plos.el
#+begin_src emacs-lisp
  (setq load-path (cons "~/.emacs.d/src/org-mode/lisp" load-path))
  (setq load-path (cons "~/.emacs.d/src/org-mode/contrib/lisp" load-path))
  (require 'org-e-latex)
  (org-babel-lob-ingest "~/org/td-lob.org")
  (setq org-confirm-babel-evaluate nil)
  (org-babel-do-load-languages
   'org-babel-load-languages
   '((R . t)
 (dot . t)
 (emacs-lisp . t)
 (latex . t)
 (org . t)
 (sh . t)))
  (setq org-entities-user nil)
  (add-to-list 'org-entities-user '("space" "\\ " nil " " " " " " "–"))
  (add-to-list 'org-entities-user '("amacron" "\\={a}" nil "ā" "a" "a" 
"ā"))
  (add-to-list 'org-entities-user '("emacron" "\\={e}" nil "ē" "e" "e" 
"ē"))
  (add-to-list 'org-entities-user '("imacron" "\\={\\i}" nil "ī" "i" "i" 
"ī"))
  (add-to-list 'org-entities-user '("omacron" "\\={o}" nil "ō" "o" "o" 
"ō"))
  (add-to-list 'org-entities-user '("umacron" "\\={u}" nil "ū" "u" "u" 
"ū"))
  (add-to-list 'org-entities-user '("Amacron" "\\={A}" nil "Ā" "A" "A" 
"Ā"))
  (add-to-list 'org-entities-user '("Emacron" "\\={E}" nil "Ē" "E" "E" 
"Ē"))
  (add-to-list 'org-entities-user '("Imacron" "\\={I}" nil "Ī" "I" "I" 
"Ī"))
  (add-to-list 'org-entities-user '("Omacron" "\\={O}" nil "Ō" "O" "O" 
"Ō"))
  (add-to-list 'org-entities-user '("Umacron" "\\={U}" nil "Ū" "U" "U" 
"Ū"))
  (setq org-export-latex-packages-alist nil)
  (add-to-list 'org-export-latex-packages-alist '("" "setspace"))
  (add-to-list 'org-export-latex-packages-alist '("" "amsmath"))
  (add-to-list 'org-export-latex-packages-alist '("" "amssymb"))
  (add-to-list 'org-export-latex-packages-alist '("" "graphicx"))
  (add-to-list 'org-export-latex-packages-alist '("" "cite"))
  (add-to-list 'org-export-latex-packages-alist '("" "color"))
  (add-to-list 'org-export-latex-packages-alist '("" "setspace"))
  (add-to-list 'org-export-latex-packages-alist 
'("labelfont=bf,labelsep=period,justification=raggedright" "caption"))
  (setq org-e-latex-pdf-process '("latexmk -pdf %f"))
  (setq org-e-latex-tables-booktabs nil)
  (setq org-e-latex-title-command nil)
  (setq org-export-latex-