Re: [O] Code Block Headers Appear in Export

2012-10-01 Thread Alan Lue
Following up.

Does anyone else see this behavior? Headers always appear in the export
whenever my document includes a code block with a separate `#+HEADERS:'
line.


Alan Lue  writes:

> I find that code block header arguments specified with `#+HEADERS:'
> consistently appear in the exported document. For example, exporting the
> following document to PDF or HTML will include the "exports" header in
> the output:
>
> * Manifestation of Problem
>
>   Look, our headers appear in the export:
>   #+headers: :exports both
>   #+BEGIN_SRC R :results output
> sd(rnorm(50))
>   #+END_SRC
>
> How does one suppress the export of header arguments? For reference, I'm
> using Org-mode version 7.9.1.



Re: [O] Code Block Headers Appear in Export

2012-10-01 Thread Sebastien Vauban
Alan,

Alan Lue wrote:
> I find that code block header arguments specified with `#+HEADERS:'
> consistently appear in the exported document. For example, exporting the
> following document to PDF or HTML will include the "exports" header in
> the output:
>
> * Manifestation of Problem
>
>   Look, our headers appear in the export:
>   #+headers: :exports both
>   #+BEGIN_SRC R :results output
> sd(rnorm(50))
>   #+END_SRC
>
> How does one suppress the export of header arguments? For reference, I'm
> using Org-mode version 7.9.1.

Confirmed: this is what I see in my browser...

--8<---cut here---start->8---
1 Manifestation of Problem

Look, our headers appear in the export: #+headers: :exports both

sd(rnorm(50))

[1] 1.048935
--8<---cut here---end--->8---

Org-mode version 7.9.1 (release_7.9.1-415-g327a4b @ 
d:/home/sva/src/org-mode/lisp/)

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Code Block Headers Appear in Export

2012-10-01 Thread Sebastien Vauban
Alan Lue,

Alan Lue wrote:
> I find that code block header arguments specified with `#+HEADERS:'
> consistently appear in the exported document. For example, exporting the
> following document to PDF or HTML will include the "exports" header in
> the output:
>
> * Manifestation of Problem
>
>   Look, our headers appear in the export:
>   #+headers: :exports both
>   #+BEGIN_SRC R :results output
> sd(rnorm(50))
>   #+END_SRC

However, that does _not_ happen if you put your text/code in column 0:

--8<---cut here---start->8---
* Manifestation of Problem

Look, our headers appear in the export:

#+headers: :exports both
#+begin_src R :results output
  sd(rnorm(50))
#+end_src
--8<---cut here---end--->8---

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Bug: tangling inserts blank line at top of file [7.9.1 (release_7.9.1-401-g2bd95b @ mypath)]

2012-10-01 Thread Sebastien Vauban
Hi Myles,

"Myles English" wrote:
> Using git master 2bd95b6b of Fri Sep 28 10:05:20 2012, if I tangle this
> with org-babel-tangle:
>
> #+BEGIN_SRC sh :tangle file.sh
> a
> #+END_SRC
>
> then file.sh would contain a blank line at the top, which I would not
> have expected to be there.

Add ":padline no" to get rid of the first blank line preceding tangled output.

Best regards,
  Seb

-- 
Sebastien Vauban




[O] org-agenda-timerange-leaders

2012-10-01 Thread George McNinch
I'm no longer seeing

   org-agenda-timerange-leaders

with org-version 7.9.2 (org-20121001 from elpa).  I don't know for how
long this has not been working (I just noticed it this morning).

If the following agenda item appears in the file "agenda.org":

--
* foo
  <2012-10-01 Mon>--<2012-10-03 Wed>
--

then the agenda produces

--
Week-agenda (W40):
Monday  1 October 2012 W40
  agenda: foo
Tuesday 2 October 2012
  agenda: foo
Wednesday   3 October 2012
  agenda: foo

--

where formerly it would have produced something like

--
Week-agenda (W40):
Monday  1 October 2012 W40
  agenda: (1/3): foo
Tuesday 2 October 2012
  agenda: (2/3): foo
Wednesday   3 October 2012
  agenda: (3/3): foo
--


-- 
  ,---
  | George McNinch 
  | http://gmcninch.math.tufts.edu
  `---




Re: [O] org-agenda-timerange-leaders

2012-10-01 Thread Bastien
Hi George,

George McNinch  writes:

> I'm no longer seeing
>
>org-agenda-timerange-leaders
>
> with org-version 7.9.2 (org-20121001 from elpa).  I don't know for how
> long this has not been working (I just noticed it this morning).

Thanks for reporting this!  I've pushed a fix in maint.

-- 
 Bastien



[O] Bug#685154 closed by Sebastien Delafond (Bug#685154: fixed in org-mode 7.9.1-1)

2012-10-01 Thread Debian Bug Tracking System
This is an automatic notification regarding your Bug report
which was filed against the org-mode package:

#685154: Bug: org-export-with-priority: t broken  [7.8.11]

It has been closed by Sebastien Delafond .

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Sebastien Delafond 
 by
replying to this email.


-- 
685154: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685154
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: org-mode
Source-Version: 7.9.1-1

We believe that the bug you reported is fixed in the latest version of
org-mode, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 685...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sebastien Delafond  (supplier of updated org-mode package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Format: 1.8
Date: Thu, 13 Sep 2012 14:53:00 +0200
Source: org-mode
Binary: org-mode
Architecture: source all
Version: 7.9.1-1
Distribution: unstable
Urgency: low
Maintainer: Sebastien Delafond 
Changed-By: Sebastien Delafond 
Description: 
 org-mode   - keep notes, maintain ToDo lists, and do project planning in emacs
Closes: 668496 685154 688673
Changes: 
 org-mode (7.9.1-1) unstable; urgency=low
 .
   * New upstream release (Closes: #685154, #668496, #688673)
   * Updated watch file again
Checksums-Sha1: 
 3229b9f322a3797129e41f1b7e6f2c3ee6b79809 1102 org-mode_7.9.1-1.dsc
 de3713444da768863bb8d4ef25bfcb385a09055f 4150448 org-mode_7.9.1.orig.tar.gz
 fc7dd09f30efcf89de105f559907656cde5365bc 7609 org-mode_7.9.1-1.debian.tar.gz
 12091dde4003f18f7d7b0ee37cc7398dc08d0dc4 3673952 org-mode_7.9.1-1_all.deb
Checksums-Sha256: 
 5afed374d0d42d25ee00292c614d286ceb6848ffd4399e0c4b6af183d5cdfd85 1102 
org-mode_7.9.1-1.dsc
 c4aef5046c9ae308120ca3f5a1f46ed5c5410ca77b6edf5276cfe0ea8e97a461 4150448 
org-mode_7.9.1.orig.tar.gz
 04ce3c1711c847ef6d53d1e3c91c25bfe52fe826ffed8c18a2b831fb4c4a2ff7 7609 
org-mode_7.9.1-1.debian.tar.gz
 1d36fda8f0f6f34032d7fc0497dded25af9416754932aa34e654214a5cc663af 3673952 
org-mode_7.9.1-1_all.deb
Files: 
 aefe754ae0c6532c09af3f524f683d7f 1102 misc optional org-mode_7.9.1-1.dsc
 beb4bca4cc88a59570950cf0b61e364c 4150448 misc optional 
org-mode_7.9.1.orig.tar.gz
 fb03e8e56ffa9aa1eb23819f471889dc 7609 misc optional 
org-mode_7.9.1-1.debian.tar.gz
 cc8f63b32e4db55734c2f584f36eec5a 3673952 misc optional org-mode_7.9.1-1_all.deb

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAlBpp4AACgkQiZgNKcDdyD+AegCgnK/4eS8VcsOJcJMCItJ93SjQ
/BQAoMXT2eVF8Q/AmlKnTAiaGxFmWHlR
=6Qla
-END PGP SIGNATURE End Message ---
--- Begin Message ---
Package: org-mode
Version: 7.8.11-2
Severity: minor


The following minimal org-file:

,[ foo.org ]
  *** Header
  *

`

With nothing changed from the site-configuration except for
org-export-with-priority: t, resuts in:

,[ *Messages* ]
  org-export-cleanup-toc-line: Wrong type argument: stringp, nil
`

Changing the second line to

,
  * Bla
`

fixes the problem, but I have lots of org files with spurious stars
(because of the way I use org-remember).

(setq org-export-with-priority nil) also helps.

Sebastian: Maybe it would be useful if org-submit-bug-report from the
debian package could add the debian specific information and
automatically forward the bug to b...@debian.org?

Emacs  : GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2012-04-07 on trouble, modified by Debian
Package: Org-mode version 7.8.11

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (50, 
'oneiric'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4.0-8.dmz.1-liquorix-amd64 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to de_DE.utf8)
Shell: /bin/sh linked to /bin/bash

Versions of packages org-mode depends on:
ii  dpkg 1.16.4.3
ii  emacs23-lucid [emacs23]  23.4+1-3
ic  emacs23-nox [emacs23]23.2+1-5.1
ii  install-info 4.13a.dfsg.1-10

org-mode recommends no packages.

Versions of packages org-mode suggests:
ii  ditaa0.9+ds1-3
pn  easypg   
pn  remember-el  

-- no debconf information
--- End Message ---


Re: [O] Remembrance Agent and Orgmode

2012-10-01 Thread Benjamin Slade
Dear Eric,

Many thanks for this; it was very useful: I've got the Remembrance Agent
up and running now.


Eric Fraga  writes:

> Hi,
>
> sorry I am coming late to this thread.  I use the Remembrance Agent.  It
> works great for me, trawling both emails and all my text (org, latex,
> etc.) documents automatically for similarities in text while I
> write.  It's ideal for academic writing (papers, proposals).
>
> The agent is not intrusive at all, assuming you have a large enough
> display and works particularly well if you use a display in portrait
> orientation, as I do for writing.
>
> There are two elements to setting this up: the emacs side and the
> remembrance agent itself.  For emacs, my settings are straightforward:
>
> #+begin_src emacs-lisp
> (setq hilit-background-mode 'dark) ; if you have a dark background, obviously 
> ;-)
> (require 'remem)
> (setq remem-database-dir "/home/ucecesf/s/share/remembrance-agent"
>   remem-load-original-suggestion t
>   remem-prog-dir "/usr/bin"
>   remem-scopes-list '(("documents" 4 5 500)
>   ("mail" 4 10 500)
>   ))
> #+end_src
>
> For the agent itself, I use cron to update the databases every night
> with an entry that looks like this:
>
> ,
> | 12 4 * * * sh /home/ucecesf/s/bin/ra-buildindices.sh
> `
>
> The contents of that shell script are:
>
> #+begin_src sh
> #!/bin/sh -f
> B="/home/ucecesf/s/share/remembrance-agent"
> ra-index ${B}/mail ${HOME}/s/News/agent/nnimap/ucl > /dev/null
> ra-index ${B}/documents ${HOME}/s/notes ${HOME}/s/grants ${HOME}/s/talks 
> ${HOME}/s/papers ${HOME}/s/projects > /dev/null
> #+end_src
>
> In all of the above, you will need to change all the appropriate paths
> for the location of the databases and the places to search.  The two
> index commands trawl my emails and my relevant documents respectively.
>
> I hope this helps.


-- 
~
Dr Benjamin Slade 
  Dept. of Linguistics & TESOL 
University of Texas at Arlington
  132E Hammond Hall | Office Hours: tba
~
{sent by mu4e on Emacs running under GNU/Linux}



[O] iOS MobileOrg transition updates

2012-10-01 Thread Kyle Sexton
All,

I've been working with Richard Moreland on the transition to being the
new maintainer of MobileOrg on iOS.

* Things that have happened during transition

** Mailing list
A new mailing list for application discussion has been created which
you can register for at
http://www.org-mobile.org/mailman/listinfo/org-mobile.

** Website
A new domain, http://www.org-mobile.org has been created to house the
mailing list and public website of the project.

** App Store
A new version of the application has been published on iTunes connect
and is awaiting Apple's review before being added to the Apple
store.

Because of encryption export laws, the feature to do encryption
on org files has been *removed* until I can get the application
registered with the government, don't update if you utilize this
feature.  There is also a warning about this removal in the
description of the application.

** Github
The official github repository has been moved to
https://github.com/ksexton/mobileorg.

** Wiki
Atlassian has granted an open-source license for the use of their
Confluence wiki software.  See below for questions on what the
community would like for application documentation.

* Road-map
Some things that are on the road-map that I would like input from the
community on.  It's probably best to continue discussion on the
org-mobile list to prevent spamming people not interested.

** Documentation for MobileOrg
Confluence is an easy to use wiki system that we have been granted an
open-source license for, but users may prefer something based on Worg
for maintaining information.  Any preference which direction I should
build the website?

** Future development
What are everyone's thoughts on the current status of MobileOrg
development?  The Dropbox API currently in use is set to be
deprecated, which means that portion will have to be rewritten.  Does
anyone have experience with development kits like Titanium
Appcelerator or PhoneGap?  Would moving to something like one
of those projects help new developers get involved in the project or
hinder?

** Sync methods
For awhile now I've toyed with the idea of being able to use IMAP as a
storage backend for notes instead of mail as it is traditionally used.
That could get us the benefit of easy self hosting, as well as
push/pull from a well documented standard.  Each org note could be a
separate IMAP folder, and changes could just be new emails.

** Features
What features would everyone like to see added to the MobileOrg
application?

Some of the things I would like to see are:

- UI updates to streamline information viewing and capture
- Ability to capture photos and transfer them in the sync process
- Siri integration (may not be possible or kludgy)
- Calendar integration

Thanks for taking the time to read.  I appreciate this community and
the awesomeness that is org-mode. :)

--
Kyle Sexton



[O] Clocktable: Put summary line as table caption

2012-10-01 Thread Sebastien Vauban
Hello,

Looking at the presentation of the clocktable, I find that its "summary" line
should be converted into a caption, as any legend would be for any regular
table.

You can test it, and see its effect, with such a ECM file:

--8<---cut here---start->8---
* Development
  :LOGBOOK:
  CLOCK: [2012-09-28 Fri 10:00]--[2012-09-28 Fri 11:00] =>  1:00
  :END:

** Task 1
   :LOGBOOK:
   CLOCK: [2012-09-28 Fri 11:00]--[2012-09-28 Fri 12:00] =>  1:00
   :END:

** Task 2

*** Task 2a
:LOGBOOK:
CLOCK: [2012-09-28 Fri 12:00]--[2012-09-28 Fri 13:00] =>  1:00
:END:

*** Task 2b
:LOGBOOK:
CLOCK: [2012-09-28 Fri 13:00]--[2012-09-28 Fri 14:00] =>  1:00
:END:

* Clock tables

#+BEGIN: clocktable :maxlevel 1 :scope file
#+CAPTION: Clock summary at [2012-10-01 Mon 23:18]

| Headline| Time |
|-+--|
| Total time  | 4:00 |
|-+--|
| Development | 4:00 |
#+END:
--8<---cut here---end--->8---

The following patch does it...

>From db65cf37d8d28f492e2a36b2fe69307786eff5ce Mon Sep 17 00:00:00 2001
From: Sebastien Vauban 
Date: Mon, 1 Oct 2012 17:03:30 +0200
Subject: [PATCH 2/2] Put the clocktable summary line as a CAPTION

* org-clock.el (org-clocktable-write-default): Insert the summary as a
  standard #+CAPTION keyword for the (clock) table.

TINYCHANGE
---
 lisp/org-clock.el |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index c743605..54c812e 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -2339,6 +2339,7 @@ from the dynamic block definition."
  (or header
 ;; Format the standard header
 (concat
+ "#+CAPTION: "
  (nth 9 lwords) " ["
  (substring
   (format-time-string (cdr org-time-stamp-formats))
--
1.7.9

--
Sebastien Vauban




[O] Add number of items in the lists

2012-10-01 Thread Sebastien Vauban
Hello,

Here a first patch to do the above announced thing. Surely, this should be
extended to more types of lists, but I first wait for comments...

>From 49e516a175e658469088181bb0c364136198360e Mon Sep 17 00:00:00 2001
From: Sebastien Vauban 
Date: Mon, 1 Oct 2012 23:43:43 +0200
Subject: [PATCH 3/3] Add number of items in the TODO lists

* org-agenda.el (org-todo-list): Add the number of items in the lists.

TINYCHANGE
---
 lisp/org-agenda.el |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 99bbe6a..992d7f1 100755
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -4423,6 +4423,8 @@ for a keyword.  A numeric prefix directly selects the Nth 
keyword in
   (when rtnall
(insert (org-agenda-finalize-entries rtnall) "\n"))
   (goto-char (point-min))
+  (end-of-line)
+  (insert (format " (%s)" (length rtnall)))
   (or org-agenda-multi (org-agenda-fit-window-to-buffer))
   (add-text-properties (point-min) (point-max)
   `(org-agenda-type todo
--
1.7.9

Best regards,
  Seb

-- 
Sebastien Vauban




[O] org-babel's treatment of NA in R source block

2012-10-01 Thread Vikas Rawal
If the result of an R source block contains a data frame with NA, the
NAs are replaced by "nil" when I evaluate the source block. When I
export the file, these appear as nil in the resulting pdf/latex file. 

I would like the NAs to be replaced by blank cells or by a less
obstrusive character like a ".". Is there a simple way I could change
this behaviour?

Vikas



Re: [O] org-babel's treatment of NA in R source block

2012-10-01 Thread Thomas S. Dye
Vikas Rawal  writes:

> If the result of an R source block contains a data frame with NA, the
> NAs are replaced by "nil" when I evaluate the source block. When I
> export the file, these appear as nil in the resulting pdf/latex file. 
>
> I would like the NAs to be replaced by blank cells or by a less
> obstrusive character like a ".". Is there a simple way I could change
> this behaviour?
>
> Vikas
>
>
Aloha Vikas,

One route might be the ascii package in R, which exports objects to
several markup languages, including Org. The ascii() argument na.print
is a character string that specifies how NA should appear in the output.

All the best,
Tom

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



Re: [O] capture encrypted for some reason

2012-10-01 Thread Eric S Fraga
Samuel Wales  writes:

> I can't reproduce this now, but recently I have had issues with
> capture encrypting upon finalizing.  The entry was not encrypted to
> begin with.
>
> It only occurred with a certain template.
>
> Is this a known bug?

This started happening to me late last week as well.  I moved all
encrypted entries from the file that was the target of the capture into
a separate file and things are okay now.  This hasn't solved the
problem, of course, simply avoided it...  but I didn't have time to
track this down.






Re: [O] iOS MobileOrg transition updates

2012-10-01 Thread Greg Troxel

Kyle Sexton  writes:

> ** App Store
> A new version of the application has been published on iTunes connect
> and is awaiting Apple's review before being added to the Apple
> store.
>
> Because of encryption export laws, the feature to do encryption
> on org files has been *removed* until I can get the application
> registered with the government, don't update if you utilize this
> feature.  There is also a warning about this removal in the
> description of the application.

Thanks for being careful about warning people.   Presumably the result
would be unreadable files on the phone, not a loss of confidentiality,

> ** Documentation for MobileOrg
> Confluence is an easy to use wiki system that we have been granted an
> open-source license for, but users may prefer something based on Worg
> for maintaining information.  Any preference which direction I should
> build the website?

Note that I am not likely to do anything useful either way.

In general, I oppose using proprietary tools to maintain open-source
projects.  So I would avoid Confluence, if i followed your description.



I'd like to see 2-way calendar sync from org to caldav, but that's not
really about org-mobile.


pgpfiGmhcpKrw.pgp
Description: PGP signature


Re: [O] Conditional capture template headline based on tag?

2012-10-01 Thread John Hendy
On Fri, Sep 14, 2012 at 1:01 AM, Bastien  wrote:
> Hi John,
>
> John Hendy  writes:
>
>> Just wondering if a capture template could be setup to file into the
>> "Tasks" headline (sub-headline) of the matching top level headline
>> with that tag or something similar?
>
> You could use a function in the capture template for this.

As in the expansion elements or defining a custom function for the
=target= element?

Thanks for the suggestion,
John

>
> See the info node "Template elements".
>
> --
>  Bastien



Re: [O] [ANN] Editable HTML export of Org-mode files

2012-10-01 Thread Eric S Fraga
Eric Schulte  writes:

> Hi,
>
> I've recently put together a web server which runs in Emacs and exports
> local Org-mode files to HTML in such a way that they may be edited from
> within a web browser with the edits saved to local files on disk.  The
> code is available from github.

Eric,

I have been playing with this.  I really like it!

What I have been testing is how well it interacts with other CSS style
files.  Some work better than others but, most importantly, they all
require adding the following:

: #+STYLE:  .raw-org { display: none;} 

to the individual org files so that the content displayed is only the
html generated by the export.  There may be a better/easier way to
handle this, of course.

More playing to be done... but I can see this being quite useful!  It
works really nicely with firefox in combination with a browser plugin
which allows me to edit the text in the boxes using emacsclient (with
org mode enabled!).

thanks (and to Nic as well for elnode),
eric
-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.2.50.1 and Org release_7.9.2-360-g2a95a4