Re: [O] org-plus-contrib-20121224 error [Solved]

2012-12-26 Thread Achim Gratz

Am 25.12.2012 20:13, schrieb Alan L Tyree:

I deleted and then reinstalled the package and everything is OK. But I
have no idea what went wrong since agenda was working and then stopped
with the installation of the new package.


Well, I might have an idea what went wrong... the first install you did 
after you've already worked with orgmode in your Emacs or do you already 
load (some) orgmode stuff in your init file?



Sorry for the noise.


Not noise.  It may have to be fixed in Emacs (resp. package manager) to 
properly work, though.



--
Achim.

(on the road :-)




Re: [O] calculate frequencies in a table with calc

2012-12-26 Thread Achim Gratz

Am 25.12.2012 13:59, schrieb Martin Gross:

#+TBLFM: @5$1=vcount(@I..@II)::@6$1=vcount(map(if(eq(#1,12),1,[]),@I..@II))

With the first formula (@5$1) everything inside and outside the
brackets is counted, but with the second (@6$1), where I am asking for
the frequency of 12, only what is outside the brackets is considered.
How could I also include what is inside the brackets, so I get 4?


The Calc manual tells you that vcount flattens nested vectors, vmap doesn't.

Try @6$1=vcount(map(if(eq(#1,12),1,[]),vflat(@I..@II)))
for the second formula.


--
Achim.

(on the road :-)




[O] Line breaking problem in Description List

2012-12-26 Thread Sanjib Sikder
Hi,

I am facing the following issue. The left hand side of the line (that is
the words which are to the left side of :: ) is not breaking in the
following Description list

+ This is the big name of my thesis written in undergraduate * (/B.E.
 Thesis. Guide: Prof. x y x, the institute name/) :: Here is a description
 of the above heading spanning two lines.  here is a description of the
 above heading spanning two lines. here is a description of the above
 heading spanning two lines. here is a description of the above heading
 spanning two lines. here is a description of the above heading spanning two
 lines.




This is the big name of my thesis written in undergraduate * (/B.E.
Thesis. Guide: Prof. x y x, the institute name/)
The above line is not breaking to next line.

Help is appreciated.

Thakns.


-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*


Re: [O] Publishing only sub-hierarchies with a given tag

2012-12-26 Thread Karl Voit
* Bastien b...@altern.org wrote:
 Karl Voit devn...@karl-voit.at writes:

 Let's see, what I can accomplish in the next two months.

 Yep, let us know!

Sure! I am looking forward when I've got something I can announce
here :-)

-- 
Karl Voit




[O] errors setting sh arrays

2012-12-26 Thread George Jones
Next up, it seems that I have to use a :session to set arrays in sh code on
a remote system or you get a shell syntax error.  See attached .org file


arrayRemote.org
Description: Binary data


Re: [O] Howto convert a complete bibtex file into an orgmode file?

2012-12-26 Thread Eric Schulte
Florian Beck f...@miszellen.de writes:

 On 11/24/2012 06:05 PM, michael.zom...@googlemail.com wrote:

 As far as I was able to find out, this is only possible for a single
 entry via 'org-bibtex-read'.

 I think I did something like

 M-: (while (re-search-forward ^@.*{ nil t) (org-bibtex-read))

 Refine the regular expression, if you have any macros.



I just added three functions to org-bibtex.el which should help in these
use cases.  Form the git log,

import whole bibtex files into Org-mode

* lisp/org-bibtex.el (org-bibtex-read-buffer): Reads all bibtex entries
  in a buffer.
  (org-bibtex-read-file): Read all bibtex entries in a file.
  (org-bibtex-import-from-file): Import all bibtex entries from a file
  into the current buffer.

The `org-bibtex-import-from-file' function should be the easiest way to
import whole bibtex files into the current Org-mode file.  Be forewarned
that it may create many top level bibtex entries.

Hope this helps,

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



Re: [O] errors setting sh arrays

2012-12-26 Thread Eric Schulte
George Jones elu...@gmail.com writes:

 Next up, it seems that I have to use a :session to set arrays in sh code on
 a remote system or you get a shell syntax error.  See attached .org file

Despite the value of the SHELL environment variable, it appears that a
non-bash shell which doesn't support arrays is being used on the remote
systems.  Have you tried setting either the `org-babel-sh-command' or
adding a :shebang header argument to the code blocks to force the
execution to use bash?

Hope this helps,

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



Re: [O] temporary directory for export

2012-12-26 Thread Alan Schmitt
Bastien writes:

 Hi Alan,

 Alan Schmitt alan.schm...@polytechnique.org writes:

 I have found how to set a temporary directory for org-babel export files
 (using org-babel-temporary-directory), but I cannot find how to specify
 that, by default (i.e., unless specified with a file option), files
 should be exported to a temporary directory.

 My motivation for this is that I keep a single folder with many org-mode
 files, some of them for presentations, papers, or letters. I regularly
 have to go in there and get rid of all the .tex, .log, .pdf, .aux, etc.,
 that accumulate.

 Yep, I see how this would be useful.  I'll add this on my TODO list.

An alternative would be to publish to such a temporary directory, then
have a post-publish command to run to finish building the document. This
is what I would have favoured before the asynchronous exporter (as
building may take a while so would be better done with an external
command), but now I would be very happy with using a temporary directory
for export (defaulting to the directory where the org file lives).

Alan



Re: [O] Org Mobile and Adroid 2.3.6

2012-12-26 Thread J. David Boyd
Martin Butz m...@mkblog.org writes:

 Am 22.12.2012 15:57, schrieb J. David Boyd:
 Martin Butz m...@mkblog.org writes:
 [...]
 The next problem is, I use encryption (org-mobile-use-encryption),
 which works. But how can I bring orgmobile to descrypt the files?

 [...]


 I think the docs in Org describe some of the pieces you are missing
 There are variables in Org-mode that control parts of that.

 So, if someone uses orgmobile on a smartphone running Android 2.x I'd
 be gratefull to know something about the configuration (especially on
 the smartphones side).

 Thanks and merry Christmas to all
 Martin


I'm using MobileOrg and an Android 2.2, but I'm syncing through
Dropbox, which works fine.  Sorry I know nothing about the items you
mentioned.

Dave




Re: [O] bugs in export

2012-12-26 Thread Samuel Wales
On 12/23/12, Bastien b...@altern.org wrote:
 Here is a minimal complete example.  To reproduce, run emacs -Q on

 I confirm the bug, thanks for describing it.

Thank you, Bastien.

Another bug.  The paragraphs are not wrapped in p.  This causes
there to be no line spacing after or before the headers.

===
div id=outline-container-1 class=outline-3
h3 id=sec-1Quote/h3
div class=outline-text-3 id=text-1


Here is a quote:
===

Is the current exporter decaying?

Samuel



Re: [O] Org Mobile and Adroid 2.3.6

2012-12-26 Thread G. Martin Butz

Hi Dave,

Am 26.12.2012 19:02, schrieb J. David Boyd:
[...]


I'm using MobileOrg and an Android 2.2, but I'm syncing through
Dropbox, which works fine.  Sorry I know nothing about the items you
mentioned.


It seems, that the synchronisation does work. I will have a try without 
encryption to see whether it works.


But as my org-mode-files contain private data (as is probably the usual 
case), I do not feel like storing these on a remote server without any 
encryption.


Thanks for your answer
Martin


--

| G. Martin Butz, m...@mkblog.org, 0421 98749324, www.mkblog.org |




Re: [O] Line breaking problem in Description List

2012-12-26 Thread Sanjib Sikder
Can anyone look into the issue please ?

-
*Sanjib Sikder
*Ph.D. Fellow
Chemical Engineering
IIT Bombay*

*


On Wed, Dec 26, 2012 at 2:42 PM, Sanjib Sikder sanjibju2...@gmail.comwrote:

 Hi,

 I am facing the following issue. The left hand side of the line (that is
 the words which are to the left side of :: ) is not breaking in the
 following Description list

 + This is the big name of my thesis written in undergraduate * (/B.E.
 Thesis. Guide: Prof. x y x, the institute name/) :: Here is a description
 of the above heading spanning two lines.  here is a description of the
 above heading spanning two lines. here is a description of the above
 heading spanning two lines. here is a description of the above heading
 spanning two lines. here is a description of the above heading spanning two
 lines.




 This is the big name of my thesis written in undergraduate * (/B.E.
 Thesis. Guide: Prof. x y x, the institute name/)
 The above line is not breaking to next line.

 Help is appreciated.

 Thakns.


 -
 *Sanjib Sikder
 *Ph.D. Fellow
 Chemical Engineering
 IIT Bombay*

 *



Re: [O] Line breaking problem in Description List

2012-12-26 Thread Thomas S. Dye
Aloha Sanjib Sikder:

I think the exporter expects the description label to be on one line.  

If I change your input to this, all is well:

  - This is the big name of my thesis written in undergraduate ::
(/B.E. Thesis. Guide: Prof. x y x, the institute name/) Here is
a description of the above heading spanning two lines. here is a
description of the above heading spanning two lines. here is a
description of the above heading spanning two lines. here is a
description of the above heading spanning two lines. here is a
description of the above heading spanning two lines.

In my experience, LaTeX doesn't do a great job with long description
labels, so reworking your list to have shorter labels might be a better
way to go.

hth,
Tom

Sanjib Sikder sanjibju2...@gmail.com writes:

 Can anyone look into the issue please ?

 -
 *Sanjib Sikder
 *Ph.D. Fellow
 Chemical Engineering
 IIT Bombay*

 *


 On Wed, Dec 26, 2012 at 2:42 PM, Sanjib Sikder sanjibju2...@gmail.comwrote:

 Hi,

 I am facing the following issue. The left hand side of the line (that is
 the words which are to the left side of :: ) is not breaking in the
 following Description list

 + This is the big name of my thesis written in undergraduate * (/B.E.
 Thesis. Guide: Prof. x y x, the institute name/) :: Here is a description
 of the above heading spanning two lines.  here is a description of the
 above heading spanning two lines. here is a description of the above
 heading spanning two lines. here is a description of the above heading
 spanning two lines. here is a description of the above heading spanning two
 lines.




 This is the big name of my thesis written in undergraduate * (/B.E.
 Thesis. Guide: Prof. x y x, the institute name/)
 The above line is not breaking to next line.

 Help is appreciated.

 Thakns.


 -
 *Sanjib Sikder
 *Ph.D. Fellow
 Chemical Engineering
 IIT Bombay*

 *

 Can anyone look into the issue please ?


 -
 Sanjib Sikder
 Ph.D. Fellow
 Chemical Engineering
 IIT Bombay




 On Wed, Dec 26, 2012 at 2:42 PM, Sanjib Sikder
 sanjibju2...@gmail.com wrote:

 Hi,
 
 I am facing the following issue. The left hand side of the line
 (that is the words which are to the left side of :: ) is not
 breaking in the following Description list 
 
 + This is the big name of my thesis written in undergraduate *
 (/B.E. Thesis. Guide: Prof. x y x, the institute name/) ::
 Here is a description of the above heading spanning two
 lines.  here is a description of the above heading spanning
 two lines. here is a description of the above heading spanning
 two lines. here is a description of the above heading spanning
 two lines. here is a description of the above heading spanning
 two lines.

 
 
 
 This is the big name of my thesis written in undergraduate *
 (/B.E. Thesis. Guide: Prof. x y x, the institute name/)
 The above line is not breaking to next line.
 
 Help is appreciated.
 
 Thakns.
 
 
 -
 Sanjib Sikder
 Ph.D. Fellow
 Chemical Engineering
 IIT Bombay
 
 
 
 


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



Re: [O] org-plus-contrib-20121224 error [Solved]

2012-12-26 Thread Alan L Tyree

On 26/12/12 19:15, Achim Gratz wrote:

Am 25.12.2012 20:13, schrieb Alan L Tyree:

I deleted and then reinstalled the package and everything is OK. But I
have no idea what went wrong since agenda was working and then stopped
with the installation of the new package.


Well, I might have an idea what went wrong... the first install you did
after you've already worked with orgmode in your Emacs or do you already
load (some) orgmode stuff in your init file?


Both. I had been working with orgmode, then made the install. I also 
load a small amount of orgmode in the init file.


When the agenda didn't work, I quit emacs and then restarted, but the 
problem persisted. As I indicated, this happened on both my main machine 
and a laptop. I'm not sure what the sequence was on the laptop.


Both machines made a miraculous recovery when I deleted the package and 
then installed it.


Hope this helps.

Alan




Sorry for the noise.


Not noise.  It may have to be fixed in Emacs (resp. package manager) to
properly work, though.





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




Re: [O] Rudel - Real-Time collaborative editing of Org-Mode files

2012-12-26 Thread Eric Schulte
François Pinard pin...@iro.umontreal.ca writes:

 François Pinard pin...@iro.umontreal.ca writes:

 Bastien b...@altern.org writes:

 [...] let *anyone* write Org doc collaboratively and seemlessly.
 Com'on, let's start something great :)

 It would be great indeed!


Unfortunately Rudel doesn't appear to be maintained (at least as far as
I could tell the last mailing list post was in 2011 and the last git
commit was in 2010).  Compiling Rudel from ELPA and from source both
result in the following error [1], which is caused by this line from the
automatically generated rudel-loaddefs.el file [2].

Rather than an Org-mode specific solution, I think adopting Rudel or
developing something similar which provides emacs-wide support for
standard collaborative editing protocols (assuming any currently exist)
would be the best way forward.

Cheers,

Footnotes: 
[1]  Debugger entered--Lisp error: (wrong-type-argument hash-table-p unbound)
  gethash(protocol unbound)
  (or (gethash category (slot-value this (quote factories))) (puthash category 
(rudel-backend-factory category) (slot-value this (quote factories
  (progn (or (gethash category (slot-value this (quote factories))) (puthash 
category (rudel-backend-factory category) (slot-value this (quote factories)
  (symbol-macrolet ((factories (slot-value this (quote factories (or 
(gethash category factories) (puthash category (rudel-backend-factory category) 
factories)))
  (with-slots (factories) this (or (gethash category factories) (puthash 
category (rudel-backend-factory category) factories)))
  rudel-backend-factory(rudel-backend-factory protocol)
  apply(rudel-backend-factory (rudel-backend-factory protocol))
  eieio-generic-call(rudel-get-factory (rudel-backend-factory protocol))
  rudel-get-factory(rudel-backend-factory protocol)
  rudel-backend-get-factory(protocol)
  (rudel-add-backend (rudel-backend-get-factory (quote protocol)) (quote 
infinote) (quote rudel-infinote-backend))
  eval-buffer(#buffer  *load* nil 
/home/eschulte/.emacs.d/src/rudel/rudel-loaddefs.el nil t)  ; Reading at 
buffer position 955
  
load-with-code-conversion(/home/eschulte/.emacs.d/src/rudel/rudel-loaddefs.el 
/home/eschulte/.emacs.d/src/rudel/rudel-loaddefs.el nil nil)
  load(/home/eschulte/.emacs.d/src/rudel/rudel-loaddefs.el nil nil t)
  load-file(rudel-loaddefs.el)
  eval((load-file rudel-loaddefs.el) nil)
  eval-expression((load-file rudel-loaddefs.el) nil)
  call-interactively(eval-expression nil nil)

[2]  (rudel-add-backend (rudel-backend-get-factory 'protocol) 'infinote 
'rudel-infinote-backend)


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



Re: [O] Rudel - Real-Time collaborative editing of Org-Mode files

2012-12-26 Thread François Pinard
Eric Schulte schulte.e...@gmail.com writes:

 Unfortunately Rudel doesn't appear to be maintained [...]

Moreover, looking around, I saw a few comparisons and comments in which
other tools using the Obby protocol, which Rudel primarily supports, had
negative light.  I also found out that the synchronization problem and
issues are far, far more complex than I initially thought.  There are
really many avenues, while none seem perfect so far.

 Rather than an Org-mode specific solution, I think adopting Rudel or
 developing something similar which provides emacs-wide support for
 standard collaborative editing protocols (assuming any currently exist)
 would be the best way forward.

Agreed that any nice and general solution which overwhelms [not sure of
that word in English] Org, and even Emacs, should be considered more
tempting.  An full Emacs Lisp solution would be a wrong solution, as the
protocol itself should be implemented without the need of Emacs.  On the
other hand, any solution encumbered with explicit editing minutiae (make
this bold, change font, etc.) is less attractive, because it would mean
spurious and unwanted burden for Org files.

In my wildest dreams :-), I would see real-time collaboration between
people with most participant working on the text of a document, I mean
what follow headers or the header text itself, while a few others
reorganize the structure by moving headers around.  Moving headers
should be nothing more than moving headers, it should not imply deletion
followed by transmission of re-inserted text, as this would seriously
disrupt those altering the text: the re-organization should happen
magically under participant's feet while they are editing, nice and
easy.

Now, the notion of structure may be rendered by a synchronization
mechanism in a way which overwhelms Org by the concept of efficiently
handled nested documents, an single Org file would itself be a
collection of such nested documents.  Just an idea of course, there
might be other avenues as well which are acceptable as long as they
allow structure reorganization without text being transmitted again.

I have the vague, and admittedly strange intuition that Git internals
have the potential for representing nested documents through the
repository structure, for discovering both structural and textual
overhaul, and even for transmitting differences over the wires.  But I
doubt, all efficient that Git may already be, that it would be speedy
enough to be part of a solution.  That might even be elegant, so I hope
I'm wrong on the speed issue :-).

Maybe such a protocol already exists in an efficient or acceptable way,
yet I would tend to doubt it, and it seems like a serious undertaking to
develop one.  It also much depends if we want to accept a solution based
on a central broker for modifications, which is less difficult than a
solution based on modifications flooding over many pairwise connections,
I suspect the latter could yield conflicts and oscillation loops.

Another problem is the initial contact between two widely differing Org
files declared to represent a single one.  I do not like the solution of
having a broker holding the official copy of it.  Once a collaboration
session terminates, I would like that no copy be especially official in
a technical sense.  Humans would decide between them which is which!

François



[O] orgguide translated to spanish

2012-12-26 Thread David Arroyo Menéndez

Hello,

I've translated orgguide to spanish. You can download the sources doing
git pull to worg. 

My idea would be open a new phase of revision. I accept contributions in
this sense.

Thanks.

-- 
David Arroyo Menéndez
http://www.davidam.com
gpg --keyserver pgp.rediris.es --recv-keys B395B90A



[O] Agenda bug: time conflict between headline and scheduled date

2012-12-26 Thread Huy
task
Reply-To: 

Hi,

there's a bug when I have a task like this:

* Test [2012-12-26 Wed 22:24]
  SCHEDULED: 2012-12-25 Wed

Note that the inactive date has a time in the headline, but the schedule
date doesn't.

When I run the agenda, I get this:

Tuesday25 December 2012
  GTD:22:24.. Scheduled:  Test [2012-12-26 Wed 22:24]

The time should not be extracted from the non-scheduled timestamp,
right?

I'm running 7.9.2 on emacs 24.2.1 on OS X

Thanks,
Huy



Re: [O] Org/LaTex setup for Business Letter Revisited

2012-12-26 Thread AW
Am Montag, 24. Dezember 2012, 09:42:08 schrieb Ian Barton:
 I have been following the various threads about using the scrlttr2
 class. However, none of them quite worked for me.
 
 I have come up with the following hack using Babel. There are three
 files attached which illustrates the general principles. 

Ian, this is really of interest to me, but I don't quite get it.

 
 * koma variables which don't change are defined in an LCO file.

So this is the usual LCO file, in a place where kpathsea will find it, namely 
at 
~/texmf/tex/latex/   -- right?

 * koma variables (toaddress, etc) which change between letters are
 defined using org PROPERTIES.

 * a letter template in defined in a latex src block.
But what is the sense of having a LaTeX scr block? I'd like to outsource this 
somewhere as a template. Or is it necessary in each file including a letter?

 * The letter body is written in an org_mode src block.
 * The final letter is produced by tangling the body, the lco file and
 the letter template.

tangling -- could you elaborate, please?

 
 In normal use you would simply modify the PROPERTIES and body text to
 suit each letter. The whole thing can probably be made into a yasnippet.
 
the whole thing? What has to be included in the snippet?

 Suggestions for improvement welcome, as the existing stuff is just a
 quick hack.
 

 Happy Christmas everyone and best wishes for the New Year.

Yeah, and thanks to you for your time and effort,

Alexander

 
 Ian.