Re: [O] LaTeX export. Substitute some headlines with arbitrary command

2013-03-14 Thread Nick Dokos
Andrey Yankin yankin...@gmail.com wrote:

 Sorry if it wasn't clear.
 I should have illustrate this.
 
 Input:
 
 * Headline 1
 ** Node 1.1
   Content 1
 * Headline 2
   Content 2
 * Headline 3
   Content 3
 * Headline 4
   Content 4
 * Headline 5
   Content 5
 
 Desired output:
 
 \intro
 \subsection{Node 1.1}
   Content 1
 \section{Headline 2}
   Content 2
 \section{Headline 3}
   Content 3
 \section{Headline 4}
   Content 4
 \conclusion
   Content 5
 
 First and fifth top headlines output is replaced. And others are defaults.
 All children keep the same.
 

OK - I don't think you can do this with org-latex-classes: there is no
provision for exceptional cases there. Charles Berry suggested filters:
maybe something can be done with that.

FWIW, I would just wait until the last minute and then when it's time to
produce the final pdf, I'd replace the two headlines by hand - but that
assumes that the document is a one-off, do-it-once-and-never-again kind
of thing.

Nick

 2013/3/14 Nick Dokos nicholas.do...@hp.com
 
 Andrey Yankin yankin...@gmail.com wrote:

  Hi!
 
  I want arbitrary top level headline to be exported not as \section (or 
 whatever it is) but
 with some
  other arbitrary latex command.
 
  I even do not want to use headline text. Just write \intro instead of 
 \section{...} in tex
 file.
 
  I've tried some fiddling with :noexport: and :export: tags to hide 
 output for selected
 headlines. It
  didn't work.
 
  Currently I'm heading to this metod: http://stackoverflow.com/a/9679105 
 of creating my own
 parser.
 
  Are there any easier solutions?
 

 Have you tried customizing the org-latex-classes variable? I'm not quite
 sure what you are trying to do (an example would help), but I don't see
 any obstacles.

 Nick
 
 
 
 Alternatives:
 
 



[O] Width always inserted with LaTeX figures

2013-03-14 Thread Richard Stanton
At least with today's version (8.0-pre release_8.0-pre-67-gd3361c), if I 
include a figure and then export to LaTeX, the resulting TeX file insists on 
including its own width specification, even when I tell it the width I want. 
For example, the org text

#+ATTR_LaTeX: :options width=1.7in
[[file:images/RS_head_cropped.png]]

results in the following LaTeX source:

\includegraphics[width=1.7in,width=.9\linewidth]{images/RS_head_cropped.png}

The second width specification (which I didn't ask for) seems to override the 
one I ask for, so the figure ends up a lot bigger than I want.



Re: [O] Width always inserted with LaTeX figures

2013-03-14 Thread Aaron Ecay
Hi Richard,

You should use
#+ATTR_LATEX: :width 1.7in
instead of the version with :options.

This is a recent change, to make LaTeX image width consistent with
LaTeX tables and HTML images, both of which use a :width argument.
(It also allows the support of more types of images in LaTeX).

Aaron



Re: [O] Paths including spaces fail the installation: Patch

2013-03-14 Thread Achim Gratz

[please reply to the list]

 BS-Quoting and Doublequote-ing were the first things I tried:
[…]

Yes I see, that is due to inadvertent double quoting.  Try this
definition in local.mk (not the extra two single quotes around
$(datadir)):

--8---cut here---start-8---
# How to generate org-version.el
MAKE_ORG_VERSION = $(BATCHL) \
  --eval '(load org-compat.el)' \
  --eval '(load ../mk/org-fixup.el)' \
  --eval '(org-make-org-version $(ORGVERSION) $(GITVERSION) 
'$(datadir)')'
--8---cut here---end---8---

Please test, I'll push the fix if it solves your problem.

 But quite apart from that, I seems like the right thing to me to make
 sure that things that should be one string get interpreted as one
 string on the logic level, which even fixing the escaping behaviour
 would not do in the makefiles themselves.

The build system assumes that these definitions will always be
interpreted by the shell (the above fix makes sure it actually does), so
you need to shell-quote in the definitions already.  The Makefile itself
never cares what those strings are, embedded spaces or not.


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

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Further problems with export

2013-03-14 Thread Achim Gratz
Neuwirth Erich writes:
 I install everything in site-lisp

 On OSX this is

 /Applications/Emacs.App/Contents/Resources/site-lisp/org

 This should be on the load path automatically.
 And I did not change my configuration and everything worked fine for quite 
 some time.

Try

make clean-install install

to remove any old files you may have there before installing the new
ones.  Then check your init files to _not_ reference any old exporter
files as Emacs may find and load them from the version of Org it is
itself delivered with.


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

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Width always inserted with LaTeX figures

2013-03-14 Thread Richard Stanton
Thanks, Aaron.

-Original Message-
From: Aaron Ecay [mailto:aarone...@gmail.com] 
Sent: Wednesday, March 13, 2013 11:47 PM
To: Richard Stanton
Cc: emacs-orgmode@gnu.org
Subject: Re: [O] Width always inserted with LaTeX figures

Hi Richard,

You should use
#+ATTR_LATEX: :width 1.7in
instead of the version with :options.

This is a recent change, to make LaTeX image width consistent with LaTeX tables 
and HTML images, both of which use a :width argument.
(It also allows the support of more types of images in LaTeX).

Aaron


[O] Indentation of backend definitioon

2013-03-14 Thread Carsten Dominik
Hi Nicolas,

I propose the following patch to improve the automatic
indentation of the backend definition macros in ox.el.

- Carsten

diff --git a/lisp/ox.el b/lisp/ox.el
index c5b6d7c..31983b2 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -987,6 +987,7 @@ keywords are understood:
',export-block))
;; Splice in the body, if any.
,@body)))
+(put 'org-export-define-backend 'lisp-indent-function 1)
 
 (defmacro org-export-define-derived-backend (child parent rest body)
   Create a new back-end as a variant of an existing one.
@@ -1078,6 +1079,7 @@ The back-end could then be called with, for example:
',export-block))
;; Splice in the body, if any.
,@body)))
+(put 'org-export-define-derived-backend 'lisp-indent-function 2)
 
 (defun org-export-backend-parent (backend)
   Return back-end from which BACKEND is derived, or nil.
@@ -5201,6 +5203,7 @@ and
   (message Process '%s' exited abnormally p))
   (unless org-export-async-debug
 (delete-file ,,temp-file)
+(put 'org-export-async-start 'lisp-indent-function 1)
 
 (defun org-export-add-to-stack (source backend optional process)
   Add a new result to export stack if not present already.




Re: [O] LaTeX export. Substitute some headlines with arbitrary command

2013-03-14 Thread Andrey Yankin
Charles, Nick, thanks for the tip of using filters.

As far as I can see it requires version 8 of org-mode to be installed. Am I
right?
I am using now 7.8.11.

I'll try to install a new version and check out filters.





2013/3/14 Nick Dokos nicholas.do...@hp.com

 Andrey Yankin yankin...@gmail.com wrote:

  Sorry if it wasn't clear.
  I should have illustrate this.
 
  Input:
 
  * Headline 1
  ** Node 1.1
Content 1
  * Headline 2
Content 2
  * Headline 3
Content 3
  * Headline 4
Content 4
  * Headline 5
Content 5
 
  Desired output:
 
  \intro
  \subsection{Node 1.1}
Content 1
  \section{Headline 2}
Content 2
  \section{Headline 3}
Content 3
  \section{Headline 4}
Content 4
  \conclusion
Content 5
 
  First and fifth top headlines output is replaced. And others are
 defaults.
  All children keep the same.
 

 OK - I don't think you can do this with org-latex-classes: there is no
 provision for exceptional cases there. Charles Berry suggested filters:
 maybe something can be done with that.

 FWIW, I would just wait until the last minute and then when it's time to
 produce the final pdf, I'd replace the two headlines by hand - but that
 assumes that the document is a one-off, do-it-once-and-never-again kind
 of thing.

 Nick

  2013/3/14 Nick Dokos nicholas.do...@hp.com
 
  Andrey Yankin yankin...@gmail.com wrote:
 
   Hi!
  
   I want arbitrary top level headline to be exported not as \section
 (or whatever it is) but
  with some
   other arbitrary latex command.
  
   I even do not want to use headline text. Just write \intro instead
 of \section{...} in tex
  file.
  
   I've tried some fiddling with :noexport: and :export: tags to hide
 output for selected
  headlines. It
   didn't work.
  
   Currently I'm heading to this metod:
 http://stackoverflow.com/a/9679105 of creating my own
  parser.
  
   Are there any easier solutions?
  
 
  Have you tried customizing the org-latex-classes variable? I'm not
 quite
  sure what you are trying to do (an example would help), but I don't
 see
  any obstacles.
 
  Nick
 
 
  
  Alternatives:
 
  



Re: [O] Build fail with emacs 24.3.1

2013-03-14 Thread Achim Gratz
Bastien bzg at altern.org writes:
 One potential problem in the first test is the use of parent as the
 name of the symbol to pass to the macro... since this is the very same
 name than the macro second argument.  At least this reminded me this
 section of Elisp manual:

I've actually tested this by renaming the macro arguments and no symbol
capturing seems to be involved via this path.  The symbol is never used unquoted
in the macro expansion anyway.

 So... instead of fixing the macro calls in the tests, I've been
 wondering why using a macro for `org-export-define-derived-backend'
 and `org-export-define-backend' would be better?

I think that these are proper uses of macros since Nicolas is introducing
special syntax for defining a backend.  In any case before anything is changed
we should know why this is happening at all.


Regards,
Achim.




[O] small bug in table alignment

2013-03-14 Thread Eric Abrahamsen
If you call C-c C-c within a table to align it, and point happens to
be on a horizontal rule, it throws an error that originates in
org-element-context.

The let at the top of that function sets type to 'table-row, and
element to:

(table-row (:type rule :begin XX :end XX :contents-begin nil :contents-end nil 
etc...))

Then on line 4749 comes:

  (and (memq type '(paragraph table-row verse-block))
   (let ((cbeg (org-element-property
:contents-begin element))
 (cend (org-element-property
:contents-end element)))
 (and (= origin cbeg)
  (= origin cend)
  (progn (goto-char cbeg) (setq end cend)

cbeg and cend are nil, and strenuously object to being compared
using = or =.

I'm not sure what the context of a table rule ought to be, but it will
need to be something with a non-nil :contents-begin value, since that
gets called in `org-ctrl-c-ctrl-c' as well.

Hope that's enough info...

Eric




[O] multiline emphasis, was: Re: latex italics in list, with quotation marks

2013-03-14 Thread Robert Klein
On 03/08/2013 11:58 AM, Myles English wrote:
 
 Hi,
 
 Just wondering if there is a better way to italicise across more than two 
 lines
 for a list item, currently this is the only way that works for me:
 
 - on the assumption of equilibrium: /``even if there is equilibrium at
   the pore sale, the upscaling, in this/ /if there is equilibrium at
   blah the equilibrium/''
 
 Thanks,
 
 Myles
 
 

The same happens outside of lists.  I set

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

which ought to increase the number of lines I can span an emphasis (only
change is the original 1 at the end to 10).  Doesn't work though, atm.
My org-version is release_8.0-pre-67-gd3361c.


Best regards
Robert



Re: [O] Further problems with export

2013-03-14 Thread Neuwirth Erich
I put my old source directory away and started afresh:
git clone git://orgmode.org/org-mode.git

And I did
make up1
sudo make clean-install install


When I try to create an open an html file with

C-c C-e h o

I still get

Symbol's value as variable is void: org-element-document-properties





Below is what I have changed in my local.mk

# Name of your emacs binary
#EMACS  = emacs
EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs

# Where local software is found
#prefix = /usr/share
prefix = /Applications/Emacs.App/Contents/Resources

# Where local lisp files go.
#lispdir= $(prefix)/emacs/site-lisp/org
lispdir= $(prefix)/site-lisp/org


# Where local data files go.
datadir = $(prefix)/emacs/etc/org
datadir = $(prefix)/etc/org

# Where info files go.
infodir = $(prefix)/info


On Mar 14, 2013, at 8:04 AM, Achim Gratz strom...@nexgo.de wrote:

 Neuwirth Erich writes:
 I install everything in site-lisp
 
 On OSX this is
 
 /Applications/Emacs.App/Contents/Resources/site-lisp/org
 
 This should be on the load path automatically.
 And I did not change my configuration and everything worked fine for quite 
 some time.
 
 Try
 
 make clean-install install
 
 to remove any old files you may have there before installing the new
 ones.  Then check your init files to _not_ reference any old exporter
 files as Emacs may find and load them from the version of Org it is
 itself delivered with.
 
 
 Regards,
 Achim.
 -- 
 +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+
 
 SD adaptation for Waldorf microQ V2.22R2:
 http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
 
 




Re: [O] Build fail with emacs 24.3.1

2013-03-14 Thread Bastien
Hi Achim,

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

 Bastien bzg at altern.org writes:
 One potential problem in the first test is the use of parent as the
 name of the symbol to pass to the macro... since this is the very same
 name than the macro second argument.  At least this reminded me this
 section of Elisp manual:

 I've actually tested this by renaming the macro arguments and no symbol
 capturing seems to be involved via this path.  The symbol is never used 
 unquoted
 in the macro expansion anyway.

So, I'm not alone.

 So... instead of fixing the macro calls in the tests, I've been
 wondering why using a macro for `org-export-define-derived-backend'
 and `org-export-define-backend' would be better?

 I think that these are proper uses of macros since Nicolas is introducing
 special syntax for defining a backend.  

Yes -- but what I'm arguing about is that the special syntax is not
needed.  Or more specifically, it is not needed to have

  (org-export-define-backend html
((bold . org-html-bold)

instead of just

  (org-export-define-backend 'html
'((bold . org-html-bold)

 In any case before anything is changed
 we should know why this is happening at all.

If we agree the macros are not really needed we can make the change.
We will always be free to find why the macros are causing problems
later one.  I know the move looks like I want to avoid the problems
instead of fixing them, but it's not: it's about fixing the approach
upstream instead of fighting with some obscure consequences of the
unnecessary approach.

Anyway, I'll wait Nicolas opinion on this for sure.

-- 
 Bastien



Re: [O] automagically changing roman enumeration to alphabetical

2013-03-14 Thread Eric S Fraga
Paul Rudin p...@rudin.co.uk writes:

 I was surprised by this behaviour.

 Find a new org-mode file. Type i) and then hit M-Ret. The i) gets
 renamed as a) and b) is added on the next line. 

 I would have expected that we get ii) on the next line and the i)
 would be left alone.

 Is this working as intended?

It is.  Roman enumeration is not supported.  Org treats i) as alphabetic
enumeration and re-numbers the list when you hit M-RET.

The org info manual is out of date in this regard, by the way, in that
it only mentions number based enumerated lists (1., 2., ...).

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1199-g3a0e55




Re: [O] Where does org-mode elisp hacking go?

2013-03-14 Thread Torsten Wagner
Hi,

if I have a project based on org which require some special settings (not
only in lisp) I use a babel block and execute it after loading the file. I
did this e.g. to set my Java environment correct

If I remember correctly, we discussed once an autoload feature for
org-babel, but security concerns overruled that idea.
If some autoload feature should ever land in the repro, one would have to
make sure that the code can't be manipulated e.g. by an external editor.
This would come close to creating org-babel-viruses ;)

One possible idea which jumps just to my mind, how about a combination of a
babel blocks and org-encrypt?
Encrypted babel blocks with a certain tag could be considered save for
execution immediately after the user authentication during loading a
certain buffer. I guess most of the functionality (tag, encryption,
block-execution) is there already, it just would need some glue to put it
together and a hook into opening of org-mode files

Hmmm. I think I put Eric CC :)


Other then this I have a .init.el which simply loads many other lisp files,
one of them is init_org.el
If you frighten that emacs start-up might be to much delayed you might want
to check the daemon / emcasclient feature of emacs.

All the best
Torsten




On 13 March 2013 23:38, Charles Berry ccbe...@ucsd.edu wrote:

 Lawrence Bottorff galaxybeinglambda at gmail.com writes:

 
 

  I see on the org-hacks.html page lots of interesting elisp code.

  If I wanted to use some of this (lots of this) it seems wrong to shove it
  all in my .emacs file. My first guess would be to put what I want into
  separate .el files, go to my .org file and do a load-file on the .el file
  of hacks. But I really loath doing something that's not best practice.
  What's the best practice for enabling org-mode elisp hacks? And what if
  I want to use just one hack for one project? With usual elisp-ing you can
  simply evaluate region. Is that possible in conjunction with a .org
 file?


 Yes. But you might like to look at

http://orgmode.org/worg/org-contrib/babel/intro.html#sec-8-2-1

 which discusses Emacs Initialization with Babel for a comprehensive
 approach.

 For a single project, you can but a src_block in the master that loads
 whatever is needed or use a file local variables block to load up the
 requisites.
 See: Specifying File Variables in the emacs manual.






Re: [O] Exporter problem: cannot activate options

2013-03-14 Thread Rainer Stengele
Am 13.03.2013 16:15, schrieb Nicolas Goaziou:
 Hello,
 
 Rainer Stengele rainer.steng...@online.de writes:
 
 I do mark the subtree and export by C-e h o.
 Export is fine but I always get the TOC (although toc:nil) and I cannot
 get the clock entries (although c:t).
 
 You don't need to mark the subtree when doing a subtree export. Though,
 you should specify that you want a subtree export with C-s key from
 within the dispatcher.
 
 
 Regards,
 
Nicolas,

thanks for the notice.
I really would need to be able to configure export options.
I cannot include timestamps in a html export.
Please give me a hint.

Regards,
Rainer



Re: [O] mobileorg

2013-03-14 Thread Rasmus
Rainer M Krug r.m.k...@gmail.com writes:

 On Wednesday, March 13, 2013, Marvin Doyley wrote:

 Has MobileOrg been removed from the App Store ? For some reason I can't
 find this.


 It has been r evolved temporarily, but I hope it will be back soon.


I think it's in f-droid.

–Rasmus

-- 
A clever person solves a problem. A wise person avoids it




Re: [O] Build fail with emacs 24.3.1

2013-03-14 Thread Bastien
Hi Achim,

Bastien b...@altern.org writes:

 Yes -- but what I'm arguing about is that the special syntax is not
 needed.  Or more specifically, it is not needed to have

   (org-export-define-backend html
 ((bold . org-html-bold)

 instead of just

   (org-export-define-backend 'html
 '((bold . org-html-bold)

Some more thought on this.  

For `org-export-define-derived-backend', my assumption is that the
macro mimicks the style of `define-derived-mode':

(define-derived-mode CHILD PARENT NAME optional DOCSTRING rest BODY)

`define-derived-mode' is a macro and both CHILD and PARENT are
unquoted symbol names.

It makes sense in this case to use this syntax because those symbol
names are meant to be accessible to the user as symbols.  When I see a
(define-derived-mode CHILD...) sexp, I know I can check for the value
of CHILD, once derived-defined.

This is not the case for `org-export-define-derived-backend', where
CHILD and PARENT are not symbols the user wants to check.  There are
symbols that only have a meaning in `org-export-registered-backends',
which is what the users/devs really want to manipulate.

So mimicking `define-derived-mode' is confusing here IMHO.

Anyway, waiting for Nicolas feedback on this.

-- 
 Bastien



Re: [O] posting guide?

2013-03-14 Thread Rainer M Krug
Just a short comment:

There is one incident caused by one user - this is an outlier in all
statistical measures. I don't think it is reasonable to react with new rules
- by discussing the issue caused by one user, we are playing by their rules!

 Ignore the one user but keep your eyes and ears open - but don't overreact.


Cheers,

Rainer


On Thursday, March 14, 2013, Bastien wrote:

 Hi Jay,

 Jay Kerns gjkerns...@gmail.com javascript:; writes:

  As promised, I added a sentence to that paragraph: Ad hominem
  comments are out of place and will not be tolerated by the
  community.  If one of you feels this is inconsistent with Org's
  spirit, feel free to delete my change (it is a wiki, after all).
  No hard feelings.  Honest.

 I'm fine with the sentence you added --- and will take care not
 to curse after myself when I make a mistake ;)

 --
  Bastien



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


Re: [O] posting guide?

2013-03-14 Thread Carsten Dominik

On 13 mrt. 2013, at 22:07, Jay Kerns gjkerns...@gmail.com wrote:

 Dear Bastien,
 
 
 On Wed, Mar 13, 2013 at 4:33 PM, Bastien b...@altern.org wrote:
 Hi Jay,
 
 Well, I would not invest too much time on this, personally.
 
 No, you don't seem to be bothered at all; those attacks seem to
 wash off you like water off a duck's back, or scandals off of Bill
 Clinton's resume.  ;-)
 
 From experience, such a drafting process takes a lot of time.  And at
 the end, you're not always sure that the whole community comes: to an
 agreement... only the ones who care, who are obviously not the ones
 the guidelines want to reach.
 
 
 Drafting takes about five seconds. In fact, let me do one right now:
 
 Please note that messages to the emacs-orgmode list are expected
 to be civil and focused toward our mutual interest of Org
 mode. /Ad hominem/ or other attacks of a personal nature will not
 be tolerated by the community.
 
 Any strenuous objections?

Hi,

it seems to me that this is entirely superfluous.  I have not seen a mailing 
lit with better behavior anywhere.  We should not be distracted by a lone user.


 
 
 Why not trying another approach and have a hall of fame for great
 posts sent on this lists?  Examples of good/thorough explanations,
 example of detailed bug reports, etc.  It would be both encouraging
 and educating, maybe.
 
 What do you think?
 

A great idea.

- Carsten

 
 
 I think that's a great idea!, actually.  My mental catalogue of
 excellent posts probably isn't as extensive as yours, but even
 just last night I got a great response that fits a Hall of Fame
 in my book. Surely there must be other people who got a great
 response to some question they asked at some point in their past.
 
 -- 
 Jay
 




Re: [O] posting guide?

2013-03-14 Thread Memnon Anon
 it seems to me that this is entirely superfluous. I have not seen a
 mailing lit with better behavior anywhere. We should not be distracted
 by a lone user.

FWIW, +1




[O] org-caldav will cease to work with Google Calendar

2013-03-14 Thread David Engster
Google has announced today that they will shut down their CalDAV API in
September, since hey, everybody's using their own protocol anyway.
org-caldav will then cease to work with Google calendar. I won't work on
supporting the Google calendaring API until there's a free server
implementation for it, which can be self-hosted. If someone else would
like to work on that, please create a fork under a different name.

-David



[O] latex export of org-mode: verbatim block in a figure

2013-03-14 Thread Rob Stewart
What I would like to do is simple: wrap a verbatim code block within a
Figure, so that I can refer to it elsewhere in my org-mode file. How
is this achieved? A naive solution, which does not work, looks like:

#+CAPTION:My caption
#+LABEL:  fig:my-api
#+ATTR_LaTeX: width=130mm,height=30mm
#+BEGIN_SRC haskell
foo :: Int - String
bar :: String - Int
#+END_SRC

How would I achieve this?

--
Rob



Re: [O] multiline emphasis, was: Re: latex italics in list, with quotation marks

2013-03-14 Thread W. Greenhouse
Robert Klein klein...@mpip-mainz.mpg.de writes:

 On 03/08/2013 11:58 AM, Myles English wrote:
 
 Hi,
 
 Just wondering if there is a better way to italicise across more than
 two lines for a list item, currently this is the only way that works
 for me:
 
 - on the assumption of equilibrium: /``even if there is equilibrium at
   the pore sale, the upscaling, in this/ /if there is equilibrium at
   blah the equilibrium/''
 
 Thanks,
 
 Myles
 
 

 The same happens outside of lists.  I set

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

 which ought to increase the number of lines I can span an emphasis (only
 change is the original 1 at the end to 10).  Doesn't work though, atm.
 My org-version is release_8.0-pre-67-gd3361c.

A less pleasant/even worse way (practically heresy in some circles,
though some Org users do it) would just be to compose your documents
using visual-line-mode instead of auto-fill-mode.  Then whole paragraphs
are one line.

-- 
Regards,
WGG




Re: [O] multiline emphasis, was: Re: latex italics in list, with quotation marks

2013-03-14 Thread Bastien
Hi all,

wgreenhouse-sgozh3hwpm2stnjn9+b...@public.gmane.org (W. Greenhouse)
writes:

 A less pleasant/even worse way (practically heresy in some circles,
 though some Org users do it) would just be to compose your documents
 using visual-line-mode instead of auto-fill-mode.  Then whole paragraphs
 are one line.

... and a deepest fix would be to re-implement markup fontification
with a proper use of `font-lock-fontify-region-function'... if anyone
feels ready to put a stab at this, he has my full support and will
fix a historical limitation of Org's code.

PS: The current way multiline markup is fontified is buggy because
it feels random, but it is correct under some conditions.

-- 
 Bastien



Re: [O] org-caldav will cease to work with Google Calendar

2013-03-14 Thread Bastien
Hi David,

David Engster d...@randomsample.de writes:

 Google has announced today that they will shut down their CalDAV API in
 September, since hey, everybody's using their own protocol anyway.
 org-caldav will then cease to work with Google calendar. 

:/

 I won't work on
 supporting the Google calendaring API until there's a free server
 implementation for it, which can be self-hosted. If someone else would
 like to work on that, please create a fork under a different name.

Are there already people interested in working on a free server
implementation of the Google Calendaring API?  Maybe a pointer for
those potentially interested on the list might be useful -- just
in case.

Thanks,

-- 
 Bastien



Re: [O] org-caldav will cease to work with Google Calendar

2013-03-14 Thread Torsten Wagner
Hi David,

first of all thanks again for your great contribution.

Maybe this is a good time to announce that we use org-caldav since several
weeks together with SoGO.
SoGO does allow syncing of Android devices too (via an App). It syncs full
automatically with the Android calendar!

It comes with a nice web-based calendar (better then what Google offers
IMHO)
It syncs with Thunderbird/Lightning.

I never tested but they claim iphone and Outlook support as well.
You can host your SoGO instance on your own server.

On top SoGO offers address-book and email capabilities (both syncing and
web-apps).

There are minor problems (on the SoGO side) but overall its running
perfectly stable for us.

In total, it made me move from Google to my own server, happily knowing
that annoyances  like personalized Google ads soon become irrelevant for
me. ;)

Just to catch the dropouts ;)

Torsten







On 14 March 2013 17:19, David Engster d...@randomsample.de wrote:

 Google has announced today that they will shut down their CalDAV API in
 September, since hey, everybody's using their own protocol anyway.
 org-caldav will then cease to work with Google calendar. I won't work on
 supporting the Google calendaring API until there's a free server
 implementation for it, which can be self-hosted. If someone else would
 like to work on that, please create a fork under a different name.

 -David




Re: [O] org-caldav will cease to work with Google Calendar

2013-03-14 Thread David Engster
Bastien writes:
 David Engster d...@randomsample.de writes:
 I won't work on supporting the Google calendaring API until there's a
 free server implementation for it, which can be self-hosted. If
 someone else would like to work on that, please create a fork under a
 different name.

 Are there already people interested in working on a free server
 implementation of the Google Calendaring API?  Maybe a pointer for
 those potentially interested on the list might be useful -- just
 in case.

Just to be clear, with on that I meant support for the Google API in
org-caldav. I think we should not play Google's game and start
supporting their proprietary API because they shut down their CalDAV
interface (which was crappy, but usable).

I don't know of any free calendar servers which are planning to
implement Google's API. Maybe it's not even allowed because of patents
or whatever.

-David



Re: [O] Meaning of install

2013-03-14 Thread Thomas S. Dye
Aloha all,

Thanks for your help and patience as I try to find the simplest, most
widely applicable, path to a successful Org installation.

I've decided not to mention el-get in the manual.  It looks like a great
power-user tool, but I don't think it fits here.  Perhaps something on
Worg (if it's not already there)?

Here is the most recent version:

1.2.3 Use the Org git repository


You can clone the development version of the Org git repository,
typically to a location under your home directory.  The example in this
section assumes this location is `src/' in your home directory:

$ cd ~/src/
$ git clone git://orgmode.org/org-mode.git
$ cd org-mode

   In most cases where you have permission to write to system locations,
you will probably want to install Org with the Emacs system files.
This is a system-specific operation that is guided by a file,
`local.mk', which you must ensure is configured properly.  First,
generate a `local.mk' template with the command `make local.mk'.  Edit
`local.mk' following the instructions in the file, and save it.(1)
Finally, run `make install' to build all of Org and install it.  The
command `make help' provides a full list of options for the build
system.

   If you would like to run Org from the clone location, instead of
installing it with the Emacs system files, you can simply run `make
autoloads' and set the load-path in your `.emacs'.  Using the example
location, add this to `.emacs':

(add-to-list 'load-path ~/src/org-mode/lisp)

   If your installation has special requirements, please refer to the
detailed description of the capable build system at the Org Build
System page (http://orgmode.org/worg/dev/org-build-system.html).

   -- Footnotes --

   (1) The `local.mk' template is designed to work out of the box with
GNU systems.

All the best,
Tom
-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] Meaning of install

2013-03-14 Thread Bastien
Hi Thomas,

t...@tsdye.com (Thomas S. Dye) writes:

 Thanks for your help and patience as I try to find the simplest, most
 widely applicable, path to a successful Org installation.

Thanks for this, I think these explanations are better articulated
than the ones in the manual.  

Let's get the go! from Achim and commit this change in the manual.

 I've decided not to mention el-get in the manual.  It looks like a great
 power-user tool, but I don't think it fits here.  Perhaps something on
 Worg (if it's not already there)?

Mentioning el-get on Worg is fine IMO.

Best,

-- 
 Bastien



[O] Extra space after listings in LaTeX export with minted

2013-03-14 Thread Richard Stanton
Using the minted package, I get very nice colored listings in the PDF
files generated by exporting to LaTeX, but there's always a lot of extra
space after each listing and before any text that immediately follows.
This seems to be an issue with the minted package itself, but I'm
wondering if anyone has come up with a  simple work-around (short of
inserting negative space after each listing).

Thanks.

Richard Stanton




Re: [O] [RFC] Org syntax (draft)

2013-03-14 Thread Eric S Fraga
Jambunathan K kjambunat...@gmail.com writes:

 You are a jerk, a BIG JERK. 

This is completely uncalled.  What satisfaction do you gain from this?
This is a brilliant, informative and polite mailing list except when it
comes to your contributions.

Don't bother answering because I've added you to my spam database.  I've
not had to do this for an individual for some years now.  I'll never see
any of your emails again.  Bye.

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1199-g3a0e55




Re: [O] Better way to customize daily/weekly agenda?

2013-03-14 Thread Eric S Fraga
Viktor Rosenfeld listuse...@gmail.com writes:

[...]

 With regard to the time grid you might want to check out the variable
 org-agenda-time-grid. I have it set thusly:

 #+BEGIN_SRC emacs-lisp
 (setq org-agenda-time-grid 
   '((daily today required-time)
 
 (600 1200 1800 2400)))
 #+END_SRC

 The first part of the variable shows the time grid in the day agenda,
 but not in the weekly agenda, except for today's date.

I have this already, and it does help.  However, I also would like what
Piotr was requesting.  When I switch to a week view, I don't want the
time grid appearing at all as it takes up too much space and the week
view is about a bigger picture, not the detail (for me, at least
;-).  It would be great to have some way of switching the grid on and
off when changing views without recourse to custom views.

But, as always, this is not a critical issue!

thanks,
eric
-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1199-g3a0e55




Re: [O] [RFC] Org syntax (draft)

2013-03-14 Thread Jambunathan K

Eric

Eric S Fraga e.fr...@ucl.ac.uk writes:

 Jambunathan K kjambunat...@gmail.com writes:

 You are a jerk, a BIG JERK. 

 This is completely uncalled.  What satisfaction do you gain from this?
 This is a brilliant, informative and polite mailing list except when it
 comes to your contributions.

 Don't bother answering because I've added you to my spam database.  I've
 not had to do this for an individual for some years now.  I'll never see
 any of your emails again.  Bye.

Still you haven't answered my Fudging the mail reply headers question
to my satisfaction.  I just let you off the hook (at the last moment)
before charging ahead.

Jambunathan K.
-- 



Re: [O] Extra space after listings in LaTeX export with minted

2013-03-14 Thread Aaron Ecay
Hi Richard,

2013ko martxoak 14an, Richard Stanton-ek idatzi zuen:
 
 Using the minted package, I get very nice colored listings in the PDF
 files generated by exporting to LaTeX, but there's always a lot of extra
 space after each listing and before any text that immediately follows.
 This seems to be an issue with the minted package itself, but I'm
 wondering if anyone has come up with a  simple work-around (short of
 inserting negative space after each listing).

It looks like the answer to your question is “sort of”: there are
workarounds, though whether they qualify as simple is largely a matter
of taste.  Check out these two StackOverflow discussions on the topic
(including solutions):

http://stackoverflow.com/questions/2318598/how-to-reduce-the-seperation-from-other-text-using-latex-minted
http://tex.stackexchange.com/questions/37117/belowskip-on-minted

In general, the TeX StackExchange site (the second link) is a marvelous
resource for LaTeX-related questions.  Many questions are already
answered there (with a usable search interface), and the community is
very friendly and helpful for new questions/users.

-- 
Aaron Ecay



Re: [O] [RFC] Org syntax (draft)

2013-03-14 Thread David Engster
Jambunathan K. writes:
 Still you haven't answered my Fudging the mail reply headers question
 to my satisfaction.

http://www.gnu.org/software/emacs/manual/html_node/message/Mailing-Lists.html

A mailing list poster can use MFT to express that responses should be
sent to just the list, and not the poster as well. This will happen if
the poster is already subscribed to the list.

-David



[O] [Out-of-Thread] Re: [RFC] Org syntax (draft)

2013-03-14 Thread Jambunathan K
David Engster d...@randomsample.de writes:

 Jambunathan K. writes:
 Still you haven't answered my Fudging the mail reply headers question
 to my satisfaction.

 http://www.gnu.org/software/emacs/manual/html_node/message/Mailing-Lists.html

 A mailing list poster can use MFT to express that responses should be
 sent to just the list, and not the poster as well. This will happen if
 the poster is already subscribed to the list.

(Nicolas, I am sorry.  I have added OT to this post)

I know that.  

But that doesn't answer the question why Carsten will appear in the To
header of a mail that I reply to a mail I receive from Eric S Fraga.

See my question here:

http://lists.gnu.org/archive/html/emacs-orgmode/2013-02/msg00525.html

If I wide reply to your post, I see that the TO header points to the
ML.  Why it doesn't happen with Eric S Fraga's post?  The said behaviour
will change based on the phase of moon.

I have noticed such fudging of the To headers by Eric for a long time.
Unless there is a satisfactory explanataion, I will assume Eric is
faking innocence.

 -David



Re: [O] Meaning of install

2013-03-14 Thread Achim Gratz
Thomas S. Dye writes:
 Thanks for your help and patience as I try to find the simplest, most
 widely applicable, path to a successful Org installation.

I especially like the fact that it didn't get longer than before.

In most cases where you have permission to write to system locations,
 you will probably want to install Org with the Emacs system files.
 This is a system-specific operation that is guided by a file,
 `local.mk', which you must ensure is configured properly.  First,
 generate a `local.mk' template with the command `make local.mk'.  Edit
 `local.mk' following the instructions in the file, and save it.(1)

I would mention make config here for a sanity check of the created
configuration.



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

SD adaptation for Waldorf Blofeld V1.15B11:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Build fail with emacs 24.3.1

2013-03-14 Thread Achim Gratz
Bastien writes:
 If we agree the macros are not really needed we can make the change.
 We will always be free to find why the macros are causing problems
 later one.  I know the move looks like I want to avoid the problems
 instead of fixing them, but it's not: it's about fixing the approach
 upstream instead of fighting with some obscure consequences of the
 unnecessary approach.

Aside from the issue of whether using macros here is needed or
appropriate, I can't find anything wrong with the macros or their use so
far.  If that upholds, the test not working points to a rather
substantial bug in either the test framework or Emacs 24.3.  I'm not
sure if there's a way to circumvent eager macroexpansion to test how it
gets involved.  Some further testing seems to point to the let clause
that produces the contents list: it never seems to be adding anything
coming from the parent.


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

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] posting guide?

2013-03-14 Thread Bernt Hansen
Memnon Anon gegendosenflei...@googlemail.com writes:

 it seems to me that this is entirely superfluous. I have not seen a
 mailing lit with better behavior anywhere. We should not be distracted
 by a lone user.

 FWIW, +1

+2 :)

Bernt



Re: [O] [Out-of-Thread] Re: [RFC] Org syntax (draft)

2013-03-14 Thread David Engster
Jambunathan K. writes:
 I know that.  

 But that doesn't answer the question why Carsten will appear in the To
 header of a mail that I reply to a mail I receive from Eric S Fraga.

Because Carsten started the thread and did not set MFT.

-David



Re: [O] Further problems with export

2013-03-14 Thread Achim Gratz
Neuwirth Erich writes:
 I put my old source directory away and started afresh:
 git clone git://orgmode.org/org-mode.git

I'm not sure what you were trying to accomplish.  You can always check
with git status what's going on in your worktree and if necessary you
can git clean anything you think shouldn't be there.

 And I did
 make up1
 sudo make clean-install install

That should have taken care of the installation.

 When I try to create an open an html file with

 C-c C-e h o

 I still get

 Symbol's value as variable is void: org-element-document-properties

You'll have to fix your init files, it looks like you're still
referencing old symbols someplace.  Start with an empty one and work
from there.


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

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] [Out-of-Thread] Re: [RFC] Org syntax (draft)

2013-03-14 Thread Jambunathan K
David Engster d...@randomsample.de writes:

 Jambunathan K. writes:
 I know that.  

 But that doesn't answer the question why Carsten will appear in the To
 header of a mail that I reply to a mail I receive from Eric S Fraga.

 Because Carsten started the thread and did not set MFT.

In this very specific thread - the one I am typing right now, Nicolas
Goaziou doesn't appear in To - why?  Normally, when I wide reply to a
Ngz's post it gets sent to him as well as the mailing list.

If your argument is right, Ngz should appear in To or CC headers of the
post.  I see only ML address.  So what am I missing?

 -David



Re: [O] [Out-of-Thread] Re: [RFC] Org syntax (draft)

2013-03-14 Thread David Engster
Jambunathan K. writes:
 David Engster d...@randomsample.de writes:

 Jambunathan K. writes:
 I know that.  

 But that doesn't answer the question why Carsten will appear in the To
 header of a mail that I reply to a mail I receive from Eric S Fraga.

 Because Carsten started the thread and did not set MFT.

 In this very specific thread - the one I am typing right now, Nicolas
 Goaziou doesn't appear in To - why?  Normally, when I wide reply to a
 Ngz's post it gets sent to him as well as the mailing list.

 If your argument is right, Ngz should appear in To or CC headers of the
 post.  I see only ML address.  So what am I missing?

You didn't do a wide reply in 871ubntg32@gmail.com.

-David



Re: [O] posting guide?

2013-03-14 Thread Jay Kerns
[snip]

 FWIW, +1

 +2 :)


Fair enough.  I agree that time shouldn't be wasted on lone users, and
that includes me:

http://orgmode.org/w/?p=worg.git;a=commitdiff;h=933d17d268a1618d9244c12014403a05c05c5a25

Cheers,

-- 
Jay



Re: [O] [Out-of-Thread] Re: [RFC] Org syntax (draft)

2013-03-14 Thread Jambunathan K
David Engster d...@randomsample.de writes:

 Jambunathan K. writes:
 David Engster d...@randomsample.de writes:

 Jambunathan K. writes:
 I know that.  

 But that doesn't answer the question why Carsten will appear in the To
 header of a mail that I reply to a mail I receive from Eric S Fraga.

 Because Carsten started the thread and did not set MFT.

 In this very specific thread - the one I am typing right now, Nicolas
 Goaziou doesn't appear in To - why?  Normally, when I wide reply to a
 Ngz's post it gets sent to him as well as the mailing list.

 If your argument is right, Ngz should appear in To or CC headers of the
 post.  I see only ML address.  So what am I missing?

 You didn't do a wide reply in 871ubntg32@gmail.com.

I don't what that mail is.  My Gnus-foo is just OKish.

Anyways, S W is what I do on all my mails - those that I reply to on the
ML and on those that I reply to from my Inbox.

If I reply to ESF's posts, I might have edited the headers myself.
Normally - 99% of the cases - I don't edit headers by hand.

ps: I don't want to continue this thread further.  For your
satisfaction, I am willing to concede that I am wrong.

 -David



-- 



Re: [O] posting guide?

2013-03-14 Thread Jay Kerns
Reading my message again, it doesn't say what I wanted it to say, and
it sounds in my head not in the way I wanted it to sound.  Let me try
again, with more words:

That's totally fine by me, I meant it when I said OK if you don't
want to do that, and I don't want a silly thing like a posting guide
idea of mine to be wasting people's time any more than I want
malicious comments from hostile lone users to be wasting people's
time.

I hope that sounds better; it is closer to what I meant.

Sorry for the noise,

-- 
Jay



Re: [O] Where does org-mode elisp hacking go?

2013-03-14 Thread Eric Schulte
Torsten Wagner torsten.wag...@gmail.com writes:

 Hi,

 if I have a project based on org which require some special settings (not
 only in lisp) I use a babel block and execute it after loading the file. I
 did this e.g. to set my Java environment correct

 If I remember correctly, we discussed once an autoload feature for
 org-babel, but security concerns overruled that idea.
 If some autoload feature should ever land in the repro, one would have to
 make sure that the code can't be manipulated e.g. by an external editor.
 This would come close to creating org-babel-viruses ;)

 One possible idea which jumps just to my mind, how about a combination of a
 babel blocks and org-encrypt?
 Encrypted babel blocks with a certain tag could be considered save for
 execution immediately after the user authentication during loading a
 certain buffer. I guess most of the functionality (tag, encryption,
 block-execution) is there already, it just would need some glue to put it
 together and a hook into opening of org-mode files

 Hmmm. I think I put Eric CC :)


Sounds dangerous to me.  I often place init.el files into
sub-directories which require project specific customization.  You may
also want to look at (info (elisp)Directory Local Variables) for
adding setting based on the working directory.



 Other then this I have a .init.el which simply loads many other lisp files,
 one of them is init_org.el

Maybe the methods used here [1] may provide inspiration.

 
 If you frighten that emacs start-up might be to much delayed you might
 want to check the daemon / emcasclient feature of emacs.


Indeed, I've recently fully committed to this approach adding Emacs to
the list of services started by my OS during boot (probably overkill for
most users and configurations).

Cheers,


 All the best
 Torsten




 On 13 March 2013 23:38, Charles Berry ccbe...@ucsd.edu wrote:

 Lawrence Bottorff galaxybeinglambda at gmail.com writes:

 
 

  I see on the org-hacks.html page lots of interesting elisp code.

  If I wanted to use some of this (lots of this) it seems wrong to shove it
  all in my .emacs file. My first guess would be to put what I want into
  separate .el files, go to my .org file and do a load-file on the .el file
  of hacks. But I really loath doing something that's not best practice.
  What's the best practice for enabling org-mode elisp hacks? And what if
  I want to use just one hack for one project? With usual elisp-ing you can
  simply evaluate region. Is that possible in conjunction with a .org
 file?


 Yes. But you might like to look at

http://orgmode.org/worg/org-contrib/babel/intro.html#sec-8-2-1

 which discusses Emacs Initialization with Babel for a comprehensive
 approach.

 For a single project, you can but a src_block in the master that loads
 whatever is needed or use a file local variables block to load up the
 requisites.
 See: Specifying File Variables in the emacs manual.






Footnotes: 
[1]  http://github.com/eschulte/emacs24-starter-kit

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



Re: [O] Fwd: request regarding code chunk options in org-babel.

2013-03-14 Thread Eric Schulte
shripad sinari shripad.sin...@gmail.com writes:

 Hello Eric,
 The posted solution works. But the issue is that I have to do this a lot of
 times for selective code chunks in multiple documents. Writing the sexp
 each time is not very elegant.

As the sexp is just elisp you can easily to add a function to your
.emacs configuration which makes this process easier.  For example.

 ;; -*- emacs-lisp -*-
 (defun exp-only () (if org-current-export-file replace silent))

allowing you to then do the following in your Org-mode files


 #+begin_src sh :results (exp-only) :exports results
   echo  I want to see this in HTML/PDF, but not in Org
 #+end_src

 Besides, if I were to come up with some solution than I did not want
 it to break anything else.

The above solution will not break anything else.

 Perhaps my question is still ambiguous and the right question should
 be does value of :results plist overrride the one from :exports,
 i.e., is there any precedence order to the chunk options that is
 implicit, that i have not yet grasped from the documentation?


I don't believe override is the right term here, they are orthogonal.
So, :exports results does mean that the results will be exported, if
those results are silent then while they are run during export, there
nothing is added to the exported document.


 Thanks for your patience and help.

I hope this does help.  One goal of Org-mode's code block support is to
provide as much functionality as possible from a core which is as
composed of a small number of orthogonal working pieces.  This maximizes
flexibility and utility with a minimum of maintenance and implementation
overhead.

Cheers,

 
 Regards, Shripad.

 Shripad
 Tucson, AZ


 On Wed, Mar 13, 2013 at 8:08 AM, Eric Schulte schulte.e...@gmail.comwrote:

 shripad sinari shripad.sin...@gmail.com writes:

  Hello all,
   I have been using org-mode and particularly org-babel for reproducible
  research. From reading most of the code chunk options in the org manual
   it seems that the follwoing table would be how one would expect output
  in various formats to behave:
 
  | :results value | :exports value | In Buffer | In PDF | Evaluation |
  |++---++|
  | silent | results| no| yes| yes|
  | replace/other  | none   | yes   | no | yes|
  | silent | none   | no| no | yes|
 

 Perhaps the documentation should be changed to more clearly express that
 adding :results silent will inhibit insertion of results in the buffer
 even during export.

 
  However from this thread:
  http://comments.gmane.org/gmane.emacs.orgmode/46625

 Is there a reason that the solution posted in that thread does not work
 for you?

 Best,

 
   it appears that this is not the case. Is there a way, to get this
  table to be valid out of the box? This might be useful.
 
  Please let me know.
  Thanks and regards,
 
  Shripad
  Tucson, AZ

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


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



Re: [O] [PATCH] * lisp/ob-core.el (org-babel-execute-src-block): insert hash for silent results

2013-03-14 Thread Eric Schulte
Achim Gratz strom...@nexgo.de writes:

 Eric Schulte writes:
 From re-looking at Achim's previous noweb example, it seems that we
 currently do *not* include the values of noweb expansions in code block
 hash calculations, I think this is a bug which should be fixed.

 It could very well have been a conscious decision, given that this can
 lead to exponential complexity (I guess it's too late to ask Dan Davison
 about that).  That's why I said we need to clarify what we want this to
 do first and then see how we implement it.


I do think that the noweb expanded body should be used in code block
hashing.  This is not very different from the expansion of included :var
header arguments before hashing takes place.

Cheers,



 Regards,
 Achim.

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



Re: [O] Fwd: request regarding code chunk options in org-babel.

2013-03-14 Thread shripad sinari
Thanks Eric!


Shripad
Tucson, AZ


On Thu, Mar 14, 2013 at 12:57 PM, Eric Schulte schulte.e...@gmail.comwrote:

 shripad sinari shripad.sin...@gmail.com writes:

  Hello Eric,
  The posted solution works. But the issue is that I have to do this a lot
 of
  times for selective code chunks in multiple documents. Writing the sexp
  each time is not very elegant.

 As the sexp is just elisp you can easily to add a function to your
 .emacs configuration which makes this process easier.  For example.

  ;; -*- emacs-lisp -*-
  (defun exp-only () (if org-current-export-file replace silent))

 allowing you to then do the following in your Org-mode files


  #+begin_src sh :results (exp-only) :exports results
echo  I want to see this in HTML/PDF, but not in Org
  #+end_src

  Besides, if I were to come up with some solution than I did not want
  it to break anything else.

 The above solution will not break anything else.

  Perhaps my question is still ambiguous and the right question should
  be does value of :results plist overrride the one from :exports,
  i.e., is there any precedence order to the chunk options that is
  implicit, that i have not yet grasped from the documentation?
 

 I don't believe override is the right term here, they are orthogonal.
 So, :exports results does mean that the results will be exported, if
 those results are silent then while they are run during export, there
 nothing is added to the exported document.

 
  Thanks for your patience and help.

 I hope this does help.  One goal of Org-mode's code block support is to
 provide as much functionality as possible from a core which is as
 composed of a small number of orthogonal working pieces.  This maximizes
 flexibility and utility with a minimum of maintenance and implementation
 overhead.

 Cheers,

 
  Regards, Shripad.
 
  Shripad
  Tucson, AZ
 
 
  On Wed, Mar 13, 2013 at 8:08 AM, Eric Schulte schulte.e...@gmail.com
 wrote:
 
  shripad sinari shripad.sin...@gmail.com writes:
 
   Hello all,
I have been using org-mode and particularly org-babel for
 reproducible
   research. From reading most of the code chunk options in the org
 manual
it seems that the follwoing table would be how one would expect
 output
   in various formats to behave:
  
   | :results value | :exports value | In Buffer | In PDF | Evaluation |
   |++---++|
   | silent | results| no| yes| yes|
   | replace/other  | none   | yes   | no | yes|
   | silent | none   | no| no | yes|
  
 
  Perhaps the documentation should be changed to more clearly express that
  adding :results silent will inhibit insertion of results in the buffer
  even during export.
 
  
   However from this thread:
   http://comments.gmane.org/gmane.emacs.orgmode/46625
 
  Is there a reason that the solution posted in that thread does not work
  for you?
 
  Best,
 
  
it appears that this is not the case. Is there a way, to get this
   table to be valid out of the box? This might be useful.
  
   Please let me know.
   Thanks and regards,
  
   Shripad
   Tucson, AZ
 
  --
  Eric Schulte
  http://cs.unm.edu/~eschulte
 

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



[O] Help request - auto-fill/word wrap with headlines and tags

2013-03-14 Thread Subhan Tindall
I haven't been able to find a combination of options to do this, any ideas?

I use org extensively for note-taking in my classes.  What I would
like is to have the following, preferably while typing allthough after
the fact would do:

* headline one is a short one :tag1:tag2:
* headline two is the next section, and is quite a bit longer :tag2:
  then the one before it, and wraps around into a full paragraph
** sub headline two is also pretty long, and instead of:tag2:
   continuing on into a very long headline it also wraps, and
   indents to match the headline level

Where things flow like this: (-- indicates a progression of typing on
the same line )

*
--
* :tag1:tag2:
---
* some text, this pushes tags out :tag1:tag2:
---
* some text, this pushes tags out. as I add more text :tag1:tag2:
--
 *  eventually things reach the fill column (text +tags),  and the
:tag1:tag2:fill col
text wraps around leaving the tags hanging out with the headline

-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT



Re: [O] Meaning of install

2013-03-14 Thread Thomas S. Dye
Aloha Achim,

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

 Thomas S. Dye writes:

In most cases where you have permission to write to system locations,
 you will probably want to install Org with the Emacs system files.
 This is a system-specific operation that is guided by a file,
 `local.mk', which you must ensure is configured properly.  First,
 generate a `local.mk' template with the command `make local.mk'.  Edit
 `local.mk' following the instructions in the file, and save it.(1)

 I would mention make config here for a sanity check of the created
 configuration.

Good idea.  Done.  Thanks!

All the best,
Tom

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



Re: [O] Meaning of install

2013-03-14 Thread Andreas Röhler

Am 13.03.2013 12:56, schrieb Bastien:

Andreas Röhler andreas.roeh...@easy-emacs.de writes:


Any recommendation which make commands to run here?


~$ make helpall

:)



Another great piece, thanks!



Re: [O] multiline emphasis, was: Re: latex italics in list, with quotation marks

2013-03-14 Thread Marcin Borkowski
Dnia 2013-03-14, o godz. 16:46:22
wgreenho...@riseup.net (W. Greenhouse) napisał(a):

 A less pleasant/even worse way (practically heresy in some circles,
 though some Org users do it) would just be to compose your documents
 using visual-line-mode instead of auto-fill-mode.  Then whole
 paragraphs are one line.

Sorry for a bit of OT, but why should visual-line-mode be bad?  (I've
switched to it from auto-filling and I'm generally satisfied with it,
but I'm asking so that I could learn something.)

Regards,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] two-way sync org agenda/ical

2013-03-14 Thread Eric S Fraga
Karl Voit devn...@karl-voit.at writes:

 * Marvin Doyley marvin...@gmail.com wrote:

 Hi there,

 Hi!

 Does anybody know how to export deadline or schedule items from  org to
 ical ?

 I think you want to read following pages:
 http://orgmode.org/manual/iCalendar-export.html
 http://orgmode.org/worg/org-tutorials/org-google-sync.html

The latter has really been superseded by David Engster's implementation
of org-caldav-sync, if you want to sync with Google:

http://article.gmane.org/gmane.emacs.orgmode/57804/


-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_8.0-pre-16-g3f6b24




Re: [O] two-way sync org agenda/ical

2013-03-14 Thread Rasmus
Eric S Fraga e.fr...@ucl.ac.uk writes:

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

 * Marvin Doyley marvin...@gmail.com wrote:

 Hi there,

 Hi!

 Does anybody know how to export deadline or schedule items from  org to
 ical ?

 I think you want to read following pages:
 http://orgmode.org/manual/iCalendar-export.html 
 http://orgmode.org/worg/org-tutorials/org-google-sync.html

 The latter has really been superseded by David Engster's implementation
 of org-caldav-sync, if you want to sync with Google:

 http://article.gmane.org/gmane.emacs.orgmode/57804/

Org-CalDAV is it is in fact mentioned on that worg page. . .  At the
very bottom.  Unless Eric feels strongly about it, perhaps we should
move Org-CalDAV to the top of the page?

–Rasmus

-- 
May the Force be with you




Re: [O] Extra space after listings in LaTeX export with minted

2013-03-14 Thread Richard Stanton
Thanks, Aaron. I ended up adding the line

#+LaTeX_HEADER: \addtolength\partopsep{-0.9cm}

to my org file. Not too complicated...


There's still one more (even more) minor problem, which is that minted
always indents the text immediately after a listing, but this I can
probably live with.

On 3/14/13 11:30 AM, Aaron Ecay aarone...@gmail.com wrote:

Hi Richard,

2013ko martxoak 14an, Richard Stanton-ek idatzi zuen:
 
 Using the minted package, I get very nice colored listings in the PDF
 files generated by exporting to LaTeX, but there's always a lot of extra
 space after each listing and before any text that immediately follows.
 This seems to be an issue with the minted package itself, but I'm
 wondering if anyone has come up with a  simple work-around (short of
 inserting negative space after each listing).

It looks like the answer to your question is ³sort of²: there are
workarounds, though whether they qualify as simple is largely a matter
of taste.  Check out these two StackOverflow discussions on the topic
(including solutions):

http://stackoverflow.com/questions/2318598/how-to-reduce-the-seperation-fr
om-other-text-using-latex-minted
http://tex.stackexchange.com/questions/37117/belowskip-on-minted

In general, the TeX StackExchange site (the second link) is a marvelous
resource for LaTeX-related questions.  Many questions are already
answered there (with a usable search interface), and the community is
very friendly and helpful for new questions/users.

-- 
Aaron Ecay




[O] Org-mobile for Android and syncing

2013-03-14 Thread Marcin Borkowski
Hi,

I'm about to buy an Android smartphone.  Of course, I want to use
Org-mobile.  However, I don't use Dropbox (I use another, similar
service, called SpiderOak).  Is it possible to synchronize using such a
service?  (If not, I'll set up a Dropbox account, which I'm probably
ging to do anyway - I'm just curious.)

Best regards,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] posting guide?

2013-03-14 Thread Carsten Dominik

On 14.3.2013, at 20:53, Jay Kerns gjkerns...@gmail.com wrote:

 Reading my message again, it doesn't say what I wanted it to say, and
 it sounds in my head not in the way I wanted it to sound.  Let me try
 again, with more words:
 
 That's totally fine by me, I meant it when I said OK if you don't
 want to do that, and I don't want a silly thing like a posting guide
 idea of mine to be wasting people's time any more than I want
 malicious comments from hostile lone users to be wasting people's
 time.
 
 I hope that sounds better; it is closer to what I meant.

Sure!

However, the idea in the thread to collect a few exemplary
post with great questions or great answers could be fun...

Cheers

- Carsten

 
 Sorry for the noise,
 
 -- 
 Jay
 




Re: [O] Org-mobile for Android and syncing

2013-03-14 Thread Charles Philip Chan
Marcin Borkowski mb...@wmi.amu.edu.pl writes:

Hi Marcin:

 I'm about to buy an Android smartphone.  Of course, I want to use
 Org-mobile.  However, I don't use Dropbox (I use another, similar
 service, called SpiderOak).  Is it possible to synchronize using such a
 service?

No currently Mobileorg does not support SpiderOak. Here is a list of
supported methods:

  - Sync files from sdcard
  - Sync files from a WebDAV server
  - Sync files from Dropbox
  - Sync files from Ubuntu One
  - Sync files from an SSH server

Charles

-- 
Oh, I've seen copies [of Linux Journal] around the terminal room at The
Labs.
(By Dennis Ritchie)


pgpYSDvol7xY4.pgp
Description: PGP signature


Re: [O] Org-mobile for Android and syncing

2013-03-14 Thread Subhan Tindall
Org mobile is currently unavailable in the Android market, with no
scheduled return time.

On Thu, Mar 14, 2013 at 3:05 PM, Charles Philip Chan cpc...@bell.net wrote:
 Marcin Borkowski mb...@wmi.amu.edu.pl writes:

 Hi Marcin:

 I'm about to buy an Android smartphone.  Of course, I want to use
 Org-mobile.  However, I don't use Dropbox (I use another, similar
 service, called SpiderOak).  Is it possible to synchronize using such a
 service?

 No currently Mobileorg does not support SpiderOak. Here is a list of
 supported methods:

   - Sync files from sdcard
   - Sync files from a WebDAV server
   - Sync files from Dropbox
   - Sync files from Ubuntu One
   - Sync files from an SSH server

 Charles

 --
 Oh, I've seen copies [of Linux Journal] around the terminal room at The
 Labs.
 (By Dennis Ritchie)



-- 
Subhan Michael Tindall | Software Developer
| s...@rentrakmail.com
RENTRAK | www.rentrak.com | NASDAQ: RENT



Re: [O] Org-mobile for Android and syncing

2013-03-14 Thread Charles Philip Chan
Subhan Tindall subhan.tind...@rentrakmail.com writes:

Hi Subhan:

 Org mobile is currently unavailable in the Android market, with no
 scheduled return time.

Are you sure? I can access it just fine:

https://play.google.com/store/apps/details?id=com.matburt.mobileorgfeature=search_result

https://play.google.com/store/apps/details?id=com.matburt.mobileorg.donatefeature=search_result

Charles

-- 
Microsoft is not the answer.
Microsoft is the question.
NO (or Linux) is the answer.
(Taken from a .signature from someone from the UK, source unknown)


pgpqx0wzYcUcA.pgp
Description: PGP signature


Re: [O] Exporter problem: cannot activate options

2013-03-14 Thread Nicolas Goaziou
Hello,

Rainer Stengele rainer.steng...@online.de writes:

 thanks for the notice.
 I really would need to be able to configure export options.

I just told you how to do it.

 I cannot include timestamps in a html export.
 Please give me a hint.

Could you elaborate?

Thank you.


Regards,

-- 
Nicolas Goaziou



Re: [O] Org-mobile for Android and syncing

2013-03-14 Thread Marcin Borkowski
Dnia 2013-03-14, o godz. 18:05:21
Charles Philip Chan cpc...@bell.net napisał(a):

 Marcin Borkowski mb...@wmi.amu.edu.pl writes:
 
 Hi Marcin:
 
  I'm about to buy an Android smartphone.  Of course, I want to use
  Org-mobile.  However, I don't use Dropbox (I use another, similar
  service, called SpiderOak).  Is it possible to synchronize using
  such a service?
 
 No currently Mobileorg does not support SpiderOak. Here is a list of
 supported methods:
 
   - Sync files from an SSH server

Does this mean that if I have an account on some server, and I can log
in there through SSH, I can set it up for MobileOrg?  (Sorry for a
possibly lame question, I don't know much about networking and such
things.)

And a follow-up question: I'd like to be able to clock things on my
phone.  I can't see clocking in the feature set of MobileOrg; are there
any other Android apps to clock tasks, and is it possible to import
their data into Org?  If not, well, didn't someone mention GSoC;)?

 Charles

Thanks a lot

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] Indentation of backend definitioon

2013-03-14 Thread Nicolas Goaziou
Hello,

Carsten Dominik carsten.domi...@gmail.com writes:

 I propose the following patch to improve the automatic
 indentation of the backend definition macros in ox.el.

 - Carsten

 diff --git a/lisp/ox.el b/lisp/ox.el
 index c5b6d7c..31983b2 100644
 --- a/lisp/ox.el
 +++ b/lisp/ox.el
 @@ -987,6 +987,7 @@ keywords are understood:
   ',export-block))
 ;; Splice in the body, if any.
 ,@body)))
 +(put 'org-export-define-backend 'lisp-indent-function 1)
  
  (defmacro org-export-define-derived-backend (child parent rest body)
Create a new back-end as a variant of an existing one.
 @@ -1078,6 +1079,7 @@ The back-end could then be called with, for example:
   ',export-block))
 ;; Splice in the body, if any.
 ,@body)))
 +(put 'org-export-define-derived-backend 'lisp-indent-function 2)
  
  (defun org-export-backend-parent (backend)
Return back-end from which BACKEND is derived, or nil.
 @@ -5201,6 +5203,7 @@ and
  (message Process '%s' exited abnormally p))
  (unless org-export-async-debug
(delete-file ,,temp-file)
 +(put 'org-export-async-start 'lisp-indent-function 1)
  
  (defun org-export-add-to-stack (source backend optional process)
Add a new result to export stack if not present already.

Isn't it the default behaviour (see `declare' in definitions)?


Regards,

-- 
Nicolas Goaziou



Re: [O] Org-mobile for Android and syncing

2013-03-14 Thread Charles Philip Chan
Marcin Borkowski mb...@wmi.amu.edu.pl writes:

Hi Marcin:

 Does this mean that if I have an account on some server, and I can log
 in there through SSH, I can set it up for MobileOrg?  (Sorry for a
 possibly lame question, I don't know much about networking and such
 things.)

Yes, just stage the files to the server. The initial setup wizard in
Mobileorg will guide you through the Android side of things.

 And a follow-up question: I'd like to be able to clock things on my
 phone.  I can't see clocking in the feature set of MobileOrg; are there
 any other Android apps to clock tasks, and is it possible to import
 their data into Org?  If not, well, didn't someone mention GSoC;)?

Clocking is supported.

Charles

-- 
I'd crawl over an acre of 'Visual This++' and 'Integrated Development
That' to get to gcc, Emacs, and gdb.  Thank you.
(By Vance Petree, Virginia Power)


pgpjkLpGn9mBP.pgp
Description: PGP signature


Re: [O] org-caldav will cease to work with Google Calendar

2013-03-14 Thread Julien Cubizolles
David Engster d...@randomsample.de writes:

 Google has announced today that they will shut down their CalDAV API in
 September, since hey, everybody's using their own protocol anyway.
 org-caldav will then cease to work with Google calendar. 

That's very disappointing, org-caldav was the best tool I found to have
an efficient interaction between my Phone and org. Mobile-org is great
but unless I'm mistaken it doesn't provide the traditional grid view of
a calendar like the widget one can get for a Google calendar.

Thanks David for org-caldav.

Julien.




Re: [O] org-caldav will cease to work with Google Calendar

2013-03-14 Thread Charles Philip Chan
Julien Cubizolles j.cubizol...@free.fr writes:

Hi Julian:

 That's very disappointing, org-caldav was the best tool I found to
 have an efficient interaction between my Phone and org. Mobile-org is
 great but unless I'm mistaken it doesn't provide the traditional grid
 view of a calendar like the widget one can get for a Google calendar.

Mobileorg can sync (bi-directionally) with the native calendar system of
your Android device which in turn sync with Google. You can use any of
the Android calender apps that support the native Google calendar system
to view/add/modify. For example I use aCalendar and the Executive
Assistant widget.

https://github.com/matburt/mobileorg-android/pull/325

Charles 

-- 
MSDOS didn't get as bad as it is overnight -- it took over ten years
of careful development.
(By dmegg...@aix1.uottawa.ca)


pgpjhhm4Cga50.pgp
Description: PGP signature


Re: [O] Extra space after listings in LaTeX export with minted

2013-03-14 Thread Aaron Ecay
Hi Richard,

You should be able to get rid of that indentation by arranging for the
text after the listing end to begin with \noindent{} (in LaTeX).  This
should be as simple, in org, as:

...
#+END_SRC

\noindent{}Lorem ipsum...

I am not sure there is a way to automate the \noindent: LaTeX indents
the beginning of paragraphs, and in org there is no way to have a
paragraph that contains a source listing.  (In latex there is: don’t
leave a blank line after the \end{minted}.  But I don’t think org has a
way to represent/output such a thing.  If I’m wrong about that I hope
Nicolas or someone else knowledgeable will chime in.)

I suppose it would be possible to write a filter to post-process the
LaTeX output, and delete single blank lines after an \end{foo}, and
indicate desired paragraph breaks with double blank lines.

-- 
Aaron Ecay