Re: [O] how to insert a source template

2011-04-12 Thread Jambunathan K
Piter_ x.pi...@gmail.com writes:

 Hi all.
 I have no big knowlege of elisp. But I hope some one already done this.
 I want to make a key binding which would insert a source code template
 like this (I've got tired to type it every time):

 #+source:
 #+begin_src

 #+end_src

http://orgmode.org/manual/Easy-Templates.html#Easy-Templates
Also look at org-structure-template-alist.


 Thanks.
 Petro.



-- 



Re: [O] how to insert a source template

2011-04-12 Thread Eric Schulte
Hi Petro,

You can use yasnippet to expand keywords into templates (like code
blocks) with TAB, see the following for instructions on using yasnippet
with Org-mode [1].

Alternately you could add the following elisp code to your config, and
bind the `org-insert-block' function to a comfortable key combination.

#+begin_src emacs-lisp
  (defun org-insert-block (lang)
(interactive Mlanguage: )
(insert (format #+begin_src %s\n  \n#+end_src lang))
(goto-char (- (point) 10)))
#+end_src

Cheers -- Eric

Piter_ x.pi...@gmail.com writes:

 Hi all.
 I have no big knowlege of elisp. But I hope some one already done this.
 I want to make a key binding which would insert a source code template
 like this (I've got tired to type it every time):

 #+source:
 #+begin_src

 #+end_src

 Thanks.
 Petro.



Footnotes: 
[1]  http://orgmode.org/worg/org-faq.html#YASnippet

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



Re: [O] org-gnus-follow-link and nnimap-request-scan

2011-04-12 Thread Tassilo Horn
Eden Cardim edencar...@gmail.com writes:

Hi Eden,

 After switching to using gnus mail splitting, following links to
 nnimap messages has become very slow. I'm fairly familiar with the
 gnus source, but not org-mode's as much, after wading a bit in the
 source I landed on

[...]

 ,[ org-gnus-follow-link ]
 |  (gnus-activate-group group t)
 `
 Which is certainly dispensable for visiting articles via nnimap.
 Switching to
 ,[ org-gnus-follow-link ]
 |  (gnus-activate-group group nil)
 `
 Makes the linked articles appear nearly instantly.

 Am I missing something here?

No, I just wasn't really sure what that SCAN argument means, so I tried
to be as safe as possible.  If it's always safe to provide nil, let's
change that.

Bye,
Tassilo




Re: [O] org-gnus-follow-link and nnimap-request-scan

2011-04-12 Thread Eden Cardim
 Tassilo == Tassilo Horn tass...@member.fsf.org writes:

Tassilo No, I just wasn't really sure what that SCAN argument
Tassilo means, so I tried to be as safe as possible.  If it's
Tassilo always safe to provide nil, let's change that.

Well, right now all it does is to check split rules against incoming
mail. But, if we have a link to a message in org, then that message
already went through the split process, so re-splitting is unnecessary.

-- 
Eden Cardim
Software Engineer
edencardim.com
+55 73 9986-3963




Re: [O] [PATCH][ANN] org-html/org-odt

2011-04-12 Thread Jambunathan K

Christian

I have fixed most of the issues that you had reported earlier. 

I have added two new features:

1. Attaching Custom Styles to the document
   - See http://permalink.gmane.org/gmane.emacs.orgmode/40026

2. TOC and Outline numbering are done natively. i.e.,
   Tools-Update-Update All would update TOC index automagically. (This
   wasn't the case with earlier exporter)

 * Blocks

 There's no syntax highlighting in exported src blocks (ODT and HTML
 both). Not a priority?

Currently syntax highlighting is done using htmlize. This package is not
part of Emacs proper and has to be installed separately. Since my setup
instructions doesn't include htmlize as part of load path, HTML source
blocks are uncolored.

As for ODT, fonitification support is missing. I can probably take it up
once my sources gets in to Orgmode proper.

As a side-note, I wonder htmlize was preferred over htmlfontify for
fontification of source blocks. The latter package is part of Emacs
proper. One advantage of using htmlfontify is that fontification can
work out of the box.


 The OrgVerse style can, luckily, be changed to something more
 poetic...

May be if you can share your config for OrgVerse I can include it in the
default styles file.

 * Verbatim LaTeX

 I can't report on the LaTeX math display (never got dvipng to install
 on my system).

 What I /can/ report is that with the =LaTeX:verbatim option=, which
 you probably haven't tested, LaTeX equation environments are not
 exported (everything after the =\begin{equation}= line is missing or
 not visible). This is copy-pasted from test.odt:

 #+begin_example
   6.5.1 LaTeX Fragment1

   There is a equation down below.
   \begin{equation}

   6.5.2 LaTeX Fragment2

   \begin{equation}
   If $a^2=b$ and \( b=2 \), then the solution must be either $$
 a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
 #+end_example

I have fixed issues with LaTeX: verbatim.


 Everything shows up in HTML, but linebreaks before the
 =\end{equation}= line are lost.

In the master branch, the html exporter doesn't seem to be terminating
each line of \begin{equation} ... \end{equation} with br/. I see your
POV that including of line breaks will make the output pretty. For now I
have retained the existing behaviour of HTML exporter.


 * Links

 The link to =Dedicated Target1= under 8.2.3 does not work when clicked
 (in odt -- it works in html). Hovering does show a popup,
 =.OrgXref.Dedicated-Target1=. All other links work as expected.

I have fixed this.


 * Captions, labels, references

 - *Captions/labels/references* do not yet integrate well with
   OpenOffice.

   - The illustration in sec 6.2.2 is captioned Illustration fig:1024
 Unicorn Logo, echoing the label. One would probably prefer
 something *auto-numbered* like Illustration 1: Unicorn Logo.

 - (Even better if there were possible to choose other types names,
   like Chart, Figure, etc.).

References in Orgmode file are currently coded like this
\ref{fig:1024}. Note that this is of the form category:value where
category could be one (or any) of Chart, Figure etc and value is the
sequential value.

In the example above (which if from my test.org file) you will see that
Fig appears in caption and all Fig stuff is sequentially numbered once
the Document is updated with Tools-Update-Update All.

Note: For sake of completeness one can declare Fig as sequential
variable in content.xml as is done for Illustrations.

--8---cut here---start-8---
text:sequence-decl text:display-outline-level=\0\ 
text:name=\Illustration\/
--8---cut here---end---8---

This is done as part of `org-odt-begin-office-body'.


   - The reference to the same illustration is a hyperlink containing
 part of the label text (1024). A *cross-reference field* would
 be preferable to a hyperlink, and Illustration 1 or similar
 better than 1024.

   - The table caption in sec 9.2, on the other hand, works the way I
 would want illustration captions to work: What appears in the
 caption is not the label text (table:10), but the auto-numbered
 Table 1 An Example Table.

 - (It would be nice to have a colon or other *separator* between
   label and caption text: Table 1: An Example Table.)

The caption now has a Colon separator.

   - However, the reference to that table appears as a hyperlink saying
 10, and the hyperlink does not appear to work. A cross-reference
 link to Table 1 would be better.

 On opening, caption and reference labels include verbatim the
 reference key used in the Org source, which was my main concern last
 time.

 But now I realize that this is not an issue after all! =Tools  Update 
 Update all= takes care of automatic renumbering of all 
 labels/references. This should probably be mentioned in the
 documentation.

Tools-Update-Update All (OpenOffice.org) will make sure that all
references to Tables and Images are 'correct'. Yes, this 

[O] Gnu ML archive logs missing

2011-04-12 Thread Jambunathan K

Mails between Jan 20 to March 31 are missing.

There are no links for 2011-02 and 2011-03 at
http://lists.gnu.org/archive/html/emacs-orgmode/.

A closer look at Jan 2011 suggests mails after Jan 20 aren't logged.

http://lists.gnu.org/archive/html/emacs-orgmode/2011-01/index.html

Jambunathan K.

-- 



Re: [O] Hide / expand tags

2011-04-12 Thread Michael Brand
On Mon, Apr 11, 2011 at 20:57, Marcelo de Moraes Serpa
celose...@gmail.com wrote:
 Is it possible to hide tags?

No.

 Rationale: Sometimes an item has so many tags, that it becomes kind of
 annoying visually.
 It'd be nice to have a command to hide/expand tags.  What do you think?

I think it'd be nice for this to have the _alternative_ to put the
tags into the properties drawer and occasionally view and edit them
with a column view:

#+SPECIAL_PROPERTIES: TAGS=drawer:PROPERTIES   = only a suggestion
* TODO xy
  :PROPERTIES:
  :TAGS: :work:home:
  :END:

Maybe this could also be useful for some other special properties, see
the thread
Why are special properties like CLOSED etc. not in the properties drawer?
http://thread.gmane.org/gmane.emacs.orgmode/40571/focus=40579

Btw.: I did also not find a way to change the alignment of tags in the
agenda view like it is possible for Org files with org-tags-column -
another reason I kind of avoid tags and try to use CATEGORY instead,
but there it is not easy to have multiple items like e. g. `work' and
`home'. What a pity that this way I miss tag features like e. g. the
well supported tag search or the single key tag setting described at
the end of
http://orgmode.org/manual/Setting-tags.html#Setting-tags

Michael



Re: [O] how to insert a source template

2011-04-12 Thread Piter_
Thanks guys. Exactly what I wanted.
The word template had not came into my mind, thats why my googling was
not sucesseful :(



On Tue, Apr 12, 2011 at 9:04 AM, Eric Schulte schulte.e...@gmail.com wrote:
 Hi Petro,

 You can use yasnippet to expand keywords into templates (like code
 blocks) with TAB, see the following for instructions on using yasnippet
 with Org-mode [1].

 Alternately you could add the following elisp code to your config, and
 bind the `org-insert-block' function to a comfortable key combination.

 #+begin_src emacs-lisp
  (defun org-insert-block (lang)
    (interactive Mlanguage: )
    (insert (format #+begin_src %s\n  \n#+end_src lang))
    (goto-char (- (point) 10)))
 #+end_src

 Cheers -- Eric

 Piter_ x.pi...@gmail.com writes:

 Hi all.
 I have no big knowlege of elisp. But I hope some one already done this.
 I want to make a key binding which would insert a source code template
 like this (I've got tired to type it every time):

 #+source:
 #+begin_src

 #+end_src

 Thanks.
 Petro.



 Footnotes:
 [1]  http://orgmode.org/worg/org-faq.html#YASnippet

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




Re: [O] Completing with anything

2011-04-12 Thread Julien Danjou
On Tue, Apr 12 2011, Stefan Monnier wrote:

 Hmm... good point, doing it in completion-choices is not reliable, tho
 using as completion table something like:

 (lambda (string pred action)
   (let ((res (complete-with-action action completion-choices string pred)))
 (if (and (eq action nil)
  (assq (if (eq res t) string res) expansion-alist))
 (cdr (assq (if (eq res t) string res) expansion-alist))
   res)))

 should work OK for prefix completion, but that means using the expansion
 by hand rather than via expand-abbrev, which may not be an option.

Yeah. That does not looks like a simple/good option.
As it stands, I guess the bbdb solution to return a function doing the
replacement rather than trying to return a list and conform with the
(current) way of doing completion is really simpler, unfortunately. :(

-- 
Julien Danjou
❱ http://julien.danjou.info


pgp0LZN7uU1rU.pgp
Description: PGP signature


[O] Clock-in task when emacs starts

2011-04-12 Thread Radosław Grzanka

Hello,
  is it possible to select and clock-in default task when emacs starts?

I'm trying to implement GTD setup as described here 
http://doc.norang.ca/org-mode.html and I like concept of punching-in. 
However, I found out it is not necessary for me to select default task 
each time I punch in becaue I have only one such task.


Therefore, I'd like to set default task and clock it in when emacs starts.

Any help?

 Thanks,
  Radek.



Re: [O] Hide / expand tags

2011-04-12 Thread Richard Riley
Michael Brand michael.ch.br...@gmail.com writes:

 On Mon, Apr 11, 2011 at 20:57, Marcelo de Moraes Serpa
 celose...@gmail.com wrote:
 Is it possible to hide tags?

 No.

 Rationale: Sometimes an item has so many tags, that it becomes kind of
 annoying visually.
 It'd be nice to have a command to hide/expand tags.  What do you think?

 I think it'd be nice for this to have the _alternative_ to put the
 tags into the properties drawer and occasionally view and edit them
 with a column view:

 #+SPECIAL_PROPERTIES: TAGS=drawer:PROPERTIES   = only a suggestion
 * TODO xy
   :PROPERTIES:
   :TAGS: :work:home:
   :END:

+1 on that  - I frequently mess up my org items when modifying the
subject because of the long line including tags. 




[O] [BUG] HTML Export/Broken coderef links?

2011-04-12 Thread Jambunathan K

On HTML export, I am unable to follow references to lines within the
code examples. 

Firefox complains with the following message:

Firefox doesn't know how to open this address; because the
protocol(coderef) isn't associated with any program.

--8---cut here---start-8---
 Advanced Example Blocks

 #+BEGIN_SRC emacs-lisp -n -r
 (save-excursion  (ref:sc)
(goto-char (point-min))   (ref:jump)
 #+END_SRC

 In line [[(sc)]] we remember the current position.  [[(jump)][Line 
(jump)]] jumps
 to point-min.
--8---cut here---end---8---



--8---cut here---start-8---

#+begin_src html
div id=outline-container-1_1_1_1 class=outline-5
  h5 id=sec-1_1_1_1span class=section-number-51.1.1.1/span Advanced 
Example Blocks /h5
  div id=text-1_1_1_1 class=outline-text-5

pre class=examplespan id=coderef-sc class=coderef-offspan 
class=linenr1:  /span(save-excursion/span
span id=coderef-jump class=coderef-offspan class=linenr2:  
/span   (goto-char (point-min))/span
/pre

p
  In line a href=coderef:class=coderef 
onmouseover=CodeHighlightOn(this, 'coderef-sc'); 
onmouseout=CodeHighlightOff(this, 'coderef-sc');1/a we remember the 
current position.  a href=coderef:class=coderef 
onmouseover=CodeHighlightOn(this, 'coderef-jump'); 
onmouseout=CodeHighlightOff(this, 'coderef-jump');Line 2/a jumps
  to point-min.
/p

  /div

/div
#+end_src
--8---cut here---end---8---

Jambunathan K.
-- 



[O] [PATCH] * org-html.el (org-html-make-link): correct a bug in coderef link.

2011-04-12 Thread Manuel Giraud
---
 lisp/org-html.el |6 --
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/org-html.el b/lisp/org-html.el
index 58fbc05..5d53478 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -826,7 +826,8 @@ MAY-INLINE-P allows inlining it as an image.
(not type)
(string= type http)
(string= type https)
-   (string= type file))
+   (string= type file)
+   (string= type coderef))
   (if fragment
  (setq thefile (concat thefile # fragment
 
@@ -836,7 +837,8 @@ MAY-INLINE-P allows inlining it as an image.
 (setq thefile
(let
   ((str (org-export-html-format-href thefile)))
- (if (and type (not (string= file type)))
+ (if (and type (not (or (string= file type)
+(string= coderef type
  (concat type : str)
  str)))
 
-- 
1.7.3.5




Re: [O] Clock-in task when emacs starts

2011-04-12 Thread Bernt Hansen
Radosław Grzanka radosl...@gmail.com writes:

 Hello,
   is it possible to select and clock-in default task when emacs starts?

 I'm trying to implement GTD setup as described here
 http://doc.norang.ca/org-mode.html and I like concept of
 punching-in. However, I found out it is not necessary for me to
 select default task each time I punch in becaue I have only one such
 task.

 Therefore, I'd like to set default task and clock it in when emacs starts.

 Any help?

  Thanks,
   Radek.

Hi Radek,

Sure it is possible.  You can identify a task by a globally unique id
and clock that in.  I have a function for this but I don't use it
anymore.

I've modified the org-clock-in call to provide the double prefix
argument so it also sets this as the default task.

Now you can just call (bh/clock-in-organization-task) in your .emacs or
bind it to a key to set that task to the default.

--8---cut here---start-8---
(require 'org-id)

(defun bh/clock-in-organization-task ()
  (interactive)
  (bh/clock-in-task-by-id eb155a82-92b2-4f25-a3c6-0304591af2f9))

(defun bh/clock-in-task-by-id (id)
  Clock in a task by id
  (save-restriction
(widen)
(org-with-point-at (org-id-find id 'marker)
  (org-clock-in '(16)
--8---cut here---end---8---

Regards,
Bernt




Re: [O] Release 7.5

2011-04-12 Thread Łukasz Stelmach
Bastien b...@altern.org writes:

 Dear all,

 here it is, release 7.5, my first release as Org's new maintainer.
[...]
 Version 7.5 
 

 Incompatible changes 
 =

 `org-bbdb-anniversary-format-alist' has changed 
 

 Please check the docstring and update your settings accordingly.

What's this about? I git blame org-bbdb.el and find no recent changes in
the docstring? There are som changes around where the variable is used
but they are not too obvious.

-- 
Miłego dnia,
Łukasz Stelmach




[O] make doc, UTILITIES folder not included in releases

2011-04-12 Thread Florian Friesdorf

For 7.4 and 7.5 (at least), the folder UTILITIES is not included in the
release tarball. It is therefore not possible to run 'make doc' and doc/
is missing org.html and orgcard.txt.

Is this intentionally? If yes, what are the reasons not to ship
UTILITIES, org.html and orgcard.txt?

-- 
Florian Friesdorf f...@chaoflow.net
  GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: f...@chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC


pgpm80FLIosy5.pgp
Description: PGP signature


Re: [O] outline numbering (similar to Orgmode manual)

2011-04-12 Thread Matt Lundin
Erwin Panen erwinpa...@fastmail.fm writes:

 Is there any (easy) way to convert headlines to numbering?
 What I'm thinking of is similar to the Orgmode manual, where you have
 the numbered structure representing sections/paragraphs etc.

 Reasoning behind this:
 - easily export pdf or printed report material

Although the orgmode manual is written in texinfo rather than org,
orgmode outline headlines will be converted to numbered sections when
exporting to LaTeX, ascii, or html. For instance, if LaTeX is installed
on your system, you can simply type C-c C-e d to export a file to pdf.

Best,
Matt






Re: [O] Occurance property, or some similar name?

2011-04-12 Thread Christopher Allan Webber
theo theocr...@theocrite.org writes:

 Hello,

 On 12/04/2011 00:42, Christopher Allan Webber wrote:
 I was once one of the many people who apparently originally
 misunderstood what SCHEDULED meant, and used to set it to like, an
 appointment time.

 That's what I do.

 Maybe I lack background, but why do you think it's not appropriate for
 this use?

So when it comes to TODO like things, SCHEDULED is when you should start
working on it, DEADLINE is when it's due.

One side effect of doing it wrong is that non-TODO items that are
SCHEDULED stay on your agenda forever (or until archived, and still
forever with archive view on), which is nasty.

-- 
퓒퓱퓻퓲퓼퓽퓸퓹퓱퓮퓻 퓐퓵퓵퓪퓷 퓦퓮퓫퓫퓮퓻



Re: [O] [PATCH][ANN] org-html/org-odt

2011-04-12 Thread Christian Moe

Hi,

Great! I'll test again, but I need to come up for air from other work 
first, so it will take a few days before you hear anything.


As you saw, most of my earlier concerns about 
captions/cross-references went away when I realized updating fields 
solved them. Thanks for the additional explanation.


The 40-page report went mostly fine except for the problem I reported 
earlier, that many paragraphs were split for no apparent reason. I'll 
check that again, too, and report back.


Yours,
Christian


On 4/12/11 10:33 AM, Jambunathan K wrote:


Christian

I have fixed most of the issues that you had reported earlier.

I have added two new features:

1. Attaching Custom Styles to the document
- See http://permalink.gmane.org/gmane.emacs.orgmode/40026

2. TOC and Outline numbering are done natively. i.e.,
Tools-Update-Update All would update TOC index automagically. (This
wasn't the case with earlier exporter)


* Blocks

There's no syntax highlighting in exported src blocks (ODT and HTML
both). Not a priority?


Currently syntax highlighting is done using htmlize. This package is not
part of Emacs proper and has to be installed separately. Since my setup
instructions doesn't include htmlize as part of load path, HTML source
blocks are uncolored.

As for ODT, fonitification support is missing. I can probably take it up
once my sources gets in to Orgmode proper.

As a side-note, I wonder htmlize was preferred over htmlfontify for
fontification of source blocks. The latter package is part of Emacs
proper. One advantage of using htmlfontify is that fontification can
work out of the box.



The OrgVerse style can, luckily, be changed to something more
poetic...


May be if you can share your config for OrgVerse I can include it in the
default styles file.


* Verbatim LaTeX

I can't report on the LaTeX math display (never got dvipng to install
on my system).

What I /can/ report is that with the =LaTeX:verbatim option=, which
you probably haven't tested, LaTeX equation environments are not
exported (everything after the =\begin{equation}= line is missing or
not visible). This is copy-pasted from test.odt:

#+begin_example
   6.5.1 LaTeX Fragment1

   There is a equation down below.
   \begin{equation}

   6.5.2 LaTeX Fragment2

   \begin{equation}
   If $a^2=b$ and \( b=2 \), then the solution must be either $$
a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
#+end_example


I have fixed issues with LaTeX: verbatim.



Everything shows up in HTML, but linebreaks before the
=\end{equation}= line are lost.


In the master branch, the html exporter doesn't seem to be terminating
each line of \begin{equation} ... \end{equation} withbr/. I see your
POV that including of line breaks will make the output pretty. For now I
have retained the existing behaviour of HTML exporter.



* Links

The link to =Dedicated Target1= under 8.2.3 does not work when clicked
(in odt -- it works in html). Hovering does show a popup,
=.OrgXref.Dedicated-Target1=. All other links work as expected.


I have fixed this.



* Captions, labels, references

- *Captions/labels/references* do not yet integrate well with
   OpenOffice.



   - The illustration in sec 6.2.2 is captioned Illustration fig:1024
 Unicorn Logo, echoing the label. One would probably prefer
 something *auto-numbered* like Illustration 1: Unicorn Logo.



 - (Even better if there were possible to choose other types names,
   like Chart, Figure, etc.).


References in Orgmode file are currently coded like this
\ref{fig:1024}. Note that this is of the form category:value where
category could be one (or any) of Chart, Figure etc and value is the
sequential value.

In the example above (which if from my test.org file) you will see that
Fig appears in caption and all Fig stuff is sequentially numbered once
the Document is updated with Tools-Update-Update All.

Note: For sake of completeness one can declare Fig as sequential
variable in content.xml as is done for Illustrations.

--8---cut here---start-8---
text:sequence-decl text:display-outline-level=\0\ 
text:name=\Illustration\/
--8---cut here---end---8---

This is done as part of `org-odt-begin-office-body'.



   - The reference to the same illustration is a hyperlink containing
 part of the label text (1024). A *cross-reference field* would
 be preferable to a hyperlink, and Illustration 1 or similar
 better than 1024.



   - The table caption in sec 9.2, on the other hand, works the way I
 would want illustration captions to work: What appears in the
 caption is not the label text (table:10), but the auto-numbered
 Table 1 An Example Table.



 - (It would be nice to have a colon or other *separator* between
   label and caption text: Table 1: An Example Table.)


The caption now has a Colon separator.


   - However, the reference to that table appears as a hyperlink saying
 10, and the 

Re: [O] Hide / expand tags

2011-04-12 Thread Richard Riley
Matt Lundin m...@imapmail.org writes:

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

 Is it possible to hide tags?

 Rationale: Sometimes an item has so many tags, that it becomes kind of
 annoying visually.

 It'd be nice to have a command to hide/expand tags.  What do you think?


 Could you please explain in which context you would like to hide tags?

 If you'd like to hide them in the agenda, there are variables to do so:

  - org-agenda-remove-tags
  - org-agenda-hide-tags-regexp

 If you'd like to hide them in your normal org-mode files, one option is
 to customize the org-tag face (i.e., to set the foreground to the same
 color as the background).

That might be a silly/dangerous thing to do since you might corrupt your
tags without realising. I like the idea of TAGS being in the properties
I must say.





Re: [O] Using orgmode to take inline notes for research

2011-04-12 Thread John Hendy

 Yes, you're right. You need the todonotes package. This is standard in my
 private class, reason why I forgot about this link.

 Go and add it, you'll love it!

Holy cow. I kind of ignored this as I didn't know what it did, then
checked out todonotes and was blown away. This is amazing.

,---
| (latex \\todo[inline]{\\textbf{\\textsf{%s %s}}\\linebreak{} %s}
|'((unless (eq todo )
|(format \\textsc{%s%s} todo priority))
|  heading content))
`---

A couple questions:
- would you be able to even broadly tell me what the latex chunk is
doing there? Is %s like the %s in python (and perhaps other
programming languages)? I don't get where the third %s gets its value.
In other words, it seems that one of them is the heading value and
another is the content... but what does the third %s get it's value in
the first line?
--- Side note... maybe time for me to learn elisp?

- I looked at the package and example and rather liked the side-page
type for small little notes. So cool. But, alas, removing the
'[inline]' gave me undefined control sequence errors. When I ran it
from the .tex file directly, it kind of worked, but my little box was
really smushed and off the page. I'm guessing that my desire for
narrower page margins isn't helping (I have geometry setting hmargins
to 2cm)?

- Some of my notes are multi paragraphs, which I prefer non-indented
and separated by a line break rather than no line break and indented.
But when exported, multiple paragraphs just stack up with no line
break. Can I add this to your format?


Thanks again! What a neat package!


John


 Best regards,
  Seb

 --
 Sébastien Vauban






Re: [O] Using orgmode to take inline notes for research

2011-04-12 Thread John Hendy
2011/4/12 John Hendy jw.he...@gmail.com:

 Yes, you're right. You need the todonotes package. This is standard in my
 private class, reason why I forgot about this link.

 Go and add it, you'll love it!

 Holy cow. I kind of ignored this as I didn't know what it did, then
 checked out todonotes and was blown away. This is amazing.

 ,---
 | (latex \\todo[inline]{\\textbf{\\textsf{%s %s}}\\linebreak{} %s}
 |                '((unless (eq todo )
 |                    (format \\textsc{%s%s} todo priority))
 |                  heading content))
 `---

 A couple questions:
 - would you be able to even broadly tell me what the latex chunk is
 doing there? Is %s like the %s in python (and perhaps other
 programming languages)? I don't get where the third %s gets its value.
 In other words, it seems that one of them is the heading value and
 another is the content... but what does the third %s get it's value in
 the first line?
 --- Side note... maybe time for me to learn elisp?

 - I looked at the package and example and rather liked the side-page
 type for small little notes. So cool. But, alas, removing the
 '[inline]' gave me undefined control sequence errors. When I ran it
 from the .tex file directly, it kind of worked, but my little box was
 really smushed and off the page. I'm guessing that my desire for
 narrower page margins isn't helping (I have geometry setting hmargins
 to 2cm)?

Confirmed: this does not play nicely with geometry. It's like the
package shifts things away from where tikz expects the text to be. As
I narrow the margins more and more, the lines that used to underline
the text stay the same length and just get farther and farther away
from actually underlining the text. Perhaps I'll just stick to inline
notes unless there's some way to tell todonotes the margin size?


 - Some of my notes are multi paragraphs, which I prefer non-indented
 and separated by a line break rather than no line break and indented.
 But when exported, multiple paragraphs just stack up with no line
 break. Can I add this to your format?


 Thanks again! What a neat package!


 John


 Best regards,
  Seb

 --
 Sébastien Vauban







Re: [O] Hide / expand tags

2011-04-12 Thread Matt Lundin
Richard Riley rile...@googlemail.com writes:

 Matt Lundin m...@imapmail.org writes:

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

 Is it possible to hide tags?

 Rationale: Sometimes an item has so many tags, that it becomes kind of
 annoying visually.

 It'd be nice to have a command to hide/expand tags.  What do you think?


 Could you please explain in which context you would like to hide tags?

 If you'd like to hide them in the agenda, there are variables to do so:

  - org-agenda-remove-tags
  - org-agenda-hide-tags-regexp

 If you'd like to hide them in your normal org-mode files, one option is
 to customize the org-tag face (i.e., to set the foreground to the same
 color as the background).

 That might be a silly/dangerous thing to do since you might corrupt your
 tags without realising. 

Very good point. Scratch that idea. Since I myself have no desire or
need to hide tags, I threw out the idea without thinking it through.
Thanks for pointing out the danger.

- Matt









Re: [O] Using orgmode to take inline notes for research

2011-04-12 Thread John Hendy
2011/4/12 John Hendy jw.he...@gmail.com:
 2011/4/12 John Hendy jw.he...@gmail.com:

 Yes, you're right. You need the todonotes package. This is standard in my
 private class, reason why I forgot about this link.

 Go and add it, you'll love it!

 Holy cow. I kind of ignored this as I didn't know what it did, then
 checked out todonotes and was blown away. This is amazing.

 ,---
 | (latex \\todo[inline]{\\textbf{\\textsf{%s %s}}\\linebreak{} %s}
 |                '((unless (eq todo )
 |                    (format \\textsc{%s%s} todo priority))
 |                  heading content))
 `---

 A couple questions:
 - would you be able to even broadly tell me what the latex chunk is
 doing there? Is %s like the %s in python (and perhaps other
 programming languages)? I don't get where the third %s gets its value.
 In other words, it seems that one of them is the heading value and
 another is the content... but what does the third %s get it's value in
 the first line?
 --- Side note... maybe time for me to learn elisp?

 - I looked at the package and example and rather liked the side-page
 type for small little notes. So cool. But, alas, removing the
 '[inline]' gave me undefined control sequence errors. When I ran it
 from the .tex file directly, it kind of worked, but my little box was
 really smushed and off the page. I'm guessing that my desire for
 narrower page margins isn't helping (I have geometry setting hmargins
 to 2cm)?

 Confirmed: this does not play nicely with geometry. It's like the
 package shifts things away from where tikz expects the text to be. As
 I narrow the margins more and more, the lines that used to underline
 the text stay the same length and just get farther and farther away
 from actually underlining the text. Perhaps I'll just stick to inline
 notes unless there's some way to tell todonotes the margin size?

Sorry for the whiplash. This is *not* actually the case. todonotes
plays fine with geometry, but since I was exporting directly from the
.tex file, I needed to run pdflatex a few times until the lines
re-found their home. Org-export must re-run a few times and take care
of that. In any case, for future reference, this helps (I have this in
my setupfile):

,---
| #+latex_header: \usepackage[text width=Xcm]{todonotes}
`---

This might be obvious to some (and is, now, to me since I realize it's
using TikZ options), but I thought I'd add it for later-googlers'
sakes. You can specify a width for the box to be exported and tailor
it to your margins. Obviously, if your margins are narrower than your
longest word, it won't work, regardless, and the text will spill over
the todonote box.

Also, I found a pretty cool post (here:
http://jcl.posterous.com/latex-todonotes-and-margins) on temporarily
making the page and margins bigger to accommodate the notes. For those
using this just for notes, perhaps this isn't favorable if you want to
print. But for pure markup... it's a pretty neat workaround -- just
make your page as big as you need and add notes to your heart's
content.

I'll probably just stick to inline notes, but one other option is to
shift the text to one side, for example like so:

,---
| #+LATEX_HEADER: \usepackage[left=1.5cm, right=3.5cm,vmargin=2.5cm]{geometry}
`---

So this gives you the equivalent of 2 x 2.5cm margins, but shifts it
to one side so you can put notes on the right.

Hope this helps someone down the road.

Sebastien: my other questions re. how to interpret the code and
inserting proper linebreaks are still of interest!


Thanks!
John



 - Some of my notes are multi paragraphs, which I prefer non-indented
 and separated by a line break rather than no line break and indented.
 But when exported, multiple paragraphs just stack up with no line
 break. Can I add this to your format?


 Thanks again! What a neat package!


 John


 Best regards,
  Seb

 --
 Sébastien Vauban








Re: [O] Using orgmode to take inline notes for research

2011-04-12 Thread Eric S Fraga
John Hendy jw.he...@gmail.com writes:

[...]

 - I looked at the package and example and rather liked the side-page
 type for small little notes. So cool. But, alas, removing the
 '[inline]' gave me undefined control sequence errors. When I ran it
 from the .tex file directly, it kind of worked, but my little box was
 really smushed and off the page. I'm guessing that my desire for
 narrower page margins isn't helping (I have geometry setting hmargins
 to 2cm)?

It is cool but doesn't play well with margins, as you have seen.  I've
given up on cool and use the following instead:

--8---cut here---start-8---
(latex %s\\footnote{%s %s}\\marginpar{\\fbox{\\thefootnote}}
   '((unless
 (eq todo )
   (format 
\\fbox{\\textsc{%s%s}} todo priority))
 heading content))
--8---cut here---end---8---


 - Some of my notes are multi paragraphs, which I prefer non-indented
 and separated by a line break rather than no line break and indented.
 But when exported, multiple paragraphs just stack up with no line
 break. Can I add this to your format?

Yes, this is a problem with latex and not org.  It is very difficult
(read: I have never managed to figure out how to do it ;-) to control
the parskip and parsep aspects of paragraphs in a footnote.  The
=endnotes= package should allow you to control the behaviour more but
even there I have not been entirely successful (I can get it to listen
to parskip but not parident settings).

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.176.g2c8e9)



Re: [O] org-gnus-follow-link and nnimap-request-scan

2011-04-12 Thread Tassilo Horn
Eden Cardim edencar...@gmail.com writes:

 Tassilo No, I just wasn't really sure what that SCAN argument
 Tassilo means, so I tried to be as safe as possible.  If it's
 Tassilo always safe to provide nil, let's change that.

 Well, right now all it does is to check split rules against incoming
 mail. But, if we have a link to a message in org, then that message
 already went through the split process, so re-splitting is
 unnecessary.

Ok, so here we go:

From 89fecc7b938385647618dc28c4df304df872e6eb Mon Sep 17 00:00:00 2001
From: Tassilo Horn tass...@member.fsf.org
Date: Tue, 12 Apr 2011 20:27:54 +0200
Subject: [PATCH] Call gnus-activate-group without SCAN arg.

* org-gnus.el (org-gnus-follow-link): Don't request scan of
group when following link.
---
 lisp/org-gnus.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
index eba4cb4..a5ece8b 100644
--- a/lisp/org-gnus.el
+++ b/lisp/org-gnus.el
@@ -249,7 +249,7 @@ If `org-store-link' was called with a prefix arg the meaning of
   (when article
 (setq article (org-substring-no-properties article)))
   (cond ((and group article)
-	 (gnus-activate-group group t)
+	 (gnus-activate-group group)
 	 (condition-case nil
 	 (let* ((method (gnus-find-method-for-group group))
 		(backend (car method))
-- 
1.7.5.rc1


Bye,
Tassilo


Re: [O] Using orgmode to take inline notes for research

2011-04-12 Thread John Hendy
On Tue, Apr 12, 2011 at 1:20 PM, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 John Hendy jw.he...@gmail.com writes:

 [...]

 - I looked at the package and example and rather liked the side-page
 type for small little notes. So cool. But, alas, removing the
 '[inline]' gave me undefined control sequence errors. When I ran it
 from the .tex file directly, it kind of worked, but my little box was
 really smushed and off the page. I'm guessing that my desire for
 narrower page margins isn't helping (I have geometry setting hmargins
 to 2cm)?

 It is cool but doesn't play well with margins, as you have seen.  I've
 given up on cool and use the following instead:

But... it's... so... cool!


 --8---cut here---start-8---
 (latex %s\\footnote{%s %s}\\marginpar{\\fbox{\\thefootnote}}
                                               '((unless
                                                     (eq todo )
                                                   (format 
 \\fbox{\\textsc{%s%s}} todo priority))
                                                 heading content))
 --8---cut here---end---8---


I'm so-so on this. Not sure I like the idea of jumping back and forth
as well as adding my own footnotes to mingle with the real
footnotes. Very cool look with the box, though. I see the appeal.


 - Some of my notes are multi paragraphs, which I prefer non-indented
 and separated by a line break rather than no line break and indented.
 But when exported, multiple paragraphs just stack up with no line
 break. Can I add this to your format?

 Yes, this is a problem with latex and not org.  It is very difficult
 (read: I have never managed to figure out how to do it ;-) to control
 the parskip and parsep aspects of paragraphs in a footnote.  The
 =endnotes= package should allow you to control the behaviour more but
 even there I have not been entirely successful (I can get it to listen
 to parskip but not parident settings).

Yes -- todonote doesn't seem to like this stuff much. Not pretty, but
this works:

-
*** Notes
\linebreak
\begin{tabular}{l|p{0.9\textwidth}}
\quad 
Quote something with a nice line \\
\end{tabular} \linebreak

Say something about it. \linebreak

Some more stuff.
*** END
-

I suppose manually entering linebreaks isn't sooo horrible... I can
get that first linebreak with this:
-
(latex \\todo[inline,color=blue!20]{\\textbf{\\textsf{%s
%s}}\\linebreak{} \\linebreak \\linebreak %s}
'((unless (eq todo )
   (format \\textsc{%s%s} todo priority))
 heading content))
-

We'll see what I end up with. I think I'll stick with todonotes for
now. It's neat and pretty :)


John

 --
 : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
 : using Org-mode version 7.5 (release_7.5.176.g2c8e9)




Re: [O] [PATCH] * org-html.el (org-html-make-link): correct a bug in coderef link.

2011-04-12 Thread Jambunathan K

Quick feedback. 

Applied the patch to my workarea. My example (which was stolen from
Orgmode manual) gets exported just fine.

Jambunathan K.

Manuel Giraud manuel.gir...@univ-nantes.fr writes:

 ---
  lisp/org-html.el |6 --
  1 files changed, 4 insertions(+), 2 deletions(-)

 diff --git a/lisp/org-html.el b/lisp/org-html.el
 index 58fbc05..5d53478 100644
 --- a/lisp/org-html.el
 +++ b/lisp/org-html.el
 @@ -826,7 +826,8 @@ MAY-INLINE-P allows inlining it as an image.
   (not type)
   (string= type http)
   (string= type https)
 - (string= type file))
 + (string= type file)
 + (string= type coderef))
  (if fragment
 (setq thefile (concat thefile # fragment
  
 @@ -836,7 +837,8 @@ MAY-INLINE-P allows inlining it as an image.
(setq thefile
   (let
  ((str (org-export-html-format-href thefile)))
 -   (if (and type (not (string= file type)))
 +   (if (and type (not (or (string= file type)
 +  (string= coderef type
 (concat type : str)
 str)))

-- 



Re: [O] Occurance property, or some similar name?

2011-04-12 Thread Matt Lundin
Christopher Allan Webber cweb...@dustycloud.org writes:

 theo theocr...@theocrite.org writes:

 Hello,

 On 12/04/2011 00:42, Christopher Allan Webber wrote:
 I was once one of the many people who apparently originally
 misunderstood what SCHEDULED meant, and used to set it to like, an
 appointment time.

 That's what I do.

 Maybe I lack background, but why do you think it's not appropriate for
 this use?

 So when it comes to TODO like things, SCHEDULED is when you should start
 working on it, DEADLINE is when it's due.

 One side effect of doing it wrong is that non-TODO items that are
 SCHEDULED stay on your agenda forever (or until archived, and still
 forever with archive view on), which is nasty.

There is a nice FAQ on this:

http://orgmode.org/worg/org-faq.html#scheduled-vs-deadline-vs-timestamp

Best,
Matt



Re: [O] how to insert a source template

2011-04-12 Thread Matt Lundin
Eric Schulte schulte.e...@gmail.com writes:

 Hi Petro,

 You can use yasnippet to expand keywords into templates (like code
 blocks) with TAB, see the following for instructions on using yasnippet
 with Org-mode [1].

 Alternately you could add the following elisp code to your config, and
 bind the `org-insert-block' function to a comfortable key combination.

 #+begin_src emacs-lisp
   (defun org-insert-block (lang)
 (interactive Mlanguage: )
 (insert (format #+begin_src %s\n  \n#+end_src lang))
 (goto-char (- (point) 10)))
 #+end_src

There is also a nice FAQ that outlines the various options:

http://orgmode.org/worg/org-faq.html#shortcuts-for-entering-source-blocks

Best,
Matt




Re: [O] Occurance property, or some similar name?

2011-04-12 Thread Matt Lundin
Christopher Allan Webber cweb...@dustycloud.org writes:

 Matt Lundin m...@imapmail.org writes:

 There is a special property name for active timestamps: TIMESTAMP. You
 can access the first active timestamp in an entry (either with column
 view or org-entry-get) via the special property TIMESTAMP. Inactive
 timestamps = TIMESTAMP_IA.


 Hm, that's interesting.  But I'm not talking about a way to access it
 via elisp, I'm talking about a place to actually put it in say, the
 property drawer.  Say:

 ** Pick up bike from the shop
:PROPERTIES:
:OCCURANCE: 2011-04-12 Tue 19:00
:END:

 etc.

 It's nice to know there's a meta-property for TIMESTAMP, but I'm
 specifically looking for a nice place to put that timestamp away.  This
 is for cleanliness / easy get-set purposes.

O.K. I wasn't clear what you meant by property in the original post.
What about :APPOINTMENT:? 

 AFAIK, there is no similar built-in function to call on headlines in org
 files. One can, however, navigate to the timestamp and use the
 Shift-arrow keys or C-c . to change the appointment.

 That's useful, and would change this property even if I put it in such a
 drawer... provided that property already existed.  But what if I want to
 insert something on a currently un-OCCURANCE'd (or whatever) thing?  I
 don't want it to go on the headline, that looks gross.

Here's a simple proof of concept:

(defun my-org-add-occurrence ()
  (interactive)
  (org-set-property OCCURRENCE 
(concat  (org-read-date t) )))

It turns...

--8---cut here---start-8---
* A headline
--8---cut here---end---8---

...into...

--8---cut here---start-8---
* A headline
  :PROPERTIES:
  :OCCURRENCE: 2011-04-12 20:00
  :END:
--8---cut here---end---8---

 I'm partly trying to see if other people want this as much as I do.
 Surely I'm not the only one who finds putting active timestamps on the
 headline or scattered just anywhere in the entry kind of gross?

I keep them right beneath the headline, which I find to be just the
right mix of tidiness and visibility.

--8---cut here---start-8---
* A headline
  2011-04-12 20:00
--8---cut here---end---8---

Best,
Matt



[O] Org-drill updated, now at v2.1

2011-04-12 Thread Paul Sexton
I Just thought I would let people know I have made extensive updates to 
org-drill recently. Org-drill uses orgmode topics as flashcards for 
self-testing,
using spaced repetition algorithms like those used in programs such as
SuperMemo, Anki and Mnemosyne. It resides in the contrib directory but has its
own repository at

http://bitbucket.org/eeeickythump/org-drill

Highlights of recent changes:
- new spaced repetition algorithm: a simplified version of SuperMemo SM8,
  in addition to existing SM5 and SM2 algorithms.
- SM5 matrix of optimal factors is now correctly stored as a single
  persistent value, rather than per-item.
- better prioritisation of items within sessions: first failed items, then
  overdue items, then recently learned items, then finally a mix of older +
  new (unlearned) items.
- can now resume drill sessions where you left off, after exiting them via
  edit or quit commands (extremely useful)
- comments and item titles are optionally hidden during review
- almost all customisable variables are declared safe to be file-local

I have used org-drill every day for many months (currently learning Spanish 
using it) and it seems to be pretty robust. If any of you use Anki, etc, 
regularly, please have a look at org-drill -- you may find there is yet 
another job which Emacs can take over for you.

Cheers
Paul





Re: [O] `session-jump-to-last-change' and org-mode

2011-04-12 Thread Le Wang
On Fri, Mar 18, 2011 at 4:13 AM, Carsten Dominik
carsten.domi...@gmail.com wrote:
 A good solution would be for session to provide a hook that we can use.

Christoph has submitted version 2.3a of session
http://sourceforge.net/projects/emacs-session/files/session/

The required hook has been added, maybe someone who knows org-mode can
add it to the appropriate file?

From my .emacs:

(add-hook 'session-after-jump-to-last-change-hook
  (lambda ()
(when (and (eq major-mode 'org-mode)
   (outline-invisible-p))
  (org-reveal


-- 
Le



Re: [O] Occurance property, or some similar name?

2011-04-12 Thread Richard Riley
Memnon Anon gegendosenflei...@googlemail.com writes:

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

 I was once one of the many people who apparently originally
 misunderstood what SCHEDULED meant, and used to set it to like, an
 appointment time.

 Well, you can use it that way.
 The point is: Scheduled items behave differently to timestamped items.
 If you prefer the behaviour scheduling provides you with, go for it.

 I kind of miss how nice it was back when I misunderstood how events work
 (escept for all of those non-TODOs staying around forever on my
 agenda..) where I had a dedicated property for this, and pressing
 C-c C-s would always change that property.

 I just did a quick check. 
 It seems to me that timestamps within a property work.
 So, if you prefer, you can set your timestamps in a property like this:

 *  NEXT Task 2
:LOGBOOK:
:END:
:PROPERTIES:
:DATE: 2011-04-12
:END:

Yup, its what i use to make sure my journal entries appear in my agenda,
the snipped from org-capture-templates is

 (j Journal entry
  (file+datetree journal.org)
  * %?\n   :PROPERTIES:\n  :DateCreated: %T\n  :END:\n%i\n%a)


very handy.




[O] html export question

2011-04-12 Thread Rustom Mody
If the
$+EMAIL: r...@somewhere.com
option is set it used to appear at the bottom of the html-export.

Does not seem to appear now.

Is this a regression or am I missing some option?

IOW with

#+AUTHOR: Rusi
#+EMAIL: myn...@somewhere.com

Rusi appears in the html output but not myn...@somewhere.com

org-version 7.5
emacs 23.1 and 24.0

Thanks
Rusi



Re: [O] html export question

2011-04-12 Thread Bernt Hansen
Rustom Mody rustompm...@gmail.com writes:

 If the
 $+EMAIL: r...@somewhere.com
 option is set it used to appear at the bottom of the html-export.

 Does not seem to appear now.

 Is this a regression or am I missing some option?

 IOW with

 #+AUTHOR: Rusi
 #+EMAIL: myn...@somewhere.com

 Rusi appears in the html output but not myn...@somewhere.com

 org-version 7.5
 emacs 23.1 and 24.0

 Thanks
 Rusi

Hi Rusi,

This has been fixed after the 7.5 release.  The development version of
git exports the email address.

Regards,
Bernt



Re: [O] Complex numbers

2011-04-12 Thread Eric Schulte
Hi Renier,

The Org-mode table machinery is interpreting the values of your table
cells as emacs lisp (given that the table formula is an elisp, rather
than a calc formula).  Due to the , the result is a weird nested list
which confuses your python code block.  Some options here include...

1. wrapping these cells in quotes so that they are passed to the python
   block as strings...

   #+source: parameter-variation(data=0)
   #+begin_src python :result values
 return 'text'
   #+end_src

   |---|
   | (0.0331901438056,0.000535222885197) |
   | (0.0333434157791,0.000537930174356) |
   | (0.0345727512157,0.000559346040457) |
   | (0.0353146483908,0.000571501584524) |
   | (0.0355522909393,0.000574387067408) |
   | (0.0356575682336,0.000574851263615) |
   | (0.0357806926897,0.000575051685084) |
   |---|
   | text  |
   #+TBLFM: @8$1='(sbe parameter-variation (nums @1$1..@7$1))

2. referencing the table from an external code block, rather than inside
   of a table formula.  This is probably the easier solution, but it
   doesn't insert the result into your table, unless you do something
   tricky like give the code block and the table the same name so that
   the results of the code block replace the table...

   #+results: complex-data
   |-|
   | (0.0331901438056,0.000535222885197) |
   | (0.0333434157791,0.000537930174356) |
   | (0.0345727512157,0.000559346040457) |
   | (0.0353146483908,0.000571501584524) |
   | (0.0355522909393,0.000574387067408) |
   | (0.0356575682336,0.000574851263615) |
   | (0.0357806926897,0.000575051685084) |
   #+TBLFM: @8$1='(sbe parameter-variation (nums @1$1..@7$1))

   #+begin_src python :var data=complex-data
 return data
   #+end_src

Hope this helps -- Eric

Renier Marchand reni...@gmail.com writes:

 Hi.

 I have been playing around with complex data that has been returned
 from Python. This is obviously not in calc.el format but if I change
 them to the correct format I can manipulate them using calc.

 but

 When I want to pass the complex numbers (python format) to python I
 get an error. If I pass real number everything works as expected

 For example:

   #+source: parameter-variation(data=0)
   #+begin_src python :result values
 return 'text'
   #+end_src


   |   |  hmin |     |
   |---+---+-|
   |   |   | |
   |   |  0.05 | (0.0331901438056,0.000535222885197) |
   |   |   0.1 | (0.0333434157791,0.000537930174356) |
   |   |   0.3 | (0.0345727512157,0.000559346040457) |
   |   |   0.6 | (0.0353146483908,0.000571501584524) |
   |   |   0.9 | (0.0355522909393,0.000574387067408) |
   |   |   1.2 | (0.0356575682336,0.000574851263615) |
   |   |  10.0 | (0.0357806926897,0.000575051685084) |
   | $ | x=0.1 | y=0.1   |
   |   |  text |     |
   #+TBLFM: @11$2='(sbe parameter-variation (data
 @3$2..@9$2))::@11$3='(sbe parameter-variation (data @3$3..@9$3))

 i.e. I get the word 'text' returned for column 2 where there are real
 numbers but I don't get anything returned where there are complex
 numbers. As you can see, there are no actual calculation performed on
 the data I am just returning 'text' so I am expecting it to work in
 both instances.

 The debug sessions show the following for the real column:

 Substitution history of formula
 Orig:   '(sbe parameter-variation (data @3$2..@9$2))
 $xyz-  '(sbe parameter-variation (data @3$2..@9$2))
 @r$c-  '(sbe parameter-variation (data #(0.05 0 4 (fontified t
 face org-table)) #(0.1 0 3 (fontified t face org-table)) #(0.3 0 3
 (fontified t face org-table)) #(0.6 0 3 (fontified t face
 org-table)) #(0.9 0 3 (fontified t face org-table)) #(1.2 0 3
 (fontified t face org-table)) #(10.0 0 4 (fontified t face
 org-table
 $1-'(sbe parameter-variation (data #(0.05 0 4 (fontified t
 face org-table)) #(0.1 0 3 (fontified t face org-table)) #(0.3 0 3
 (fontified t face org-table)) #(0.6 0 3 (fontified t face
 org-table)) #(0.9 0 3 (fontified t face org-table)) #(1.2 0 3
 (fontified t face org-table)) #(10.0 0 4 (fontified t face
 org-table
 Result: text
 Format: NONE
 Final:  text

 and for the complex column:

 Substitution history of formula
 Orig:   '(sbe parameter-variation (data @3$3..@9$3))
 $xyz-  '(sbe parameter-variation (data @3$3..@9$3))
 @r$c-  '(sbe parameter-variation (data
 #((0.0331901438056,0.000535222885197) 0 35 (fontified t face
 org-table)) #((0.0333434157791,0.000537930174356) 0 35 (fontified t
 face org-table)) #((0.0345727512157,0.000559346040457) 0 35
 (fontified t face org-table)) #((0.0353146483908,0.000571501584524)
 0 35 (fontified t face org-table))
 #((0.0355522909393,0.000574387067408) 0 35 (fontified t 

Re: [O] html export question

2011-04-12 Thread Rustom Mody
On Wed, Apr 13, 2011 at 8:43 AM, Bernt Hansen be...@norang.ca wrote:
 Rustom Mody rustompm...@gmail.com writes:

 If the
 $+EMAIL: r...@somewhere.com
 option is set it used to appear at the bottom of the html-export.

 Does not seem to appear now.

 Is this a regression or am I missing some option?

 IOW with

 #+AUTHOR: Rusi
 #+EMAIL: myn...@somewhere.com

 Rusi appears in the html output but not myn...@somewhere.com

 org-version 7.5
 emacs 23.1 and 24.0

 Thanks
 Rusi

 Hi Rusi,

 This has been fixed after the 7.5 release.  The development version of
 git exports the email address.

 Regards,
 Bernt


Did a git pull just now and still its the same.
How do I check that we are on the same git commit?