[O] Batch processing part of a file

2012-08-21 Thread Loris Bennett
Dear List,

I have an orgmode file for collecting data and producing a plot.  The
file contains a Perl script which runs on a remote machine and generates
Graphviz input.  This is then used to create a PDF file.

I have had a look at

  http://orgmode.org/manual/Batch-execution.html

but it is not clear to me how I would navigate to the right part of the
file so that I could then call org-babel-execute-src-block.

Can anyone help?

Thanks

Loris






Re: [O] Feature that org mode needs most

2012-08-21 Thread Steinar Bang
 Bastien b...@altern.org:
 Steinar Bang s...@dod.no writes:

 (The previously clocked item and it's :CLOCK: drawer was opened.  I don't
 know if that was intentional, or not...?)

 This is intentional -- to make sure you see the change.

 But perhaps the message is enough.  Let me know if you think so.

No, I'm good with the current behaviour.

Thanks!




Re: [O] [OT][GTD] GTDish next action todo keyword, could that influence your productivity in any way?

2012-08-21 Thread Mike McLean

On Aug 19, 2012, at 10:59 PM, Marcelo de Moraes Serpa celose...@gmail.com 
wrote:

 What do you think; and what word do you use as your TODO keyword?

I use:

(sequence BACKLOG(b!) TODO(t!) DOING(o!)  | DONE(d!))

I treat my Task sequence as a form of a non-visual Kanban. I self-impose 
workflow limits on the number of items that are allow to be DOING (currently in 
process) and TODO (committed to doing). I use BACKLOG for items that I have 
captured but not necessarily committed to yet. I try to always select work from 
my DOING list. If that has space available in the workflow limit I review my 
TODO list and “pull” into DOING. If the TODO list has space available, I review 
BACKLOG and pull forward into doing. I have agenda view for each of these 
“Kanban Lanes”.

I have a grand thought of someday writing an agenda view or mode that looks 
like a Kanban board -- I've seen some of what can be done with respect to views 
in Emacs from the ~calfw~ package, so it is just a matter of time.

Other's have mentioned ideas like waiting on someone else, needs to be 
verified, etc. I keep those as a separate ~org-todo-keywords~ sequences so that 
I can use ~S-left~ nearly exclusively as my keystroke to “pull” an item 
forward in the value stream. So for completeness, my task sequence also 
includes:

(sequence WAITING(W@) VERIFY(v@/!) | NOT_DONE(N@/!))
(sequence ERRANDS(E!) | DONE(d!))
(sequence RECURRENT(!) | DONE(!))

I only have to use a direct task selection (not S-left) when moving a task 
out of the main flow into WAITING or VERIFY or moving a task back from WAITING 
or VERIFY into the main sequence. 

HTH

Mike



[O] Problem with backslash and Freemind-Export

2012-08-21 Thread Martin Beck
Hello,Im trying to export org-mode files to freemind-format (.mm) and Im encoutering the following problem:After invoking the export with C-c C-e m,I get an error message Invalid use of in replacement text in the status bar,and no output file.The reason seems to be the backslash Im using in Hyperlinks to directory paths in Windows 7 like in C:directory or myservernamedirectorynetworkpathIve created a minimal example (filename test.org) here:  * Heading 1** Heading 1.1this is my text for here** Heading 1.2this is another sample text followed by a link:[[C:tmp][link to tmp directory]]* Heading 2 Im using org-mode 7.8.11 and Gnu Emacs 24.1.1 on Windows 7.Any help is appreciated - it would be great if the used network paths could also be converted in clickable Hyperlinks in Freemind and if I would get no error but a resulting .mm file.Kind regardsMartin



Re: [O] Batch processing part of a file

2012-08-21 Thread Nick Dokos
Loris Bennett loris.benn...@fu-berlin.de wrote:

 Dear List,
 
 I have an orgmode file for collecting data and producing a plot.  The
 file contains a Perl script which runs on a remote machine and generates
 Graphviz input.  This is then used to create a PDF file.
 
 I have had a look at
 
   http://orgmode.org/manual/Batch-execution.html
 
 but it is not clear to me how I would navigate to the right part of the
 file so that I could then call org-babel-execute-src-block.
 
 Can anyone help?
 

Haven't tested it but this should work: make sure that the code block is
named and then use org-babel-goto-named-src-block.

Nick




Re: [O] TODO keyword completion bug

2012-08-21 Thread Bastien
Hi Aidan,

Aidan Gauland aidal...@no8wireless.co.nz writes:

 I have some (buffer-local) keywords defined that contain dashes to
 separate words (because I couldn't think of a single word that would be
 clear).  M-TAB completion does not appear to work for these keywords.

 This has made me reconsider my choice of keywords, but since they're
 valid keywords, shouldn't they be valid candidates for completion
 (i.e. is this a bug)?

Keywords is ambiguous here.

TODO keywords like MY-TODO complete fine with M-TAB.

#+MY_KEYWORD does not complete fine with M-TAB, but since this keyword
appears in the buffer anyway, you can simply use M-/.

HTH,

-- 
 Bastien



Re: [O] new exporter and latex attributes

2012-08-21 Thread Bastien
Hi Nicolas,

Nicolas Goaziou n.goaz...@gmail.com writes:

 Use something like the following.

There is still a bug here.

I've encountered it many times.

 * Test width attribute
 #+NAME: graph
 #+begin_src dot :file t.png 
   digraph g { a - b }
 #+end_src

 #+ATTR_LATEX: width=3in
 #+RESULTS: graph
 [[file:t.png]]

When reevaluating the source block with C-c C-c, the #+ATTR_LATEX 
will be deleted.   Can you or Eric look for a way to fix this?  I 
see no reason why #+ATTR_LATEX should be deleted...

-- 
 Bastien



Re: [O] new exporter and latex attributes

2012-08-21 Thread Bastien
Rick Frankel r...@rickster.com writes:

 That doesn't make sense. In the current exporter, all attributes
 (html, latex, etc) applied to the export are placed directly before
 the source block.

This should change.  Attributes are attributes to something (big up
Husserl), so attributes to images should be placed right before the
images, etc.

-- 
 Bastien



Re: [O] new exporter and latex attributes

2012-08-21 Thread Nicolas Goaziou
Hello,

Bastien b...@altern.org writes:

 There is still a bug here.

 I've encountered it many times.

 * Test width attribute
 #+NAME: graph
 #+begin_src dot :file t.png 
   digraph g { a - b }
 #+end_src

 #+ATTR_LATEX: width=3in
 #+RESULTS: graph
 [[file:t.png]]

 When reevaluating the source block with C-c C-c, the #+ATTR_LATEX 
 will be deleted.

I cannot reproduce it. What is your Babel config?


Regards,

-- 
Nicolas Goaziou



[O] Interaction between org tables and embedded calc

2012-08-21 Thread Gilles Charron
Hi,

  I recently discovered the beauty of emacs embedded calc.  Works great inside
org files for note taking with math  engineering related content.   

I've been trying to get org tables and embedded calc to coordinate with each
other using assigned variables however it appears that embedded calc uses some
sort of namespace for storing variables.  Below is a sample of what I'm trying
to do:

Let's say I need to calculate something - I'll assign it to an embedded calc
variable:

myVariable := 1 + 0.5 =  1.5

Now, embedded calc knows about myVariable .  Next I would like to use this
variable inside a org table (like offset all elements in a column with
myVariable):

| Data | Corrected Data (-myVariable) |
| 0| should yield -1.5|
| 1| should yield -0.5|
| 2| should yield  0.5|

I've been trying to use calc-eval along with evalv however they don't appear to
resolve myVariable.   

Reading though the embedded calc documentation:


The assignment operator `a := 17' does not actually do anything by itself. But
Embedded Mode recognizes it and marks it as a sort of file-local definition of
the variable.

How can I access these file-local definitions through calc-eval or org
tables?  Essentially, I'm looking for an equivalent of org properties
$PROP_propertyName which can be accessed in org tables.  

I would also like the ability to read from an org table and use the content
later in a embedded math equation:

| Data |
|--|
| 1|
| 2|
| 3|
|--|
| 6|
#+TBLFM: @5$1=vsum(@I..II)

Would like to read the results (6) and use it in a equation:

MoreProcessing := $result + 1.234

How would one go about doing this?


Thanks!
Gilles




Re: [O] new exporter and latex attributes

2012-08-21 Thread Nick Dokos
Bastien b...@altern.org wrote:

 Hi Nicolas,
 
 Nicolas Goaziou n.goaz...@gmail.com writes:
 
  Use something like the following.
 
 There is still a bug here.
 
 I've encountered it many times.
 
  * Test width attribute
  #+NAME: graph
  #+begin_src dot :file t.png 
digraph g { a - b }
  #+end_src
 
  #+ATTR_LATEX: width=3in
  #+RESULTS: graph
  [[file:t.png]]
 
 When reevaluating the source block with C-c C-c, the #+ATTR_LATEX 
 will be deleted.   Can you or Eric look for a way to fix this?  I 
 see no reason why #+ATTR_LATEX should be deleted...
 

FWIW, I cannot reproduce this.

Nick

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



[O] GNU Emacs ported to Android

2012-08-21 Thread Karl Voit
Hi!

I just stumbled upon
https://play.google.com/store/apps/details?id=com.zielm.emacshl=en

It is still in an early phase but still I am dreaming of having
Org-mode on my XOOM tablet ... :-)

HW/SW-keyboard is still an issue here IMHO. The Ctrl/ESC keys of my
freedom pro HW-Bluetooth-keyboard does not seem to work on Android
:-( I tried it for using mutt/slrn over ConnectBot/ssh ...

Anybody else sharing experiences with Emacs or HW-keyboards on
Android?

-- 
Karl Voit




[O] Arbitrary colouration of words/sentences etc. in HTML export?

2012-08-21 Thread Jos'h Fuller
Hi!

Is there any good quick and /simple/ way to drop an arbitrary colour on a 
sequence of characters that will show up in the exported HTML page?

I have introduced a colleague to org-mode for generating documentation, however 
they want to use multiple colours to highlight different terms. Adding a CSS 
style rule for *bold* is OK, but it would be nice to do other colours without 
rendering the other common styles (/i/, _underscore_, etc.) useless. Something 
like:

#+HTML: span class=greenish
Greenword
#+HTML: /span

or even this:

@span style=color: green Greenword @/span

is far too clumsy. Especially since they're using it partly so they don't have 
to deal with HTML.

Any better way to do this?

Thanks very much!

___

Jos'h Fuller, Production Programmer

Arc Productions Ltd. 

p: 416.682.5237  | f: 416.682.5209 | http://www.arcproductions.com 
230 Richmond Street East | Toronto, ON M5A 1P4 |




Re: [O] Arbitrary colouration of words/sentences etc. in HTML export?

2012-08-21 Thread Eric Schulte
Jos'h Fuller Jos'h.ful...@arcproductions.com writes:

 Hi!

 Is there any good quick and /simple/ way to drop an arbitrary colour on a 
 sequence of characters that will show up in the exported HTML page?

 I have introduced a colleague to org-mode for generating
 documentation, however they want to use multiple colours to highlight
 different terms. Adding a CSS style rule for *bold* is OK, but it
 would be nice to do other colours without rendering the other common
 styles (/i/, _underscore_, etc.) useless. Something like:

 #+HTML: span class=greenish
 Greenword
 #+HTML: /span

 or even this:

 @span style=color: green Greenword @/span

 is far too clumsy. Especially since they're using it partly so they don't 
 have to deal with HTML.

 Any better way to do this?


Hi Jos'h,

Add the following to your Emacs config,

;; -*- emacs-lisp -*-
(org-add-link-type
 color
 (lambda (path)
   (message (concat color 
(progn (add-text-properties
0 (length path)
(list 'face `((t (:foreground ,path
path) path
 (lambda (path desc format)
   (cond
((eq format 'html)
 (format span style=\color:%s;\%s/span path desc))
((eq format 'latex)
 (format {\\color{%s}%s} path desc)

and then you can use [[color:red][in red]] for colored export.

Best,

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



Re: [O] Arbitrary colouration of words/sentences etc. in HTML export?

2012-08-21 Thread Jos'h Fuller
Perfect! Thanks /very/ much!

___

Jos'h Fuller, Production Programmer

Arc Productions Ltd. 

p: 416.682.5237  | f: 416.682.5209 | http://www.arcproductions.com 
230 Richmond Street East | Toronto, ON M5A 1P4 |


 -Original Message-
 From: Eric Schulte [mailto:eric.schu...@gmx.com]
 Sent: Tuesday, August 21, 2012 12:06 PM
 To: Jos'h Fuller
 Cc: emacs-orgmode@gnu.org
 Subject: Re: [O] Arbitrary colouration of words/sentences etc. in HTML
 export?
 
 Jos'h Fuller Jos'h.ful...@arcproductions.com writes:
 
  Hi!
 
  Is there any good quick and /simple/ way to drop an arbitrary colour
 on a sequence of characters that will show up in the exported HTML
 page?
 
  I have introduced a colleague to org-mode for generating
  documentation, however they want to use multiple colours to highlight
  different terms. Adding a CSS style rule for *bold* is OK, but it
  would be nice to do other colours without rendering the other common
  styles (/i/, _underscore_, etc.) useless. Something like:
 
  #+HTML: span class=greenish
  Greenword
  #+HTML: /span
 
  or even this:
 
  @span style=color: green Greenword @/span
 
  is far too clumsy. Especially since they're using it partly so they
 don't have to deal with HTML.
 
  Any better way to do this?
 
 
 Hi Jos'h,
 
 Add the following to your Emacs config,
 
 ;; -*- emacs-lisp -*-
 (org-add-link-type
  color
  (lambda (path)
(message (concat color 
 (progn (add-text-properties
 0 (length path)
 (list 'face `((t (:foreground ,path
 path) path
  (lambda (path desc format)
(cond
 ((eq format 'html)
  (format span style=\color:%s;\%s/span path desc))
 ((eq format 'latex)
  (format {\\color{%s}%s} path desc)
 
 and then you can use [[color:red][in red]] for colored export.
 
 Best,
 
 --
 Eric Schulte
 http://cs.unm.edu/~eschulte



[O] bug: isearch creates useless ellipses

2012-08-21 Thread Samuel Wales
This is likely not a quick fix.

When an Org file is folded, and I do isearch on a string in the body,
then press RET, the very first line gets ellipses.

Here is an example.  Iniitially the buffer might be like this:

=== beginning of window
* blog...
=== end of window

Point is at beginning of buffer.

That is expected because the entire subtree is folded.

Then I search for sloppy emulsion and press RET.

I get this:

=== beginning of window
...
*** Above all
Above all, it is a collapse of the uneasy and corrupt
identification of science -- that principled, unbiased, at
times necessarily subversive, transparent, open-minded, and
often selfless search for natural reality -- with rank
authority.  The sloppy emulsion of water in oil.
=== end of window

Note the ... on the first line.  (Above that is merely ordinary body
text in a sibling.)

This hides things that do not need hiding (because we know that there
are lines above the top of the window), is highly distracting, and
reduces the number of lines visible by a significant amount for people
with small monitors, mobile devices, or very large fonts.  (You might
need to set near-maximum font sizes to reproduce.)

Over many years, I have of course tried org-show-* variables, isearch
hooks, and many other things to try to solve this and related
problems.

To give you some context, my visibility goal with Org is to *always*
have the buffer show what can be generated using TAB and movement
commands alone.  I call this canonical visibility.

In addition, showing ellipsis on a line by themselves at the top or
bottom of the window as a result of isearch or a similar operation is
non-canonical.

Canonical visibility throughout all of Org, including all corner cases
like jumping from agenda and isearch, does not seem to be possible.

(org-reveal t) seems to create those ellipses, or at least used to.

It might be an Emacs bug, not an Org one, but I have reached my limit in
trying to fix this.  There will certainly be somebody on this
list who knows more about how visibility is accomplished in Org.

I don't know if anybody will be able to reproduce this particular
non-canonicality as it might be a specific OSX implementation issue.

Thanks.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com



[O] Note about decimal mark for numbers

2012-08-21 Thread Nicolas Goaziou
Hello,

In a recent commit, I've modified `org-table-number-regexp' so it can
recognize numbers with a comma as the decimal mark by default.

The variable is almost exclusively used for column alignment in tables,
so it should be a cosmetic change only. Though, do not hesitate to
report any suspicious behaviour in tables (when working with csv for
example).

Also, remember that `org-table-number-regexp' is customizable, so you
can undo this change locally.


Regards,

-- 
Nicolas Goaziou



Re: [O] Note about decimal mark for numbers

2012-08-21 Thread Achim Gratz
Nicolas Goaziou writes:
 In a recent commit, I've modified `org-table-number-regexp' so it can
 recognize numbers with a comma as the decimal mark by default.

This should really follow the definitions in the locale...


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

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] new exporter and latex attributes

2012-08-21 Thread Bastien
Nick Dokos nicholas.do...@hp.com writes:

 FWIW, I cannot reproduce this.

Me neither, dunno what I did.  Sorry for the noise,

-- 
 Bastien



Re: [O] GNU Emacs ported to Android

2012-08-21 Thread Bastien
Hi Karl,

Karl Voit devn...@karl-voit.at writes:

 Anybody else sharing experiences with Emacs or HW-keyboards on
 Android?

sorry to act like a police officer, but please keep those discussions
where they belong to -- either some Android or Emacs list.  You will
probably have more answers on help-gnu-em...@gnu.org 

Thanks for your understanding!

-- 
 Bastien



Re: [O] GNU Emacs ported to Android

2012-08-21 Thread Ian Barton

On 21/08/12 16:22, Karl Voit wrote:


I just stumbled upon
https://play.google.com/store/apps/details?id=com.zielm.emacshl=en

It is still in an early phase but still I am dreaming of having
Org-mode on my XOOM tablet ... :-)

HW/SW-keyboard is still an issue here IMHO. The Ctrl/ESC keys of my
freedom pro HW-Bluetooth-keyboard does not seem to work on Android
:-( I tried it for using mutt/slrn over ConnectBot/ssh ...

Anybody else sharing experiences with Emacs or HW-keyboards on
Android?

Thanks for the heads up. Off to play. The android Hackers Keyboard has 
Ctrl, Alt, etc. I use it to run Emacs via a terminal. However, a 
hardware keyboard that worked would be great.


Ian.



Re: [O] Arbitrary colouration of words/sentences etc. in HTML export?

2012-08-21 Thread Bastien
Eric Schulte eric.schu...@gmx.com writes:

 Add the following to your Emacs config,

I added this to the Org FAQ.  Thanks!

-- 
 Bastien



[O] export inline image from source results?

2012-08-21 Thread Petro
Hi all.
I generate an image from python source like this:
_
#+BEGIN_SRC python :results output raw :export results 
  from pylab import figure, plot
  import pylab as plt 
  import numpy as np
  plt.ioff()
  figure()
  plot(np.random.rand(10),'o')
  pic_name='fit_rates1.svg'
  path_name='/home/petro/tmp/'
  plt.savefig(path_name + pic_name) 
  print [ + [ + path_name + pic_name +]]
  
#+END_SRC

#+RESULTS:
[[/home/petro/tmp/fit_rates1.svg]]

_
Can I export the result? Rigth now the image is exported only if I copy the 
image link and
paste it few lines below.
Thanks.
Petro




Re: [O] Faces interaction between org-mode and emacs24

2012-08-21 Thread Bastien
Hi Jay,

Jay McCarthy jay.mccar...@gmail.com writes:

 Yes, it was under column mode.

Okay, thanks...

 I tried in vain to make a small example but my emacs-fu is not strong
 enough. Attached is what I started to do...

I applied your patch.  Thanks for hunting this!

-- 
 Bastien



Re: [O] Note about decimal mark for numbers

2012-08-21 Thread Jambunathan K
Achim Gratz strom...@nexgo.de writes:

 Nicolas Goaziou writes:
 In a recent commit, I've modified `org-table-number-regexp' so it can
 recognize numbers with a comma as the decimal mark by default.

 This should really follow the definitions in the locale...

That was my first reaction to it as well.  

But then Org is no office suite.  It's more of a SOHO suite.

 Regards,
 Achim.

-- 



Re: [O] Wrong indentation with auto-fill within lists ?

2012-08-21 Thread Luis Mochán
Thanks Bastien,
I thought that there was nothing to do when using debian
packages. Anyway, for the time being, I removed the org-mode package,
as org-mode works with the emacs23 package and I obtained the
documentation from elsewhere. 
Regards,
Luis


On Mon, Aug 20, 2012 at 10:38:43PM +0200, Bastien wrote:
 Hi Luis,
 
 Luis Mochán moc...@fis.unam.mx writes:
 
  Are there conflicts due to the apparent 
  coexistence of two org-mode versions (that provided by the emacs23 debian
  package and the other provided by the org-mode package)?
 
 If you use a separate Org distribution (as a package or cloned from 
 the git repository), don't forget to create autoloads.
 
 ~$ make autoloads
 
 then
 
 (require 'org-install)
 
 in your .emacs.el should do.
 
 -- 
  Bastien

-- 

  o
W. Luis Mochán,  | tel:(52)(777)329-1734 /(*)
Instituto de Ciencias Físicas, UNAM  | fax:(52)(777)317-5388 `/   /\
Apdo. Postal 48-3, 62251 |   (*)/\/  \
Cuernavaca, Morelos, México  | moc...@fis.unam.mx   /\_/\__/

O ascii ribbon campaign - stop html mail - www.asciiribbon.org 





Re: [O] Feature that org mode needs most

2012-08-21 Thread Bastien
Steinar Bang s...@dod.no writes:

 Bastien b...@altern.org:
 Steinar Bang s...@dod.no writes:

 (The previously clocked item and it's :CLOCK: drawer was opened.  I don't
 know if that was intentional, or not...?)

 This is intentional -- to make sure you see the change.

 But perhaps the message is enough.  Let me know if you think so.

 No, I'm good with the current behaviour.

Okay -- thanks for letting me know,

-- 
 Bastien



Re: [O] ELPA/server.mk

2012-08-21 Thread Jambunathan K

I added the diff below to Makefile and did a 
  $ make elpa

Quick comments: It is far from OK.  
1. The bundle is a tar file not tar.gz file.
2. The lisp files should be right in the root not in lisp/ subdir.

Best way to test the ELPA tar is to do a
M-x package-install-file RET org-*.tar.

and point in to the tar.

May be you should just reproduce my recipe from the mainline Makefile or
better still org-jambu.git.

diff --git a/Makefile b/Makefile
index a1902a1..6a33ece 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,8 @@
  include default.mk# defaults, customizable via local.mk
 -include local.mk  # optional local customization, use default.mk as 
template
 
+include UTILITIES/server.mk
+
 # default target is all unless overridden in local.mk
 all::
 






 Jambunathan K writes:
 If I am not mistaken, you are talking about release tar and not the ELPA
 tar.  They are not the same.

 I know.

 Run rgrep like so.
 (rgrep pkg *.mk ~/src/org-mode/ nil)

 and I see no references to 'org-pkg.el'.  (Note the `-pkg.el')

 It's not pushed to the orgmode repository yet.  Please have a look at
 the ELPA tar produced with the following patch (after including
 UTILITIES/server.mk from your local.mk):


 From 0bf94de6edfa99a1f47dedbb9ccbbde44417c259 Mon Sep 17 00:00:00 2001
 From: Achim Gratz strom...@stromeko.de
 Date: Sun, 19 Aug 2012 12:04:58 +0200
 Subject: [PATCH] server.mk: implement ELPA

 * UTILITIES/server.mk: Add ELPA archive generation.
 ---
  UTILITIES/server.mk | 47 ---
  1 file changed, 32 insertions(+), 15 deletions(-)

 diff --git a/UTILITIES/server.mk b/UTILITIES/server.mk
 index 67f5155..a9ae010 100644
 --- a/UTILITIES/server.mk
 +++ b/UTILITIES/server.mk
 @@ -1,38 +1,55 @@
  #--
  # This file is used for maintenance of org on the server.
  #--
 -.PHONY:  helpserver reltest rel-dirty warn
 +.PHONY:  helpserver release rel-dirty tagwarn
  
  help helpall helpserver::
   $(info )
   $(info Maintenance)
   $(info ===)
 - $(info reltest   - clean up and create TAR/ZIP release 
 archives)
 + $(info release   - clean up and create TAR/ZIP release 
 archives)
 + $(info elpa  - clean up and create ELPA TAR archive)
  helpserver::
   @echo 
  
  #--
  
 -ORGDIR = org-$(GITVERSION)
 -ORGTAR = $(ORGDIR).tar.gz
 -ORGZIP = $(ORGDIR).zip
 -ORGDIST = README Makefile default.mk targets.mk request-assign-future.txt \
 -   lisp/ etc/ doc/ contrib/
 +ORGCOMM = README request-assign-future.txt lisp/ doc/
 +ORGFULL = $(ORGCOMM) Makefile default.mk targets.mk etc/ contrib/
 +ORGELPA = $(ORGCOMM) etc/styles/ org-pkg.el
  
 -ORG_MAKE_DOC = info pdf card # do not make HTML documentation for release
 -
 -reltest: cleanall doc autoloads rel-dirty
 +release: ORG_MAKE_DOC=info pdf card # do not make HTML documentation
 +release: cleanall doc autoloads rel-dirty
 +rel-dirty:   ORGRDIR=org-$(GITVERSION)
  rel-dirty:
 + -@$(RM) $(ORGRDIR) $(ORGRTAR) $(ORGRZIP)
 + ln -s . $(ORGRDIR)
 + tar -zcf $(ORGDIR).tar.gz $(foreach dist, $(ORGFULL), 
 $(ORGRDIR)/$(dist))
 + zip -r9  $(ORGDIR).zip$(foreach dist, $(ORGFULL), 
 $(ORGRDIR)/$(dist))
 + -@$(RM) $(ORGRDIR)
 + $(if $(filter-out $(ORGVERSION), $(GITVERSION)), \
 + @$(MAKE) tagwarn)
 + @echo ORGVERSION=$(ORGVERSION) GITVERSION=$(GITVERSION)
 +
 +PKG_TAG = $(shell date +%Y%m%d)
 +PKG_DOC = Outline-based notes management and organizer
 +PKG_REQ = nil
 +
 +elpa:ORG_MAKE_DOC=info pdf card # do not make HTML 
 documentation
 +elpa:cleanall doc autoloads elpa-dirty
 +elpa-dirty:  ORGDIR=org-$(PKG_TAG)
 +elpa-dirty:
   -@$(RM) $(ORGDIR) $(ORGTAR) $(ORGZIP)
   ln -s . $(ORGDIR)
 - tar -zcf $(ORGTAR) $(foreach dist, $(ORGDIST), $(ORGDIR)/$(dist))
 - zip -r9 $(ORGZIP) $(foreach dist, $(ORGDIST), $(ORGDIR)/$(dist))
 - -@$(RM) $(ORGDIR)
 + echo (define-package \org\ \$(PKG_TAG)\ \$(PKG_DOC)\ 
 $(PKG_REQ)) org-pkg.el
 + tar --exclude=Makefile  -zcf $(ORGDIR).tar.gz \
 +   $(foreach dist, $(ORGELPA), $(ORGDIR)/$(dist))
 + -@$(RM) $(ORGDIR) org-pkg.el
   $(if $(filter-out $(ORGVERSION), $(GITVERSION)), \
 - @$(MAKE) warn)
 + @$(MAKE) tagwarn)
   @echo ORGVERSION=$(ORGVERSION) GITVERSION=$(GITVERSION)
  
 -warn:
 +tagwarn:
   $(info  ==)
   $(info  ==)
   $(info  = A release should only be made from a revision that =)
 -- 
 1.7.11.5




 Regards,
 Achim.

-- 



Re: [O] implement appt warntime

2012-08-21 Thread Ivan Kanis
Hey Bastien,

Bastien b...@altern.org wrote:

 Indeed.  It should works fine now, please test and tell me.

Works great, thank you!
-- 
Ivan Kanis
http://ivan.kanis.fr

If it works, it's obsolete.
-- Marshall McLuhan



Re: [O] new exporter and latex attributes

2012-08-21 Thread Rick Frankel
On Tue, Aug 21, 2012 at 01:34:16AM -0400, Nick Dokos wrote:
 Rick Frankel r...@rickster.com wrote:
 
  On Tue, Aug 21, 2012 at 12:54:25AM +0200, Nicolas Goaziou wrote:
   Hello,
   
   Use something like the following.
   
   * Test width attribute
   #+NAME: graph
   #+begin_src dot :file t.png 
 digraph g { a - b }
   #+end_src
   
   #+ATTR_LATEX: width=3in
   #+RESULTS: graph
   [[file:t.png]]
   

 Named source blocks will refresh the corresponding named results blocks
 anywhere in the file: they don't produce a new set each time they are
 executed and it doesn't matter whether they are disconnected. I'm not
 sure how far back this behavior goes, but it is how current (well,
 slightly out-of-date but not too much) master-branch org behaves.
 

Yes. IF the source block is named, the results block will be
replaced regardless of where it lives in the file, so adding
attributes above the results block works.

BUT, if the source block is not named then a duplicate results will be
created above the current results block w/ the attribute header when
the source block is re-evaluated.

I guess it's acceptable to require all source blocks to be named if
you want to have header attributes associated with the generated
results, but this is a significant incompatible change from the
behavior of the current exporter...

rick



Re: [O] ELPA/server.mk

2012-08-21 Thread Achim Gratz
Jambunathan K writes:
 I added the diff below to Makefile and did a 
   $ make elpa

I said edit local.mk... :-) Really, leave Makefile alone.

 Quick comments: It is far from OK.  

Close enough for me.

 1. The bundle is a tar file not tar.gz file.

I hadn't considered that package manager cannot process a compressed
tar.

 2. The lisp files should be right in the root not in lisp/ subdir.

The documentation just as well, otherwise it is not correctly
registered.  Well, not really a problem.

 Best way to test the ELPA tar is to do a
 M-x package-install-file RET org-*.tar.

Thanks.

I'll push a new version of server.mk that has the changes above and
installs and activates OK on my local version of Emacs.  Please test
again, hopefully further changes won't be needed.


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

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables




Re: [O] export inline image from source results?

2012-08-21 Thread Eric Schulte
Petro x.pi...@gmail.com writes:

 Hi all.
 I generate an image from python source like this:
 _
 #+BEGIN_SRC python :results output raw :export results 
   from pylab import figure, plot
   import pylab as plt 
   import numpy as np
   plt.ioff()
   figure()
   plot(np.random.rand(10),'o')
   pic_name='fit_rates1.svg'
   path_name='/home/petro/tmp/'
   plt.savefig(path_name + pic_name) 
   print [ + [ + path_name + pic_name +]]
   
 #+END_SRC

 #+RESULTS:
 [[/home/petro/tmp/fit_rates1.svg]]

 _
 Can I export the result? Rigth now the image is exported only if I copy the 
 image link and
 paste it few lines below.

Hi Petro,

Is the link exported at all, or do you get no results export?

You could add the following additional header argument to your code
block to inform org-mode that the results are a link to a file.

  :file /home/petro/tmp/fit_rates1.svg

Best,

 
 Thanks.
 Petro



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



Re: [O] TODO keyword completion bug

2012-08-21 Thread Aidan Gauland
Bastien b...@altern.org writes:
 Hi Aidan,
 Aidan Gauland aidal...@no8wireless.co.nz writes:
 I have some (buffer-local) keywords defined that contain dashes to
 separate words (because I couldn't think of a single word that would be
 clear).  M-TAB completion does not appear to work for these keywords.

 This has made me reconsider my choice of keywords, but since they're
 valid keywords, shouldn't they be valid candidates for completion
 (i.e. is this a bug)?

 Keywords is ambiguous here.

 TODO keywords like MY-TODO complete fine with M-TAB.

 #+MY_KEYWORD does not complete fine with M-TAB, but since this keyword
 appears in the buffer anyway, you can simply use M-/.

OK, so I'll just use M-/.

I have the keywords defined with #+TODO:.  I just tried playing around
with them a bit, and I have found that the problem is not exactly as I
thought: keywords with dashes, such as MY-TODO, do not complete with
M-TAB if I try to complete from after the dash, i.e. M-TAB on MY- does
not complete.  TODO keyword completion does not work at all if there is
already a headline, e.g. * TO[M-TAB here] Buy bread

So, if this is a bug, I now have a workaround; if it's not a bug, then I
now know how to properly use TODO completion.  I'll leave it to you (the
Org-mode devs) to decide whether to treat this as a bug.

Thanks,
Aidan Gauland




Re: [O] new exporter and latex attributes

2012-08-21 Thread Nicolas Goaziou
Hello,

Rick Frankel r...@rickster.com writes:

 BUT, if the source block is not named then a duplicate results will be
 created above the current results block w/ the attribute header when
 the source block is re-evaluated.

That's correct.

For convenience, Babel might copy src-block attributes to the generated
results upon block evaluation. It would be strange though: do both
src-block and results have to share the same caption, the same label..?
We could limit copy to ATTR keywords, perhaps. I feel it's hackish,
though.

 I guess it's acceptable to require all source blocks to be named if
 you want to have header attributes associated with the generated
 results, but this is a significant incompatible change from the
 behavior of the current exporter...

There are a few incompatible changes, indeed. You can't make an omelette
without breaking eggs.


Regards,

-- 
Nicolas Goaziou



Re: [O] export inline image from source results?

2012-08-21 Thread Petro
Eric Schulte eric.schu...@gmx.com writes:

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

 Hi all.
 I generate an image from python source like this:
 _
 #+BEGIN_SRC python :results output raw :export results 
   from pylab import figure, plot
   import pylab as plt 
   import numpy as np
   plt.ioff()
   figure()
   plot(np.random.rand(10),'o')
   pic_name='fit_rates1.svg'
   path_name='/home/petro/tmp/'
   plt.savefig(path_name + pic_name) 
   print [ + [ + path_name + pic_name +]]
   
 #+END_SRC

 #+RESULTS:
 [[/home/petro/tmp/fit_rates1.svg]]

 _
 Can I export the result? Rigth now the image is exported only if I copy the 
 image link and
 paste it few lines below.

 Hi Petro,

 Is the link exported at all, or do you get no results export?

 You could add the following additional header argument to your code
 block to inform org-mode that the results are a link to a file.

   :file /home/petro/tmp/fit_rates1.svg

 Best,

 
 Thanks.
 Petro

I think I cannot use :file header argument, if I remember well with this
argument org-mode will create a new results file overwriting the one
created by a command in the source code. 
My problem solved. I've made a mistake of using :export instead of
:exports in the source header. Now everything works.
Thanks
Petro





[O] image format for all exporters

2012-08-21 Thread Petro
Hi list.
Is there an image format (vector preferably) supported by all exporters
(html, pdf, org). I prefer to save pictures in a vector format, svg for
example. But svg image is exported as a link during odt and html
export. Is there a way to change it?
Thanks.
Petro.





[O] Tinychange

2012-08-21 Thread Charles

Fix result in table at Section 3.5.9 of Org Manual

see attachment

The problem was that the result for TBLFM: $at=vmean(@-II..@-I);%.1f showed 
29.7 as the vmean of 41 and 9, whereas 25.0 is correct.

Charlie Millar

*** org.texi2012/08/21 20:29:54 1.1
--- org.texi2012/08/21 21:11:00
***
*** 2898,2904 
  | # | Peter   | 10 |  8 | 23 |41 |  8.2 |
  | # | Sam |  2 |  4 |  3 | 9 |  1.8 |
  |---+-++++---+--|
! |   | Average ||||  29.7 |  |
  | ^ | ||||at |  |
  | $ | max=50  ||||   |  |
  |---+-++++---+--|
--- 2898,2904 
  | # | Peter   | 10 |  8 | 23 |41 |  8.2 |
  | # | Sam |  2 |  4 |  3 | 9 |  1.8 |
  |---+-++++---+--|
! |   | Average ||||  25.0 |  |
  | ^ | ||||at |  |
  | $ | max=50  ||||   |  |
  |---+-++++---+--|


Re: [O] Tinychange

2012-08-21 Thread Bastien
Hi Charles,

Charles mill...@verizon.net writes:

 Fix result in table at Section 3.5.9 of Org Manual

 see attachment

 The problem was that the result for TBLFM: $at=vmean(@-II..@-I);%.1f showed
 29.7 as the vmean of 41 and 9, whereas 25.0 is correct.

Fixed, thanks!

-- 
 Bastien



Re: [O] TODO keyword completion bug

2012-08-21 Thread Bastien
Aidan Gauland aidal...@no8wireless.co.nz writes:

 I have the keywords defined with #+TODO:.  I just tried playing around
 with them a bit, and I have found that the problem is not exactly as I
 thought: keywords with dashes, such as MY-TODO, do not complete with
 M-TAB if I try to complete from after the dash, i.e. M-TAB on MY- does
 not complete.  TODO keyword completion does not work at all if there is
 already a headline, e.g. * TO[M-TAB here] Buy bread

 So, if this is a bug, I now have a workaround; if it's not a bug, then I
 now know how to properly use TODO completion.  I'll leave it to you (the
 Org-mode devs) to decide whether to treat this as a bug.

Indeed, this was a bug.  Fixed now.

Thanks!

-- 
 Bastien



Re: [O] New maintainer for MobileOrg on iOS

2012-08-21 Thread Andre Powell
I hope this is not a stupid question, but will the app eventually fail?

Andre 


It is not what happens to you, but your response that determines your character.


Re: [O] Note about decimal mark for numbers

2012-08-21 Thread Bastien
Jambunathan K kjambunat...@gmail.com writes:

 Achim Gratz strom...@nexgo.de writes:

 Nicolas Goaziou writes:
 In a recent commit, I've modified `org-table-number-regexp' so it can
 recognize numbers with a comma as the decimal mark by default.

 This should really follow the definitions in the locale...

 That was my first reaction to it as well.  

Remember the purpose of `org-table-number-regexp' is to help find the
right alignment in tables.  It is _not_ to find numbers when eval'ing
a formula.

So, having both a rigid definition of what is a number for formulas
and a flexible definition when it comes to formatting tables is fine.

2 cts,

-- 
 Bastien



Re: [O] Problem with backslash and Freemind-Export

2012-08-21 Thread Bastien
Hi Martin,

Martin Beck elwood...@web.de writes:

 I'm trying to export org-mode files to freemind-format (.mm) and I'm
 encoutering the following problem:

 After invoking the export with C-c C-e m,
 I get an error message Invalid use of `\`in replacement text in the
 status bar,
 and no output file.

Should be fixed, thanks a lot for the minimal example.

-- 
 Bastien



Re: [O] [OT][GTD] GTDish next action todo keyword, could that influence your productivity in any way?

2012-08-21 Thread Bastien
Hi Mike,

Mike McLean mike.mcl...@pobox.com writes:

 I have a grand thought of someday writing an agenda view or mode that
 looks like a Kanban board -- I've seen some of what can be done with
 respect to views in Emacs from the ~calfw~ package, so it is just a
 matter of time.

Just a thought: isn't this already possible with Agenda Blocks?  

You get the columns as rows, but you get the various categories
displayed at once.

-- 
 Bastien



Re: [O] [patch] change indentation logic for edit-src

2012-08-21 Thread Bastien
Hi Ken,

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

 Following on a message from a few days ago, I’ve prepared a patch
 (attached) that alters the behavior of ‘org-edit-src-exit’ so that it
 no longer adds an extra 2 spaces of indentation each time a source
 block (or a table.el table) is edited.  Previously a workaround was
 to set ‘org-src-preserve-indentation’, but without that set, you’d
 get the undesirable behavior.

I tested the patch.

 There’s probably some stuff wrong with this approach – let me know. 

Mh... for me there is no change.  There are always 2 spaces 
added before table.el tables.

Anyway, I'll let Eric look at this one as I think
̀org-src-preserve-indentation' is enough here.

Thanks for the patch anyway!

-- 
 Bastien



Re: [O] timestamped items not showing in today agenda view

2012-08-21 Thread Bastien
Hi Ken,

Ken Mankoff mank...@gmail.com writes:

 I have an issue where items that are scheduled with a timestamp don't
 show up in an agenda view.

Can you tell what is the value of these variables?

org-agenda-todo-ignore-deadlines
org-agenda-todo-ignore-scheduled
org-agenda-todo-ignore-timestamp
org-agenda-todo-ignore-with-date
org-agenda-tags-todo-honor-ignore-options

There is surely some interaction you don't expect?

HTH,

-- 
 Bastien



Re: [O] Bug: icalendar export skips todos with a scheduled time-range [7.8.11]

2012-08-21 Thread Bastien
Hi Friedrich,

Friedrich Delgado frie...@nomaden.org writes:

 Friedrich Delgado schrieb:
 confirmed, latest org does the right thing[TM]

 However: If I (setq org-icalendar-use-plain-timestamp nil) as in my
 customisation, scheduled date-ranges are not exported at all (no
 matter what org-icalendar-use-scheduled is set to).

This should be fixed now, let me know.  

Thanks,

-- 
 Bastien



Re: [O] [OT][GTD] GTDish next action todo keyword, could that influence your productivity in any way?

2012-08-21 Thread Mike McLean

On Aug 21, 2012, at 6:50 PM, Bastien b...@altern.org wrote:

 Hi Mike,
 
 Mike McLean mike.mcl...@pobox.com writes:
 
 I have a grand thought of someday writing an agenda view or mode that
 looks like a Kanban board -- I've seen some of what can be done with
 respect to views in Emacs from the ~calfw~ package, so it is just a
 matter of time.
 
 Just a thought: isn't this already possible with Agenda Blocks?  
 
 You get the columns as rows, but you get the various categories
 displayed at once.

That is what I am doing now as my “non-visual” version. It actually works 
pretty well. My thought is to create something like one of the online Kanban 
boards for more visual impact.

I didn't elaborate before since the question was about TODO states, but I have 
4 Kanban-named views in my ~org-agenda-custom-commands~; one view each for 
BACKLOG, TODO, and DOING so that I can look at each stage individually and a 
fourth with all three of those blocks as you suggest to get them all at once.

With Org babel, and my org-mode configuration being a ~.org~ file, I also 
manage to achieve DRY. My three individual agenda blocks are defined once, and 
the complete view just references them with  noweb syntax.

Did I mention how awesome Org mode is ? I should have :)

Mike






Re: [O] timestamped items not showing in today agenda view

2012-08-21 Thread Ken Mankoff

Hi Bastien,

On Wed, 22 Aug 2012, Bastien wrote:

Can you tell what is the value of these variables?

org-agenda-todo-ignore-deadlines
org-agenda-todo-ignore-scheduled
org-agenda-todo-ignore-timestamp
org-agenda-todo-ignore-with-date
org-agenda-tags-todo-honor-ignore-options


At the time I wrote that email they were all unset, so default 
values. I tried setting them all to nil and t, and neither had any 
effect. Scheduled item with timestamp shows up in (agenda) but not 
(tags-todo) search


  -k.



[O] Best way to implement project specific captures

2012-08-21 Thread Richard Riley

Currently I maintain a datetree journal capture using a template so

,
| (j journal entry (file+datetree journal.org)
|  * %?\n\t:PROPERTIES:\n\t:DateCreated: 
%T\n\t:Link: %a\n\t:END:\n)
`

I also use j rockways' eproject set up that allows a hook to be run when
a file is opened inside a project. e.g

,
| (add-hook 'web-project-file-visit-hook '(lambda ()
| (ignore-errors
|   (message Web Project : %s 
eproject-root)
|   )))
`

where web-project is created this:-

,
| (define-project-type web (generic)
|   (look-for plan.org)
|   :relevant-files (\\.php$ \\.js$ \\.org$ \\.sql$ \\.css$ 
authinfo vhost))
`

So whenever I open a file in a directory hierarchy which contains a
plan.org matching those types then my web-project-file-visit-hook is run.

What is the best emacs/elisp approach to setting a capture file
destination specific to a particular project? THe main point being that
the default capture template above should only be replaced if I am
actually in a project : any capture done in a file NOT contained
within a project should default to the capture template above. Is it
someting to do with buffer-locals perhaps or is there a
better/alternative way? e.g Perhaps journal.org becomes a variable and
this is overwritten (or whatever the elisp jargon is) in the project
hook as a buffer local?

Hope was clear!

regards

r.