Re: [O] ELPA/org-export + org-e-*

2012-09-05 Thread Jambunathan K
Eric Schulte eric.schu...@gmx.com writes:

 Maybe if you could share individual diffs from your git branch which add
 Makefile targets to:
 - bundle org-export and org-e-*.el ELPA packages
 - update package-upload-file
 - bundle an org+contrib ELPA package (if you have this implemented)

 then this functionality could be more easily folded into the master
 branch.

I will let Achim do it (at his discretion of course).  I have provided
pointers and helpful explanations.



[O] Emacs mode first line and Org-mode

2012-09-05 Thread Fabrice Popineau
Hi,

Something changed recently with the handling of emacs mode first line. I
used to have :

#+-*- coding:utf-8; mode:org; mode:org-e-beamer;
ispell-local-dictionary:fr_FR_hunspell -*-

as the first line of my file. Recently, it started to get exported in
LaTeX/Beamer, even with :
#+OPTIONS: skip:t

Workaround : add some tag to the mode line

#+FOO: -*- coding:utf-8; mode:org; mode:org-e-beamer;
ispell-local-dictionary:fr_FR_hunspell -*-

(One of these days I'll have time again to dig inside the emacs lisp and
offer potential fixes)

Regards,

-- 
Fabrice


Re: [O] ELPA/org-export + org-e-*

2012-09-05 Thread Jambunathan K

 There is still the point of discoverability.  

Discoverability is an issue when there are search engines, hmmm!

 Many more users already have the tromney/marmalade archives in their
 .emacs.  

Have you looked at the default value of `package-archives'? It is in
*everyone's* Emacs (for some values of Emacs).  (Contrast it with many
more users.)

Informed users should abandom tromey's own alpha version of package.el.

 If every package hosted its own archive, then ELPA would be too
 cumbersome to use.

Orgmode is a first-class Emacs package.  If I were you, I would set the
`package-archives' either directly by patching package.el or by
custom-saving it in org-install.el.

 If every package hosted its own archive

Also this argument is akin to saying Farmers cannot sell their own
produce.  They should all sell to a co-operative or a neighbourhood
retailer.

IMHO, having more farmers sell their own goods is good both for the
farmers and good for consumers.  It eliminates middlemen.  Remember, a
tar package is transported via interwebs not by trucks.  So middlemen
are not really required save for search engines.



Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-09-05 Thread Ian Barton

On 04/09/12 08:54, Ian Barton wrote:

On 31/08/12 14:19, Carson Chittom wrote:

Jude DaShiell jdash...@shellworld.net writes:


It might be near time to investigate wunderground.com and loose
google for
weather before igoogle disappears.  Other weather sites capable of text
output may also be available, I haven't investigated that yet.


For those in the US, the National Weather Service has forecasts
available in XML, which could be parsed, requestable via latitude and
longitude.  I haven't done anything with that other than noting its
existence.  URL seems to be
http://forecast.weather.gov/MapClick.php?lat=xx.lon=yy.FcastType=dwml






There is also Yahoo, which uses The Weather Channel. Their official
interface is documented at http://developer.yahoo.com/weather/ This
returns a three day forecast. However, there is an undocumented
interface that returns a five day forecast. See
http://xml.weather.yahoo.com/forecastrss/UKXX0718_c.xml for an example
forecast.

I have a python script that uses the undocumented interface, which I'll
put on Github when I have tidied it up a bit. It doesn't look too hard
to adapt the current googleweather.el script to use Yahoo.



I have pushed my python script to 
https://github.com/geekinthesticks/python-yahoo-weather


This shows how to retrieve the five day forecast from Yahoo, with an 
example XML page of the results returned by Yahoo. As an added benefit 
Yahoo also returns the lat, long, sunrise and sunset data. For people in 
the UK, there is a complete list of all location codes for towns and cities.


I have also included a copy of Julien Danjou's original library for 
Google in the repo. As a first step I renamed all occurrences of Google 
to Yahoo. Other than that it doesn't do anything useful yet.


Since my elisp skills are very limited, if anyone else wants to hack on 
this too, I would be more than happy to merge your changes.


Ian.





Re: [O] Mindwave Emacs. EEG reading and Data gathering in an org-mode buffer.

2012-09-05 Thread Torsten Wagner
Hi Jonathan,

does that mean we can mark the point

* TODO org-mode should read my mind

from the requested org-mode feature list ;)

I think your example is great but frighten to be very specific to
really get attention.
However, it might make a nice example for presentations etc.
Similar like the emacs coffee maker stuff.

On the other hand it might be very interesting to get a general idea
how to add data from devices to org-mode. Many measurement devices
utilize USB, RS232 or even network interfaces to communicate (beside
of the industrial standards). It would be great to have infos how e.g.
to read data from a serial port and add them to org-mode. The
internet-famous Arduino board could serve as an example. Communication
would be even more awesome.

Once I tried to use org-babel talking to a device connected via USB
(emulated serial port). The protocol was rather simple but could be
lengthy to type in over and over again.  I was hopping to define babel
blocks which serve as macro containers and combine them into bigger
scripts. However, this did not work as well, I guess partially because
of the bridge of org-shell-terminal-command

If you could help to describe e.g. a raw communication port for babel
that might be interesting.

#+begin_src: raw :port  /dev/tty1 :serpar 115200,8,1,N :results output
command
command
command
command
#+end_src
#+result
response
response
response
response

With the right set of parameters one could fetch real world data
directly into org-mode files.

Best regards

Torsten



On 5 September 2012 02:06, Jonathan Arkell jonath...@criticalmass.com wrote:
 Hi Orgers!

 I recently picked up a Neruosky Mindwave, a consumer level EEG device (it
 reads brainwaves).  Unfortunately, the software bundle doesn't include a
 way to log the EEG levels.  Since I am fairly decent at Elisp, I thought I
 would write a little library to interface with the mindwave, and store the
 results.  Naturally I thought of using an org-mode buffer for this.

 So I present, mindwave-emacs:


 Mindwave-emacs.el really is just a low-level interface for emacs.  Inside
 of the org file are 2 examples (actually, fully working programs) that
 show you how to work with it.

   - gather-into-org.el :: allows you to write data into an org-mode file
   - solarized-mind.el  :: uses the eSense Attention and Meditation
 measurements to provide feedback to the user on their brian state.

 I am also working on a lower-level serial/binary connection to retrieve
 data from the mindwave to help facilitate raw EEG logging.

 I don't know if this is going to be useful to anyone, but I figured some
 people may be interested.

 Cheers!
 __


 Jonathan Arkell
 Sr. Developer
 Inspired By Drum  Bass, Scheme, Kawaii

 p. 403.206.4377
 1011 9th Ave SE, Suite 300

 Calgary, AB, Canada T2G 0Y4

 jonath...@criticalmass.com
 criticalmass.com






 The information contained in this message is confidential. It is intended to 
 be read only by the individual or entity named above or their designee. If 
 the reader of this message is not the intended recipient, you are hereby 
 notified that any distribution of this message, in any form, is strictly 
 prohibited. If you have received this message in error, please immediately 
 notify the sender and delete or destroy any copy of this message.




Re: [O] [Orgmode] [SOLVED] Bug: LaTeX export of subscripts and superscripts in Tables. [7.9.1]

2012-09-05 Thread Giovanni Ridolfi
The new exporter exports the table correctly:

\begin{tabular}{l}
\hline
10$^3$\\
H$_2$O\\
\hline
\end{tabular}

please use it as suggested in the Release notes[1]


cheers,
Giovanni

[1] http://orgmode.org/Changes.html


Make sure contrib/lisp/ is in your load-path
M-: (require 'org-export) RET
M-: (require 'org-e-latex) RET ; or any other library
M-x org-export-dispatch RET




- Messaggio originale -
Da: gyaman...@gmail.com gyaman...@gmail.com
A: emacs-orgmode@gnu.org
Cc: 
Inviato: Martedì 4 Settembre 2012 10:07
Oggetto: [O] [Orgmode] Bug: LaTeX export of subscripts and superscripts in 
Tables. [7.9.1]

Using the following orgmode text:
* table 
- table
  ||
  | 10^{3} |
  | H_{2}O |
  ||

- 10^{3} 
- H_{2}O

==EOF==



the LaTeX exporter produces in version 7.9.1:

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
\section{table}
\label{sec-1}

\begin{itemize}
\item table

\begin{center}
\begin{tabular}{l}
\hline
10^\{3\}  \\      % may be Bug
H_\{2\}O  \\      %
\hline
\end{tabular}
\end{center}


\item 10$^{3}$
\item H$_{2}$O
\end{itemize}

==EOF==

\end{document}


Emacs: GNU Emacs 24.2.1 (x86_64-apple-darwin12.1.0, NS apple-appkit-1187.00)



[O] suggestion for org-emphasis-regexp-components: *U*nited *N*ations

2012-09-05 Thread Stefan Vollmar
Hallo,

I am using Org-mode 7.9 and found that with a small change in org.el, it is 
then possible to create HTML output corresponding to *U* nited *N* ations - 
but without the spaces after the bold initial letters. This kind of feature is 
useful for defining acronyms, also to emphasize syllables or unusual spellings: 
ye old /e/ church (without the space before the emphasized e) and a 
possible solution to [O] how to create bold initial characters (for explaining 
an acronym) posted by me on Sep 3.

It is possible to use the same trick that Łukasz Stelmach mentioned in the 
context of = markers in 2010: 

 But fear
 not and use unicode. There is
 U200B /xe2/x80/x8b ZERO WIDTH SPACE
 When you put (C-x 8 RET 200b RET) it next to equality signs [...]


In Emacs, the org source on screen then does look like *U*nited, too, when 
that unicode character has been inserted after the second *.

I modified org.el, line 3731 like this:

(defcustom org-emphasis-regexp-components
 '( ​\t('\{ - ​\t.,:!?;'\)}\\  \t\r\n,\' . 1)

-

(defcustom org-emphasis-regexp-components
 '( #​\t('\{ - #​\t.,:!?;'\)}\\  \t\r\n,\' . 1)
where # is the unicode character U200B.

Warm regards,
Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Head of IT group
Max-Planck-Institut für neurologische Forschung
Gleueler Str. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
E-Mail: voll...@nf.mpg.de   http://www.nf.mpg.de










smime.p7s
Description: S/MIME cryptographic signature


Re: [O] Emacs mode first line and Org-mode

2012-09-05 Thread Giovanni Ridolfi
Da: Fabrice Popineau fabrice.popin...@supelec.fr

A: emacs-orgmode@gnu.org 
Inviato: Mercoledì 5 Settembre 2012 8:12

Hi, Fabrice,

 Something changed recently with the handling of emacs mode first line. I used 
 to have :

 #+-*- coding:utf-8; mode:org; mode:org-e-beamer; 
 ispell-local-dictionary:fr_FR_hunspell -*-

 as the first line of my file. Recently, it started to get exported in 
 LaTeX/Beamer, even with :
 #+OPTIONS: skip:t


Please try leaving a space between # and + 


# +-*- coding:utf-8; mode:org; mode:org-e-beamer; 
ispell-local-dictionary:fr_FR_hunspell -*-

hth
Giovanni



[O] [Bug] [babel] calls in :noexport: subtrees evaluated

2012-09-05 Thread Andreas Leha
Hi all,

it seems to me, that #+call lines in subtrees with the :noexport: tag
are evaluated.  Is this intended?

In my opinion, these #+calls should not be evaluated.

* Example
Export this subtree with org-export-dispatch.  You will have to wait for
more than 1+10 secs...

** To be exported
This should be exported.

#+call: Rsleep(secs=1)

** Not to be exported  :noexport:
This should *not* be exported.

#+call: Rsleep(secs=10)

* Code
#+name: Rsleep
#+begin_src R :var secs=3
  Sys.sleep(secs)
#+end_src

Regards,
Andreas

PS: I am on Org-mode version 7.9.1 (release_7.9.1-138-geeb5b9)




[O] [babel] subtree evaluation with results outside the subtree

2012-09-05 Thread Andreas Leha
Hi all,

I have the following question.  Consider the following simple org file

#+begin_org
* Subtree to eval (with C-c C-v s)
#+name: some_test
#+begin_src R
  5+1
#+end_src


* another subtree containing the result

#+results: some_test
: 6

#+end_org

(a)
When I evaluate the source block interactively (C-c C-c) the existing
results get updated.

(b)
When I evaluate the subtree containing the source block, on the other
hand, a new result block is created.

While the behaviour in (b) is understandable, I'd like (b) to behave
like (a).
So, is there a way I can evaluate all source blocks in a
subtree, but have their result blocks updated even if they are not
located in that subtree?

Many thanks,
Andreas




Re: [O] Emacs mode first line and Org-mode

2012-09-05 Thread Fabrice Popineau

 Please try leaving a space between # and +


Ok, a bit strange but it works :-)

Thanks,

Fabrice


[O] org-pretty-entities and org-cdlatex

2012-09-05 Thread Thomas Holst
Hello,

there is a different behaviour of sub (_) and superscripts (^) depending
on =org-pretty-entities=. When I type:

  =ab_cdef=

inside LaTeX fragments with =org-pretty-entities= enabled I get:

  \( ab_{c}def \)
  

With =org-pretty-entities= disabled I get:

  \( ab_{cdef} \)
  
  
I have to type TAB to get out of subsciript. According to cdlatex doc
the second behaviour is intended. Is this a bug or am I missing some
setup? 

Tested with emacs -Q

org-version:
Org-mode version 7.9.1
  (release_7.9.1-142-gdfea24 @
   c:/daten/users/DE_hts2fe/git/org-mode/lisp/)

emacs-version:
24.0.50.1 on WinXP

-- 
Bis neulich ...
  Thomas



Re: [O] Emacs mode first line and Org-mode

2012-09-05 Thread Giovanni Ridolfi


Da: Fabrice Popineau fabrice.popin...@supelec.fr
A: Giovanni Ridolfi giovanni.rido...@yahoo.it 
Inviato: Mercoledì 5 Settembre 2012 10:35

Please try leaving a space between # and +

 Ok, a bit strange but it works :-)

Hi, Fabrice,

it is not strange at all, it is even documented in the release notes
of the software you're using.


Release notes of version 7.9.1 :
Org Editing
[...]
Comments start with [ \t]*#  anywhere on a line

Note that the space after the hashtag is mandatory.  Comments with ^#+
are not supported anymore.   [1] 


[1] you can find the Release Notes in the file: your-org-path/etc/ORG-NEWS here 
a link:

[[file:   please write here  your path      
/org/etc/ORG-NEWS::*s%20start%20with%20^%5B%20/t%5D*#%20%20anywhere%20on%20a%20line][Comments
 start with ^{ \t}*#  anywhere on a line]


cancel these characters to close the parenthesis ]


or, if you prefer, reading online [2].

Thanks for understanding,

Giovanni


[2] http://orgmode.org/Changes.html




Re: [O] org-pretty-entities and org-cdlatex

2012-09-05 Thread Carsten Dominik

On 5.9.2012, at 11:08, Thomas Holst wrote:

 Hello,
 
 there is a different behaviour of sub (_) and superscripts (^) depending
 on =org-pretty-entities=. When I type:
 
  =ab_cdef=
 
 inside LaTeX fragments with =org-pretty-entities= enabled I get:
 
  \( ab_{c}def \)
  
 
 With =org-pretty-entities= disabled I get:
 
  \( ab_{cdef} \)
  

I am not able to reproduce this, I get the second behavior always.

- Carsten

 
 I have to type TAB to get out of subsciript. According to cdlatex doc
 the second behaviour is intended. Is this a bug or am I missing some
 setup? 
 
 Tested with emacs -Q
 
 org-version:
 Org-mode version 7.9.1
  (release_7.9.1-142-gdfea24 @
   c:/daten/users/DE_hts2fe/git/org-mode/lisp/)
 
 emacs-version:
 24.0.50.1 on WinXP
 
 -- 
 Bis neulich ...
  Thomas
 




Re: [O] Using double square brackets literally (escaping link conversion) in org-mode

2012-09-05 Thread Giuseppe Pagnoni
good tip, thanks!

giuseppe



Re: [O] org-pretty-entities and org-cdlatex

2012-09-05 Thread Thomas Holst
Hello,

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

 On 5.9.2012, at 11:08, Thomas Holst wrote:

 Hello,
 
 there is a different behaviour of sub (_) and superscripts (^) depending
 on =org-pretty-entities=. When I type:
 
  =ab_cdef=
 
 inside LaTeX fragments with =org-pretty-entities= enabled I get:
 
  \( ab_{c}def \)
  
 
 With =org-pretty-entities= disabled I get:
 
  \( ab_{cdef} \)
  

 I am not able to reproduce this, I get the second behavior always.

 - Carsten


I also tested it with emacs 23.2 on WinXP. I get different results
depending on =org-pretty-entititis=.

I will try it on my Ubuntu machine at home and come back with the
results. Maybe it is a problem related to emacs on Windows.

Thanks for looking into this.

-- 
Bis neulich ...
  Thomas



Re: [O] org-pretty-entities and org-cdlatex

2012-09-05 Thread Carsten Dominik

On 5.9.2012, at 12:20, Thomas Holst wrote:

 Hello,
 
 · Carsten Dominik carsten.domi...@gmail.com wrote:
 
 On 5.9.2012, at 11:08, Thomas Holst wrote:
 
 Hello,
 
 there is a different behaviour of sub (_) and superscripts (^) depending
 on =org-pretty-entities=. When I type:
 
 =ab_cdef=
 
 inside LaTeX fragments with =org-pretty-entities= enabled I get:
 
 \( ab_{c}def \)
 
 
 With =org-pretty-entities= disabled I get:
 
 \( ab_{cdef} \)
 
 
 I am not able to reproduce this, I get the second behavior always.
 
 - Carsten
 
 
 I also tested it with emacs 23.2 on WinXP. I get different results
 depending on =org-pretty-entititis=.
 
 I will try it on my Ubuntu machine at home and come back with the
 results. Maybe it is a problem related to emacs on Windows.
 
 Thanks for looking into this.

Do you have any settings for cdlatex.el?  I guess not because you are using -Q….

- Carsten

 
 -- 
 Bis neulich ...
  Thomas




Re: [O] org-pretty-entities and org-cdlatex

2012-09-05 Thread Thomas Holst
Hi Casten,

· Carsten Dominik carsten.domi...@gmail.com wrote:
 On 5.9.2012, at 12:20, Thomas Holst wrote:

[... snip ...]
 
 I am not able to reproduce this, I get the second behavior always.
 
 - Carsten
 
 
 I also tested it with emacs 23.2 on WinXP. I get different results
 depending on =org-pretty-entititis=.
 
 I will try it on my Ubuntu machine at home and come back with the
 results. Maybe it is a problem related to emacs on Windows.
 
 Thanks for looking into this.

 Do you have any settings for cdlatex.el?  I guess not because you are using 
 -Q….

I have no settings for cdlatex. I started emacs in a cmd shell with:

start C:\Programme\gnu\emacs-24.0.50.1\bin\emacs.exe -Q --eval (load-file 
\~/emacs/Testing/init.el\)

With init.el containing:

#+BEGIN_SRC emacs-lisp
  ;; 
-
  ;; Pfade auf lokales org-mode git-repository setzen
  ;; 
-
  (add-to-list 'load-path ~/git/org-mode/lisp)
  (add-to-list 'load-path ~/git/site-lisp)
  (add-to-list 'load-path ~/git/site-lisp/auctex)
  ;; pfad zu contib/lisp
  (add-to-list 'load-path ~/git/org-mode/contrib/lisp)
  (add-to-list 'load-path ~/git/org-mode/contrib/babel/lisp)

  (require 'org-install)
  ;; (require 'org-export)
  ;; (require 'org-e-latex)
  (require 'cdlatex)
  (find-file c:/daten/users/DE_hts2fe/emacs/OrgMode/testing/testing.org)
  (turn-on-org-cdlatex)
#+END_SRC

And Testing.org containing:

#+BEGIN_SRC org
  #+TITLE: new-exporter.org
  #+AUTHOR:Thomas Holst
  #+EMAIL: thomas.ho...@de.bosch.com
  #+DATE:  2012-07-16 Mo
  #+DESCRIPTION:
  #+KEYWORDS:
  #+LANGUAGE:  en
  #+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:{} -:t f:t *:t :t
  #+OPTIONS:   TeX:t LaTeX:t skip:nil d:t todo:t pri:nil tags:t
  #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 
path:http://orgmode.org/org-info.js
  #+EXPORT_SELECT_TAGS: export
  #+EXPORT_EXCLUDE_TAGS: noexport
  #+LINK_UP:   
  #+LINK_HOME: 
  #+XSLT:
  #+LATEX_CLASS: article

  * org-cdlatex and org-pretty-entities

\( ab_{c}def \)
\( ab_{cdef} \)
#+END_SRC

As said before I will test it on my Ubuntu machine at home. But it will
be tomorrow evening till I have time to perform the test.

Thanks again.

-- 
Bis neulich ...
  Thomas



Re: [O] org-pretty-entities and org-cdlatex

2012-09-05 Thread Thomas Holst
Hi Carsten,

here is an update on the subject. I performed a another test with emacs
23.3.1 under cygwin X11. I see same behaviour as under WinXP.

Maybe I have to clarifiy what I did. So here is a step by step
procedure.

Inside an orgmode document do the following:

  Set =org-pretty-entities= to nil

  (setq org-pretty-entities nil)  C-x C-e

  now type =ab_cdef= inside a LaTeX environment \(  \). As a result I get:

  \( ab_{cdef} \)

  Now turn on =org-pretty-entities=

  (setq org-pretty-entities t) or C-c C-x \ and again type =ab_cdef= in
  an LaTeX environment. As a result I get:

  \( ab_{c}def \)

  Which is not what cdlatex doc says.

I tested this with 
emacs-version  23.3.1 under cygwin
   23.2 under WinXP
   24.0.50.1 under WinXP

Emacs started as posted in my pevious post. =emacs -Q= and minimal
org-mode and org-cdlatex setup.

org-mode Version:
(org-version)
release_7.9.1-138-geeb5b9 @ c:/daten/users/DE_hts2fe/git/org-mode/lisp/

I get the same results in all tree cases.

I hope that clarifies what I ment originally. Sorry for not beeing clear.

-- 
Bis neulich ...
  Thomas



Re: [O] [Bug] [babel] calls in :noexport: subtrees evaluated

2012-09-05 Thread Sebastien Vauban
Hello Andreas,

Andreas Leha wrote:
 it seems to me, that #+call lines in subtrees with the :noexport: tag
 are evaluated.  Is this intended?

I think that, at least, it's not a bug. I don't /think/ it has never been
specified like that. But I still don't have a clear view of what is done, in
which order:

- processing macros
- inhibiting noexport subtrees
- evaluating code blocks (possibly with noweb calls)
- etc.

In fact, what you expect is that putting a tag :noexport: on a subtree would
propagate the option :eval no-export[1] to all code blocks beneath it. That's
the one which inhibits code block evaluation during export (but allow
interactive evaluation).

 In my opinion, these #+calls should not be evaluated.

I really don't have any strong opinion about this, even if, without further
thinking, I'd favor the same behavior as the one you expected.

Best regards,
  Seb

[1] Notice the different spelling: with or without the dash.

-- 
Sebastien Vauban




Re: [O] org-pretty-entities and org-cdlatex

2012-09-05 Thread Giovanni Ridolfi
Da: Thomas Holst thomas.ho...@de.bosch.com
Inviato: Mercoledì 5 Settembre 2012 12:20

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

 On 5.9.2012, at 11:08, Thomas Holst wrote:

 Hello,
 
 there is a different behaviour of sub (_) and superscripts (^) depending
 on =org-pretty-entities=. When I type:
 
  =ab_cdef=
 
 inside LaTeX fragments with =org-pretty-entities= enabled I get:
 
  \( ab_{c}def \)
          
 
 With =org-pretty-entities= disabled I get:
 
  \( ab_{cdef} \)
          

 I am not able to reproduce this, I get the second behavior always.

 I also tested it with emacs 23.2 on WinXP. 

 Maybe it is a problem related to emacs on Windows.
Hi, Thomas and Carsten,

I downloaded texmathp.el from here:
https://raw.github.com/jwiegley/auctex/master/texmathp.el
cdlatex from here:
http://staff.science.uva.nl/~dominik/Tools/cdlatex/cdlatex.el

loaded them M-x load-file

Org-mode version 7.9.1 (c276eeebeec 
GNU Emacs 24.1.1 (i386-mingw-nt6.1.7601) of 2012-06-10 on MARVIN
Windows 7

org-pretty-entities  nil  (default)

M-x org-cdlatex-mode

** CDLatex

\( ab_{cdef} \)

if org-pretty-entities on (via customization interface)  I get: 

\(  ab_{c}def  \)

so I confirm the behaviour of Thomas under Windows

cheers
Giovanni




Re: [O] [Bug] [babel] calls in :noexport: subtrees evaluated

2012-09-05 Thread Andreas Leha
Hi Sebastien,


Sebastien Vauban
wxhgmqzgw...@spammotel.com writes:

 Hello Andreas,

 Andreas Leha wrote:
 it seems to me, that #+call lines in subtrees with the :noexport: tag
 are evaluated.  Is this intended?

 I think that, at least, it's not a bug. I don't /think/ it has never been
 specified like that. But I still don't have a clear view of what is done, in
 which order:

 - processing macros
 - inhibiting noexport subtrees
 - evaluating code blocks (possibly with noweb calls)
 - etc.

 In fact, what you expect is that putting a tag :noexport: on a subtree would
 propagate the option :eval no-export[1] to all code blocks beneath it. 
 That's
 the one which inhibits code block evaluation during export (but allow
 interactive evaluation).

Thanks for the pointer.  I am aware of that.  But this requires two
modifications, in order to get the desired behaviour: the :noexport: tag
and a 'eval no-export' property.

Just to
explain my use case.  I am doing a statistical analysis.  One arm in
that analysis is quite time consuming.  As it is one arm it is all
beneath one subtree.  But still split to several code blocks.
In that case it would be really handy to say :noexport: to the subtree
to
(1) not execute the lengthy code
(2) simultaneously omit the section in the exported pdf

Note, that I am also aware of the caching system.  I have been using it
a lot, but it sort of breaks the reproducible research paradigm and got
into my way too often.

 In my opinion, these #+calls should not be evaluated.

 I really don't have any strong opinion about this, even if, without further
 thinking, I'd favor the same behavior as the one you expected.

 Best regards,
   Seb

 [1] Notice the different spelling: with or without the dash.




[O] conditional export based on babel result

2012-09-05 Thread Andreas Leha
Hi all,

is there a possibility to exclude (or include) parts of the document
based on some babel source block result?

First some use case:
Say, I am doing a statistical test.  And only if the test turns out to be
significant, a follow-up analysis is carried out.

Is that possible?

One thinkable and ugly option would be to allow lisp-generated tags like
in this dummy example:

#+begin_org

* The Test
#+name: sometest
#+begin_src R
  test_result - 0.03
#+end_src


** export maybe (if ( (string-to-number (sbe sometest)) 0.05) :export: 
:noexport:)
The follow-up

#+end_org


Regards,
Andreas




Re: [O] [Bug] [babel] calls in :noexport: subtrees evaluated

2012-09-05 Thread Nicolas Goaziou


Hello,

Sebastien Vauban
wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes:

 Andreas Leha wrote:
 it seems to me, that #+call lines in subtrees with the :noexport: tag
 are evaluated.  Is this intended?

 I think that, at least, it's not a bug. I don't /think/ it has never been
 specified like that. But I still don't have a clear view of what is done, in
 which order:

 - processing macros
 - inhibiting noexport subtrees
 - evaluating code blocks (possibly with noweb calls)
 - etc.

As far as the new exporter goes (you may want to have a look at
`org-export-as' function), the order is:

 - Process macros.
 - Expand #+INCLUDE: keywords.
 - Evaluate code blocks.

Note that noexport sub-trees are not inhibited. The are just skipped
when the parse tree is processed.

To answer the OP, :noexport: tag is related to export, not to
src-blocks. There are already other ways to disable code evaluation on
subtrees. It may be useful, as in your case, to have their behaviour
linked, but again, sometimes not.

It's often better to keep separate things, well, separate.


Regards,

-- 
Nicolas Goaziou




Re: [O] [Bug] [babel] calls in :noexport: subtrees evaluated

2012-09-05 Thread Andreas Leha
Nicolas Goaziou n.goaz...@gmail.com writes:

 Hello,

 Sebastien Vauban
 wxhgmqzgw...@spammotel.com writes:

 Andreas Leha wrote:
 it seems to me, that #+call lines in subtrees with the :noexport: tag
 are evaluated.  Is this intended?

 As far as the new exporter goes (you may want to have a look at
 `org-export-as' function), the order is:

  - Process macros.
  - Expand #+INCLUDE: keywords.
  - Evaluate code blocks.

 Note that noexport sub-trees are not inhibited. The are just skipped
 when the parse tree is processed.

 To answer the OP, :noexport: tag is related to export, not to
 src-blocks. There are already other ways to disable code evaluation on
 subtrees. It may be useful, as in your case, to have their behaviour
 linked, but again, sometimes not.

 It's often better to keep separate things, well, separate.

My expectation still is the linked case, but I can live in the
unlinked org mode world.
Thanks for the clarification, anyway.

Regards,
Andreas




Re: [O] Mindwave Emacs. EEG reading and Data gathering in an org-mode buffer.

2012-09-05 Thread joakim
Jonathan Arkell jonath...@criticalmass.com writes:

 Hi Orgers!

 I recently picked up a Neruosky Mindwave, a consumer level EEG device (it
 reads brainwaves).  Unfortunately, the software bundle doesn't include a
 way to log the EEG levels.  Since I am fairly decent at Elisp, I thought I
 would write a little library to interface with the mindwave, and store the
 results.  Naturally I thought of using an org-mode buffer for this.

 So I present, mindwave-emacs:
 https://raw.github.com/jonnay/emagicians-starter-kit/master/extra/mindwave-emacs.org

 Mindwave-emacs.el really is just a low-level interface for emacs.  Inside
 of the org file are 2 examples (actually, fully working programs) that
 show you how to work with it.

   - gather-into-org.el :: allows you to write data into an org-mode file
   - solarized-mind.el  :: uses the eSense Attention and Meditation
 measurements to provide feedback to the user on their brian state.

 I am also working on a lower-level serial/binary connection to retrieve
 data from the mindwave to help facilitate raw EEG logging.

 I don't know if this is going to be useful to anyone, but I figured some
 people may be interested.

Cool!

I did some Neurosky Mindset integration for my zen.el package:
https://github.com/jave/zen-mode

Maybe I can integrate your package and mine, I'll have a look!



 Cheers!
 __


 Jonathan Arkell
 Sr. Developer
 Inspired By Drum  Bass, Scheme, Kawaii

 p. 403.206.4377
 1011 9th Ave SE, Suite 300

 Calgary, AB, Canada T2G 0Y4

 jonath...@criticalmass.com
 criticalmass.com






 The information contained in this message is confidential. It is intended to 
 be read only by the individual or entity named above or their designee. If 
 the reader of this message is not the intended recipient, you are hereby 
 notified that any distribution of this message, in any form, is strictly 
 prohibited. If you have received this message in error, please immediately 
 notify the sender and delete or destroy any copy of this message.



-- 
Joakim Verona




Re: [O] repeater not working?

2012-09-05 Thread Alan Schmitt
Memnon Anon gegendosenflei...@googlemail.com writes:

 My point was:

 TODO Items will pop up in your agenda, checklists will not.
 If Archive Mail involves some ministeps you just want to make sure you
 won't forget, which you don't want to log separately, checklists are
 probably a better idea. But don't overuse them; as a general rule, if a
 subtask takes more than 3 minutes, I make it a first class citizen in
 the org cosmos, i.e. a TODO item. Most ministeps are not worth jotting
 down in the first place, having them in my agenda would clutter everything:

 * TODO Return books to library [/]
 ** TODO Search books
 ** TODO Put books in bag
 ** TODO Unlock bike
 ** TODO Drive to library

Is there a way for a TODO to be hidden from an agenda until all previous
TODOs have been done? Here, there is no point in putting the books in
the bag if you have not found them ...

Alan



Re: [O] list-load-path-shadows

2012-09-05 Thread Nick Dokos
Thomas S. Dye t...@tsdye.com wrote:

 Nick Dokos nicholas.do...@hp.com writes:
 
  Thomas S. Dye t...@tsdye.com wrote:
 
  Aloha all,
  
  I'm working to understand why my initialization files don't work if I
  compile org from git, but do seem to work (that is, initialization runs
  to completion) when I don't compile org from git.  Right now I've
  installed org from git and have run make uncompiled.
  
 
  It might be a good idea to run with --debug-init in the compiled case
  and get a backtrace.
 
 Hi Nick,
 
 After make compile, starting emacs --debug-init yields this backtrace:
 
 Debugger entered--Lisp error: (void-function org-find-library-dir)
   (org-find-library-dir org)
   (file-name-directory (org-find-library-dir org))
   (expand-file-name ../contrib (file-name-directory (org-find-library-dir 
 org)))
   (file-name-as-directory (expand-file-name ../contrib (file-name-directory 
 (org-find-library-dir org
   (expand-file-name scripts (file-name-as-directory (expand-file-name 
 ../contrib (file-name-directory (org-find-library-dir org)
   (file-name-as-directory (expand-file-name scripts (file-name-as-directory 
 (expand-file-name ../contrib (file-name-directory (org-find-library-dir 
 org))
   (expand-file-name ditaa.jar (file-name-as-directory (expand-file-name 
 scripts (file-name-as-directory (expand-file-name ../contrib 
 (file-name-directory (org-find-library-dir org)))
   eval((expand-file-name ditaa.jar (file-name-as-directory 
 (expand-file-name scripts (file-name-as-directory (expand-file-name 
 ../contrib (file-name-directory (org-find-library-dir org
   custom-initialize-reset(org-ditaa-jar-path (expand-file-name ditaa.jar 
 (file-name-as-directory (expand-file-name scripts (file-name-as-directory 
 (expand-file-name ../contrib (file-name-directory (org-find-library-dir 
 org
   custom-declare-variable(org-ditaa-jar-path (expand-file-name ditaa.jar 
 (file-name-as-directory (expand-file-name scripts (file-name-as-directory 
 (expand-file-name ../contrib (file-name-directory (org-find-library-dir 
 org))) Path to the ditaa jar executable. :group org-babel :type 
 string)
 
 AFAICT, org-find-library-dir is a macro defined in org-compat.el.  Not
 sure why compiling would make it disappear.  Initialization runs to
 completion when org isn't compiled.
 
  I doubt the shadowing you discuss below makes a difference here (but
  I could be wrong).
 

Looks like I was wrong :-) The custom shadowing seems to play a role.
Just guessing, it's probably a chicken-and-egg situation: you load the
custom file before org gets initialized and there is no autoload that
manages to get the macro defined before it is used.

One way to break the loop is to not use the macro in your custom file:
replace it by its definition. Another way is to delete the customization
of org-ditaa-jar-path from the custom file and include it after org gets
initialized. Both of these are to be considered workaround hacks than
solutions, but it's hard to propose a solution without knowing exactly
what the problem is.

If you still can't make it work, please post the initialization file(s)
and the two custom files and maybe somebody can figure out something.

HTH,
Nick



[O] items in org-class do not get exported in ical export

2012-09-05 Thread Enda
When export an org file to ical, the items in org-class do not get exported.

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


- Enda



[O] LinkedIn Group Company

2012-09-05 Thread Neil Smithline
12 days ago someone created a LinkedIn group for Org Mode (
http://j.mp/TmQK5R).

I've now joined the group bringing the total group members to 2.

Two things.

- I don't think the Org Mode group was announced to this email list.
Problem resolved with this email :-D

- I would like to create a LinkedIn Company for Org Mode. LinkedIn allows
you to list charitable work you have done for organizations. I have listed
Org Mode as an organization as an ad hoc organization to which I have
donated. I think it would be nice to have an official company/organization
for people to list Org Mode in their LinkedIn profile. I think it would
benefit individuals to be able to list an official company and benefit Org
Mode to have the extra publicity.

Assuming the powers that be think having an official LinkedIn
company/organization is a good idea, I can either create it or leave it to
one of the major Org Mode engineers to create it. (Instructions available
at  http://j.mp/TmQK5R).

Neil


Re: [O] repeater not working?

2012-09-05 Thread Sebastien Vauban
Hi Alan,

Alan Schmitt wrote:
 * TODO Return books to library [/]
 ** TODO Search books
 ** TODO Put books in bag
 ** TODO Unlock bike
 ** TODO Drive to library

 Is there a way for a TODO to be hidden from an agenda until all previous
 TODOs have been done? Here, there is no point in putting the books in
 the bag if you have not found them ...

Look at the ORDERED property.[1]

Best regards,
  Seb

[1] That makes me think that I'd find it useful to see that information as a
tag as well. Exactly like for Beamer where some properties have an associated
tag automatically created, purely for easier visualization. What do you think?
I would clearly use that feature more (I currently don't), if this would be
the case.

-- 
Sebastien Vauban




Re: [O] [Bug] [babel] calls in :noexport: subtrees evaluated

2012-09-05 Thread Sebastien Vauban
Hi Nicolas,

Nicolas Goaziou wrote:
 Sebastien Vauban writes:
 In fact, what you expect is that putting a tag :noexport: on a subtree 
 would
 propagate the option :eval no-export[1] to all code blocks beneath it. 
 That's
 the one which inhibits code block evaluation during export (but allow
 interactive evaluation).

 I really don't have any strong opinion about this, even if, without further
 thinking, I'd favor the same behavior as the one you expected.

 To answer the OP, :noexport: tag is related to export, not to
 src-blocks. There are already other ways to disable code evaluation on
 subtrees. It may be useful, as in your case, to have their behaviour
 linked, but again, sometimes not.

 It's often better to keep separate things, well, separate.

To see whether there is more weigh toward a solution or the other, I would
formulate the question this way:

are there real use-cases where one would want to *not* export a subtree
(by tagging it), though to *well* evaluate the code blocks it contains?

If the answer is yes, then, definitely, both things must really stay
separated.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] list-load-path-shadows

2012-09-05 Thread Thomas S. Dye
Nick Dokos nicholas.do...@hp.com writes:

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

 Nick Dokos nicholas.do...@hp.com writes:
 
  Thomas S. Dye t...@tsdye.com wrote:
 
  Aloha all,
  
  I'm working to understand why my initialization files don't work if I
  compile org from git, but do seem to work (that is, initialization runs
  to completion) when I don't compile org from git.  Right now I've
  installed org from git and have run make uncompiled.
  
 
  It might be a good idea to run with --debug-init in the compiled case
  and get a backtrace.
 
 Hi Nick,
 
 After make compile, starting emacs --debug-init yields this backtrace:
 
 Debugger entered--Lisp error: (void-function org-find-library-dir)
   (org-find-library-dir org)
   (file-name-directory (org-find-library-dir org))
   (expand-file-name ../contrib (file-name-directory
 (org-find-library-dir org)))
   (file-name-as-directory (expand-file-name ../contrib
 (file-name-directory (org-find-library-dir org
   (expand-file-name scripts (file-name-as-directory
 (expand-file-name ../contrib (file-name-directory
 (org-find-library-dir org)
   (file-name-as-directory (expand-file-name scripts
 (file-name-as-directory (expand-file-name ../contrib
 (file-name-directory (org-find-library-dir org))
   (expand-file-name ditaa.jar (file-name-as-directory
 (expand-file-name scripts (file-name-as-directory
 (expand-file-name ../contrib (file-name-directory
 (org-find-library-dir org)))
   eval((expand-file-name ditaa.jar (file-name-as-directory
 (expand-file-name scripts (file-name-as-directory
 (expand-file-name ../contrib (file-name-directory
 (org-find-library-dir org
   custom-initialize-reset(org-ditaa-jar-path (expand-file-name
 ditaa.jar (file-name-as-directory (expand-file-name scripts
 (file-name-as-directory (expand-file-name ../contrib
 (file-name-directory (org-find-library-dir org
   custom-declare-variable(org-ditaa-jar-path (expand-file-name
 ditaa.jar (file-name-as-directory (expand-file-name scripts
 (file-name-as-directory (expand-file-name ../contrib
 (file-name-directory (org-find-library-dir org))) Path to the
 ditaa jar executable. :group org-babel :type string)
 
 AFAICT, org-find-library-dir is a macro defined in org-compat.el.  Not
 sure why compiling would make it disappear.  Initialization runs to
 completion when org isn't compiled.
 
  I doubt the shadowing you discuss below makes a difference here (but
  I could be wrong).
 

 Looks like I was wrong :-) The custom shadowing seems to play a role.
 Just guessing, it's probably a chicken-and-egg situation: you load the
 custom file before org gets initialized and there is no autoload that
 manages to get the macro defined before it is used.

 One way to break the loop is to not use the macro in your custom file:
 replace it by its definition. Another way is to delete the customization
 of org-ditaa-jar-path from the custom file and include it after org gets
 initialized. Both of these are to be considered workaround hacks than
 solutions, but it's hard to propose a solution without knowing exactly
 what the problem is.

 If you still can't make it work, please post the initialization file(s)
 and the two custom files and maybe somebody can figure out something.

 HTH,
 Nick

Hi Nick,

The initialization error was coming when one of my files was being
evaluated.  If I don't require org-latex, the compiled version of org
will initialize.

*** OFF Require org-latex
#+begin_src emacs-lisp :tangle no
  (require 'org-latex)
#+end_src

However, evaluating (require 'org-latex) in *scratch* yields this
familiar error:

Debugger entered--Lisp error: (void-function org-find-library-dir)
  (org-find-library-dir org)
  (file-name-directory (org-find-library-dir org))
  (expand-file-name ../contrib (file-name-directory (org-find-library-dir 
org)))
  (file-name-as-directory (expand-file-name ../contrib (file-name-directory 
(org-find-library-dir org
  (expand-file-name scripts (file-name-as-directory (expand-file-name 
../contrib (file-name-directory (org-find-library-dir org)
  (file-name-as-directory (expand-file-name scripts (file-name-as-directory 
(expand-file-name ../contrib (file-name-directory (org-find-library-dir 
org))
  (expand-file-name ditaa.jar (file-name-as-directory (expand-file-name 
scripts (file-name-as-directory (expand-file-name ../contrib 
(file-name-directory (org-find-library-dir org)))
  eval((expand-file-name ditaa.jar (file-name-as-directory (expand-file-name 
scripts (file-name-as-directory (expand-file-name ../contrib 
(file-name-directory (org-find-library-dir org
  custom-initialize-reset(org-ditaa-jar-path (expand-file-name ditaa.jar 
(file-name-as-directory (expand-file-name scripts (file-name-as-directory 
(expand-file-name ../contrib (file-name-directory (org-find-library-dir 
org
  custom-declare-variable(org-ditaa-jar-path (expand-file-name ditaa.jar 
(file-name-as-directory (expand-file-name 

Re: [O] list-load-path-shadows

2012-09-05 Thread Nick Dokos
Thomas S. Dye t...@tsdye.com wrote:

 The initialization error was coming when one of my files was being
 evaluated.  If I don't require org-latex, the compiled version of org
 will initialize.
 
 *** OFF Require org-latex
 #+begin_src emacs-lisp :tangle no
   (require 'org-latex)
 #+end_src
 

That's not what the previous backtrace showed though: the ditaa path
calculation was directly implicated.

In any case, the above shouldn't happen as long as you have done
``make autoloads'' or equivalent and 

   (require 'org-install)

beforehand, and in fact it does not happen in my case:

  emacs -q -l /path/to/minimal/.emacs

with the following minimal .emacs, starts up without error:

--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)

(require 'org-latex)
--8---cut here---end---8---


OTOH, even if I leave out the (require 'org-install), I get no error
(and that's after removing the org that came with emacs and making sure
that I have compiled everything), so I'm a bit baffled right now.

Nick



Re: [O] conditional export based on babel result

2012-09-05 Thread Eric Schulte
Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Hi all,

 is there a possibility to exclude (or include) parts of the document
 based on some babel source block result?

 First some use case:
 Say, I am doing a statistical test.  And only if the test turns out to be
 significant, a follow-up analysis is carried out.

 Is that possible?

 One thinkable and ugly option would be to allow lisp-generated tags like
 in this dummy example:

 #+begin_org

 * The Test
 #+name: sometest
 #+begin_src R
   test_result - 0.03
 #+end_src


 ** export maybe (if ( (string-to-number (sbe sometest)) 0.05) :export: 
 :noexport:)
 The follow-up

 #+end_org


 Regards,
 Andreas



Hi Andreas,

When doing something this complex you may just want to write your own
function which could say... take a subtree ID and a boolean flag as
arguments and then set the export flag on that subtree as appropriate.

The org-id-goto and org-toggle-comment functions may help in
implementing this function.

Best,

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



Re: [O] [Bug] [babel] calls in :noexport: subtrees evaluated

2012-09-05 Thread Eric Schulte
Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi Nicolas,

 Nicolas Goaziou wrote:
 Sebastien Vauban writes:
 In fact, what you expect is that putting a tag :noexport: on a subtree 
 would
 propagate the option :eval no-export[1] to all code blocks beneath it. 
 That's
 the one which inhibits code block evaluation during export (but allow
 interactive evaluation).

 I really don't have any strong opinion about this, even if, without further
 thinking, I'd favor the same behavior as the one you expected.

 To answer the OP, :noexport: tag is related to export, not to
 src-blocks. There are already other ways to disable code evaluation on
 subtrees. It may be useful, as in your case, to have their behaviour
 linked, but again, sometimes not.

 It's often better to keep separate things, well, separate.

 To see whether there is more weigh toward a solution or the other, I would
 formulate the question this way:

 are there real use-cases where one would want to *not* export a subtree
 (by tagging it), though to *well* evaluate the code blocks it contains?


#+Title: Example

Results in heading [[#first]] are generated by un-exported code blocks in
heading [[#second]].

* first
  :PROPERTIES:
  :CUSTOM_ID: first
  :END:

Things my adviser cares about.

#+RESULTS: foo
: like some result: 3

* second   :noexport:
  :PROPERTIES:
  :CUSTOM_ID: second
  :END:

Things my adviser does not care about, but which I need to keep, like
minutiae of generating the result.

#+Name: bar
- foo
- bar
- baz

#+Name: foo
#+begin_src sh :var bar=bar
  echo like some result: $(echo $bar|wc -w)
#+end_src

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


Re: [O] [babel] subtree evaluation with results outside the subtree

2012-09-05 Thread Eric Schulte
Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Hi all,

 I have the following question.  Consider the following simple org file

 #+begin_org
 * Subtree to eval (with C-c C-v s)
 #+name: some_test
 #+begin_src R
   5+1
 #+end_src


 * another subtree containing the result

 #+results: some_test
 : 6

 #+end_org

 (a)
 When I evaluate the source block interactively (C-c C-c) the existing
 results get updated.

 (b)
 When I evaluate the subtree containing the source block, on the other
 hand, a new result block is created.

 While the behaviour in (b) is understandable, I'd like (b) to behave
 like (a).
 So, is there a way I can evaluate all source blocks in a
 subtree, but have their result blocks updated even if they are not
 located in that subtree?

 Many thanks,
 Andreas



Hi Andreas,

I've just pushed up a patch which widens any buffer restrictions when
inserting results.

Cheers,

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



Re: [O] Mindwave Emacs. EEG reading and Data gathering in an org-mode buffer.

2012-09-05 Thread Kyle Machulis
Something this thread might be interested in. I proposed a project a
couple of years ago called the Quantified Coder, basically looking at
hooking as many biometrics as possible into emacs. There's a small
presentation on it at

http://www.openyou.org/2011/05/13/the-quantified-coder/

Unfortunately it never got off the ground due to lots of reasons, but
I'd still love to get it going sometime. If anyone needs help with
getting devices talking (whether they have open drivers or not :) ),
that's pretty much what I do. :D

I still wonder if org is the right medium for this. Most of the
devices are going to give you a TON of data (the neurosky raw stream
is ~500hz update, emotiv is ~128hz, etc...). Pedometers and blood
pressure monitors that do one-time large dumps might be somewhat more
feasible.

On Wed, Sep 5, 2012 at 6:45 AM,  joa...@verona.se wrote:
 Jonathan Arkell jonath...@criticalmass.com writes:

 Hi Orgers!

 I recently picked up a Neruosky Mindwave, a consumer level EEG device (it
 reads brainwaves).  Unfortunately, the software bundle doesn't include a
 way to log the EEG levels.  Since I am fairly decent at Elisp, I thought I
 would write a little library to interface with the mindwave, and store the
 results.  Naturally I thought of using an org-mode buffer for this.

 So I present, mindwave-emacs:
 https://raw.github.com/jonnay/emagicians-starter-kit/master/extra/mindwave-emacs.org

 Mindwave-emacs.el really is just a low-level interface for emacs.  Inside
 of the org file are 2 examples (actually, fully working programs) that
 show you how to work with it.

   - gather-into-org.el :: allows you to write data into an org-mode file
   - solarized-mind.el  :: uses the eSense Attention and Meditation
 measurements to provide feedback to the user on their brian state.

 I am also working on a lower-level serial/binary connection to retrieve
 data from the mindwave to help facilitate raw EEG logging.

 I don't know if this is going to be useful to anyone, but I figured some
 people may be interested.

 Cool!

 I did some Neurosky Mindset integration for my zen.el package:
 https://github.com/jave/zen-mode

 Maybe I can integrate your package and mine, I'll have a look!



 Cheers!
 __


 Jonathan Arkell
 Sr. Developer
 Inspired By Drum  Bass, Scheme, Kawaii

 p. 403.206.4377
 1011 9th Ave SE, Suite 300

 Calgary, AB, Canada T2G 0Y4

 jonath...@criticalmass.com
 criticalmass.com






 The information contained in this message is confidential. It is intended to 
 be read only by the individual or entity named above or their designee. If 
 the reader of this message is not the intended recipient, you are hereby 
 notified that any distribution of this message, in any form, is strictly 
 prohibited. If you have received this message in error, please immediately 
 notify the sender and delete or destroy any copy of this message.



 --
 Joakim Verona





Re: [O] Mindwave Emacs. EEG reading and Data gathering in an org-mode buffer.

2012-09-05 Thread Nick Dokos
Kyle Machulis k...@nonpolynomial.com wrote:

 I still wonder if org is the right medium for this. Most of the
 devices are going to give you a TON of data (the neurosky raw stream
 is ~500hz update, emotiv is ~128hz, etc...). Pedometers and blood
 pressure monitors that do one-time large dumps might be somewhat more
 feasible.
 

You can use a process that samples for a given amount of time and
produces a summary of the results (or perhaps a table, which then can
be summarized using babel/calc/R/etc.) That might be better suited to org's
MO.

Nick



[O] Filtering Agenda View

2012-09-05 Thread Ken Mankoff
I'd like my agenda to not show waiting items. I'm not sure of the best
way to implement this, but my current solution has been:

  (agenda  (
  (org-agenda-overriding-header 
Scheduled)
  (org-agenda-skip-function 
'(org-agenda-skip-entry-if 'regexpWAITING))
  ))


However, this is too restrictive (too loose a filter). It skips TODO
items that are in state TODO but have recorded, somewhere in their
body, the word WAITING such as

   - State WAITINGfrom TODO   [2012-09-03 Mon 11:45]

I tried setting the regexp to \ WAITING\  but that did not fix it.

How can I improve the regexp, or is there a better way to show TODO
items that are TODO, STARTED, WHATEVER, but not WAITING (or not
WAITING and SOMETHINGELSE).

Thanks,

  -k.



Re: [O] [Bug] [babel] calls in :noexport: subtrees evaluated

2012-09-05 Thread Andreas Leha
Eric Schulte eric.schu...@gmx.com writes:

 Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi Nicolas,

 Nicolas Goaziou wrote:
 Sebastien Vauban writes:
 In fact, what you expect is that putting a tag :noexport: on a subtree 
 would
 propagate the option :eval no-export[1] to all code blocks beneath it. 
 That's
 the one which inhibits code block evaluation during export (but allow
 interactive evaluation).

 I really don't have any strong opinion about this, even if, without further
 thinking, I'd favor the same behavior as the one you expected.

 To answer the OP, :noexport: tag is related to export, not to
 src-blocks. There are already other ways to disable code evaluation on
 subtrees. It may be useful, as in your case, to have their behaviour
 linked, but again, sometimes not.

 It's often better to keep separate things, well, separate.

 To see whether there is more weigh toward a solution or the other, I would
 formulate the question this way:

 are there real use-cases where one would want to *not* export a subtree
 (by tagging it), though to *well* evaluate the code blocks it contains?


 #+Title: Example

 Results in heading [[#first]] are generated by un-exported code blocks in
 heading [[#second]].

 * first
   :PROPERTIES:
   :CUSTOM_ID: first
   :END:

 Things my adviser cares about.

 #+RESULTS: foo
 : like some result: 3

 * second   :noexport:
   :PROPERTIES:
   :CUSTOM_ID: second
   :END:

 Things my adviser does not care about, but which I need to keep, like
 minutiae of generating the result.

 #+Name: bar
 - foo
 - bar
 - baz

 #+Name: foo
 #+begin_src sh :var bar=bar
   echo like some result: $(echo $bar|wc -w)
 #+end_src

I see the use case in the example.  It would have never occurred to me
to write it like that, though.  If I need the results in [[#first]] I'd always
have an appropriate #+call line in [[#first]] as well...

- Andreas




Re: [O] [babel] subtree evaluation with results outside the subtree

2012-09-05 Thread Andreas Leha
Eric Schulte eric.schu...@gmx.com writes:

 Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Hi all,

 I have the following question.  Consider the following simple org file

 #+begin_org
 * Subtree to eval (with C-c C-v s)
 #+name: some_test
 #+begin_src R
   5+1
 #+end_src


 * another subtree containing the result

 #+results: some_test
 : 6

 #+end_org

 (a)
 When I evaluate the source block interactively (C-c C-c) the existing
 results get updated.

 (b)
 When I evaluate the subtree containing the source block, on the other
 hand, a new result block is created.

 While the behaviour in (b) is understandable, I'd like (b) to behave
 like (a).
 So, is there a way I can evaluate all source blocks in a
 subtree, but have their result blocks updated even if they are not
 located in that subtree?

 Many thanks,
 Andreas



 Hi Andreas,

 I've just pushed up a patch which widens any buffer restrictions when
 inserting results.

 Cheers,

Hi Eric,

thanks for the quick patch.  It works nicely for me.

Best,
Andreas




Re: [O] conditional export based on babel result

2012-09-05 Thread Andreas Leha
Eric Schulte eric.schu...@gmx.com writes:

 Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Hi all,

 is there a possibility to exclude (or include) parts of the document
 based on some babel source block result?

 First some use case:
 Say, I am doing a statistical test.  And only if the test turns out to be
 significant, a follow-up analysis is carried out.

 Is that possible?

 One thinkable and ugly option would be to allow lisp-generated tags like
 in this dummy example:

 #+begin_org

 * The Test
 #+name: sometest
 #+begin_src R
   test_result - 0.03
 #+end_src


 ** export maybe (if ( (string-to-number (sbe sometest)) 0.05) :export: 
 :noexport:)
 The follow-up

 #+end_org


 Regards,
 Andreas



 Hi Andreas,

 When doing something this complex you may just want to write your own
 function which could say... take a subtree ID and a boolean flag as
 arguments and then set the export flag on that subtree as appropriate.

 The org-id-goto and org-toggle-comment functions may help in
 implementing this function.

 Best,

Hi Eric,

in my opinion, there are more complex things in org-mode already ;-)

I agree, that such functionality doesn't need to be provided in org
itself.
Thanks a lot for the pointers to possible entry-points for an
implementation.  I hope, I'll find time to to go for it.  Would be good
for my elisp, anyway...

Regards,
Andreas




Re: [O] conditional export based on babel result

2012-09-05 Thread Andreas Leha
t...@tsdye.com (Thomas S. Dye) writes:

 Hi Andreas,

 Perhaps you could generate the conditional parts of the document from
 source code blocks?  Pass in your test result and either export  or
 #+begin_latex ... #+end_latex?


Hi Tom,

thanks for the suggestion.  I have indeed done that already but I will
avoid such things in the future.  It (a) feels wrong and (b) is ugly code
when I write (parts of) my document using print() and cat() functions.

Regards,
Andreas
 


 Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Hi all,

 is there a possibility to exclude (or include) parts of the document
 based on some babel source block result?

 First some use case:
 Say, I am doing a statistical test.  And only if the test turns out to be
 significant, a follow-up analysis is carried out.

 Is that possible?

 One thinkable and ugly option would be to allow lisp-generated tags like
 in this dummy example:

 #+begin_org

 * The Test
 #+name: sometest
 #+begin_src R
   test_result - 0.03
 #+end_src


 ** export maybe (if ( (string-to-number (sbe sometest)) 0.05)
 :export: :noexport:)
 The follow-up

 #+end_org


 Regards,
 Andreas







Re: [O] list-load-path-shadows

2012-09-05 Thread Nick Dokos
Thomas S. Dye t...@tsdye.com wrote:

 Hmm, after putting your minimal .emacs (suitably localized) in ~/temp,
 emacs -Q -l /Users/dk/temp/.emacs launches emacs and opens the minimal
 .emacs file for editing, but apparently doesn't source it.  M-x
 locate-library RET org RET points to the org that ships with my emacs,
 rather than to the one indicated in the minimal .emacs.
 
 Following some advice on EmacsWiki, I have this in .bashrc:
 
 alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs'
 alias emacsclient='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient'
 

What happens if you bypass the alias?

/Applications/Emacs.app/Contents/MacOS/Emacs -Q -l /Users/dk/temp/.emacs

If it still doesn't work, I'll give up: MacOS emacs seems to be a very
different beast from any emacs I know.

Nick




Re: [O] [Bug] [babel] calls in :noexport: subtrees evaluated

2012-09-05 Thread Sebastien Vauban
Hi Eric,

Eric Schulte wrote:
 Sebastien Vauban wxhgmqzgw...@spammotel.com writes:
 Nicolas Goaziou wrote:
 Sebastien Vauban writes:
 In fact, what you expect is that putting a tag :noexport: on a subtree 
 would
 propagate the option :eval no-export[1] to all code blocks beneath it. 
 That's
 the one which inhibits code block evaluation during export (but allow
 interactive evaluation).

 I really don't have any strong opinion about this, even if, without further
 thinking, I'd favor the same behavior as the one you expected.

 To answer the OP, :noexport: tag is related to export, not to
 src-blocks. There are already other ways to disable code evaluation on
 subtrees. It may be useful, as in your case, to have their behaviour
 linked, but again, sometimes not.

 It's often better to keep separate things, well, separate.

 To see whether there is more weigh toward a solution or the other, I would
 formulate the question this way:

 are there real use-cases where one would want to *not* export a subtree
 (by tagging it), though to *well* evaluate the code blocks it contains?

 #+Title: Example

 Results in heading first are generated by un-exported code blocks in
 heading second.

 * first

 Things my adviser cares about.

 #+RESULTS: foo
 : like some result: 3

 * second   :noexport:

 Things my adviser does not care about, but which I need to keep, like
 minutiae of generating the result.

 #+Name: bar
 - foo
 - bar
 - baz

 #+Name: foo
 #+begin_src sh :var bar=bar
   echo like some result: $(echo $bar|wc -w)
 #+end_src

Accepted! ;-)

Best regards,
Seb

PS- Woudn't it be good if we standardize the noexport/no-export thing?
Have both the same (tag and property value)?

-- 
Sebastien Vauban




Re: [O] list-load-path-shadows

2012-09-05 Thread Thomas S. Dye
Nick Dokos nicholas.do...@hp.com writes:

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

 Hmm, after putting your minimal .emacs (suitably localized) in ~/temp,
 emacs -Q -l /Users/dk/temp/.emacs launches emacs and opens the minimal
 .emacs file for editing, but apparently doesn't source it.  M-x
 locate-library RET org RET points to the org that ships with my emacs,
 rather than to the one indicated in the minimal .emacs.
 
 Following some advice on EmacsWiki, I have this in .bashrc:
 
 alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs'
 alias emacsclient='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient'
 

 What happens if you bypass the alias?

 /Applications/Emacs.app/Contents/MacOS/Emacs -Q -l /Users/dk/temp/.emacs

 If it still doesn't work, I'll give up: MacOS emacs seems to be a very
 different beast from any emacs I know.

 Nick

Hi Nick,

Apparently a very different beast :(

Thanks for your help.  I probably wouldn't have thought to wonder
whether my emacs was the culprit.  I guess I'll try a different
installation to see what shakes out.

All the best,
Tom

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



Re: [O] list-load-path-shadows

2012-09-05 Thread Nick Dokos
Thomas S. Dye t...@tsdye.com wrote:

 Nick Dokos nicholas.do...@hp.com writes:
 
  Thomas S. Dye t...@tsdye.com wrote:
 
  Hmm, after putting your minimal .emacs (suitably localized) in ~/temp,
  emacs -Q -l /Users/dk/temp/.emacs launches emacs and opens the minimal
  .emacs file for editing, but apparently doesn't source it.  M-x
  locate-library RET org RET points to the org that ships with my emacs,
  rather than to the one indicated in the minimal .emacs.
  
  Following some advice on EmacsWiki, I have this in .bashrc:
  
  alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs'
  alias emacsclient='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient'
  
 
  What happens if you bypass the alias?
 
  
 
  If it still doesn't work, I'll give up: MacOS emacs seems to be a very
  different beast from any emacs I know.
 
  Nick
 
 Hi Nick,
 
 Apparently a very different beast :(
 
One more attempt: do long options work?

/Applications/Emacs.app/Contents/MacOS/Emacs --quick 
--load=/Users/dk/temp/.emacs

Nick

 Thanks for your help.  I probably wouldn't have thought to wonder
 whether my emacs was the culprit.  I guess I'll try a different
 installation to see what shakes out.
 




Re: [O] list-load-path-shadows

2012-09-05 Thread Thomas S. Dye
Nick Dokos nicholas.do...@hp.com writes:

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

 Nick Dokos nicholas.do...@hp.com writes:
 
  Thomas S. Dye t...@tsdye.com wrote:
 
  Hmm, after putting your minimal .emacs (suitably localized) in ~/temp,
  emacs -Q -l /Users/dk/temp/.emacs launches emacs and opens the minimal
  .emacs file for editing, but apparently doesn't source it.  M-x
  locate-library RET org RET points to the org that ships with my emacs,
  rather than to the one indicated in the minimal .emacs.
  
  Following some advice on EmacsWiki, I have this in .bashrc:
  
  alias emacs='/Applications/Emacs.app/Contents/MacOS/Emacs'
  alias emacsclient='/Applications/Emacs.app/Contents/MacOS/bin/emacsclient'
  
 
  What happens if you bypass the alias?
 
  
 
  If it still doesn't work, I'll give up: MacOS emacs seems to be a very
  different beast from any emacs I know.
 
  Nick
 
 Hi Nick,
 
 Apparently a very different beast :(
 
 One more attempt: do long options work?

 /Applications/Emacs.app/Contents/MacOS/Emacs --quick
 --load=/Users/dk/temp/.emacs

Hi Nick,

Yes, long options do work, even with the alias.

emacs starts up, skips my initialization files, and loads the minimal
.emacs.  M-x locate-library RET org-latex RET points to the org
identified in the minimal .emacs.

I guess this means that all is well on the org end :)  And that my old
initialization files didn't make the upgrade to emacs 24 and the
emacs 24 starter kit :(

Thanks for all your help.

Tom

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



[O] Debugger entered--Lisp error: (invalid-read-syntax #)

2012-09-05 Thread Sebastien Vauban
Hello,

When refiling items (or capturing), I now have (for a couple of days):

--8---cut here---start-8---
Debugger entered--Lisp error: (invalid-read-syntax #)
  read(#buffer bookmarks.txt)
  bookmark-alist-from-buffer()
  bookmark-load(~/.emacs.d/bookmarks.txt t t)
  bookmark-maybe-load-default-file()
  bookmark-set(org-refile-last-stored)
  (save-restriction (widen) (if pos (progn (goto-char pos) (looking-at 
org-outline-regexp) (setq level (org-get-valid-level (funcall outline-level) 
1)) (goto-char (if reversed (or (outline-next-heading) (point-max)) (or 
(save-excursion (org-get-next-sibling)) (org-end-of-subtree t t) 
(point-max) (setq level 1) (if (not reversed) (goto-char (point-max)) 
(goto-char (point-min)) (or (outline-next-heading) (goto-char (point-max) 
(if (not (bolp)) (newline)) (org-paste-subtree level) (when org-log-refile 
(org-add-log-setup (quote refile) nil nil (quote findpos) org-log-refile) 
(unless (eq org-log-refile (quote note)) (save-excursion (org-add-log-note 
(and org-auto-align-tags (let ((org-loop-over-headlines-in-active-region nil)) 
(org-set-tags nil t))) (bookmark-set org-refile-last-stored) (when 
(org-bound-and-true-p org-refile-for-capture) (bookmark-set 
org-capture-last-stored-marker) (move-marker org-capture-last-stored-marker 
(point))) (if (fboundp (quote deactivate-mark)) (deactivate-mark)) (run-hooks 
(quote org-after-refile-insert-hook)))
  (save-excursion (save-restriction (widen) (if pos (progn (goto-char pos) 
(looking-at org-outline-regexp) (setq level (org-get-valid-level (funcall 
outline-level) 1)) (goto-char (if reversed (or (outline-next-heading) 
(point-max)) (or (save-excursion ...) (org-end-of-subtree t t) (point-max) 
(setq level 1) (if (not reversed) (goto-char (point-max)) (goto-char 
(point-min)) (or (outline-next-heading) (goto-char (point-max) (if (not 
(bolp)) (newline)) (org-paste-subtree level) (when org-log-refile 
(org-add-log-setup (quote refile) nil nil (quote findpos) org-log-refile) 
(unless (eq org-log-refile (quote note)) (save-excursion (org-add-log-note 
(and org-auto-align-tags (let ((org-loop-over-headlines-in-active-region nil)) 
(org-set-tags nil t))) (bookmark-set org-refile-last-stored) (when 
(org-bound-and-true-p org-refile-for-capture) (bookmark-set 
org-capture-last-stored-marker) (move-marker org-capture-last-stored-marker 
(point))) (if (fboundp (quote deactivate-mark)) (deactivate-mark)) (run-hooks 
(quote org-after-refile-insert-hook
  (save-current-buffer (set-buffer (setq nbuf (or (find-buffer-visiting file) 
(find-file-noselect file (setq reversed (org-notes-order-reversed-p)) 
(save-excursion (save-restriction (widen) (if pos (progn (goto-char pos) 
(looking-at org-outline-regexp) (setq level (org-get-valid-level (funcall 
outline-level) 1)) (goto-char (if reversed (or ... ...) (or ... ... ... 
(setq level 1) (if (not reversed) (goto-char (point-max)) (goto-char 
(point-min)) (or (outline-next-heading) (goto-char (point-max) (if (not 
(bolp)) (newline)) (org-paste-subtree level) (when org-log-refile 
(org-add-log-setup (quote refile) nil nil (quote findpos) org-log-refile) 
(unless (eq org-log-refile (quote note)) (save-excursion (org-add-log-note 
(and org-auto-align-tags (let ((org-loop-over-headlines-in-active-region nil)) 
(org-set-tags nil t))) (bookmark-set org-refile-last-stored) (when 
(org-bound-and-true-p org-refile-for-capture) (bookmark-set 
org-capture-last-stored-marker) (move-marker org-capture-last-stored-marker 
(point))) (if (fboundp (quote deactivate-mark)) (deactivate-mark)) (run-hooks 
(quote org-after-refile-insert-hook)
  (with-current-buffer (setq nbuf (or (find-buffer-visiting file) 
(find-file-noselect file))) (setq reversed (org-notes-order-reversed-p)) 
(save-excursion (save-restriction (widen) (if pos (progn (goto-char pos) 
(looking-at org-outline-regexp) (setq level (org-get-valid-level (funcall 
outline-level) 1)) (goto-char (if reversed (or ... ...) (or ... ... ... 
(setq level 1) (if (not reversed) (goto-char (point-max)) (goto-char 
(point-min)) (or (outline-next-heading) (goto-char (point-max) (if (not 
(bolp)) (newline)) (org-paste-subtree level) (when org-log-refile 
(org-add-log-setup (quote refile) nil nil (quote findpos) org-log-refile) 
(unless (eq org-log-refile (quote note)) (save-excursion (org-add-log-note 
(and org-auto-align-tags (let ((org-loop-over-headlines-in-active-region nil)) 
(org-set-tags nil t))) (bookmark-set org-refile-last-stored) (when 
(org-bound-and-true-p org-refile-for-capture) (bookmark-set 
org-capture-last-stored-marker) (move-marker org-capture-last-stored-marker 
(point))) (if (fboundp (quote deactivate-mark)) (deactivate-mark)) (run-hooks 
(quote org-after-refile-insert-hook)
  (if goto (progn (org-pop-to-buffer-same-window nbuf) (goto-char pos) 
(org-show-context (quote org-goto))) (if regionp (progn (org-kill-new 
(buffer-substring 

[O] org-agenda-finalize-hook

2012-09-05 Thread Thomas S. Dye
Aloha all,

My old code for org-finalize-agenda-hook to keep the mouse cursor from
highlighting agenda lines doesn't work after switching over to
org-agenda-finalize-hook. I have:

*** ON Mouse cursor doesn't highlight agenda lines
#+begin_src emacs-lisp :tangle yes
  (add-hook 'org-agenda-finalize-hook
(lambda () (remove-text-properties
   (point-min) (point-max) '(mouse-face t
#+end_src

Should this work anymore?

All the best,
Tom 
-- 
T.S. Dye  Colleagues, Archaeologists
735 Bishop St, Suite 315, Honolulu, HI 96813
Tel: 808-529-0866, Fax: 808-529-0884
http://www.tsdye.com



[O] org-spreadsheet: formatting chops off units

2012-09-05 Thread Kyle Andrews
Hello everyone,

I want to use an org-spreadsheet to perform unit conversions for me.

| Mass (g) | Mass (lb) |
|--+---|
| 300 g| 0.66138679 lb |
| 23 kg| 50.706320 lb  |
| 50 Mg| 110231.13 lb  |
#+TBLFM: $2=uconvert($1, lb)


I made the table above, but can't figure out how to format the output. I
tried using the ;%.2f notation shown in the manual, but it cuts the
units off for some reason.

Here is what org-table displays with ;%.2f appended onto my table
formula:

| Mass (g) | Mass (lb) |
|--+---|
| 300 g| 0.66  |
| 23 kg| 50.71 |
| 50 Mg| 110231.13 |
#+TBLFM: $2=uconvert($1, lb);%.2f


Here is what I wish appending ;%.2f would cause org-table to display:


| Mass (g) | Mass (lb) |
|--+---|
| 300 g| 0.66 lb   |
| 23 kg| 50.71 lb  |
| 50 Mg| 110231.13 lb  |
#+TBLFM: $2=uconvert($1, lb);%.2f


If you type in '0.66138679 lb into calc directly, and press d f 2, calc
displays 0.66 lb as desired. Is there any reason for the %.2f notation
chops off the units? Is there some better way to accomplish what I
want?

Thanks!


Note: my spreadsheet uses the wrapper function below to convert units with calc.

#+begin_src emacs-lisp
(defmath uconvert (expression new-units)
(math-convert-units expression new-units)))
#+end_src

--
Kyle C. Andrews
kyle.c.andr...@gmail.com



Re: [O] org-agenda-finalize-hook

2012-09-05 Thread Nick Dokos
Thomas S. Dye t...@tsdye.com wrote:

 Aloha all,
 
 My old code for org-finalize-agenda-hook to keep the mouse cursor from
 highlighting agenda lines doesn't work after switching over to
 org-agenda-finalize-hook. I have:
 
 *** ON Mouse cursor doesn't highlight agenda lines
 #+begin_src emacs-lisp :tangle yes
   (add-hook 'org-agenda-finalize-hook
 (lambda () (remove-text-properties
(point-min) (point-max) '(mouse-face t
 #+end_src
 
 Should this work anymore?
 

Works for me: no highlighting when moving the mouse around.

Nick

GNU Emacs 24.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.4) of 
2012-07-28
Org-mode version 7.9.1 (release_7.9.1-147-g777276.dirty @ 
/home/nick/elisp/org-mode/lisp/)



Re: [O] [OT] Mindwave Emacs. EEG reading and Data gathering in an org-mode buffer.

2012-09-05 Thread brian powell
I used to do brainwave research (using eeg's): Maybe make some software
(R?) to do some FFT (Fast Fourier Transforms) calcs on the brainwaves and
compute the power wave and have it report percentages or counts of
AlphaWaves, BetaWaves, ThetaWaves, etc?

Thanks Jonathan and Joakim (zen-mode) for the software!

On Wed, Sep 5, 2012 at 9:45 AM, joa...@verona.se wrote:

 Jonathan Arkell jonath...@criticalmass.com writes:

  Hi Orgers!
 
  I recently picked up a Neruosky Mindwave, a consumer level EEG device (it
  reads brainwaves).  Unfortunately, the software bundle doesn't include a
  way to log the EEG levels.  Since I am fairly decent at Elisp, I thought
 I
  would write a little library to interface with the mindwave, and store
 the
  results.  Naturally I thought of using an org-mode buffer for this.
 
  So I present, mindwave-emacs:
 
 https://raw.github.com/jonnay/emagicians-starter-kit/master/extra/mindwave-emacs.org
 
  Mindwave-emacs.el really is just a low-level interface for emacs.  Inside
  of the org file are 2 examples (actually, fully working programs) that
  show you how to work with it.
 
- gather-into-org.el :: allows you to write data into an org-mode file
- solarized-mind.el  :: uses the eSense Attention and Meditation
  measurements to provide feedback to the user on their brian state.
 
  I am also working on a lower-level serial/binary connection to retrieve
  data from the mindwave to help facilitate raw EEG logging.
 
  I don't know if this is going to be useful to anyone, but I figured some
  people may be interested.

 Cool!

 I did some Neurosky Mindset integration for my zen.el package:
 https://github.com/jave/zen-mode

 Maybe I can integrate your package and mine, I'll have a look!


 
  Cheers!
  __
 
 
  Jonathan Arkell
  Sr. Developer
  Inspired By Drum  Bass, Scheme, Kawaii
 
  p. 403.206.4377
  1011 9th Ave SE, Suite 300
 
  Calgary, AB, Canada T2G 0Y4
 
  jonath...@criticalmass.com
  criticalmass.com
 
 
 
 
 
 
  The information contained in this message is confidential. It is
 intended to be read only by the individual or entity named above or their
 designee. If the reader of this message is not the intended recipient, you
 are hereby notified that any distribution of this message, in any form, is
 strictly prohibited. If you have received this message in error, please
 immediately notify the sender and delete or destroy any copy of this
 message.
 
 

 --
 Joakim Verona





Re: [O] Mindwave Emacs. EEG reading and Data gathering in an org-mode buffer.

2012-09-05 Thread Jonathan Arkell
Hey Kyle

Right now I am working with the course-grained (1/sec) data sets from the
Mindwave.  They provide their eSense(tm) measurements as well as the
eegPower, which seems to give a general overview of the different
brainwave levels in relation to each-other (but not much else).  This
actually works out really well, because you can dump the data to an org
table, and then as Nick said, use babel/calc/R to dow hat you need to do
with it.  There is a function inside of the data-gathering package that
handles that pretty nicely (albeit slowly) with calc.

Of course, this is all very course grained, but it is working nicely for
my current experiments!

My intention is to eventually connect to the lower level serial Neurosky
interface for the raw EEG wave data with emacs, and send the both the EEG
data and a timestamp straight to a file.  This might be a blind alley
however.

The idea of quantified coding sounds awesome!  The question is, how does
one marry up a line of code, with a particular neurological state,
especially since a given line of code isn't a static entity that one can
easily refer to?


__


Jonathan Arkell
Sr. Developer
Inspired By Drum  Bass, Scheme, Kawaii

p. 403.206.4377
1011 9th Ave SE, Suite 300

Calgary, AB, Canada T2G 0Y4

jonath...@criticalmass.com
criticalmass.com









On 5/09/12 12:30 PM, Kyle Machulis k...@nonpolynomial.com wrote:

Something this thread might be interested in. I proposed a project a
couple of years ago called the Quantified Coder, basically looking at
hooking as many biometrics as possible into emacs. There's a small
presentation on it at

http://www.openyou.org/2011/05/13/the-quantified-coder/

Unfortunately it never got off the ground due to lots of reasons, but
I'd still love to get it going sometime. If anyone needs help with
getting devices talking (whether they have open drivers or not :) ),
that's pretty much what I do. :D

I still wonder if org is the right medium for this. Most of the
devices are going to give you a TON of data (the neurosky raw stream
is ~500hz update, emotiv is ~128hz, etc...). Pedometers and blood
pressure monitors that do one-time large dumps might be somewhat more
feasible.


The information contained in this message is confidential. It is intended to be 
read only by the individual or entity named above or their designee. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any distribution of this message, in any form, is strictly prohibited. If 
you have received this message in error, please immediately notify the sender 
and delete or destroy any copy of this message.



[O] org-refile failing

2012-09-05 Thread Marcelo de Moraes Serpa
Hi guys,

When trying to run org-refile on an org entry, I'm getting the following
error:

while: Invalid regexp: Invalid content of \\{\\}

Any ideas?

Cheers,

- Marcelo.


[O] [OT] evil-leader Evil mode extension

2012-09-05 Thread Marcelo de Moraes Serpa
Hey guys,

Just wanted to share this little gem I've found. Some of you might already
be using Evil mode for Emacs, it's great. But if you want to improve your
experience, try the evil-leader extension -- it allows you to setup
shortcuts by emulating Vim's mapleader. So you can have leaderkey
shortcuts just like you would in Vim (i.e ,b ,e etc). Pretty neat!

https://github.com/aantn/evil-leader

Cheers,

- Marcelo


Re: [O] org-refile failing

2012-09-05 Thread Bastien
Hi Marcelo,

Marcelo de Moraes Serpa celose...@gmail.com writes:

 When trying to run org-refile on an org entry, I'm getting the
 following error:

 while: Invalid regexp: Invalid content of \\{\\}

Can you give us your Org version, your Emacs version and a recipe
to reproduce this problem?  Refiling works fine here.

Thanks,

-- 
 Bastien



[O] make org-agenda-tree-to-indirect-buffer use new frame only

2012-09-05 Thread Viktor Rosenfeld
Hi,

I've recently switched from Aquamacs to Emacs.app and noticed a
different behavior of C-c C-x b in the agenda. I have the following in
my Emacs settings:

(setq org-indirect-buffer-display 'new-frame)

If I open in indirect buffer from the agenda, it creates a new frame,
but also splits the agenda frame and opens the task in another window.
How can I stop it from doing the latter?

Thanks,
Viktor



Re: [O] org-refile failing

2012-09-05 Thread Marcelo de Moraes Serpa
Sorry Bastien, should have included it before.

Emacs:
GNU Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of
2012-01-29 on bob.porkrind.org

Org:
Org-mode version 7.9.1 (release_7.9.1-145-g0a6165-git @ mixed installation!
/Applications/Emacs.app/Contents/Resources/lisp/org/ and
/Users/fullofcaffeine/.emacs.d/vendor/org/lisp/)

To reproduce it, I just move the cursor to the beginning of  a headline
like this:

* TODO Do something

And then M-x org-refile

Cheers,

- Marcelo.



On Wed, Sep 5, 2012 at 6:43 PM, Bastien b...@altern.org wrote:

 Hi Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  When trying to run org-refile on an org entry, I'm getting the
  following error:
 
  while: Invalid regexp: Invalid content of \\{\\}

 Can you give us your Org version, your Emacs version and a recipe
 to reproduce this problem?  Refiling works fine here.

 Thanks,

 --
  Bastien



Re: [O] org-refile failing

2012-09-05 Thread Marcelo de Moraes Serpa
Here's the backtrace (debug-on-error set to t):

debugger entered--Lisp error: (invalid-regexp Invalid content of \\{\\})
  re-search-forward(^\\*\\{1,0\\}[ ] nil t)
  (while (re-search-forward descre nil t) (goto-char (setq pos0 ...))
(catch (quote next) (when org-refile-target-verify-function ...) (when ...
... ... ...)) (when (= ... pos0) (goto-char ...)))
  (save-restriction (widen) (goto-char (point-min)) (while
(re-search-forward descre nil t) (goto-char ...) (catch ... ... ...) (when
... ...)))
  (save-excursion (save-restriction (widen) (goto-char ...) (while ... ...
... ...)))
  (progn (if (bufferp f) (setq f ...)) (setq f (and f ...)) (if (eq
org-refile-use-outline-path ...) (push ... tgs)) (save-excursion
(save-restriction ... ... ...)))
  (or (setq tgs (org-refile-cache-get ... descre)) (progn (if ... ...)
(setq f ...) (if ... ...) (save-excursion ...)))
  (save-current-buffer (set-buffer (if ... f ...)) (or (setq tgs ...)
(progn ... ... ... ...)) (when org-refile-use-cache (org-refile-cache-put
tgs ... descre)) (setq targets (append tgs targets)))
  (with-current-buffer (if (bufferp f) f (org-get-agenda-file-buffer f))
(or (setq tgs ...) (progn ... ... ... ...)) (when org-refile-use-cache
(org-refile-cache-put tgs ... descre)) (setq targets (append tgs targets)))
  (while (setq f (pop files)) (with-current-buffer (if ... f ...) (or ...
...) (when org-refile-use-cache ...) (setq targets ...)))
  (while (setq entry (pop entries)) (setq files (car entry) desc (cdr
entry)) (setq fast-path-p nil) (cond (... ...) (... ...) (... ...) (...
...)) (if (stringp files) (setq files ...)) (cond (... ...) (... ...) (...
...) (... ...) (... ... ...) (t ...)) (while (setq f ...)
(with-current-buffer ... ... ... ...)))
  (save-current-buffer (set-buffer (or default-buffer ...)) (while (setq
entry ...) (setq files ... desc ...) (setq fast-path-p nil) (cond ... ...
... ...) (if ... ...) (cond ... ... ... ... ... ...) (while ... ...)))
  (with-current-buffer (or default-buffer (current-buffer)) (while (setq
entry ...) (setq files ... desc ...) (setq fast-path-p nil) (cond ... ...
... ...) (if ... ...) (cond ... ... ... ... ... ...) (while ... ...)))
  (let ((case-fold-search nil) (entries ...) targets tgs txt re files f
desc descre fast-path-p level pos0) (message Getting targets...)
(with-current-buffer (or default-buffer ...) (while ... ... ... ... ... ...
...)) (message Getting targets...done) (nreverse targets))
  org-refile-get-targets(nil (#(OneLogin MX Office 0 8 (fontified t
org-category gtd face org-level-1 org-no-flyspell t) 8 18 (fontified t
org-category gtd face org-level-1)) #(A/C Quote + Room isolation quote
0 32 (fontified t org-category gtd face org-level-2)) #(Write to Thomas
with quote + isolation quote, explaining the situation 0 70 (fontified t
org-category gtd face org-level-3)) #(Headsets 0 8 (fontified t
org-category gtd face org-level-2)) #(Alartm System quote 0 19
(fontified t org-category gtd face org-level-2
  (setq org-refile-target-table (org-refile-get-targets default-buffer
excluded-entries))
  (let ((org-refile-targets org-refile-targets)
(org-refile-use-outline-path org-refile-use-outline-path) excluded-entries)
(when (and ... ... ...) (org-map-tree ...)) (setq org-refile-target-table
(org-refile-get-targets default-buffer excluded-entries)))
  org-refile-get-location(Refile subtree \OneLogin MX Office\ to nil
nil nil)
  (save-excursion (unless goto (org-back-to-heading t) (setq heading-text
...)) (org-refile-get-location (cond ... ... ...) default-buffer (and ...
org-refile-allow-creating-parent-nodes) goto))
  (let (heading-text) (save-excursion (unless goto ... ...)
(org-refile-get-location ... default-buffer ... goto)))
  (or rfloc (let (heading-text) (save-excursion ... ...)))
  (setq it (or rfloc (let ... ...)))
  (or (and (equal goto 2) org-clock-hd-marker (marker-buffer
org-clock-hd-marker) (prog1 ... ...)) (setq it (or rfloc ...)))
  (if (or (and ... org-clock-hd-marker ... ...) (setq it ...)) (progn (setq
file ... re ... pos ...) (if ... ...) (setq nbuf ...) (if goto ... ... ...
... ... ... ...)))
  (when (or (and ... org-clock-hd-marker ... ...) (setq it ...)) (setq file
(nth 1 it) re (nth 2 it) pos (nth 3 it)) (if (and ... pos ... ...) (error
Cannot refile to position inside the tree or region)) (setq nbuf (or ...
...)) (if goto (progn ... ... ...) (if regionp ... ...)
(with-current-buffer ... ... ...) (if regionp ... ...) (when ... ...) (setq
org-markers-to-move nil) (message Refiled to \%s\ in file %s ... file)))
  (if (equal goto (quote ...)) (org-refile-goto-last-stored) (when (or ...
...) (setq file ... re ... pos ...) (if ... ...) (setq nbuf ...) (if goto
... ... ... ... ... ... ...)))
  (let* ((cbuf ...) (regionp ...) (region-start ...) (region-end ...)
(region-length ...) (filename ...) pos it nbuf file re level reversed)
(setq last-command nil) (when regionp (goto-char region-start) (or ... ...)
(setq region-start ...) (unless ... ...)) (if (equal goto 

Re: [O] org-refile failing

2012-09-05 Thread Nick Dokos
Bastien b...@altern.org wrote:

 Hi Marcelo,
 
 Marcelo de Moraes Serpa celose...@gmail.com writes:
 
  When trying to run org-refile on an org entry, I'm getting the
  following error:
 
  while: Invalid regexp: Invalid content of \\{\\}
 
 Can you give us your Org version, your Emacs version and a recipe
 to reproduce this problem?  Refiling works fine here.
 

... and a backtrace, please.

Didn't somebody else run into a refiling problem earlier today? I was
skimming like crazy at the time, so I didn't stop to look at it and I
don't remember anything else other than org-refile :-(

Nick




Re: [O] org-refile failing

2012-09-05 Thread Nick Dokos
Marcelo de Moraes Serpa celose...@gmail.com wrote:

 Here's the backtrace (debug-on-error set to t):
 

Thanks for that! I sent mail requesting the same just a second
before I got your mail, so I was wondering if the speed of light limit
had been violated, but I guess not :-)

Looks like the calculation of descre in org-refile-get-location is
wrong:

,
| (setq descre (concat ^\\*\\{1, (number-to-string
|   (if org-odd-levels-only
|   (1- (* 2 (cdr desc)))
| (cdr desc)))
|  \\}[ \t])))
`

The subexpression gives 0 and re-search-forward does not like things
like ^\\*\\{1,0\\}[ ]. But why that is is not clear to me: it depends
on what (cdr desc) is (presumably 0 in order to get the result you get -
and org-odd-levels-only is false, correct?).  In turn, that comes from
org-refile-targets. Have you customized org-refile-targets by any
chance? If so, please send the value.

Nick



[O] Limiting Invoice Block

2012-09-05 Thread Esben Stien
Playing around with org-invoice, but can't figure out how to limit the
block to subtree.

Why is this not legal as it is with other blocks?:

#+BEGIN: invoice :maxlevel 2 :scope subtree :link t :tstart 2012-09-03
 Thu 10:00 :tend 2012-09-06 Thu 12:00

-- 
Esben Stien is b0ef@e s  a 
 http://www. s tn m
  irc://irc.  b  -  i  .   e/%23contact
   sip:b0ef@   e e 
   jid:b0ef@n n



[O] dnd-protocol-alist and org

2012-09-05 Thread Marcelo de Moraes Serpa
Hi list,

I've been trying to get dnd-protocol-alist to work on Emacs 23, OSX (GNU
Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-01-29
on bob.porkrind.org) but couldn't so far. Has anyone got it to work with
Cocoa Emacs?

I think this could be used to implement some real cool features, such as
dragging-and-dropping-auto-archiving of images and other file types. This
way, one could, for example, drag an image into an org buffer, and it would
be copied to a pre-configured location and displayed auto-magically. What
do you think?

Cheers,

Marcelo.


Re: [O] org-refile failing

2012-09-05 Thread Marcelo de Moraes Serpa
Hi Nick, thanks for the reply.

I don't remember customizing the org-refile-targets var. When I evaluate
it, I get the following:

((org-agenda-files :maxlevel . 0))

- Marcelo.

On Wed, Sep 5, 2012 at 7:57 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Marcelo de Moraes Serpa celose...@gmail.com wrote:

  Here's the backtrace (debug-on-error set to t):
 

 Thanks for that! I sent mail requesting the same just a second
 before I got your mail, so I was wondering if the speed of light limit
 had been violated, but I guess not :-)

 Looks like the calculation of descre in org-refile-get-location is
 wrong:

 ,
 | (setq descre (concat ^\\*\\{1, (number-to-string
 |   (if org-odd-levels-only
 |   (1- (* 2 (cdr desc)))
 | (cdr desc)))
 |  \\}[ \t])))
 `

 The subexpression gives 0 and re-search-forward does not like things
 like ^\\*\\{1,0\\}[ ]. But why that is is not clear to me: it depends
 on what (cdr desc) is (presumably 0 in order to get the result you get -
 and org-odd-levels-only is false, correct?).  In turn, that comes from
 org-refile-targets. Have you customized org-refile-targets by any
 chance? If so, please send the value.

 Nick



Re: [O] dnd-protocol-alist and org

2012-09-05 Thread Marcelo de Moraes Serpa
In addition to that: An even more awesome feature would be to hook into the
pasting process in emacs, get that data, save that to a pre-defined
location, and link it in the org buffer. Imagine copying an image from
anywhere and being able to insert it in the org buffer with just a paste
command! :)

On Wed, Sep 5, 2012 at 8:31 PM, Marcelo de Moraes Serpa celose...@gmail.com
 wrote:

 Hi list,

 I've been trying to get dnd-protocol-alist to work on Emacs 23, OSX (GNU
 Emacs 23.4.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-01-29
 on bob.porkrind.org) but couldn't so far. Has anyone got it to work with
 Cocoa Emacs?

 I think this could be used to implement some real cool features, such as
 dragging-and-dropping-auto-archiving of images and other file types. This
 way, one could, for example, drag an image into an org buffer, and it would
 be copied to a pre-configured location and displayed auto-magically. What
 do you think?

 Cheers,

 Marcelo.






Re: [O] Limiting Invoice Block

2012-09-05 Thread Nick Dokos
Esben Stien b...@esben-stien.name wrote:

 Playing around with org-invoice, but can't figure out how to limit the
 block to subtree.
 
 Why is this not legal as it is with other blocks?:
 
 #+BEGIN: invoice :maxlevel 2 :scope subtree :link t :tstart 2012-09-03
  Thu 10:00 :tend 2012-09-06 Thu 12:00
 

Check the documentation of org-dblock-write:invoice. It says:

,
| ...
| :scope Allows you to override the `org-invoice-default-level'
|variable.  The only supported values right now are ones
|that look like :tree1, :tree2, etc.
| ...
`

I'd also suggest doing

C-h v org-invoice-default-level RET
C-h f org-invoice-report RET

if you haven't done so already.

AFAICT, that's all the documentation there is.

Nick



Re: [O] org-refile failing

2012-09-05 Thread Nick Dokos
Marcelo de Moraes Serpa celose...@gmail.com wrote:

 Hi Nick, thanks for the reply.
 
 I don't remember customizing the org-refile-targets var. When I evaluate it, 
 I get the following:
 
 ((org-agenda-files :maxlevel . 0))
 

You must have customized it since the original value is nil. I have
customized it too and C-h v on it gives me:

,
| org-refile-targets is a variable defined in `org.el'.
| Its value is ((org-agenda-files :level . 1))
| Original value was nil
`

The difference probably accounts for the error you are getting (even
though you are setting maxlevel and I'm setting level), so try changing
the 0 to 1 or larger. Note that if you set maxlevel to 1 that means that
only top-level headlines are eligible as refiling targets.

Nick



Re: [O] org-spreadsheet: formatting chops off units

2012-09-05 Thread Nick Dokos
Kyle Andrews kyle.c.andr...@gmail.com wrote:

 Hello everyone,
 
 I want to use an org-spreadsheet to perform unit conversions for me.
 
 | Mass (g) | Mass (lb) |
 |--+---|
 | 300 g| 0.66138679 lb |
 | 23 kg| 50.706320 lb  |
 | 50 Mg| 110231.13 lb  |
 #+TBLFM: $2=uconvert($1, lb)
 
 
 I made the table above, but can't figure out how to format the output. I
 tried using the ;%.2f notation shown in the manual, but it cuts the
 units off for some reason.
 
 Here is what org-table displays with ;%.2f appended onto my table
 formula:
 
 | Mass (g) | Mass (lb) |
 |--+---|
 | 300 g| 0.66  |
 | 23 kg| 50.71 |
 | 50 Mg| 110231.13 |
 #+TBLFM: $2=uconvert($1, lb);%.2f
 
 
 Here is what I wish appending ;%.2f would cause org-table to display:
 
 
 | Mass (g) | Mass (lb) |
 |--+---|
 | 300 g| 0.66 lb   |
 | 23 kg| 50.71 lb  |
 | 50 Mg| 110231.13 lb  |
 #+TBLFM: $2=uconvert($1, lb);%.2f
 
 
 If you type in '0.66138679 lb into calc directly, and press d f 2, calc
 displays 0.66 lb as desired. Is there any reason for the %.2f notation
 chops off the units? Is there some better way to accomplish what I
 want?
 
 Thanks!
 
 
 Note: my spreadsheet uses the wrapper function below to convert units with 
 calc.
 
 #+begin_src emacs-lisp
 (defmath uconvert (expression new-units)
 (math-convert-units expression new-units)))
 #+end_src
 

There might be a better, more local, way of doing it, so take the following as 
an
existence proof: if you customize the variable org-calc-default-modes and change
the calc-float-format to (fix 2), the table will recalculate to your 
expectations.

I don't know how to stitch together the better solution however, so I leave that
as an exercise for you :-)

Nick





Re: [O] org-spreadsheet: formatting chops off units

2012-09-05 Thread Michael Brand
Hi Kyle

On Wed, Sep 5, 2012 at 11:46 PM, Kyle Andrews kyle.c.andr...@gmail.com wrote:
 If you type in '0.66138679 lb into calc directly, and press d f 2, calc
 displays 0.66 lb as desired. Is there any reason for the %.2f notation
 chops off the units? Is there some better way to accomplish what I
 want?

Org spreadsheet gives access to the format of calc, use
#+TBLFM: $2=uconvert($1, lb);f-2
or less recommended the format of Org spreadsheet with a text
#+TBLFM: $2=uconvert($1, lb);%.2f lb

Michael




Re: [O] Alternate format for datetree

2012-09-05 Thread c b
Hi John and Nick,

Thank a lot for your suggestions. I finally got it working. It took a while
to figure out that the back-tick is different from the quote.
I am an elisp newbie. Is there an easy explanation of why we need a
back-tick vs. quote?

Also, I found that while the template works, it creates a new tree every
time I capture an entry as follows

* 09
** 05
*** 2012 - Wednesday
 [2012-09-05 Wed 22:31] My first working month tree note

* 09
** 05
*** 2012 - Wednesday
 [2012-09-05 Wed 22:31] My second month tree note

#1. Is there any way to consolidate this like the following?

* 09
** 05
*** 2012 - Wednesday
 [2012-09-05 Wed 22:31] My first working month tree note
 [2012-09-05 Wed 22:3*5*] My first working month tree note

#2 The time always is reported as 22:31 (I guess that's the time I launched
emacs). Is there a way for the time stamp to be corrected based on the
current time? I generally leave emacs running for days together, so the
time it's launched doesn't really work for me.

Once again, thanks a lot for your help!

-c. b.

On Sun, Aug 26, 2012 at 11:08 PM, John Hendy jw.he...@gmail.com wrote:

 On Sun, Aug 26, 2012 at 11:04 PM, Nick Dokos nicholas.do...@hp.com
 wrote:
  John Hendy jw.he...@gmail.com 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.