Re: [O] link to windows version of emacs broken

2012-08-06 Thread Bastien
Hi Carl-Johan,

Carl-Johan Wägner carl-johan.wag...@exergia.se writes:

 Just a notice for a broken link:
 At the page
 http://orgmode.org/worg/org-tutorials/org4beginners.html
 The link Emacs for MS Windows links to http://ftp.gnu.org/gnu/windows/Emacs/

 The correct link for the intended page is:
 http://ftp.gnu.org/gnu/emacs/windows/

 If someone has a minute left for nothing else, it may be a convenient
 update =)

Fixed, thanks,

-- 
 Bastien



Re: [O] [PATCH 00/10] Takjuggler exporter improvements

2012-08-06 Thread Bastien
CC'ing Christian again with a working email address this time.

Bastien b...@gnu.org writes:

 thanks for this.  I've quickly check by just reading the patches,
 and this looks good.  I copy Christian, hoping he will have time
 to double-check.

-- 
 Bastien



Re: [O] Fetch failed

2012-08-06 Thread Johan Ekh
Thanks guys!
Now it works!
/Johan

On Sun, Aug 5, 2012 at 5:51 PM, Achim Gratz strom...@nexgo.de wrote:

 Johan Ekh writes:
  git pull
  error: Unable to find 16d23c07dd3697db790b14e6873c65404c912e3f under
  http://repo.or.cz/r/org-mode.git
  Cannot obtain needed object 16d23c07dd3697db790b14e6873c65404c912e3f
  error: Fetch failed.

 Check the files in .git/objects/pack — delete those *.idx files that
 have no corresponding *.pack file and do the upadte again.


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

 DIY Stuff:
 http://Synth.Stromeko.net/DIY.html





[O] Bug: File mode specification error: (invalid-function org-check-version) on startup

2012-08-06 Thread Steinar Bang
Platform: Windows 2008R2 SP1
  GNU Emacs 23.4.1 (i386-mingw-nt6.1.7601) of 2012-02-04 on MARVIN

I pulled org-mode master from git today.  When I tried to open an org
file, it failed, with the following message in the minibuffer:
 File mode specification error: (invalid-function org-check-version)

My previous version (ORIG_HEAD), was:
 cf8d979d8c519ab62a02bc7501baa376b122bf3d

The HEAD after update, was:
 7791d40045ea8b6eef089c362fdf3cb35312a1a8

git bisect identified the the following commit as the culprit:
C:\Users\sb\Documents\git\org-modegit bisect bad
abbea596111611a945d73783b3e8790e76599740 is the first bad commit
commit abbea596111611a945d73783b3e8790e76599740
Author: Bastien Guerry b...@altern.org
Date:   Sat Jul 28 00:55:45 2012 +0200

Move org-element.el from contrib/lisp to lisp/.

* org.el (org-mode-map): Add keybindings to
`org-element-transpose' and `org-narrow-to-element'.
(org-metaup): Fall back on `org-element-drag-backward'.
(org-metadown): Fall back on `org-element-drag-forward'.
Also move chunks of declarations and require statements to
get rid of compiler warnings.

* org-exp-blocks.el (org): Don't require org.  Add declarations.

* org-clock.el (org): Don't require org.

* ob-exp.el (org-list-forbidden-blocks): Add declarations.

:04 04 6669cee7aab025b4761b8a9e54da5cba675b48fc 
3de0787e877cda3d280fa85c61cd945cb305c122 M  contrib
:04 04 8a83fd0e0338ed15b5f9c97c846c485f8447b13d 
169d363447239443ff0be48910fb07cf726bd0c9 M  lisp




[O] Bug: File mode specification error: (invalid-function org-check-version) on startup

2012-08-06 Thread Steinar Bang
Platform: Windows 2008R2 SP1
  GNU Emacs 23.4.1 (i386-mingw-nt6.1.7601) of 2012-02-04 on MARVIN

I pulled org-mode master from git today.  When I tried to open an org
file, it failed, with the following message in the minibuffer:
 File mode specification error: (invalid-function org-check-version)

My previous version (ORIG_HEAD), was:
 cf8d979d8c519ab62a02bc7501baa376b122bf3d

The HEAD after update, was:
 7791d40045ea8b6eef089c362fdf3cb35312a1a8

git bisect identified the the following commit as the culprit:
C:\Users\sb\Documents\git\org-modegit bisect bad
abbea596111611a945d73783b3e8790e76599740 is the first bad commit
commit abbea596111611a945d73783b3e8790e76599740
Author: Bastien Guerry b...@altern.org
Date:   Sat Jul 28 00:55:45 2012 +0200

Move org-element.el from contrib/lisp to lisp/.

* org.el (org-mode-map): Add keybindings to
`org-element-transpose' and `org-narrow-to-element'.
(org-metaup): Fall back on `org-element-drag-backward'.
(org-metadown): Fall back on `org-element-drag-forward'.
Also move chunks of declarations and require statements to
get rid of compiler warnings.

* org-exp-blocks.el (org): Don't require org.  Add declarations.

* org-clock.el (org): Don't require org.

* ob-exp.el (org-list-forbidden-blocks): Add declarations.

:04 04 6669cee7aab025b4761b8a9e54da5cba675b48fc 
3de0787e877cda3d280fa85c61cd945cb305c122 M  contrib
:04 04 8a83fd0e0338ed15b5f9c97c846c485f8447b13d 
169d363447239443ff0be48910fb07cf726bd0c9 M  lisp




Re: [O] Use nomencl package with latex exporter?

2012-08-06 Thread Myles English

Johan Ekh writes:

 Hi all,
 I use the default latex exporter in org-mode v7.8 to write documents using
 a custom latex class which is built on article.
 I would like to use the nomencl latex package if possible.

 From the shell I usually run something like

 makeindex filename.nlo -s nomencl.ist -o filename.nls

 followed by latex or pdflatex, but how can I get the exporter to do
 this?

I don't know the answer to your question, but when I came across the
same problem, I used a makefile-like solution because I felt that the
building process was becoming sufficiently complicated to warrant using
a specialised tool.  If you are comfortable with CMake already it may be
worth a look.  Have a look for UseLatex.cmake.

Basically you get emacs to export the .tex file from the .org file:

add_custom_command(
  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mypaper.tex
  COMMAND emacs --batch
--visit=${CMAKE_CURRENT_BINARY_DIR}/mypaper.org
--load=/home/me/myfuncs.el
--funcall org-export-as-latex-batch
  DEPENDS orgfile
  COMMENT Exporting orgmode file to LaTeX using emacs
  )

And then bibtex and nomenclature are asked to do their stuff, and a pdf
is produced, with something like this directive:

add_latex_document( mypaper.tex
  INPUTS tex/bibliography.tex
 texlib/mystyle.sty
  BIBFILES texlib/mylibrary.bib
  DEFAULT_PDF
  USE_NOMENCL
)

I also get it to generate all my R plots.  Other advantages are that you
get an out-of-source build that is isolated (to some extent) in its own
directory.  And I think it is easier to diagnose the problems when
things go wrong, better than staring at an elisp backtrace.  Now if org
would write my CMakeList.txt for me, that would be a fine thing.

Myles



Re: [O] are super-hidden technical blocks required?

2012-08-06 Thread Jonathan Leech-Pepin
Hello,

On Sun, Aug 5, 2012 at 11:01 PM, Ilya Shlyakhter ilya_...@alum.mit.edu wrote:
 On Sun, Aug 5, 2012 at 10:46 PM, Torsten Wagner
 torsten.wag...@gmail.com wrote:
 I can see the point that the property drawer header can be annoying
 too. Actually, when I used orgmobile for the first time I was not too
 happy to see all this property drawers suddenly appearing in my files.

 Alternatively to a new kind of drawer, I would think of the
 HIDDEN_PROP: line and an additional method which hides a drawer even
 more if it only contains hidden property elements. That could be done,
 for example, by the already mentioned custom face.

 That is, a drawer is clearly visible if it contains properties intend
 to be read/changed by the user (not marked invisible).
 A drawer is less visible, if it contains only properties marked as hidden.

 That would be great.  Except, if a PROPERTIES drawer holds only hidden
 properties,
 it would be best to completely hide the :PROPERTIES: line (using
 outline-flag-region), rather than display it in
 a dimmed font.  So that, unless you explicitly ask to reveal these
 lines, you edit the file as if they weren't there.


The issue I can see with completely hiding :PROPERTIES: line is
that you would then run the risk of adding text at the wrong
location (between the headline and the drawer for example).  At
the moment when the drawer is folded you know if the point is
before, within or after the drawer (even though you still can
remove parts of :end: by accident with backspaces), if it isn't
visible at all you don't have that ability.



[O] org-elements: list in drawer

2012-08-06 Thread Michael Brand
Hi all

M-q on the list item in this example does not try to fill:

#+BEGIN_SRC org
  ,#+DRAWERS: MYDRAWER
  ,:MYDRAWER:
  ,- a paragraph longer than one line, a paragraph longer than one
line, a paragraph longer than one line
  ,:END:
#+END_SRC

org-fill-paragraph recognizes a plain list but I think it should be a
paragraph, like when without the drawer. org-element-parse-buffer
looks to me as I would expect, org-element-at-point on the list item
looks wrong to me.

Today's release_7.8.11-374-g7791d40 on 24.1, emacs -Q.

Michael



Re: [O] Bug: File mode specification error: (invalid-function org-check-version) on startup

2012-08-06 Thread Achim Gratz
Steinar Bang sb at dod.no writes:
 I pulled org-mode master from git today.  When I tried to open an org
 file, it failed, with the following message in the minibuffer:
  File mode specification error: (invalid-function org-check-version)

My guess is that you have outdated autoloads... but please follow these steps to
produce a meaningful bug report:

http://orgmode.org/manual/Feedback.html#Feedback

Perhaps also relevant:

http://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development
http://orgmode.org/worg/org-hacks.html#compiling-org-without-make

 git bisect identified the the following commit as the culprit:

Likely that was the first commit where the generated autoloads would become
different.


Regards,
Achim.






Re: [O] are super-hidden technical blocks required?

2012-08-06 Thread Christopher J. White

Hi Folks,

I thought I'd throw in my 2c on the topic.  I work on org-toodledo which 
syncs TODO items with Toodledo.com.  On first sync, it creates adds a 
ToodledID property to track the ID assigned by the server.


In my use case, that majority of TODO items have *no* other properties. 
 As such, many items have a PROPERTIES drawer with just the one entry.


What I see is visual clutter.  Many of my TODO items are also very small 
-- often no body at all.  So the only thing beneath the item is the 
property drawer plus other properties like DEADLINE/SCHEDULED/CLOSED. 
 When trying to browse my todo list, it gets a little painful when 
every other line is :PROPERTIES:..., or DEADLINE, etc.


I rarely (never?) edit any of these properties directly manually.  I 
either modify them via agenda mode, keys (C-c C-s), or via column view 
that pulls out interesting properties that I like to edit.


So for me, I want the entire *drawer* to disappear, as well as 
SCHEDULED/DEADLINE and CLOSED lines.


I've personally thought there should be an extra step in the visibility 
cycling:


TAB
  - FOLDED - CHILDREN - SUBTREE - PROPERTIES

S-TAB

  - OVERVIEW - CONTENTS - SHOW ALL (minus PROPS) - PROPERTIES

...cj


On 8/1/12 9:19 PM, Torsten Wagner wrote:

Hey Bastien,

thanks for keeping the topic up. Well, I guess people who are dealing
with import/export from third-party programs might have an idea how to
use this functionality (and can tell us how useful this would be). I
can try to contact the authors of mobileorg for iphone and android as
well as some other authors of sync-tools (if they are not already
contributing to this discussion). Lets see what is there opinion.

All the best

Torsten


On 1 August 2012 22:29, Bastien b...@gnu.org wrote:

Hi Thorsten,

thanks for the detailed example.  As I said, I tend to be conversative
about such topics.  Not because I'm already too old, but because this is
often not worth the time-to-implement/complexity-in-code.  So I'm still
open to read a very compelling case where tech properties need to be
hidden...

Of course, need is subjective -- let's say if you manage to have at
least 3 friends complaining about tech properties being visible when
unfolding a drawer, I'm all ears :)

--
  Bastien







Re: [O] Agenda view column mode: How to a column showing just today's time?

2012-08-06 Thread Brian Wood

Thanks.  I'll let you know as soon as I have a chance to try it.

Brian Wood
Applications Programmer
UC Berkeley IST Application Services

On 8/5/12 2:13 AM, Bastien wrote:

Hi Brian,

Brian Wood bw...@berkeley.edu writes:


I'd like to replace CLOCKSUM with a column that shows me just the
time spent on the task *today* (not all the time ever spent on the
task).

 From latest git HEAD, you can try this column view:

   #+COLUMNS: %30ITEM %%10CLOCKSUM(Total) %10CLOCKSUM_T(Today)

It will show the total clock sum along with that of today.

HTH,






[O] Subscripts in URLs

2012-08-06 Thread Ken Williams
Hi,

I see in http://lists.gnu.org/archive/html/emacs-orgmode/2010-08/msg01014.html 
that a patch was committed back in 2010 that should prevent underscores from 
introducing subscripts in links.  However, I'm using 7.8.03 (released 
2012-01-03) and when I insert a link like so:

  
[[http://www.mmm.ucar.edu/events/ISP/presentations/JNT_forecast_evaluation_concepts.pdf]]

and export to HTML, I get a link with anchor text 
http://www.mmm.ucar.edu/events/ISP/presentations/JNTforecastevaluationconcepts.pdf,
 where forecastevaluationconcepts is subscripted.  The link *target* is 
correct, though.

Was there a subsequent commit that changes things back, or maybe something else 
I'm missing?  I'd like for the anchor text to just appear without org-mode's 
formatting stuff.

Thanks.

--
Ken Williams, Senior Research Scientist
WindLogics
http://windlogics.com


CONFIDENTIALITY NOTICE: This e-mail message is for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. Any 
unauthorized review, use, disclosure or distribution of any kind is strictly 
prohibited. If you are not the intended recipient, please contact the sender 
via reply e-mail and destroy all copies of the original message. Thank you.



[O] Change: no longer automatically evaluate embedded elisp in code block output Was: babel awk with table input: Code block produced no output.

2012-08-06 Thread Eric Schulte
 so, the first question is, are the semantics of parsing results such
 that random e-lisp-looking code should be executed?  (this seems
 dangerous, but may nevertheless be the intended semantics.)  if one did
 *not* want that behavior, one can call org-babel-read with the
 inhibit-lisp-eval parameter 't, which causes it to *not* try to execute
 any embedded lisp-looking code [2].


The reading of values that look like lisp as lisp is intended behavior
of the `org-babel-read' function at large (e.g., this is how we are able
to pass in the current file name through a header argument), however I
agree that this should probably not be the default behavior when reading
results from a code block.  It is much more likely that a person will
intentionally embed elisp in a header argument, but much less likely
that someone would intentionally write an awk script which returns elisp
(and if that is their goal they can simple pass the awk output to an
emacs-lisp code block).

For this reason I've just pushed up a change which does as you suggest
and inhibits lisp evaluation in the `org-babel-import-elisp-from-file'
function which is only used to import emacs-lisp results from code
blocks.

If anyone is relying on the current behavior please complain about this
change and we can look at other options.


 the error that eval throws is caught by
 org-babel-import-elisp-from-file, which then just silently returns a
 nil.  the second question is, should it report an error to the user?


This will now report the error with a message, but will still return nil
for the table cell's value.

Thanks,


 cheers, Greg Minshall

 

 hi.  it appears that a left or right paren in an entry in a table makes
 awk not execute.  here's an example (change :stdin fails to :stdin
 works to see it work).  cheers, Greg
 
 #+tblname: fails
 | proto  | no c code   ||
 | pscl   | c code, just fine   ||
 | quadprog   | (minimal) c code, just fine ||
 
 #+tblname: works
 | proto  | no c code   ||
 | pscl   | c code, just fine   ||
 | quadprog   | minimal c code, just fine   ||
 
 #+begin_src awk :stdin fails
   BEGIN {
   print starting
   }
   {
   print $0
   }
 #+end_src
 

 [1] in spite of its documentation, i'm not sure what
 org-babel-string-read does.  i thought it was removing quotation marks
 from strings (but wasn't sure why).  but, running this in *scratch*
 gives:
 
 (org-babel-string-read this is \a\ test)
 a
 
 rather than this is a test, as i had assumed.  maybe that was a bogus
 test?

 [2] changing org-babel-string-read to call org-babel-read with
 inhibit-lisp-eval 't causes *my code* to work.  my code *also* works if
 i say :results output or :results scalar; i will defensively use one
 of these for my code.


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



Re: [O] preview latex fragments

2012-08-06 Thread darc...@gmail.com
Do you add the tikz package to the
org-export-latex-default-packages-alist variable?
I had this bug in the past when I added the tikz package to
org-export-latex-default-packages-alist and the bug still exists
today.

Some threads about this (all related to tikz + preview-latex)
http://thread.gmane.org/gmane.emacs.orgmode/42410
http://article.gmane.org/gmane.emacs.auctex.general/4333/match=tikz+preview+latex
http://article.gmane.org/gmane.emacs.orgmode/56253/match=tikz+preview+latex

--
Darlan

2012/8/3 Andreas Leha andreas.l...@med.uni-goettingen.de:
 Hi Bastien,

 Bastien b...@gnu.org writes:

 Hi Andreas,

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

 I experience a problem with the preview of latex fragments:  I can not
 change the foreground color (in org-format-latex-options).  On a dark
 background, the black fragments are barely visible.

 If you are still having this bug, can you try this patch and say if it
 fixes your problem?

   http://patchwork.newartisans.com/patch/1387/

 Thanks!

 I still do see this problem and, unfortunately, this patch does not seem
 to fix it for me.

 Regards,
 Andreas





Re: [O] are super-hidden technical blocks required?

2012-08-06 Thread Ilya Shlyakhter
On Mon, Aug 6, 2012 at 8:12 AM, Jonathan Leech-Pepin
jonathan.leechpe...@gmail.com wrote:
 The issue I can see with completely hiding :PROPERTIES: line is
 that you would then run the risk of adding text at the wrong
 location (between the headline and the drawer for example).  At
 the moment when the drawer is folded you know if the point is
 before, within or after the drawer (even though you still can
 remove parts of :end: by accident with backspaces), if it isn't
 visible at all you don't have that ability.

Maybe, Org should allow text between the headline and the drawer?
Is there a reason not to?

Alternately, if a UNIVERSAL_PROPERTIES drawer was always on the line immediately
following the headline, there would be no way to place text between it
and the headilne.

Also, maybe a hidden drawer could be protected by setting character
properties on it
to make it unmodifiable?



Re: [O] are super-hidden technical blocks required?

2012-08-06 Thread Allen S. Rout

On 08/04/2012 02:10 PM, Ilya Shlyakhter wrote:


One common use would be to store the creation  last-modification dates
of each entry.  I've tried various ways of doing it and they all were
too obtrusive to use on _every_ entry.   Time-stamping of all entries
would be extremely useful, just as time-stamping of files is.
But I don't want to see the timestamps during normal Org usage.



As a user, if your code is decorating my tree, I want to know it.  If 
you hide it, I'd be mad.   Org is my life in plain text, not WordPerfect 
with reveal-codes.



- Allen S. Rout




Re: [O] org-mode S5 Presentation: How to disable mouse click for page turn so that mouse can be used to control embedded interactive chart?

2012-08-06 Thread Feiming Chen
Hi Eric: 

Thank you very much!  Your solution works! 

 Sincerely, 
Feiming Chen





From: Eric Schulte eric.schu...@gmx.com
To: Bastien b...@gnu.org
Cc: Feiming Chen feimingc...@yahoo.com; emacs-orgmode@gnu.org
Sent: Wed, August 1, 2012 9:40:52 AM
Subject: Re: [O] org-mode S5 Presentation: How to disable mouse click for page 
turn so that mouse can be used to control embedded interactive chart?

Bastien b...@gnu.org writes:

 Hi Feiming,

 Feiming Chen feimingc...@yahoo.com writes:

 I am embedding an interactive chart into org-mode S5 presentation on
 web browser.  See this link for the presentation:

 http://stat.fsu.edu/~fchen/emacs-org-babel-mode/googleVis2web.html

 (source file: http://stat.fsu.edu/~fchen/emacs-org-babel-mode/
 googleVis2web.org)


This sounds like more of a general S5 question, rather than an Org-mode
specific question.  Once an Org-mode document has been exported to a
format used by S5, all key presses and mouse click events are handled
directly by the S5 library in use.  I'd suggest contacting the author of
S5 or asking on an S5 mailing list.

After looking through the slides.js file, I think commenting out line
763 (or if you are using a different version of S5, the onclick line)
may do what you want.

https://github.com/eschulte/org-S5/blob/master/ui/default/slides.js#L763

Best,

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


Re: [O] are super-hidden technical blocks required?

2012-08-06 Thread Michael Brand
On Mon, Aug 6, 2012 at 8:16 PM, Allen S. Rout a...@ufl.edu wrote:
 Org is my life in plain text, not WordPerfect with reveal-codes.

I always wondered what Ford Prefect is doing in the Org Manual and why
he is related with Org. :-))

Michael



Re: [O] Use nomencl package with latex exporter?

2012-08-06 Thread Johan Ekh
Thank you Myles,
I'm not that comfortable with cmake but I will give your solution a try and 
report My milage.

/ Johan

Sent from my iPad

On 6 aug 2012, at 14:14, Myles English mylesengl...@gmail.com wrote:

 
 Johan Ekh writes:
 
 Hi all,
 I use the default latex exporter in org-mode v7.8 to write documents using
 a custom latex class which is built on article.
 I would like to use the nomencl latex package if possible.
 
 From the shell I usually run something like
 
 makeindex filename.nlo -s nomencl.ist -o filename.nls
 
 followed by latex or pdflatex, but how can I get the exporter to do
 this?
 
 I don't know the answer to your question, but when I came across the
 same problem, I used a makefile-like solution because I felt that the
 building process was becoming sufficiently complicated to warrant using
 a specialised tool.  If you are comfortable with CMake already it may be
 worth a look.  Have a look for UseLatex.cmake.
 
 Basically you get emacs to export the .tex file from the .org file:
 
 add_custom_command(
  OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mypaper.tex
  COMMAND emacs --batch
--visit=${CMAKE_CURRENT_BINARY_DIR}/mypaper.org
--load=/home/me/myfuncs.el
--funcall org-export-as-latex-batch
  DEPENDS orgfile
  COMMENT Exporting orgmode file to LaTeX using emacs
  )
 
 And then bibtex and nomenclature are asked to do their stuff, and a pdf
 is produced, with something like this directive:
 
 add_latex_document( mypaper.tex
  INPUTS tex/bibliography.tex
 texlib/mystyle.sty
  BIBFILES texlib/mylibrary.bib
  DEFAULT_PDF
  USE_NOMENCL
 )
 
 I also get it to generate all my R plots.  Other advantages are that you
 get an out-of-source build that is isolated (to some extent) in its own
 directory.  And I think it is easier to diagnose the problems when
 things go wrong, better than staring at an elisp backtrace.  Now if org
 would write my CMakeList.txt for me, that would be a fine thing.
 
 Myles



[O] Sagemath with org-babel?

2012-08-06 Thread Johan Ekh
Hi all,
sage is not listed under languages that can be used with org-babel. But it is 
based on
Python, is it possible to use it with org-babel?

/Johan

Sent from my iPad


Re: [O] Use nomencl package with latex exporter?

2012-08-06 Thread Nick Dokos
Johan Ekh ekh.jo...@gmail.com wrote:

 Thank you Myles,
 I'm not that comfortable with cmake but I will give your solution a try and 
 report My milage.
 
 / Johan
 
 Sent from my iPad
 
 On 6 aug 2012, at 14:14, Myles English mylesengl...@gmail.com wrote:
 
  
  Johan Ekh writes:
  
  Hi all,
  I use the default latex exporter in org-mode v7.8 to write documents using
  a custom latex class which is built on article.
  I would like to use the nomencl latex package if possible.
  
  From the shell I usually run something like
  
  makeindex filename.nlo -s nomencl.ist -o filename.nls
  
  followed by latex or pdflatex, but how can I get the exporter to do
  this?

Customize the variable org-latex-to-pdf-process appropriately.

Nick

  I don't know the answer to your question, but when I came across the
  same problem, I used a makefile-like solution because I felt that the
  building process was becoming sufficiently complicated to warrant using
  a specialised tool.  If you are comfortable with CMake already it may be
  worth a look.  Have a look for UseLatex.cmake.
  
  Basically you get emacs to export the .tex file from the .org file:
  
  add_custom_command(
   OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mypaper.tex
   COMMAND emacs --batch
 --visit=${CMAKE_CURRENT_BINARY_DIR}/mypaper.org
 --load=/home/me/myfuncs.el
 --funcall org-export-as-latex-batch
   DEPENDS orgfile
   COMMENT Exporting orgmode file to LaTeX using emacs
   )
  
  And then bibtex and nomenclature are asked to do their stuff, and a pdf
  is produced, with something like this directive:
  
  add_latex_document( mypaper.tex
   INPUTS tex/bibliography.tex
  texlib/mystyle.sty
   BIBFILES texlib/mylibrary.bib
   DEFAULT_PDF
   USE_NOMENCL
  )
  
  I also get it to generate all my R plots.  Other advantages are that you
  get an out-of-source build that is isolated (to some extent) in its own
  directory.  And I think it is easier to diagnose the problems when
  things go wrong, better than staring at an elisp backtrace.  Now if org
  would write my CMakeList.txt for me, that would be a fine thing.
  
  Myles
 






Re: [O] Sagemath with org-babel?

2012-08-06 Thread Thomas S. Dye
Aloha Johan,

Babel can be configured to support new languages, see
http://orgmode.org/worg/org-contrib/babel/languages.html#develop

Someone will need to write language specific functions to support code
block evaluation in sage.  There is a template for this.  The functions
written for other languages provide good examples of what the
sage-specific functions might look like.  

hth,
Tom



Johan Ekh ekh.jo...@gmail.com writes:

 Hi all,
 sage is not listed under languages that can be used with
 org-babel. But it is based on
 Python, is it possible to use it with org-babel?

 /Johan

 Sent from my iPad


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



Re: [O] Sagemath with org-babel?

2012-08-06 Thread Darlan Cavalcante Moreira

I have done this in the past, I don't have the files anymore. However, as
Tom says it is very easy to modify the templates to make org work with
sage. I remember I only needed some search and replace to make it work.

Also, you may want to have a look at sage-mode first if you haven't
already.
http://wiki.sagemath.org/sage-mode

With sage mode installed its is a simple matter to make C-c ' edit the
source code in sage-mode.


--
Darlan

At Mon, 06 Aug 2012 11:33:47 -1000,
t...@tsdye.com (Thomas S. Dye) wrote:
 
 Aloha Johan,
 
 Babel can be configured to support new languages, see
 http://orgmode.org/worg/org-contrib/babel/languages.html#develop
 
 Someone will need to write language specific functions to support code
 block evaluation in sage.  There is a template for this.  The functions
 written for other languages provide good examples of what the
 sage-specific functions might look like.  
 
 hth,
 Tom
 
 
 
 Johan Ekh ekh.jo...@gmail.com writes:
 
  Hi all,
  sage is not listed under languages that can be used with
  org-babel. But it is based on
  Python, is it possible to use it with org-babel?
 
  /Johan
 
  Sent from my iPad
 
 
 -- 
 Thomas S. Dye
 http://www.tsdye.com
 



Re: [O] Introducing Octopress Exporter

2012-08-06 Thread Neil Smithline



Aurélien Aptel mailto:aurelien.ap...@gmail.com
Aug 2, 2012 05:45
I've never heard of octopress, interesting. The only thing I don't
like is how comments are handled. Since it's all static you relying on
an external service like Disqus. I'm not so fond of losing control
over user contribution like that. Besides, the actual service (disqus)
is pretty terrible anyway. I'm always pissed when the comment I sent
gets processed in weird ways yet doesn't do verbatim/code blocks.

Org Mode and Octopress are both about owning your own data. They are a 
perfect fit.


You can get email notifications of your comments or RSS (see 
http://www.accmanpro.com/2011/01/27/subscribe-to-all-comments-using-disqus-in-7-easy-steps/) 
feeds of all your comments. A simple mail filter and you own your 
comments. You can even save them to individual, HTML files.


I'm wondering what blogging system you use and if you really own your 
comments as much as you think. I would argue that individual HTML files 
on my hard drive is a greater degree of ownership than who-knows-what in 
some database


I think that the decision about the use of external service for comments 
(or anything else) is a very important question. Assuming that you can 
own your data, an absolute requirement for me, I think that combining a 
static blog with external, dynamic services is the perfect solution. 
I've discussed this at 
http://www.neilsmithline.com/blog/2012/07/22/blurring-static-and-dynamic-blogs/.


My __static__ Octopress blog is hosted by Github, displays dynamic 
recent tweets care of Twitter, recent Github activity via Github, has a 
per-article Buzz section thanks to SocialMention, and even 
automatically tweets whenever I add a new post via Feedburner and Gmail 
filters.


I should add that my blog is 100% free with the exception of the 
computer I compose the posts on.


For me, static content combined with dynamic interaction is the best 
solution I've found and I've used many blogging services or self-hosted 
blogs.


Octopress is actually my second static blogging system. I used 
Nanoblogger before (I highly don't recommend it). I imported my posts 
from Nanoblogger to Octopress with relative really ease because they 
were both plain-text static blogs. I discuss it at 
http://www.neilsmithline.com/blog/2012/05/14/new-blog-tech/. Importing 
posts from other blogging systems that squirreled everything into a DB 
seemed to painful to me.


Neil

PS: I saw a mention of comment spam. I think that Disqus does a pretty 
good job of managing that. It also helps that my blog is not an 
attractive target as it probably has no more than two or three viewers.




Re: [O] Subscripts in URLs

2012-08-06 Thread Bastien
Hi Ken,

Ken Williams ken.willi...@windlogics.com writes:

 I see in
 http://lists.gnu.org/archive/html/emacs-orgmode/2010-08/msg01014.html that
 a patch was committed back in 2010 that should prevent underscores from
 introducing subscripts in links.  However, I'm using 7.8.03 (released
 2012-01-03) and when I insert a link like so:

   
 [[http://www.mmm.ucar.edu/events/ISP/presentations/JNT_forecast_evaluation_concepts.pdf]]

 and export to HTML, I get a link with anchor text
 http://www.mmm.ucar.edu/events/ISP/presentations/JNTforecastevaluationconcepts.pdf,
 where forecastevaluationconcepts is subscripted.  The link *target* is
 correct, though.

Maybe you have (setq org-export-with-sub-superscripts t) or ^:t in your
buffer? 

Otherwise the link is correctly exported here (I tested 7.8.03 and the
latest version from git.)

 Was there a subsequent commit that changes things back, or maybe something
 else I'm missing?  I'd like for the anchor text to just appear without
 org-mode's formatting stuff.

This should be the default if you use either ^:nil or ^:{}

HTH,

-- 
 Bastien



[O] [PATCH] Fixes org-rmail-store-link

2012-08-06 Thread T.F. Torrey
Hello all,

Attempting to save a link in an Rmail buffer fails with the error
Wrong type argument: arrayp, nil.

Attempting to save a link in an Rmail buffer succeeds if all headers
are shown (by pressing T to toggle the display).

Attempting to save a link in an Rmail summary buffer always fails with
the same error, even if all headers are shown.

The error occurs because org-rmail-store-link attempts to get the
Message-ID header with mail-fetch-field, then remove the angle
brackets with org-remove-angle-brackets. However, without showing full
headers, Message-ID is hidden, and (mail-fetch-field message-id)
returns nil. When this is passed to org-remove-angle-brackets, the
error is thrown.

The attached patch remedies this by toggling on the full header display
before getting the Message-ID.

Emacs  : GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2)
 of 2012-07-29 on doubah, modified by Debian

Package: Org-mode version 7.8.11 (release_7.8.11-360-g7c4ac5-git @ mixed
installation! /usr/local/share/emacs/site-lisp/ and
/home/tftorrey/.emacs.d/src/org-mode/lisp/)

Best to all,
Terry
-- 
T.F. Torrey

diff --git a/lisp/org-rmail.el b/lisp/org-rmail.el
index cb379d3..f8abbf4 100644
--- a/lisp/org-rmail.el
+++ b/lisp/org-rmail.el
@@ -52,6 +52,7 @@
 	  (rmail-show-message rmail-current-message))
 	(when (fboundp 'rmail-narrow-to-non-pruned-header)
 	  (rmail-narrow-to-non-pruned-header))
+	(rmail-toggle-header 0)
 	(let* ((folder buffer-file-name)
 	   (message-id (mail-fetch-field message-id))
 	   (from (mail-fetch-field from))


Re: [O] Introducing Octopress Exporter

2012-08-06 Thread Neil Smithline
PS: By coincidence I just posted an article about Org Mode in my 
Octopress blog :-D


It is the second of at least three postings on my time management system.

The Org Mode posting is at 
http://www.neilsmithline.com/blog/2012/08/05/time-tracking-part-2/


The posting that outlines the entire time management system is 
http://www.neilsmithline.com/blog/2012/08/04/time-tracking/


If you want a sneak peek at some of the next posting, you can look at 
the files in 
https://github.com/Neil-Smithline/time-tracking-experiments/tree/gh-pages/assets


They include:
- Android screen shots of the Time Recording Pro app: The customer and 
job fields are extracted from an Org agenda by some elisp I wrote, 
exported into TRP format, and then imported into TRP.


- Gcal screen shots showing detailed recording of my activities. This is 
a builtin feature of TRP


- Org files that are produced by Memacs. They show data that has been 
harvested from Gcal and imported back into Org.


I have more discussion about the project at 
https://github.com/Neil-Smithline/time-tracking-experiments.


IMO, the coolest part is that I get all this functionality for the small 
price of 300 lines of elisp plus some scripting to wire things together.




Re: [O] are super-hidden technical blocks required?

2012-08-06 Thread Torsten Wagner
Hi,

I would say this discussion is just showing how difficult it becomes
to save all  extra information provided by more and more 3rd party
tools in a smart way in  plain-text.

I can understand both arguments
* hide stuff which is not useful or needed for the user vs.
* its my data and my file, I want to know what is stored in it.

The extra property line is really verbose if the only element inside
is a ID, a timestamp, or some other technical stuff.
Imagine a single list of task each only a view words on a single line.
The property drawer adds three lines to this just to add an ID. Even
collapsed it still doubles the amount of lines.

However, hiding even the collapsed property line has the danger that
people might forget about it and that devs need to make sure that by
any possible way of copy and pasting (and emacs knows many ways) those
hidden lines are not left behind, that text get not added in between
and the syntax remain valid for all kind of operation.

I am unsure how to deal with this. Any kind of font face, special
character, etc. on the next line below the title does not really give
any win. There will be still a second line per tree-node.

Adding something to the title line itself is tricky too. The title
line is rather full already with all the possible features.
I still prefer the proposed selective masking of properties to hide
them. In addition maybe a flag can be set to
+ hide a property drawer line,
+ set a different font face,
+ or leave it as it is
for the special case that the property drawer only contains hidden properties.

But I frighten that this, even it might be the most flexible solution,
might also be the most complex one to implement.

So how to satisfy both views, a clutter free view and the awareness of
what is saved in your file?


Torsten



Re: [O] [PATCH] Fixes org-rmail-store-link

2012-08-06 Thread Nick Dokos
T.F. Torrey tftor...@tftorrey.com wrote:

 ,..
 
 The error occurs because org-rmail-store-link attempts to get the
 Message-ID header with mail-fetch-field, then remove the angle
 brackets with org-remove-angle-brackets. However, without showing full
 headers, Message-ID is hidden, and (mail-fetch-field message-id)
 returns nil. When this is passed to org-remove-angle-brackets, the
 error is thrown.
 
 The attached patch remedies this by toggling on the full header display
 before getting the Message-ID.
 

Shouldn't it be toggled off afterwards?

Nick



Re: [O] More flyspell-overlays removed

2012-08-06 Thread Jeffrey Spencer
Just gave this a go and seems to work well but still forgot to add I
believe:

TYP_TODO
and
ATTR_LATEX

Cheers,
Jeff

On Wed, Aug 1, 2012 at 1:32 AM, Bastien b...@gnu.org wrote:



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

  I would allow fly-prog-mode in the listins, as one normally does for
 plain
  code, no?

 This is indeed the case right now.

 --
  Bastien