[O] Problem with point in state change hook function

2012-08-22 Thread zyg
My brain works in two non-standard org ways:
- I don't like having the =CLOSED= timestamp outside of property drawers, and
- no =todo= tag (or a =todo= tag of  if you like) is still a =todo= tag
  and often means =DONE=.

So standard state change logging doesn't work for me.  All I really
want to track, though, is the timestamp of the latest state change. Hence:

#+begin_src emacs-lisp
  (defun my/log-state-change ()
logs timestamps in PROPERTIES for any todo-tag state change (LAST).
  
(interactive)
(save-excursion
  (let* ((stamp (org-string-timestamp nil t t nil nil nil)))
(org-set-property LAST (concatenate 'string org-state   stamp)
#+end_src


#+begin_src emacs-lisp
  (add-hook 'org-after-todo-state-change-hook 'my/log-state-change)
#+end_src

This works fine except for the following conditions:
- the =todo= tag is changing to a non-nil value,
- there is not (yet) any heading,
- point is exactly at the start of the header (after stars and =todo=
  tag if any), and
- there is no properties drawer yet.

In this case, point moves from the header to after the properties drawer.

A few examples showing intention and bug (representing point by ^):

Example 1: works
- before shift-right
 #+begin_example
 * ^test
 #+end_example

- after shift-right
 #+begin_example
 * TODO ^test
:PROPERTIES:
:OPEN: [2012-08-22 Wed 15:51]
:LAST: TODO [2012-08-22 Wed 15:51]
:END:
 #+end_example

Example 2: buggy - point shifts
- before shift-right
 #+begin_example
 * ^
 #+end_example

- after shift-right
 #+begin_example
 * TODO
:PROPERTIES:
:LAST: TODO [2012-08-22 Wed 15:51]
:END:^
 #+end_example

Example 3: ok
- before shift-right
 #+begin_example
 ^*
 #+end_example

- after shift-right
 #+begin_example
 * TODO ^
:PROPERTIES:
:LAST: TODO [2012-08-22 Wed 15:51]
:END:
 #+end_example


Example 4: strangely, this works (standard TODO - DONE -  cycle)

- before shift-right
 #+begin_example
 * DONE ^
 #+end_example

- after shift-right
 #+begin_example
 * ^
:PROPERTIES:
:LAST: [2012-08-22 Wed 15:51]
:END:
 #+end_example


Any ideas? How can point change if you have a save-excursion in place?
My main thought was that the properties drawer is being inserted before
point but /only when/ there is no heading. I've spent some time
squinting at org-entry-put to check this, but debugging let alone
understanding org-with-point-at is way beyond me.



Re: [O] GNU Emacs ported to Android

2012-08-22 Thread 'Mash (Thomas Herbert)
On 2012-08-21 18:42+0100, Ian Barton wrote:
 On 21/08/12 16:22, Karl Voit wrote:

 I just stumbled upon
 https://play.google.com/store/apps/details?id=com.zielm.emacshl=en
 
 It is still in an early phase but still I am dreaming of having
 Org-mode on my XOOM tablet ... :-)
 
 HW/SW-keyboard is still an issue here IMHO. The Ctrl/ESC keys of my
 freedom pro HW-Bluetooth-keyboard does not seem to work on Android
 :-( I tried it for using mutt/slrn over ConnectBot/ssh ...
 
 Anybody else sharing experiences with Emacs or HW-keyboards on
 Android?
 
 Thanks for the heads up. Off to play. The android Hackers Keyboard
 has Ctrl, Alt, etc. I use it to run Emacs via a terminal. However, a
 hardware keyboard that worked would be great.

 Ian.


Tempted to get one of these at some point.
http://www.freedominput.com/freedom-accessories/freedom-pro-keyboard

'Mash



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

2012-08-22 Thread Bastien
Hi Ken,

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

 Can you tell what is the value of these variables?

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

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

Can you send a minimal .org file and a minimal .el configuration file
that let us reproduce the problem with emacs -Q ?

Otherwise it will be difficult to debug.  

Thanks in advance for your effort!

-- 
 Bastien



[O] Org-mode on Android (was: GNU Emacs ported to Android)

2012-08-22 Thread Karl Voit
* 'Mash (Thomas Herbert) mash...@toshine.net wrote:

 Tempted to get one of these at some point.
 http://www.freedominput.com/freedom-accessories/freedom-pro-keyboard

Got one of those. Esc, Ctrl, ... are not usable with Android up to
4.1.1  :-(

The thing is that I do think that MobileOrg is a great workaround,
but still a workaround. Native Emacs running on an Android device
would be cool to be able to use all features of Org-mode. This would
stop the lag behind development of any mobile app such as MobileOrg.

But there is a looong way to go before Org-mode on Android is a
viable solution IMHO.

-- 
Karl Voit




Re: [O] Best way to implement project specific captures

2012-08-22 Thread Sylvain Rousseau
Have a look at https://github.com/thisirs/org-context : Context agenda and
capture for Org-mode

It dynamically adds templates depending on the buffer you are currently
editing. New templates are available with the key c or merged if there is
no conflict with existing ones.

Hope this helps,


Sylvain.


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

2012-08-22 Thread Sébastien Delafond
On 2012-08-20, Bastien b...@altern.org wrote:
 If you use a separate Org distribution (as a package or cloned from 
 the git repository), don't forget to create autoloads.

 ~$ make autoloads

 then

 (require 'org-install)

 in your .emacs.el should do.

(require 'org-install) is part of the packaging of org-mode in
Debian, and is loaded via a site-start snippet (in this case it's
/etc/emacs/site-start.d/50org-mode.el), so the problem shouldn't come
from that I think.

Cheers,

--Seb




[O] e-beamer-patch

2012-08-22 Thread Philipp Kroos
Hi,

while trying the new e-beamer I ran into a type-error which occurs when 
org-e-beamer-outline-frame-options is left at its default value `nil'.

The attached patch is a possible solution that works for me, though a 
more general check in org-e-beamer--normalize-arguments may be more 
appropriate (in case I'm not just missing to set a certain option 
right).

Regards,
Philipp
From 9514f0b3b63659df676b72442283c8b43cfbcadb Mon Sep 17 00:00:00 2001
From: Philipp Kroos philipp.kr...@t-online.de
Date: Wed, 22 Aug 2012 14:25:20 +0200
Subject: [PATCH] e-beamer: Fix a type-error with normalize-argument

* org-e-beamer.el (org-e-beamer-template): Make sure
`org-e-beamer--normalize-argument' is not called with `nil'
when formatting the toc.

The error occured when org-e-beamer-outline-frame-options
has got no value (the default).
---
 contrib/lisp/org-e-beamer.el | 6 --
 1 Datei geändert, 4 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-)

diff --git a/contrib/lisp/org-e-beamer.el b/contrib/lisp/org-e-beamer.el
index af5b8ff..9096531 100644
--- a/contrib/lisp/org-e-beamer.el
+++ b/contrib/lisp/org-e-beamer.el
@@ -815,8 +815,10 @@ holding export options.
(when depth
 (concat
  (format \\begin{frame}%s{%s}\n
- (org-e-beamer--normalize-argument
-  org-e-beamer-outline-frame-options 'option)
+ (if org-e-beamer-outline-frame-options
+ (org-e-beamer--normalize-argument
+  org-e-beamer-outline-frame-options 'option)
+   )
  org-e-beamer-outline-frame-title)
  (when (wholenump depth)
(format \\setcounter{tocdepth}{%d}\n depth))
-- 
1.7.11.4



Re: [O] GNU Emacs ported to Android

2012-08-22 Thread Allen S. Rout

On 08/22/2012 04:17 AM, 'Mash (Thomas Herbert) wrote:

On 2012-08-21 18:42+0100, Ian Barton wrote:

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


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


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

Ian.



Tempted to get one of these at some point.
http://www.freedominput.com/freedom-accessories/freedom-pro-keyboard



I own it.  It doesn't work, at least 2.2.1 on my MyTouch 4G (and my G1, 
but...)


The problem is not with the hardware per se;  the keyboard driver in 
_android_ (not at the bluetooth layer) specifically omitted the key 
modifier concept, so ctrl, M-, alt just don't happen.


I've been hoping that the Android-as-USB-host stuff announced at the 
last IO would unscrew that problem, but haven't followed its progress much.


- Allen S. Rout







[O] remove all #+RESULTS blocks in a file?

2012-08-22 Thread Rainer M Krug

Hi

I want to remove all #+RESULTS blocks in a file / section. org-babel-remove-result works nicely for 
a single block, but when the cursor is in a heading (e.g. in Test), only the first block is removed.


Is this a bug or a feature?

If a feature, is there a way of removing *all* #+RESULTS bocks in a file?

Thanks,

Rainer


* Test
#+begin_src sh :output both
  echo Test
#+end_src

#+RESULTS:
: Test

#+begin_src sh :output both
  echo Test
#+end_src

#+RESULTS:
: Test



--
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 :   +33 - (0)9 58 10 27 44

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

email:  rai...@krugs.de

Skype:  RMkrug



[O] Please test current git HEAD with old Emacsen ( 23.4)

2012-08-22 Thread Bastien
Hi all,

for some reason, I cannot compile Emacs  23.4 on my machine.

If there are users of older Emacsen here, please pull from the
git repo and report any problem in compiling and running Org.

Thanks!

-- 
 Bastien




Re: [O] GNU Emacs ported to Android

2012-08-22 Thread Jason F. McBrayer

On 22.08.2012 08:53, Allen S. Rout wrote:


The problem is not with the hardware per se; the keyboard driver in
_android_ (not at the bluetooth layer) specifically omitted the key
modifier concept, so ctrl, M-, alt just don't happen.


Weird. Is that driver issue only relevant to hardware keyboards?
Because ctrl and alt both work fine in Hacker's Keyboard. Does which
soft keyboard you have active affect the behaviour of the hardware
keyboard?

http://source.android.com/tech/input/keyboard-devices.html mentions
Android key codes for left and right versions of control, alt, shift
and meta.

I admit to knowing very little about this, and would like to learn
more.

--
+---+
| Jason F. McBrayer jmcb...@carcosa.net |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors. --- The Dhammapada |



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

2012-08-22 Thread Ken Williams


 -Original Message-
 From: Bastien Guerry [mailto:bastiengue...@gmail.com]
 Sent: Tuesday, August 21, 2012 6:14 PM

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

The prior behavior I've been seeing is that there are 2 spaces added *every 
time the table.el table is edited*.  No matter what settings the user has, that 
seems like unhelpful behavior.

 -Ken


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


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

2012-08-22 Thread Bastien
Hi Ken,

In Emacs, I have the same behavior when editing a table.el table before
and after I apply your patch, with both org-src-preserve-indentation set
to nil or to t.

I must be missing something here.

Do you have an idea?

-- 
 Bastien



Re: [O] Best way to implement project specific captures

2012-08-22 Thread Bastien
Hi Sylvain,

Sylvain Rousseau this...@gmail.com writes:

 Have a look at https://github.com/thisirs/org-context : Context
 agenda and capture for Org-mode

I *love* it!  This would be a great addition to contrib/lisp/ -- 
doors are open, just ring the bell.

One possible enhancement: allow using only the capture/agenda 
template instead of the full template in `org-context-capture-alist'
and `org-context-agenda-alist'.

For example, it would be easy to read/write

(setq org-context-capture-alist
  '((*el  . (a b))
(*org . (c d

`a' and `b' being templates (triggered in *el files) already 
defined in `org-capture-templates'.

I guess this would speed up adoption of org-context...  but again, 
thanks for this!

-- 
 Bastien



Re: [O] Best way to implement project specific captures

2012-08-22 Thread Bastien
Bastien b...@altern.org writes:

 allow using only the capture/agenda 
 template instead of the full template

Of course, this should read:

... template letter instead of the full template definition.

-- 
 Bastien



Re: [O] e-beamer-patch

2012-08-22 Thread Nicolas Goaziou
Hello,

Philipp Kroos philipp.kr...@t-online.de writes:

 while trying the new e-beamer I ran into a type-error which occurs when 
 org-e-beamer-outline-frame-options is left at its default value `nil'.

 The attached patch is a possible solution that works for me, though a 
 more general check in org-e-beamer--normalize-arguments may be more 
 appropriate (in case I'm not just missing to set a certain option 
 right).

Since the type of `org-e-beamer-outline-frame-options' is a string, I've
changed its default value to the empty string. That should solve the
problem.

Thank you for reporting this.


Regards,

-- 
Nicolas Goaziou



Re: [O] remove all #+RESULTS blocks in a file?

2012-08-22 Thread Nick Dokos
Rainer M Krug r.m.k...@gmail.com wrote:

 Hi
 
 I want to remove all #+RESULTS blocks in a file / section. 
 org-babel-remove-result works nicely for 
 a single block, but when the cursor is in a heading (e.g. in Test), only the 
 first block is removed.
 
 Is this a bug or a feature?
 
 If a feature, is there a way of removing *all* #+RESULTS bocks in a file?
 
 Thanks,
 
 Rainer
 
 
 * Test
 #+begin_src sh :output both
echo Test
 #+end_src
 
 #+RESULTS:
 : Test
 
 #+begin_src sh :output both
echo Test
 #+end_src
 
 #+RESULTS:
 : Test
 
 

Although the following will do in a pinch, it is *not* the
best solution: it uses a string match to step from code block
to code block, instead of using org-element; but the idea is
the same, so the org-element solution is left as an exercise for
the interested reader :-)

Note that org-babel-remove-result presupposes that
point is in the corresponding source block: you can't blindly
use it from anywhere.

--8---cut here---start-8---
(defun rmk-org-remove-all-result-blocks ()
  (interactive)
  (save-excursion
(goto-char (point-min))
(while (search-forward #+begin_src  nil t)
  (org-babel-remove-result
--8---cut here---end---8---

Nick



[O] Subscription Confirmation

2012-08-22 Thread Esben Stien
I'm getting no subscription confirmation email when I subscribe to
emacs-orgmode. 

Anyone have any idea how to proceed?. 

-- 
Esben Stien is b0ef@e s  a 
 http://www. s tn m
  irc://irc.  b  -  i  .   e/%23contact
   sip:b0ef@   e e 
   jid:b0ef@n n



[O] Condition Case Before First Headline

2012-08-22 Thread Esben Stien

I've stumbled into serious trouble with my org file.

I C-c C-c over:

 #+BEGIN: clocktable :maxlevel 7 :block yesterday :scope tree1

, but I get: 

condition-case: Before first headline at position 2408 in buffer agenda.org

I cannot figure out what's wrong; there's nothing special at line 2408

Is there some way to debug this?

-- 
Esben Stien is b0ef@e s  a 
 http://www. s tn m
  irc://irc.  b  -  i  .   e/%23contact
   sip:b0ef@   e e 
   jid:b0ef@n n



Re: [O] Condition Case Before First Headline

2012-08-22 Thread Bastien
Esben Stien b...@esben-stien.name writes:

 I've stumbled into serious trouble with my org file.

What version of org are you using?

 I C-c C-c over:

  #+BEGIN: clocktable :maxlevel 7 :block yesterday :scope tree1

 , but I get: 

 condition-case: Before first headline at position 2408 in buffer agenda.org

 I cannot figure out what's wrong; there's nothing special at line 2408

 Is there some way to debug this?

Can you make a minimal example to help us reproduce this?

Thanks,

-- 
 Bastien



Re: [O] Condition Case Before First Headline

2012-08-22 Thread Juan Pechiar
I can reproduce this (latest git version) if the clocktable
declaration lies before the first heading.

Minimal example:


bla bla

#+BEGIN: clocktable :maxlevel 7 :block yesterday :scope tree1

#+END:

bla bla

* heading1
  :LOGBOOK:
  CLOCK: [2012-08-22 Wed 14:18]--[2012-08-22 Wed 14:18] =  0:00
  :END:

** heading2

* otherheading1


Position 2048 refers to the (character) position of the clocktable
declaration.

Debug trace:


  signal(error (Before first headline at position 83 in buffer pepe.org))

  error(Before first headline at position %d in buffer %s 83 #buffer 
pepe.org)

  (condition-case nil (outline-back-to-heading invisible-ok) (error (error 
Before first headline at position %d in buffer %s (point) (current-buffer
  org-back-to-heading(t)

  (let (start-level re) (org-back-to-heading t) (setq start-level (funcall 
outline-level)) (if (equal start-level 1) nil (setq re (concat ^\\*\\{1, 
(number-to-string (1- start-level)) \\} )) (if (re-search-backward re nil t) 
(funcall outline-level
  org-up-heading-safe()

  ...


On Wed, Aug 22, 2012 at 07:10:10PM +0200, Bastien wrote:
 Esben Stien b...@esben-stien.name writes:

  I've stumbled into serious trouble with my org file.

 What version of org are you using?

  I C-c C-c over:
 
   #+BEGIN: clocktable :maxlevel 7 :block yesterday :scope tree1
 
  , but I get:
 
  condition-case: Before first headline at position 2408 in buffer agenda.org
 
  I cannot figure out what's wrong; there's nothing special at line 2408
 
  Is there some way to debug this?

 Can you make a minimal example to help us reproduce this?

 Thanks,




[O] Including multiple plots resulting from a loop of R code in LaTeX

2012-08-22 Thread John Hendy
I'm conducting some neural network analysis, and the results are
highly dependent on the random seed set prior to creating the model. I
loop through seeds 1-500, storing the predicted values in one data
frame and a table of mean sum of squared errors in another table.

Then, I use ggplot to create only the 10 or so plots with the lowest
error. The loop is something like this:

--
for(i in 1:10) {

filename - paste(neuralnet-,-seed-,as.character(mse[i,1]),.pdf, sep=)

pdf(filename, width=12, height=8)

[ggplot code]

dev.off()
--

What I want to know is how to include the resultant files in LaTeX
export. Since my model runs and then sorts by error, I don't know
which seeds produce the best files beforehand, so I'd have to look at
the error table and manually insert the plot names by hand. Changing
results means changing file names by hand again.

Any suggestions for things like this where the output of a babel block
is not a single file?


Thanks,
John



Re: [O] Condition Case Before First Headline

2012-08-22 Thread Bastien
Juan Pechiar j...@pechiar.com writes:

 I can reproduce this (latest git version) if the clocktable
 declaration lies before the first heading.

If the clocktable is before the first heading, the :scope tree1 
parameter does not make sense anyway.

Esben, does that explain your problem?

-- 
 Bastien



Re: [O] Best way to implement project specific captures

2012-08-22 Thread Sylvain Rousseau
 One possible enhancement: allow using only the capture/agenda
 template instead of the full template in `org-context-capture-alist'
 and `org-context-agenda-alist'.

Good idea! Adding it to my todo list with org-context ;-)

If you think this addon deserves to be added to the contrib directory, feel
free to add it!


Sylvain.


[O] babel print

2012-08-22 Thread skip
I have an org file with several src blocks and tangle blocks.

How can I print the file without executing any of the src or tangle
blocks? I want to avoid disabling each block.

How can I generate the tangle files only without executing any other
src blocks in the file? I want to avoid going to each tangle block and
executing.



Re: [O] Please test current git HEAD with old Emacsen ( 23.4)

2012-08-22 Thread Achim Gratz
Bastien writes:
 If there are users of older Emacsen here, please pull from the
 git repo and report any problem in compiling and running Org.

Emacs 23.2 on openSuSE compiles and tests OK (except for the babel
sh-session test that I reported earlier, but that only seems to affect
batch mode).


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

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] Best way to implement project specific captures

2012-08-22 Thread Richard Riley
Sylvain Rousseau this...@gmail.com writes:

 Have a look at https://github.com/thisirs/org-context : Context agenda and 
 capture for Org-mode

 It dynamically adds templates depending on the buffer you are currently 
 editing. New templates are available with the key
 c or merged if there is no conflict with existing ones.

 Hope this helps,

 Sylvain.


Org and its users/contributors never cease to impress me!

Thanks!




Re: [O] Batch processing part of a file

2012-08-22 Thread Myles English

Nick Dokos writes:

 Loris Bennett loris.benn...@fu-berlin.de wrote:

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

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

 Nick

Or if you want to goto a heading first see this thread:

http://lists.gnu.org/archive/html/emacs-orgmode/2012-05/msg00421.html


Myles



Re: [O] Best way to implement project specific captures

2012-08-22 Thread Richard Riley
Sylvain Rousseau this...@gmail.com writes:

 Have a look at https://github.com/thisirs/org-context : Context agenda and 
 capture for Org-mode

 It dynamically adds templates depending on the buffer you are currently 
 editing. New templates are available with the key
 c or merged if there is no conflict with existing ones.

 Hope this helps,

 Sylvain.


Hi,

I'm not sure if the error (?!) is mine or on your side - possibly error
is the wrong word. See this img here

http://i.imgur.com/Tvdgx.png

When I hit C-c c I then hit c for my customised j template  its
recreating shamrock/barwebs.org (see status line) as opposed to using
the existing barwebs.com which I have referenced via  org-agenda-files
'(~/.orgfiles ~/webs/.orgfiles).

Can you advise further? (Looks great regardless btw!)




-- 
Sent using Emacs/Gnus from home ...




Re: [O] Best way to implement project specific captures

2012-08-22 Thread Richard Riley
Richard Riley rile...@gmail.com writes:

 Sylvain Rousseau this...@gmail.com writes:

 Have a look at https://github.com/thisirs/org-context : Context agenda and 
 capture for Org-mode

 It dynamically adds templates depending on the buffer you are currently 
 editing. New templates are available with the key
 c or merged if there is no conflict with existing ones.

 Hope this helps,

 Sylvain.


 Hi,

 I'm not sure if the error (?!) is mine or on your side - possibly error
 is the wrong word. See this img here

 http://i.imgur.com/Tvdgx.png

 When I hit C-c c I then hit c for my customised j template  its
 recreating shamrock/barwebs.org (see status line) as opposed to using
 the existing barwebs.com which I have referenced via  org-agenda-files
   ^^^ this should say barwebs.org of course, sorry for the 
confusion.  
 '(~/.orgfiles ~/webs/.orgfiles).

 Can you advise further? (Looks great regardless btw!)




Re: [O] babel print

2012-08-22 Thread Sean O'Halpin
On Wed, Aug 22, 2012 at 8:38 PM, skip scp0...@gmail.com wrote:
 I have an org file with several src blocks and tangle blocks.

 How can I print the file without executing any of the src or tangle
 blocks? I want to avoid disabling each block.

Use

  #+PROPERTY: eval never

at the head of the file and C-c on that line to refresh the local setup.
This disables execution for all blocks in the file. Alternatively, you can use

  #+PROPERTY: eval no-export

to disable it only for exporting.

See http://orgmode.org/org.html#eval for details.

 How can I generate the tangle files only without executing any other
 src blocks in the file? I want to avoid going to each tangle block and
 executing.

=M-x org-babel-tangle= should tangle all the blocks in the file.

See http://orgmode.org/org.html#Extracting-source-code

Regards,
Sean



[O] org-mime and linked files

2012-08-22 Thread Bart Bunting
Good morning,

I am trying to setup org-mime to send html email.

In the simple case it appears to work very well.
However I am struggling when I try and include a link to a file in the email.

When I hit send I get the following error:
mm-insert-file-contents: Opening input file: No such file or directory,
/var/folders/t6/_1lpjhbj45d10st5clmr5zzhgn/T/file:/tmp/netplan-yearly-graphs.png

The contents of the email is below.  Can anyone give me an idea as to
what might be going wrong here?

-

- Another graph

Lets link to it:

[[file:/tmp/netplan-yearly-graphs.png]]

and it should be there
-

Kind regards

Bart
-- 


Kind regards

Bart



Re: [O] GNU Emacs ported to Android

2012-08-22 Thread Torsten Wagner
Hi Bastien,

I guess many many people here are looking since a long time how to run
a full version of org-mode on a mobile device.
Thus, I believe the announcement itself was well placed.
If we can keep the discussion towards how org-mode on an android
version of emacs works out, I guess we are save for any police raids,
right? ;)
E.g. if this is getting a little bigger, it might be interesting to
discuss a mobile-minor mode in org-mode which maps certain features to
easier to enter keyboard shortcuts.
Maybe someone can even thing of a specific emacs org-mode
soft-keyboard which maps the most used functions to individual keys
directly (not sure if this is possible)

Torsten

On 22 August 2012 02:43, Bastien b...@altern.org wrote:
 Hi Karl,

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

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

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

 Thanks for your understanding!

 --
  Bastien




Re: [O] SageTeX in export

2012-08-22 Thread mailinglists
Nick Dokos nicholas.do...@hp.com writes:

 All you have to do is set the variable org-latex-to-pdf-process,
 something like this [fn:1]

 (setq org-latex-to-pdf-process 
   '(pdflatex %f
 if [ -f %b.sagetex.sage ] ;then sage %b.sagetex.sage ;fi
   pdflatex %f
   pdflatex %f))

Thanks. I was kinda hoping for a solution that uses Elisp rather than
offloading it to the shell, but whatever works. In fact, had no one
answered, I would have just written a shell script called pdflatex
that would do the same. 

I haven't tested it. Suddenly something is wrong with my SageTeX - it
was working when I posted this, but not anymore. 




Re: [O] GNU Emacs ported to Android

2012-08-22 Thread Carsten Dominik

On 23.8.2012, at 03:00, Torsten Wagner wrote:

 Hi Bastien,
 
 I guess many many people here are looking since a long time how to run
 a full version of org-mode on a mobile device.
 Thus, I believe the announcement itself was well placed.
 If we can keep the discussion towards how org-mode on an android
 version of emacs works out, I guess we are save for any police raids,
 right? ;)
 E.g. if this is getting a little bigger, it might be interesting to
 discuss a mobile-minor mode in org-mode which maps certain features to
 easier to enter keyboard shortcuts.
 Maybe someone can even thing of a specific emacs org-mode
 soft-keyboard which maps the most used functions to individual keys
 directly (not sure if this is possible)


I think speed keys http://orgmode.org/manual/Speed-keys.html#Speed-keys
will already go a long way to make Org-mode usable on an Emacs with
no or limited modifier support.  So your minor mode could largely be
an expansion of the speed key setup.

- Carsten

 
 Torsten
 
 On 22 August 2012 02:43, Bastien b...@altern.org wrote:
 Hi Karl,
 
 Karl Voit devn...@karl-voit.at writes:
 
 Anybody else sharing experiences with Emacs or HW-keyboards on
 Android?
 
 sorry to act like a police officer, but please keep those discussions
 where they belong to -- either some Android or Emacs list.  You will
 probably have more answers on help-gnu-em...@gnu.org
 
 Thanks for your understanding!
 
 --
 Bastien