[Orgmode] Re: Bulk refile is not working as expected

2010-07-06 Thread Noorul Islam K M
David Maus dm...@ictsoc.de writes:

 Noorul Islam K M wrote:

I have couple of tasks in one of my org files which I want to re-file to
some other org file.

Both these files are in my agenda list. This is what I did.

1. Go to agenda-view
2. Navigate to both the tasks and use 'm' to mark them.
3. 'B r' to bulk refile tasks
4. The marked tasks disappears from Agenda View.

But actually these tasks are not moved. One thing that I noticed is that
the following message is getting displayed.

org-agenda-refile: Marker does not point anywhere

(org-version)
release_6.36-109-g4f11
Org-mode version 6.36trans (release_6.36.109.g4f11)

Am I doing something different here or is it a bug?

 I've reported a similar problem[1]; what did you set the variable
 `org-refile-use-outline-path' set to?


It's value is set as file 

Thanks and Regards
Noorul

 [1] 
 http://news.gmane.org/find-root.php?message_id=8739vzpqx1.wl%25dmaus%40ictsoc.de


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Don't create marker if target is entire file.

2010-07-06 Thread Noorul Islam K M
David Maus dm...@ictsoc.de writes:

 * org-agenda.el (org-agenda-bulk-action): Don't create marker for
 position if target is entire file.

 If the target of a bulk refile operation is the entire file,
 `org-refile-get-location' returns nil for the refile position.
 Creating a marker for the target file's buffer at position nil returns
 a marker that points nowhere (Cf. GNU Emacs Lisp Reference Manual,
 31.6).  `org-refile' adds headings to level 1 if the target position
 for the target file is nil -- and hence a marker that points nowhere
 is not nil, tries to jump to nowhere.


Does this patch fix bulk refile issue that you faced?

Thank you!

Noorul

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Don't create marker if target is entire file.

2010-07-06 Thread David Maus
Noorul Islam K M wrote:
David Maus dm...@ictsoc.de writes:

 * org-agenda.el (org-agenda-bulk-action): Don't create marker for
 position if target is entire file.

 If the target of a bulk refile operation is the entire file,
 `org-refile-get-location' returns nil for the refile position.
 Creating a marker for the target file's buffer at position nil returns
 a marker that points nowhere (Cf. GNU Emacs Lisp Reference Manual,
 31.6).  `org-refile' adds headings to level 1 if the target position
 for the target file is nil -- and hence a marker that points nowhere
 is not nil, tries to jump to nowhere.


Does this patch fix bulk refile issue that you faced?

It does; and as soon as the patch is reviewed it might get accepted.

Best,
  -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpXJVzoWwi6Q.pgp
Description: PGP signature
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Bug: Items with repeating timestamps don't appear in the agenda [6.36trans (release_6.36.509.g9e9b)]

2010-07-06 Thread Tassilo Horn
On Monday 05 July 2010 23:12:46 Bernt Hansen wrote:

Hi Bernt,

  I did some debugging.
 
 Thanks.  Sorry I've been tied up with work today.

No problem.  I had some time (and fun) with the debugging.  That was the
first time I dug into the depth of org's internals. ;-)

 Oh!  It's not that the future dates are missing it's the entry for
 _today_ that is missing.

Ups, I should have been a bit more clear on that.  :-)

Anyway, since Carsten reverted that commit, the agenda works again.

Bye,
Tassilo

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] diary-float and TODO entries

2010-07-06 Thread Carsten Dominik


On Jul 5, 2010, at 11:11 PM, Greg Troxel wrote:



I have successfully used repeating times on TODO entries, and seen the
scheduled time move forward when I do C-c C-t d (d is my DONE  
shortcut).
I have a meeting on the 2nd monday of each month and am responsible  
for

inviting people ahead of time, and I've picked the first monday for
that.  I think I have to use a diary-mode expression, and the  
SCHEDULED:

time and event time below work ok.  But when I set the todo to DONE it
goes to DONE, instead of auto-changing back to TODO for the next  
month.


Is there some reasonable way to do what I want?


Unfortunately not.

- Carsten




** FOO
*** TODO Announce meeting
   SCHEDULED: %%(diary-float t 1 1)
*** FOO meeting
%%(diary-float t 1 2)
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [Update Config] Babel changes -- security updates and final integration push

2010-07-06 Thread Carsten Dominik

Hi Eric,

On Jul 6, 2010, at 3:09 AM, Eric Schulte wrote:


Hi Tom,

Thanks for finding this error, the problem is that org-table is not
being required before the source-code block is run.  As a temporary  
fix

you can put

 (require 'org-table)

somewhere in your configuration.

As a long term solution I would want to talk to Carsten about how best
to ensure that org-table is required when org-babel has been  
required as

I believe it may require some change in the org require tree.

Carsten, do you have any suggestion?  I've tried a couple of  
approaches

but most result in a recursive require error.


You are using only a few entry points from org-table, and I have
just added these to the autoloads.  This fixes the current issue.

The require tree of Org could be better, but this is too complex
an issue for the moment.

- Carsten



Thanks -- Eric

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


Hi Eric,

Thanks for all your work integrating Babel into Org-mode.

I've pulled the latest Org-mode and changed my initialization
according to your message.  I also pulled the latest starter-kit,  
so I

think I have all the latest code.

When I try to evaluate this code block I get an error that orgtbl-to-
orgtbl is void.

#+begin_src emacs-lisp
 (list 1 (+ 2 3))
#+end_src

Here is a backtrace:

Debugger entered--Lisp error: (void-function orgtbl-to-orgtbl)
 (orgtbl-to-orgtbl (if (or ... ...) result (list result)) (quote
(:fmt ...)))
 (concat (orgtbl-to-orgtbl (if ... result ...) (quote ...)) \n)
 (insert (concat (orgtbl-to-orgtbl ... ...) \n))
 (cond ((not ...) (insert ...) (goto-char beg) (when ... ...))
((member file result-params) (insert result)) ((member html
result-
params) (insert ...)) ((member latex result-params) (insert ...))
((member code result-params) (insert ...)) ((or ... ...) (save-
excursion ...) (if ... ...)) (t (org-babel-examplize-region
... ... results-switches)))
 (let ((existing-result ...) (results-switches ...) beg end) (when
existing-result (goto-char existing-result) (save-excursion ... ...)
(forward-line 1) (setq beg ...) (cond ... ... ...)) (setq results-
switches (if results-switches ... )) (cond (... ... ... ...)
(... ...) (... ...) (... ...) (... ...) (... ... ...) (t ...)) (setq
end (if ... ... ...)) (when (and indent ... ...) (indent-rigidly beg
end indent)))
 (save-excursion (let (... ... beg end) (when existing-
result ... ... ... ... ...) (setq results-switches ...) (cond
... ... ... ... ... ... ...) (setq end ...) (when ... ...)))
 (if (and result-params (member silent result-params)) (progn
(message ...) result) (when (and ... ...) (setq result ...)) (save-
excursion (let ... ... ... ... ... ...)) (message finished))
 (if (= (length result) 0) (if (member value result-params)
(message No result returned by source block) (message Source block
produced no output)) (if (and result-params ...) (progn ... result)
(when ... ...) (save-excursion ...) (message finished)))
 org-babel-insert-result((1 5) (replace) (emacs-lisp (list 1 (+
2 3))\n ((:cache . no) (:colnames . no) (:comments . )
(:exports . code) (:hlines . yes) (:noweb . yes) (:results .
replace) (:session . none) (:shebang . ) (:tangle . ))  nil
nil 0) nil 0 emacs-lisp)
 (if (and (not arg) new-hash (equal new-hash old-hash)) (save-
excursion (goto-char ...) (end-of-line 1) (forward-char 1) (setq
result ...) (message ...) result) (setq result (funcall cmd body
params)) (if (eq result-type ...) (setq result ...))
(org-babel-insert-
result result result-params info new-hash indent lang) (run-hooks
(quote org-babel-after-execute-hook)) result)
 (progn (fset (quote call-process-region) (function* ...)) (unless
(fboundp cmd) (error No org-babel-execute function for %s! lang))
(if (and ... new-hash ...) (save-excursion ... ... ... ... ...  
result)
(setq result ...) (if ... ...) (org-babel-insert-result result  
result-

params info new-hash indent lang) (run-hooks ...) result))
 (unwind-protect (progn (fset ... ...) (unless ... ...)  
(if ... ... ... ... ... ... result)) (if --cl-letf-bound--  
(fset ... --

cl-letf-save--) (fmakunbound ...)))
 (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind-
protect (progn ... ... ...) (if --cl-letf-bound-- ... ...)))
 (letf ((... ...)) (unless (fboundp cmd) (error No org-babel-
execute function for %s! lang)) (if (and ... new-hash ...) (save-
excursion ... ... ... ... ... result) (setq result ...) (if ... ...)
(org-babel-insert-result result result-params info new-hash indent
lang) (run-hooks ...) result))
 (letf* ((... ...)) (unless (fboundp cmd) (error No org-babel-
execute function for %s! lang)) (if (and ... new-hash ...) (save-
excursion ... ... ... ... ... result) (setq result ...) (if ... ...)
(org-babel-insert-result result result-params info new-hash indent
lang) (run-hooks ...) result))
 (flet ((call-process-region ... ...)) (unless (fboundp cmd) (error
No org-babel-execute function for %s! lang)) (if (and ... new-
hash ...) (save-excursion ... ... ... ... ... 

Re: [Orgmode] [PATCH] Don't create marker if target is entire file.

2010-07-06 Thread Carsten Dominik

Applied, thanks.

I am really enjoying how things get resolved now
without me interacting, and all I need to do is to apply
a patch.

Thanks to all who contributed in this thread and in others!

- Carsten

On Jul 5, 2010, at 9:28 PM, David Maus wrote:


* org-agenda.el (org-agenda-bulk-action): Don't create marker for
position if target is entire file.

If the target of a bulk refile operation is the entire file,
`org-refile-get-location' returns nil for the refile position.
Creating a marker for the target file's buffer at position nil returns
a marker that points nowhere (Cf. GNU Emacs Lisp Reference Manual,
31.6).  `org-refile' adds headings to level 1 if the target position
for the target file is nil -- and hence a marker that points nowhere
is not nil, tries to jump to nowhere.
---
lisp/org-agenda.el |   11 ++-
1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 4345f06..1fe4639 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7489,11 +7489,12 @@ The prefix arg is passed through to the  
command if possible.

   Refile to: 
   (marker-buffer (car org-agenda-bulk-marked-entries))
   org-refile-allow-creating-parent-nodes))
-  (setcar (nthcdr 3 rfloc)
- (move-marker (make-marker) (nth 3 rfloc)
-  (or (get-file-buffer (nth 1 rfloc))
-  (find-buffer-visiting (nth 1 rfloc))
-  (error This should not happen
+  (if (nth 3 rfloc)
+ (setcar (nthcdr 3 rfloc)
+ (move-marker (make-marker) (nth 3 rfloc)
+  (or (get-file-buffer (nth 1 rfloc))
+  (find-buffer-visiting (nth 1 rfloc))
+  (error This should not happen)

  (setq cmd (list 'org-agenda-refile nil (list 'quote rfloc) t)
redo-at-end t))
--
1.7.1


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug: Org LaTeX export has broken encoding for extra headers [6.36trans (release_6.36.542.gc87b)]

2010-07-06 Thread Tassilo Horn

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


I'm doing a LaTeX beamer presentation with org.  The org doc starts with
these lines:

--8---cut here---start-8---
#+STARTUP: beamer
#+LaTeX_CLASS: beamer
#+TITLE: Implementieren, Integrieren, Installieren
#+AUTHOR: Tassilo Horn
#+EMAIL: h...@uni-koblenz.de
#+LANGUAGE: de
#+BEAMER_FRAME_LEVEL: 2
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_HEADER_EXTRA: \usetheme[secheader]{Boadilla} \institute{Universität 
Koblenz, IST}
--8---cut here---end---8---

In the presentation, the ä in Universität is printed as an A with a ~ on
top, followed by a d'.  The reason is that the BEAMER_HEADER_EXTRA is
put before the input encoding declaration.  To be clear, org produces a
TeX file that starts with

--8---cut here---start-8---
% Created 2010-07-06 Tue 08:57
\documentclass[presentation]{beamer}
\usetheme[secheader]{Boadilla} \institute{Universität Koblenz, IST}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
--8---cut here---end---8---

but it should be at least:

--8---cut here---start-8---
% Created 2010-07-06 Tue 08:57
\documentclass[presentation]{beamer}
\usepackage[utf8]{inputenc}
\usetheme[secheader]{Boadilla} \institute{Universität Koblenz, IST}
\usepackage[T1]{fontenc}
--8---cut here---end---8---

In general, I'd say that it would be even more safe to put the extra
headers below all default headers.

Emacs  : GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2010-07-05 on thinkpad
Package: Org-mode version 6.36trans (release_6.36.542.gc87b)

Bye,
Tassilo

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug: logging PROPERTIES [6.36trans]

2010-07-06 Thread Carsten Dominik


On Jul 5, 2010, at 5:49 PM, Giovanni Ridolfi wrote:


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


If I change the todo-keyword and write WAIT, 'WAIT' reamins in a
plain font


THis is probably because you have neither configured org-todo-
keywords, nor have you put a

#+TODO: TODO WAIT | DONE CANCEL

line into the buffer.  You need to tell Org mode what the todo
keywords are.


I see. I found the documentation not so explicit.

Do you think the following patch will clarify the sentence?


Hmmm, not really.   think it is kind of obvious from the docs that you
need to define TODO states before you can use them, and I think it must
be bad luck that you first were reading about LOGGING, before
defining your TODO keywords.



cheers,
Giovanni

P.S. I sent a patch for the documentation, but Stephen Eglen sent a  
more

complete patch, including also the typo I found.
Please reject or archive the patch
http://patchwork.newartisans.com/patch/106/


Done.

Thanks!

- Carsten



--- org.texi2010-07-05 17:22:17.923843200 +0200
+++ org-gio.texi2010-07-05 17:38:24.764091200 +0200
@@ -3775,5 +3775,6 @@

@cindex property, LOGGING
-In order to define logging settings that are local to a subtree or a
+Once the TODO keywords have been set, in order to define logging
+settings that are local to a subtree or a
single item, define a LOGGING property in this entry.  Any non-empty
LOGGING property resets all logging settings to nil.  You may then  
turn


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Columns with LaTeX beamer export

2010-07-06 Thread Tassilo Horn
Hi all,

I cannot understand how to create a beamer frame with columns.  Neither
the info docs nor Worg make me grasp it.

It somehow works if I add some additional outline structure like that:

--8---cut here---start-8---
** Situation  :B_columns:
   :PROPERTIES:
   :BEAMER_env: columns
   :END:
*** Zu erstellendes System ist nach /Analyse/ und /Entwurf/ hinreichend 
spezifiziert  :BMCOL:
:PROPERTIES:
:BEAMER_col: 0.7
:END:
*** Aufgabe der *Implementationsphase*: Programmierung des spezifizierten 
Entwurfs in der festgelegten Zielsprache
  - *Programmieren im Kleinen*
  - Heute immer öfter: Einsatz von *Generierungstechniken*

*** Der Lebenslauf:BMCOL:
:PROPERTIES:
:BEAMER_col: 0.3
:END:

   #+ATTR_LaTeX: width=0.45\textwidth
   [[./cycle.pdf]]
--8---cut here---end---8---

But I don't want to do that.  The problem with that approach is that
Der Lebenslauf is now an item, but I just want to put the pdf image on
the right column.  And that the top-level entries are on one line looks
also bad.

From the docs, I can grasp that a new column starts at an entry with
:BEAMER_col: property.  But since I cannot put a property on something
else than a headline, I don't understand how Worg mentions Columns
without additional outline structure.

Can anyone enlighten me with an example with some columns and no
additional outline structure?

Thanks a lot,
Tassilo


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [babel] feature request - tangle-and-evaluate-tangled-file

2010-07-06 Thread Rainer M Krug
Hi

I am using org-babel for literate programming in R and I am using the
following approach to test the code:

1) tangle
2) refresh buffer containing the tangled code (I use auto-revert-mode or
global-auto-revert-mode for that)
3) load the tangled file into an existing R session via ESS R for evaluation

This involves switching between buffers in always the same sequence.
Therefore my suggestion:

would it be possible to have a tangle-and-evaluate-tangled-file funcction,
which is doing this automatically?

C-c - 0 and org-babel-execute-buffer do not work in this case, as functions
are split over several code blocks in R.

Cheers,

Rainer


-- 
NEW GERMAN FAX NUMBER!!!

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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH] Remove text properties of body before calculating cache hash.

2010-07-06 Thread David Maus
* org-exp-blocks.el (org-export-blocks-format-ditaa)
(org-export-blocks-format-dot): Remove text properties of body before
calculating cache hash.

Otherwise one and the same ditta/graphviz image has a different hash
depending on the text properties of the body.
E.g. `org-export-region-as-html' with target buffer 'string passed the
body of the block without possible indentation property `wrap-prefix'
while `org-export-as-html' does.
---
 lisp/org-exp-blocks.el |   32 ++--
 1 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/lisp/org-exp-blocks.el b/lisp/org-exp-blocks.el
index 4ff6c5c..4bf5db6 100644
--- a/lisp/org-exp-blocks.el
+++ b/lisp/org-exp-blocks.el
@@ -227,13 +227,15 @@ passed to the ditaa utility as command line arguments.
   (message ditaa-formatting...)
   (let* ((args (if (cdr headers) (mapconcat 'identity (cdr headers)  )))
  (data-file (make-temp-file org-ditaa))
- (hash (sha1 (prin1-to-string (list body args
- (raw-out-file (if headers (car headers)))
- (out-file-parts (if (string-match \\(.+\\)\\.\\([^\\.]+\\)$ 
raw-out-file)
- (cons (match-string 1 raw-out-file)
-   (match-string 2 raw-out-file))
-   (cons raw-out-file png)))
- (out-file (concat (car out-file-parts) _ hash . (cdr 
out-file-parts
+(hash (progn
+(set-text-properties 0 (length body) nil body)
+(sha1 (prin1-to-string (list body args)
+(raw-out-file (if headers (car headers)))
+(out-file-parts (if (string-match \\(.+\\)\\.\\([^\\.]+\\)$ 
raw-out-file)
+(cons (match-string 1 raw-out-file)
+  (match-string 2 raw-out-file))
+  (cons raw-out-file png)))
+(out-file (concat (car out-file-parts) _ hash . (cdr 
out-file-parts
 (unless (file-exists-p org-ditaa-jar-path)
   (error (format Could not find ditaa.jar at %s org-ditaa-jar-path)))
 (setq body (if (string-match ^\\([^:\\|:[^ ]\\) body)
@@ -287,13 +289,15 @@ digraph data_relationships {
   (message dot-formatting...)
   (let* ((args (if (cdr headers) (mapconcat 'identity (cdr headers)  )))
  (data-file (make-temp-file org-ditaa))
- (hash (sha1 (prin1-to-string (list body args
- (raw-out-file (if headers (car headers)))
- (out-file-parts (if (string-match \\(.+\\)\\.\\([^\\.]+\\)$ 
raw-out-file)
- (cons (match-string 1 raw-out-file)
-   (match-string 2 raw-out-file))
-   (cons raw-out-file png)))
- (out-file (concat (car out-file-parts) _ hash . (cdr 
out-file-parts
+(hash (progn
+(set-text-properties 0 (length body) nil body)
+(sha1 (prin1-to-string (list body args)
+(raw-out-file (if headers (car headers)))
+(out-file-parts (if (string-match \\(.+\\)\\.\\([^\\.]+\\)$ 
raw-out-file)
+(cons (match-string 1 raw-out-file)
+  (match-string 2 raw-out-file))
+  (cons raw-out-file png)))
+(out-file (concat (car out-file-parts) _ hash . (cdr 
out-file-parts
 (cond
  ((or htmlp latexp docbookp)
   (unless (file-exists-p out-file)
-- 
1.7.1


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org+table.el = mutli line cells?

2010-07-06 Thread Carsten Dominik


On Jul 2, 2010, at 4:54 PM, John Hendy wrote:

- Thanks for the table link, though I only see how to change frames  
and borders on the provided link. Do I just need to pass some html/ 
css option through #+ATTR_HTML?


- Also... stupid me. I meant to specify that I'm looking to do this  
in LaTeX, not necessarily html, though I'm glad to have knowledge of  
both.


After more reading, this seems pretty doable through the 'p{width}'  
alignment option which seems to work through #+ATTR_LaTeX to control  
automatic wrapping in a cell. My remaining question is whether or  
not it's possible to enable tabular* instead of the default  
environment as then I could limit both columns and determine table  
widths. I don't know that tabular seems to have this option?


After git pull, you can do

(setq org-export-latex-tabular-environment tabular*)

HTH

- Carsten




Thanks,
John

On Thu, Jul 1, 2010 at 11:37 PM, Carsten Dominik carsten.domi...@gmail.com 
 wrote:


On Jul 1, 2010, at 10:14 PM, John Hendy wrote:

Hi,


I export to variable page widths and would like to be able to  
specify a limit on my tables which seem to always run on as long as  
they need to without regard for any margins or borders. I found a  
post here where a user asked the question I was looking for: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg22353.html


So... table.el (as I have since found during fiddling) does create  
multi-line cells, which is awesome.


I can't find any documentation for it, though?? I am just looking  
for [hopefully] basic/easy things like:


- bold a cell (*word* doesn't seem to work in table.el tables)
- limit the overall width of the table

Formatting inside table.el cells does not work because this is a  
completely

different export mechanism.

To fix the width of a table (normal Org-mode table), see

http://orgmode.org/manual/Tables-in-HTML-export.html#Tables-in-HTML-export

- Carsten




- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] add firefox/vimperator support to contrib/lisp/org-mac-link-grabber.el

2010-07-06 Thread Carsten Dominik


On Jul 1, 2010, at 9:59 PM, David Maus wrote:


Anthony Lander wrote:

This patch adds a new option, [v]imperator, to the org-mac-link-
grabber menu. Use this to grab links from Firefox running the
Vimperator plugin.



Code by Michael Kohl (http://github.com/citizen428).


I'm not sure about this, but the file is

,
| (C) Copyright (c) 2010 Free Software Foundation, Inc.
`

and the code is by Michael Kohl who is not on the list of copyrighted
contributors[1] and exceeds the 15-or-so-lines.[2] This would require
Michael to assign copyright to FSF, doesn't it?



Yes.  Unless it is 90% cut and paste, with 10% changing small things  
or so.


Also, patchwork has trouble with the patch, I cannot apply it.

- Carsten



 -- David

[1] http://orgmode.org/worg/org-contribute.php#sec-5

[2] http://www.gnu.org/prep/maintain/maintain.html#Legally-Significant
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-capture-last-stored bookmark

2010-07-06 Thread Giles Chamberlin
I've moved over to the new capture interface and wanted to visit a note
I'd just taken.  Because I had closed the note with C-c C-w to refile
it, visiting the bookmark at org-capture-last-stored didn't take me to
the correct note.

I would suggest that org-capture-last-stored should contain the location
of the last note taken regardless of whether it went to the default file or
was refiled on close.


-- 
Giles


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-capture-last-stored bookmark

2010-07-06 Thread Carsten Dominik

Hi Giles,

I have fixed this, please verify.

- Carsten

On Jul 6, 2010, at 12:14 PM, Giles Chamberlin wrote:

I've moved over to the new capture interface and wanted to visit a  
note

I'd just taken.  Because I had closed the note with C-c C-w to refile
it, visiting the bookmark at org-capture-last-stored didn't take me to
the correct note.

I would suggest that org-capture-last-stored should contain the  
location
of the last note taken regardless of whether it went to the default  
file or

was refiled on close.


--
Giles


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] Remove text properties of body before calculating cache hash.

2010-07-06 Thread Carsten Dominik

Applied, thanks.

- Carsten

On Jul 6, 2010, at 10:32 AM, David Maus wrote:


* org-exp-blocks.el (org-export-blocks-format-ditaa)
(org-export-blocks-format-dot): Remove text properties of body before
calculating cache hash.

Otherwise one and the same ditta/graphviz image has a different hash
depending on the text properties of the body.
E.g. `org-export-region-as-html' with target buffer 'string passed the
body of the block without possible indentation property `wrap-prefix'
while `org-export-as-html' does.
---
lisp/org-exp-blocks.el |   32 ++--
1 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/lisp/org-exp-blocks.el b/lisp/org-exp-blocks.el
index 4ff6c5c..4bf5db6 100644
--- a/lisp/org-exp-blocks.el
+++ b/lisp/org-exp-blocks.el
@@ -227,13 +227,15 @@ passed to the ditaa utility as command line  
arguments.

  (message ditaa-formatting...)
  (let* ((args (if (cdr headers) (mapconcat 'identity (cdr headers)  
 )))

 (data-file (make-temp-file org-ditaa))
- (hash (sha1 (prin1-to-string (list body args
- (raw-out-file (if headers (car headers)))
- (out-file-parts (if (string-match \\(.+\\)\\.\\([^\\.]+\\) 
$ raw-out-file)

- (cons (match-string 1 raw-out-file)
-   (match-string 2 raw-out-file))
-   (cons raw-out-file png)))
- (out-file (concat (car out-file-parts) _ hash . (cdr  
out-file-parts

+(hash (progn
+(set-text-properties 0 (length body) nil body)
+(sha1 (prin1-to-string (list body args)
+(raw-out-file (if headers (car headers)))
+	 (out-file-parts (if (string-match \\(.+\\)\\.\\([^\\.]+\\)$ raw- 
out-file)

+(cons (match-string 1 raw-out-file)
+  (match-string 2 raw-out-file))
+  (cons raw-out-file png)))
+	 (out-file (concat (car out-file-parts) _ hash . (cdr out-file- 
parts

(unless (file-exists-p org-ditaa-jar-path)
  (error (format Could not find ditaa.jar at %s org-ditaa-jar- 
path)))

(setq body (if (string-match ^\\([^:\\|:[^ ]\\) body)
@@ -287,13 +289,15 @@ digraph data_relationships {
  (message dot-formatting...)
  (let* ((args (if (cdr headers) (mapconcat 'identity (cdr headers)  
 )))

 (data-file (make-temp-file org-ditaa))
- (hash (sha1 (prin1-to-string (list body args
- (raw-out-file (if headers (car headers)))
- (out-file-parts (if (string-match \\(.+\\)\\.\\([^\\.]+\\) 
$ raw-out-file)

- (cons (match-string 1 raw-out-file)
-   (match-string 2 raw-out-file))
-   (cons raw-out-file png)))
- (out-file (concat (car out-file-parts) _ hash . (cdr  
out-file-parts

+(hash (progn
+(set-text-properties 0 (length body) nil body)
+(sha1 (prin1-to-string (list body args)
+(raw-out-file (if headers (car headers)))
+	 (out-file-parts (if (string-match \\(.+\\)\\.\\([^\\.]+\\)$ raw- 
out-file)

+(cons (match-string 1 raw-out-file)
+  (match-string 2 raw-out-file))
+  (cons raw-out-file png)))
+	 (out-file (concat (car out-file-parts) _ hash . (cdr out-file- 
parts

(cond
 ((or htmlp latexp docbookp)
  (unless (file-exists-p out-file)
--
1.7.1


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] default base-extension .org for org-publish

2010-07-06 Thread Carsten Dominik

Applied, thanks.

- Carsten

On Jul 5, 2010, at 10:14 AM, Daniel Clemente wrote:



Org-publish: correctly find files in projects which didn't define a  
base-extension.
Previously, (org-publish-get-project-from-filename ~/org/file.org)  
would return nil because the constructed regular expression ^/home/ 
dc/org/.+\\.\\(\\)$ required a dot at the end.


#+BEGIN_QUOTE
diff --git a/lisp/org-publish.el b/lisp/org-publish.el
index b387e7b..a50cf56 100644
--- a/lisp/org-publish.el
+++ b/lisp/org-publish.el
@@ -466,7 +466,7 @@ matching filenames.
	  ;; [[info:org:Selecting%20files]] shows how this is supposed to  
work:

  (let* ((r (plist-get (cdr prj) :recursive))
 (b (expand-file-name (plist-get (cdr prj) :base-directory)))
-(x (plist-get (cdr prj) :base-extension))
+(x (or (plist-get (cdr prj) :base-extension) org))
 (e (plist-get (cdr prj) :exclude))
 (i (plist-get (cdr prj) :include))
 (xm (concat ^ b (if r .+ [^/]+) \\.\\( x \\)$)))

#+END_QUOTE

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Patchwork: Patch 119 Accepted

2010-07-06 Thread Carsten Dominik
Patch 119 (http://patchwork.newartisans.com/patch/119/) is now Accepted.

This relates to the following submission:

http://mid.gmane.org/%3C1278405171-5093-1-git-send-email-dmaus%40ictsoc.de%3E

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Patchwork: Patch 112 Accepted

2010-07-06 Thread Carsten Dominik
Patch 112 (http://patchwork.newartisans.com/patch/112/) is now Accepted.

This relates to the following submission:

http://mid.gmane.org/%3C87sk3y2vlo.wl%25n142857%40gmail.com%3E

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] add firefox/vimperator support to contrib/lisp/org-mac-link-grabber.el

2010-07-06 Thread Anthony Lander


On 10-Jul-6, at 5:19 AM, Carsten Dominik wrote:


Yes.  Unless it is 90% cut and paste, with 10% changing small things  
or so.




It is, in effect, about 8 changed lines within 4 or 5 copy/pasted and  
renamed functions.



Also, patchwork has trouble with the patch, I cannot apply it.


Is there something I can do to help, Carsten?

  -Anthony


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] add firefox/vimperator support to contrib/lisp/org-mac-link-grabber.el

2010-07-06 Thread Carsten Dominik


On Jul 6, 2010, at 1:26 PM, Anthony Lander wrote:



On 10-Jul-6, at 5:19 AM, Carsten Dominik wrote:


Yes.  Unless it is 90% cut and paste, with 10% changing small  
things or so.




It is, in effect, about 8 changed lines within 4 or 5 copy/pasted  
and renamed functions.



Also, patchwork has trouble with the patch, I cannot apply it.


Is there something I can do to help, Carsten?


Try to resubmit the patch, as an attachment with MIME media type
text and subtype x-patch, x-diff[1], or plain.

Thanks!

- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Literal examples and indentation

2010-07-06 Thread Francis Moreau
On Sun, Jul 4, 2010 at 11:41 PM, Juan pech...@computer.org wrote:
 For ASCII export, the 2 leading spaces are hard-coded in org-ex.el
 line 2292:

   (lambda (l) (concat    l))

 You'll need to tinker inside the code in order to change the
 indentation.

Ok, so the answer of my initial question is no.

That's a bit sad because, IMHO, this could a little be smarter than
this. For example if the line to indent is an empty one, then don't
insert indentation, or if the text is already indented then indent
with respect of the current indentation, etc...

Bye,
-- 
Francis

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] add firefox/vimperator support to contrib/lisp/org-mac-link-grabber.el

2010-07-06 Thread Anthony Lander


On 10-Jul-6, at 7:35 AM, Carsten Dominik wrote:


Try to resubmit the patch, as an attachment with MIME media type
text and subtype x-patch, x-diff[1], or plain.



Carsten, the previous submit was text/plain. Here is the MIME header:

--Apple-Mail-38--957295067
Content-Disposition: attachment;
filename=org-mac-link-grabber-vimperator-patch.txt
Content-Type: text/plain;
name=org-mac-link-grabber-vimperator-patch.txt;
x-unix-mode=0644
Content-Transfer-Encoding: quoted-printable

I will try it again, though. This time through Yahoo mail instead of  
Mail.app.


  -Anthony

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH] Resubmitted org-mac-link-grabber/vimperator patch

2010-07-06 Thread Anthony Lander
This is a resubmission because patchworks did not recognize the original.diff --git a/contrib/lisp/org-mac-link-grabber.el 
b/contrib/lisp/org-mac-link-grabber.el
index bb12204..8ec428b 100644
--- a/contrib/lisp/org-mac-link-grabber.el
+++ b/contrib/lisp/org-mac-link-grabber.el
@@ -4,7 +4,7 @@
 ;; Copyright (c) 2010 Free Software Foundation, Inc.
 ;; 
 ;; Author: Anthony Lander anthony.lan...@gmail.com
-;; Version: 1.0
+;; Version: 1.0.1
 ;; Keywords: org, mac, hyperlink
 ;;
 ;; This program is free software; you can redistribute it and/or modify
@@ -39,6 +39,7 @@
 ;; Mail.app - grab links to the selected messages in the message list
 ;; AddressBook.app - Grab links to the selected addressbook Cards
 ;; Firefox.app - Grab the url of the frontmost tab in the frontmost window
+;; Vimperator/Firefox.app - Grab the url of the frontmost tab in the frontmost 
window
 ;; Safari.app - Grab the url of the frontmost tab in the frontmost window
 ;; Google Chrome.app - Grab the url of the frontmost tab in the frontmost 
window
 ;; Together.app - Grab links to the selected items in the library list
@@ -108,6 +109,12 @@ applications and inserting them in org documents
   :group 'org-mac-link-grabber
   :type 'boolean)
 
+(defcustom org-mac-grab-Firefox+Vimperator-p nil
+  Enable menu option [v]imperator to grab links from Firefox.app running the 
Vimperator plugin
+  :tag Grab Vimperator/Firefox.app links
+  :group 'org-mac-link-grabber
+  :type 'boolean)
+
 (defcustom org-mac-grab-Chrome-app-p t
   Enable menu option [f]irefox to grab links from Google Chrome.app
   :tag Grab Google Chrome.app links
@@ -129,6 +136,7 @@ applications and inserting them in org documents
(a ddressbook 
org-mac-addressbook-insert-selected ,org-mac-grab-Addressbook-app-p)
(s afari 
org-mac-safari-insert-frontmost-url ,org-mac-grab-Safari-app-p)
(f irefox 
org-mac-firefox-insert-frontmost-url ,org-mac-grab-Firefox-app-p)
+   (v imperator 
org-mac-vimperator-insert-frontmost-url ,org-mac-grab-Firefox+Vimperator-p)
(c hrome 
org-mac-chrome-insert-frontmost-url ,org-mac-grab-Chrome-app-p)
(t ogether 
org-mac-together-insert-selected ,org-mac-grab-Together-app-p)))
 (menu-string (make-string 0 ?x))
@@ -232,6 +240,51 @@ applications and inserting them in org documents
   (insert (org-mac-firefox-get-frontmost-url)))
 
 
+;; Handle links from Google Firefox.app running the Vimperator extension
+;; Grab the frontmost url from Firefox+Vimperator. Same limitations are
+;; Firefox
+
+(defun as-mac-vimperator-get-frontmost-url ()
+  (let ((result (do-applescript
+   (concat
+set oldClipboard to the clipboard\n
+set frontmostApplication to path to 
frontmost application\n
+tell application \Firefox\\n
+  activate\n
+  delay 0.15\n
+  tell application \System 
Events\\n
+  keystroke \y\\n
+  end tell\n
+  delay 0.15\n
+  set theUrl to the clipboard\n
+  set the clipboard to 
oldClipboard\n
+  set theResult to (get theUrl)  
\::split::\  (get name of window 1)\n
+end tell\n
+activate application 
(frontmostApplication as text)\n
+set links to {}\n
+copy theResult to the end of links\n
+return links as string\n
+(replace-regexp-in-string \s+-\s+Vimperator  (car (split-string result 
[\r\n]+ t)
+
+
+(defun org-mac-vimperator-get-frontmost-url ()
+  (interactive)
+  (message Applescript: Getting Vimperator url...)
+  (let* ((url-and-title (as-mac-vimperator-get-frontmost-url))
+(split-link (split-string url-and-title ::split::))
+(URL (car split-link))
+(description (cadr split-link))
+(org-link))
+(when (not (string= URL ))
+  (setq org-link (org-make-link-string URL description)))
+(kill-new org-link)
+org-link))
+
+(defun org-mac-vimperator-insert-frontmost-url ()
+  (interactive)
+  (insert (org-mac-vimperator-get-frontmost-url)))
+
+
 ;; Handle links from Google Chrome.app
 ;; Grab the frontmost url from Google Chrome. Same limitations are
 ;; Firefox 

[Orgmode] Re: [PATCH] Resubmitted org-mac-link-grabber/vimperator patch

2010-07-06 Thread Carsten Dominik

Hmm,

patchwork catches the diff, but I cannot apply it through the  
patchwork pw script, like I can do with other patches.


Anyway, I applied it directly and that worked.

Thanks!

- Carsten

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Code block switches buffer-wide?

2010-07-06 Thread Carsten Dominik


On Jul 5, 2010, at 10:36 PM, Rainer M Krug wrote:




On Mon, Jul 5, 2010 at 10:34 PM, Rainer M Krug r.m.k...@gmail.com  
wrote:



On Mon, Jul 5, 2010 at 6:06 PM, Carsten Dominik carsten.domi...@gmail.com 
 wrote:


On Jul 2, 2010, at 2:47 PM, Rainer M Krug wrote:

Hi

I would like to include the -n code block switch (number lines) into  
all my code blocks in a buffer. Is there a way to define a kind of  
buffer-wide switches, like it is with the #+BABEL keyword for header  
arguments?


No, there currently is not.

That's a petty.

Should have been pity



Well, it ended up in the issue file - so if you are lucky, someone  
might look into it.

You can also submit a patch!

Cheers

- Carsten





thanks,

Rainer


- Carsten


Thanks,

Rainer


--
NEW GERMAN FAX NUMBER!!!

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


Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten






--
NEW GERMAN FAX NUMBER!!!

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


Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com




--
NEW GERMAN FAX NUMBER!!!

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


Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com



- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] (new feature suggestion?) indicate 'repeater' nature in Agenda

2010-07-06 Thread Carsten Dominik


On Jul 2, 2010, at 8:57 AM, Livin Stephen Sharma wrote:



Is there a way to quickly/visually differentiate between repeating/ 
single-occurence tasks?


If not, something like say, adding an asterisk somewhere in the  
entry would be great.


1. Scheduled* - starred schedule/deadline string
2. TODO * - starred 'todo' string
3. fifa2010* - starred 'category' string

( asking too much? J )

 I looked for org-agenda--repeat variables and searched 'repeat' in  
the pdf manual, but didn't find a way to do this..\



There is nothing in there right now, but it could be implemented.
Not sure how useful I would find this, though.

A simpler way would be (and this is what I do) this:
Collect stuff with repeating time stamps in one place and make sure the
category is special.

For example, I have

* Habits
  :PROPERTIES:
:CATEGORY: habit
  :END:
** Habit 1
** Habit 2

* Regular stuff
  :PROPERTIES:
:CATEGORY: regular
  :END:

** Item 1
** Item 2


Thanks
Livin Stephen Sharma



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Code block switches buffer-wide?

2010-07-06 Thread Rainer M Krug
On Tue, Jul 6, 2010 at 2:28 PM, Carsten Dominik
carsten.domi...@gmail.comwrote:


 On Jul 5, 2010, at 10:36 PM, Rainer M Krug wrote:



 On Mon, Jul 5, 2010 at 10:34 PM, Rainer M Krug r.m.k...@gmail.com
 wrote:


 On Mon, Jul 5, 2010 at 6:06 PM, Carsten Dominik 
 carsten.domi...@gmail.com wrote:

 On Jul 2, 2010, at 2:47 PM, Rainer M Krug wrote:

 Hi

 I would like to include the -n code block switch (number lines) into all
 my code blocks in a buffer. Is there a way to define a kind of buffer-wide
 switches, like it is with the #+BABEL keyword for header arguments?

 No, there currently is not.

 That's a petty.

 Should have been pity



 Well, it ended up in the issue file - so if you are lucky, someone might
 look into it.
 You can also submit a patch!


Thanks - I would love to, but although I have experience in other
programming languages, elisp seems strange to me and I don't understand it.
If I have time, I definitely want to learn it.

Cheers,

Rainer




 Cheers

 - Carsten





 thanks,

 Rainer


 - Carsten


 Thanks,

 Rainer


 --
 NEW GERMAN FAX NUMBER!!!

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

 Centre of Excellence for Invasion Biology
 Natural Sciences Building
 Office Suite 2039
 Stellenbosch University
 Main Campus, Merriman Avenue
 Stellenbosch
 South Africa

 Cell:   +27 - (0)83 9479 042
 Fax:+27 - (0)86 516 2782
 Fax:+49 - (0)321 2125 2244
 email:  rai...@krugs.de

 Skype:  RMkrug
 Google: r.m.k...@gmail.com

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

 - Carsten






 --
 NEW GERMAN FAX NUMBER!!!

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

 Centre of Excellence for Invasion Biology
 Natural Sciences Building
 Office Suite 2039
 Stellenbosch University
 Main Campus, Merriman Avenue
 Stellenbosch
 South Africa

 Cell:   +27 - (0)83 9479 042
 Fax:+27 - (0)86 516 2782
 Fax:+49 - (0)321 2125 2244
 email:  rai...@krugs.de

 Skype:  RMkrug
 Google: r.m.k...@gmail.com




 --
 NEW GERMAN FAX NUMBER!!!

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

 Centre of Excellence for Invasion Biology
 Natural Sciences Building
 Office Suite 2039
 Stellenbosch University
 Main Campus, Merriman Avenue
 Stellenbosch
 South Africa

 Cell:   +27 - (0)83 9479 042
 Fax:+27 - (0)86 516 2782
 Fax:+49 - (0)321 2125 2244
 email:  rai...@krugs.de

 Skype:  RMkrug
 Google: r.m.k...@gmail.com


 - Carsten






-- 
NEW GERMAN FAX NUMBER!!!

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

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug: Org LaTeX export has broken encoding for extra headers [6.36trans (release_6.36.542.gc87b)]

2010-07-06 Thread Carsten Dominik


On Jul 6, 2010, at 9:07 AM, Tassilo Horn wrote:



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?   
See


http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


I'm doing a LaTeX beamer presentation with org.  The org doc starts  
with

these lines:

--8---cut here---start-8---
#+STARTUP: beamer
#+LaTeX_CLASS: beamer
#+TITLE: Implementieren, Integrieren, Installieren
#+AUTHOR: Tassilo Horn
#+EMAIL: h...@uni-koblenz.de
#+LANGUAGE: de
#+BEAMER_FRAME_LEVEL: 2
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_HEADER_EXTRA: \usetheme[secheader]{Boadilla}  
\institute{Universität Koblenz, IST}

--8---cut here---end---8---

In the presentation, the ä in Universität is printed as an A with a  
~ on

top, followed by a d'.  The reason is that the BEAMER_HEADER_EXTRA is
put before the input encoding declaration.  To be clear, org  
produces a

TeX file that starts with

--8---cut here---start-8---
% Created 2010-07-06 Tue 08:57
\documentclass[presentation]{beamer}
\usetheme[secheader]{Boadilla} \institute{Universität Koblenz, IST}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
--8---cut here---end---8---

but it should be at least:

--8---cut here---start-8---
% Created 2010-07-06 Tue 08:57
\documentclass[presentation]{beamer}
\usepackage[utf8]{inputenc}
\usetheme[secheader]{Boadilla} \institute{Universität Koblenz, IST}
\usepackage[T1]{fontenc}
--8---cut here---end---8---

In general, I'd say that it would be even more safe to put the extra
headers below all default headers.


OK, I am doing that now - let's hope this will not break anything.

Please note that you can specify the precise order of all those header  
pieces by

putting these cookies into you class definition:

 [DEFAULT-PACKAGES]  \\usepackage statements for default packages
 [NO-DEFAULT-PACKAGES]   do not include any of the default packages
 [PACKAGES]  \\usepackage statements for packages
 [NO-PACKAGES]   do not include the packages
 [EXTRA] the stuff from #+LaTeX_HEADER
 [NO-EXTRA]  do not include #+LaTeX_HEADER stuff
 [BEAMER-HEADER-EXTRA]   the beamer stuff

HTH

- Carsten


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org+table.el = mutli line cells?

2010-07-06 Thread John Hendy
Freaking awesome. What in the world *cant'* you set with Emacs/org?
Incredible.

John

On Tue, Jul 6, 2010 at 3:41 AM, Carsten Dominik
carsten.domi...@gmail.comwrote:


 On Jul 2, 2010, at 4:54 PM, John Hendy wrote:

  - Thanks for the table link, though I only see how to change frames and
 borders on the provided link. Do I just need to pass some html/css option
 through #+ATTR_HTML?

 - Also... stupid me. I meant to specify that I'm looking to do this in
 LaTeX, not necessarily html, though I'm glad to have knowledge of both.

 After more reading, this seems pretty doable through the 'p{width}'
 alignment option which seems to work through #+ATTR_LaTeX to control
 automatic wrapping in a cell. My remaining question is whether or not it's
 possible to enable tabular* instead of the default environment as then I
 could limit both columns and determine table widths. I don't know that
 tabular seems to have this option?


 After git pull, you can do

 (setq org-export-latex-tabular-environment tabular*)

 HTH

 - Carsten




 Thanks,
 John

 On Thu, Jul 1, 2010 at 11:37 PM, Carsten Dominik 
 carsten.domi...@gmail.com wrote:

 On Jul 1, 2010, at 10:14 PM, John Hendy wrote:

 Hi,


 I export to variable page widths and would like to be able to specify a
 limit on my tables which seem to always run on as long as they need to
 without regard for any margins or borders. I found a post here where a user
 asked the question I was looking for:
 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg22353.html

 So... table.el (as I have since found during fiddling) does create
 multi-line cells, which is awesome.

 I can't find any documentation for it, though?? I am just looking for
 [hopefully] basic/easy things like:

 - bold a cell (*word* doesn't seem to work in table.el tables)
 - limit the overall width of the table

 Formatting inside table.el cells does not work because this is a
 completely
 different export mechanism.

 To fix the width of a table (normal Org-mode table), see

 http://orgmode.org/manual/Tables-in-HTML-export.html#Tables-in-HTML-export

 - Carsten



 - Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Google CL and org-mode

2010-07-06 Thread Daniel Martins
Reaaly good news!

I am also willing to test any code available for this.


Daniel

2010/7/5 Eric S Fraga ucec...@ucl.ac.uk:
 On Mon, 5 Jul 2010 15:17:16 +0200, Jordi Inglada 
 jordi.ingl...@cesbio.cnes.fr wrote:

 Hi,

 Happy to hear that. Since I do not know Elisp, I can not help much,
 but I am willing to test any code available for this.

 Best regards,

 Jordi


 Eric S Fraga writes:
   Thanks for the heads-up on this.  This could be quite useful.  I've
   been playing recently with the org to google calendar interfacing and
   this new API could potentially simplify things significantly.

 I'll be sure to take you up on this ;-)

 I've had a quick look at the command line interface.  With the simple
 python scripts they provide, it will be straightforward, at least on
 Linux, to upload entries from org to google's calendar.  The other way
 is more tricky as the scripts don't provide full information on each
 entry.  The APIs however might give that.

 Stay tuned!

 --
 Eric S Fraga
 GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Bug: Org LaTeX export has broken encoding for extra headers [6.36trans (release_6.36.542.gc87b)]

2010-07-06 Thread Tassilo Horn
Carsten Dominik carsten.domi...@gmail.com writes:

Hi Carsten,

 In general, I'd say that it would be even more safe to put the extra
 headers below all default headers.

 OK, I am doing that now - let's hope this will not break anything.

Well, at least for my presentation it works fine now. :-)

 Please note that you can specify the precise order of all those header
 pieces by putting these cookies into you class definition:

  [DEFAULT-PACKAGES]  \\usepackage statements for default packages
  [NO-DEFAULT-PACKAGES]   do not include any of the default packages
  [PACKAGES]  \\usepackage statements for packages
  [NO-PACKAGES]   do not include the packages
  [EXTRA] the stuff from #+LaTeX_HEADER
  [NO-EXTRA]  do not include #+LaTeX_HEADER stuff
  [BEAMER-HEADER-EXTRA]   the beamer stuff

Thanks for the hint.

Bye,
Tassilo


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: any idea how to convert org file to MS WORD an retain text structure?

2010-07-06 Thread Gil Brandao
Rainer Stengele rainer.stengele at diplan.de writes:

 
 Hi!
 
 I love to edit documents in Org.
 Unfortunately I have to finally deliver text in MS Word.
 
 Any idea how to best export/convert my org file to Word?
 
 I tried HTML export and then imported the html in Word but
 I end up in an unusable xml style document which word wants an stylesheet for
which I do not have.
 
 Any help appreciated.
 


 I just used latex2rtf[1] in a simple document and it performed very well :)
(workflow: org-tex-rft )


Gil Brandao


[1] http://latex2rtf.sourceforge.net/



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Diary synchronising with Google calendar (was Re: [Orgmode] Google CL and org-mode)

2010-07-06 Thread Eric S Fraga
On Tue, 6 Jul 2010 00:14:00 +0200, Daniel Mahler dmah...@gmail.com wrote:
 
 On Mon, Jul 5, 2010 at 11:54 PM, Eric S Fraga ucec...@ucl.ac.uk wrote:
  On Mon, 5 Jul 2010 17:10:55 +0200, Daniel Mahler dmah...@gmail.com wrote:
 
  Hi,
 
  Have you looked at g-client?
 
  Thanks.  I did look at g-client a long time ago.  It should provide
  everything we need but it's much more than I want to even start
  considering...  I just don't have the time unfortunately.
 
  The google command line scripts, on the other hand, are
  straightforward and will give me (others?) 90% of the functionality I
  want.
 
  Mind you, I've been playing a bit and Google's quick add syntax
  leaves a bit to be desired.  There's no formal specification and it
  doesn't quite work, especially trying to get a repeated entry at a
  given time of day.
 
 
 GoogleCL is actually a rather thin wrapper around the gdata python
 client library,
 which essentially just adds the commandline processing.
 Maybe the way to go is to call gdata directly via pymacs.
 
 cheers
 Daniel

Yes, using pymacs and interacting directly with Google's API may be
the way to go.  However, given my usual time constraints, I'm going
for the 80% solution, as described below:

My use case is that I spend almost all of time in Emacs (and almost
all of that time within org) but I am sometimes but not often away
from one of my computers with only my Android phone.  When I'm away
from the computers, I need to be able to check my diary and maybe make
the odd addition to it.  I am not particularly concerned with note
taking with my mobile phone (too annoying! and MobileOrg is probably a
better solution for synchronised note taking in any case...) so the
following meets this use case.

I have two relevant org files: diary.org and googlecalendar.org.  The
first is the default target for inserting diary entries from org's
agenda view; the latter contains all items scheduled from within
Google's calendar application, typically from my phone, and downloaded
and processed using the awk script I posted to this list last week.

On the Google calendar side, I have two calendars: the default and one
called org.  The first is used when I actually schedule something
using Google.  The latter is populated directly by org using Google's
command line scripts with this advice on org's diary insertion
function:

#+begin_src emacs-lisp
(defadvice org-agenda-add-entry-to-org-agenda-diary-file 
  (after add-to-google-calendar)
  Add a new Google calendar entry that mirrors the diary entry just created by 
org-mode.
  (let ((type (ad-get-arg 0))
(text (ad-get-arg 1))
(d1 (ad-get-arg 2))
(year1 (nth 2 d1))
(month1 (car d1))
(day1 (nth 1 d1))
(d2 (ad-get-arg 3))
entry dates)
(if (or (not (eq type 'block)) (not d2))
(setq dates (format %d-%02d-%02d year1 month1 day1))
  (let ((year2 (nth 2 d2)) (month2 (car d2)) (day2 (nth 1 d2)) (repeats (- 
(calendar-absolute-from-gregorian d1)
   
(calendar-absolute-from-gregorian d2
(if ( repeats 0)
(setq dates (format %d-%02d-%02d every day for %d days year1 
month1 day1 (abs repeats)))
  (setq dates (format %d-%02d-%02d every day for %d days year1 month1 
day1 (abs repeats
))
(setq entry  (format /usr/bin/google calendar add --cal org \%s on %s\ 
text dates))
;;(message entry)
(if (not (string= MYLAPTOPCOMPUTER mail-host-address))
(shell-command entry)
  (let ((offline ~/tmp/org2google-offline-entries))
(find-file offline)
(goto-char (point-max))
(insert (concat entry \n))
(save-buffer)
(kill-buffer (current-buffer))
(message Plain text written to %s offline)
(ad-activate 'org-agenda-add-entry-to-org-agenda-diary-file)
#end_src

This does two things depending on my online status which is implicitly
defined by the host address of the computer I am using (yes, kludgy at
best): if online, the headline entry for the new diary entry (which is
stored in diary.org) is sent to my org Google calendar.  If offline,
the command line that would have been used is stored in a file.  When
I got back online, I simply execute and empty this file as part of a
more general synchronisation step (including git updates for my org
files and sending any composed emails like this one ;-).

This 2x2 approach (two diaries in org, two calendars in Google) seems
to be working very well.  It works for me because I seldom delete
items in my diary and, in any case, I'd rather err on having an entry
that no longer makes sense than end up double-booked.

Repeated events with times, however, do not work as Google's Quick
Add feature, on which the command line script depends, doesn't quite
work.  So only timed events for a single day or repeated daily
non-timed events are processed correctly.

There is also little (well, nothing) 

Re: [Orgmode] Columns with LaTeX beamer export

2010-07-06 Thread Eric S Fraga
On Tue, 06 Jul 2010 09:46:49 +0200, Tassilo Horn tass...@member.fsf.org wrote:
 
 Hi all,
 
 I cannot understand how to create a beamer frame with columns.  Neither
 the info docs nor Worg make me grasp it.
 
 It somehow works if I add some additional outline structure like that:
 
 --8---cut here---start-8---
 ** Situation  :B_columns:
:PROPERTIES:
:BEAMER_env: columns
:END:
 *** Zu erstellendes System ist nach /Analyse/ und /Entwurf/ hinreichend 
 spezifiziert  :BMCOL:
 :PROPERTIES:
 :BEAMER_col: 0.7
 :END:
 *** Aufgabe der *Implementationsphase*: Programmierung des spezifizierten 
 Entwurfs in der festgelegten Zielsprache
   - *Programmieren im Kleinen*
   - Heute immer öfter: Einsatz von *Generierungstechniken*
 
 *** Der Lebenslauf:BMCOL:
 :PROPERTIES:
 :BEAMER_col: 0.3
 :END:
 
#+ATTR_LaTeX: width=0.45\textwidth
[[./cycle.pdf]]
 --8---cut here---end---8---
 
 But I don't want to do that.  The problem with that approach is that
 Der Lebenslauf is now an item, but I just want to put the pdf image on
 the right column.  And that the top-level entries are on one line looks
 also bad.
 
 From the docs, I can grasp that a new column starts at an entry with
 :BEAMER_col: property.  But since I cannot put a property on something
 else than a headline, I don't understand how Worg mentions Columns
 without additional outline structure.
 
 Can anyone enlighten me with an example with some columns and no
 additional outline structure?
 
 Thanks a lot,
 Tassilo

Tassilo, I wrote a simple tutorial for beamer in org which you can
find on Worg (sorry: I'm offline so don't have the link at hand).

If I understood your message correctly, the solution may be to specify
the type of column environment to use (and what to do with the heading
of the column).  Type C-c C-b and select one of the environments
suggested.  I typically choose one of b (block), e (example) or
i (ignore heading).

HTH,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Columns with LaTeX beamer export

2010-07-06 Thread Tassilo Horn
On Tuesday 06 July 2010 17:08:48 Eric S Fraga wrote:

Hi Eric,

 Tassilo, I wrote a simple tutorial for beamer in org which you can
 find on Worg (sorry: I'm offline so don't have the link at hand).

I think, I have read that and didn't understand it completely.

Oh, wait, you mean that

  http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.php

right.  Oh, yeah, there's an example which does the trick. ;-)

 If I understood your message correctly, the solution may be to specify
 the type of column environment to use (and what to do with the heading
 of the column).  Type C-c C-b and select one of the environments
 suggested.  I typically choose one of b (block), e (example) or
 i (ignore heading).

Yeah, the :BEAMER_env: ignoreheading property does what I want.
Thanks a lot for the pointer to your nice tutorial.

But my real question was concerning the point

  Columns without additional outline structure

in http://orgmode.org/worg/org-tutorials/org-beamer.php.  Especially the
sentence The column ends at the next entry with such a property. makes
me head-shaking.  How can there be a next entry in that frame, if I
don't add an additional outline structure?

Bye,
Tassilo

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Columns with LaTeX beamer export

2010-07-06 Thread Eric S Fraga
On Tue, 6 Jul 2010 21:04:03 +0200, Tassilo Horn tass...@member.fsf.org wrote:
 
 On Tuesday 06 July 2010 17:08:48 Eric S Fraga wrote:
 
 Hi Eric,
 
  Tassilo, I wrote a simple tutorial for beamer in org which you can
  find on Worg (sorry: I'm offline so don't have the link at hand).
 
 I think, I have read that and didn't understand it completely.
 
 Oh, wait, you mean that
 
   http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.php
 
 right.  Oh, yeah, there's an example which does the trick. ;-)
 
  If I understood your message correctly, the solution may be to specify
  the type of column environment to use (and what to do with the heading
  of the column).  Type C-c C-b and select one of the environments
  suggested.  I typically choose one of b (block), e (example) or
  i (ignore heading).
 
 Yeah, the :BEAMER_env: ignoreheading property does what I want.
 Thanks a lot for the pointer to your nice tutorial.

You're welcome and I'm glad you found what you needed.

 But my real question was concerning the point
 
   Columns without additional outline structure
 
 in http://orgmode.org/worg/org-tutorials/org-beamer.php.  Especially the
 sentence The column ends at the next entry with such a property. makes
 me head-shaking.  How can there be a next entry in that frame, if I
 don't add an additional outline structure?

I didn't write this but I think this means that if one column starts
at, say, a 2nd level heading (**), the end of content for that column
is the next heading at the same level, or the end of the frame (i.e. a
heading at a higher level (*)).
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: any idea how to convert org file to MS WORD an retain text structure?

2010-07-06 Thread Eric S Fraga
On Tue, 6 Jul 2010 16:55:35 + (UTC), Gil Brandao madskad...@gmail.com 
wrote:
 
 Rainer Stengele rainer.stengele at diplan.de writes:
 
  
  Hi!
  
  I love to edit documents in Org.
  Unfortunately I have to finally deliver text in MS Word.
  
  Any idea how to best export/convert my org file to Word?
  
  I tried HTML export and then imported the html in Word but
  I end up in an unusable xml style document which word wants an stylesheet 
  for
 which I do not have.
  
  Any help appreciated.

The problem here is the first line of an exported HTML document by
default.  You can safely delete that line and then import it into Word
or OpenOffice.  Alternatively, you can tell org not to generate that
line in the first place:

(setq org-export-html-xml-declaration 
  (quote ((php . ?php echo \?xml version=\\\1.0\\\ encoding=\\\%s\\\ 
?\; ?

works for me.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Columns with LaTeX beamer export

2010-07-06 Thread Tassilo Horn
Eric S Fraga ucec...@ucl.ac.uk writes:

Hi Eric,

 But my real question was concerning the point
 
   Columns without additional outline structure
 
 in http://orgmode.org/worg/org-tutorials/org-beamer.php.  Especially
 the sentence The column ends at the next entry with such a
 property. makes me head-shaking.  How can there be a next entry in
 that frame, if I don't add an additional outline structure?

 I didn't write this but I think this means that if one column starts
 at, say, a 2nd level heading (**), the end of content for that column
 is the next heading at the same level, or the end of the frame (i.e. a
 heading at a higher level (*)).

Well, but then I do have an outline structure.  At least that Columns
without additional outline structure headline sounded to me like I
could have something like this completely hypothetical stuff.

--8---cut here---start-8---
* My 2 Column Frame
  :PROPERTIES:
  :BEAMER_env: columns
  :BEAMER_col: 0.5 0.5
  :END:

  - left col text
  - more left col text

  - right col text
  - more right col text
--8---cut here---end---8---

Bye,
Tassilo


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-startup-indented shifts columns in column-view

2010-07-06 Thread Julien Fantin
I've been using the org-startup-indented and org-adapt-indentation variables
for sometime, but I just realized that org-startup-indented when set to
true, ends up shifting the cloumns in column-view according to the headline
level.

So headline 2 is shifted by 1 character to the right, headline 3 by 2
characters and so forth.

Is this the expected behaviour ? I hope not, because I'd like to use both
features, but it makes the column-view quite impractical.

Cheers !
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Problem with HTML_CONTAINER_CLASS property

2010-07-06 Thread Jan Janak
Hello,

I am using the HTML_CONTAINER_CLASS property in one of my documents to
append additional classes to the corresponding div in the HTML
document I export to:

* Subsection
:PROPERTIES:
:HTML_CONTAINER_CLASS: span-9 last
:END:

When I publish the document, the resulting HTML code looks like this:
div id=outline-container-1 class=outline-2 span-9

The class last is missing. I also verified that if I add more
classes to the list, only the first one span-9 makes it to the HTML
code.

Is this a feature or a bug? I am using the latest org-mode version
from git (6.36trans with HEAD c32d7) and Emacs 23.2.1.

Thanks!

-Jan

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Columns with LaTeX beamer export

2010-07-06 Thread Eric S Fraga
On Tue, 06 Jul 2010 21:36:38 +0200, Tassilo Horn tass...@member.fsf.org wrote:
 
 Eric S Fraga ucec...@ucl.ac.uk writes:
 
 Hi Eric,
 
  But my real question was concerning the point
  
Columns without additional outline structure
  
  in http://orgmode.org/worg/org-tutorials/org-beamer.php.  Especially
  the sentence The column ends at the next entry with such a
  property. makes me head-shaking.  How can there be a next entry in
  that frame, if I don't add an additional outline structure?
 
  I didn't write this but I think this means that if one column starts
  at, say, a 2nd level heading (**), the end of content for that column
  is the next heading at the same level, or the end of the frame (i.e. a
  heading at a higher level (*)).
 
 Well, but then I do have an outline structure.  At least that Columns
 without additional outline structure headline sounded to me like I
 could have something like this completely hypothetical stuff.
 
 --8---cut here---start-8---
 * My 2 Column Frame
   :PROPERTIES:
   :BEAMER_env: columns
   :BEAMER_col: 0.5 0.5
   :END:
 
   - left col text
   - more left col text
 
   - right col text
   - more right col text
 --8---cut here---end---8---
 
 Bye,
 Tassilo

I'm sorry Tassilo but I do not understand your point.  Lists are not
part of an outline structure so there is only one outline component in
this example.

Maybe others can chime in here...
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [BUG] org-capture : latest git pull, template selection broken ?

2010-07-06 Thread Julien Fantin
With the org-capture-templates described in the doc, right after the
template selection, the buffer disappears, and the empty template gets
written to the target file.
The following messages are output :
Clipboard pasted as level 2 subtree

Has the template selection changed, or is this a bug ?

Cheers
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] New CSS for orgmode and Worg ?

2010-07-06 Thread Bastien
Hi all,

the current CSS for orgmode.org and orgmode.org/Worg is nice: readable
and simple.  But I'm bugged by the feeling we can do better.

It would be super cool to celebrate the forthcoming 7.01 version of Org
with a brand new CSS. Maybe we can evaluate a few ones and decide which
one suits best the community until July, 18th...

Anyone with CSS expertise ready to take this challenge ?

Looking forward :)

-- 
 Bastien

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] New CSS for orgmode and Worg ?

2010-07-06 Thread Greg Newman
I'd be happy to Bastien!

— Greg

On Tue, Jul 6, 2010 at 6:20 PM, Bastien bastien.gue...@wikimedia.fr wrote:

 Hi all,

 the current CSS for orgmode.org and orgmode.org/Worg is nice: readable
 and simple.  But I'm bugged by the feeling we can do better.

 It would be super cool to celebrate the forthcoming 7.01 version of Org
 with a brand new CSS. Maybe we can evaluate a few ones and decide which
 one suits best the community until July, 18th...

 Anyone with CSS expertise ready to take this challenge ?

 Looking forward :)

 --
  Bastien

 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] any idea how to convert org file to MS WORD an retain text structure?

2010-07-06 Thread Torsten Wagner
Hi Rainer,

 I tried HTML export and then imported the html in Word but
 I end up in an unusable xml style document which word wants an stylesheet for 
 which I do not have.

This is what does for me the best job if I have to deal with MS Word -
LaTeX conversion. How to do it with org-mode was answered already.

Let me bring another way into discussion.
Sometimes people ask for MS-Word files because they simply do not know
it better and the use MS-Word as a kind of media-container format. They
ask for MS-Word format but they will not process the document in any
way. Simply print it as it is.

This is often the case e.g., for conference proceedings where people
asked me for a camera ready MS Word document. Already the phrase
camera-ready MS Word document contains mutual exclusive words, taking
into account what a mess could happen after opening up a MS Word file in
a different version (both release and language version) of MS Office.

What I did already several times and I never got any complain was the
conversion of the generated PDF (from LaTeX) in a single image per page
(preferable png, tiff or any other compression format with a non-loss in
quality)
I placed this page-pictures in a Word-file, exactly as it would be
printed (I cropped the boarders with the MS-Word graphic tools.

This could be very quickly and easily done for  10 pages by hand.

In the printed version of the proceeding, the conference organizers
simply added a head- and footnote. I guess they simply opened up every
MS Word file marked all content and copy and paste all of them in a
MS-Word file with the preferable head- and footnote.

As I said, I never got any negative feedback. Maybe the never noticed it
at all or there thought it might be some bug, safety feature, different
version problem, etc.


Just a quick and dirty trick which saves much much time. ;)


Greetings

Torsten

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [Update Config] Babel changes -- security updates and final integration push

2010-07-06 Thread Bernt Hansen
Eric Schulte schulte.e...@gmail.com writes:

 Hi,

 I've just merged a large set of Babel related security measures and
 layout/initialization updates into the master branch of the git
 repository.

 These changes will require existing babel users to update their
 configuration, see the following instructions for details -- even if you
 think you've read similar instructions before these are worth reading.
 http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html

 From here on out Babel development in the master branch will settle down
 along with the rest of the current Org-mode feature freeze.


Hi Eric,

I've updated my simple babel usage with your recent instructions and I
think there's a bug in the current setup.  My output isn't anything like
I expect.

Org-mode version 6.36trans (release_6.36.563.gc32d7)
GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-09 on 
raven, modified by Debian

I have the following org-mode file

,[ test.org ]
| * test.org
| #+begin_src sh :results output
|cd ~/git/emacs  git log 4d287c3c72e53f1e3c9fcd42a06599babbf9c6cc..
| #+end_src
| 
| #+results:
| : commit 61bba1e248509ef2d06c95681a28288cf6af8287
| : Author: Bernt Hansen be...@norang.ca
| : Date:   Fri Jun 18 15:04:57 2010 -0400
| : 
| : Drop unused function
| 
| #+begin_example
| commit 4d287c3c72e53f1e3c9fcd42a06599babbf9c6cc
| Author: Bernt Hansen be...@norang.ca
| Date:   Fri Jun 18 10:47:00 2010 -0400
| 
| Try autoclocking gnus mail and news reading
| 
| commit 904744c6bc82e65f82109c8d7c612b3616c2ee60
| Author: Bernt Hansen be...@norang.ca
| Date:   Thu Jun 17 13:19:43 2010 -0400
| 
| Remove debug message for agenda sort function
| 
`

and from previous runs of org-babel I've been collecting commits in
the #+results: section with older stuff I manually update in
the #+begin_example block.

Now if I execute the shell script with the new babel setup I get this:

(after the prompt to execute the shell script)

,[ test.org ]
| * test.org
| #+begin_src sh :results output
|cd ~/git/emacs  git log 4d287c3c72e53f1e3c9fcd42a06599babbf9c6cc..
| #+end_src
| 
| #+results:
| #+begin_example
| * test.org
| #+begin_src sh :results output
|cd ~/git/emacs  git log 4d287c3c72e53f1e3c9fcd42a06599babbf9c6cc..
| #+end_src
| 
| #+results:
| : commit 61bba1e248509ef2d06c95681a28288cf6af8287
| : Author: Bernt Hansen be...@norang.ca
| : Date:   Fri Jun 18 15:04:57 2010 -0400
| : 
| : Drop unused function
| 
| #+begin_example
| commit 4d287c3c72e53f1e3c9fcd42a06599babbf9c6cc
| Author: Bernt Hansen be...@norang.ca
| Date:   Fri Jun 18 10:47:00 2010 -0400
| 
| Try autoclocking gnus mail and news reading
| 
| commit 904744c6bc82e65f82109c8d7c612b3616c2ee60
| Author: Bernt Hansen be...@norang.ca
| Date:   Thu Jun 17 13:19:43 2010 -0400
| 
| Remove debug message for agenda sort function
| 
| #+end_example
| 
| #+begin_example
| commit 4d287c3c72e53f1e3c9fcd42a06599babbf9c6cc
| Author: Bernt Hansen be...@norang.ca
| Date:   Fri Jun 18 10:47:00 2010 -0400
| 
| Try autoclocking gnus mail and news reading
| 
| commit 904744c6bc82e65f82109c8d7c612b3616c2ee60
| Author: Bernt Hansen be...@norang.ca
| Date:   Thu Jun 17 13:19:43 2010 -0400
| 
| Remove debug message for agenda sort function
| 
`

The results section duplicates part of the org file instead of inserting
the output from the command.  This used to work with the old setup -- am
I missing something?

Regards,
Bernt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [Org-mode] feed.el

2010-07-06 Thread Mark Scala
Hi, all.

I was trying out feed.el today, and I've got an error that I don't
understand.

Following the docs, I put this in my .emacs:

(setq org-feed-alist
  '((Slashdot
 http://rss.slashdot.org/Slashdot/slashdot;
 ~/org/feeds.org Slashdot Entries)))

I created a file in ~/org called feeds.org and in that file did C-c C-x g.
A headline for Slashdot Entries appeared.  But when I do C-c C-x g on that
entry I get the following message:  Symbol's value as variable is void:
xml-entity-alist

Nowhere do I find any information about setting that variable.  Any ideas?
(I'm using the latest development version of Org, compiled from git sources
today).

Thanks,
Mark
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [Update Config] Babel changes -- security updates and final integration push

2010-07-06 Thread Eric Schulte
Wow, this is fixed now, Thanks for pointing this out Bernt.

Bernt Hansen be...@norang.ca writes:

 Eric Schulte schulte.e...@gmail.com writes:

 Hi,

 I've just merged a large set of Babel related security measures and
 layout/initialization updates into the master branch of the git
 repository.

 These changes will require existing babel users to update their
 configuration, see the following instructions for details -- even if you
 think you've read similar instructions before these are worth reading.
 http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html

 From here on out Babel development in the master branch will settle down
 along with the rest of the current Org-mode feature freeze.


 Hi Eric,

 I've updated my simple babel usage with your recent instructions and I
 think there's a bug in the current setup.  My output isn't anything like
 I expect.

 Org-mode version 6.36trans (release_6.36.563.gc32d7)
 GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-09 on 
 raven, modified by Debian

 I have the following org-mode file

 ,[ test.org ]
 | * test.org
 | #+begin_src sh :results output
 |cd ~/git/emacs  git log 4d287c3c72e53f1e3c9fcd42a06599babbf9c6cc..
 | #+end_src
 | 
 | #+results:
 | : commit 61bba1e248509ef2d06c95681a28288cf6af8287
 | : Author: Bernt Hansen be...@norang.ca
 | : Date:   Fri Jun 18 15:04:57 2010 -0400
 | : 
 | : Drop unused function
 | 
 | #+begin_example
 | commit 4d287c3c72e53f1e3c9fcd42a06599babbf9c6cc
 | Author: Bernt Hansen be...@norang.ca
 | Date:   Fri Jun 18 10:47:00 2010 -0400
 | 
 | Try autoclocking gnus mail and news reading
 | 
 | commit 904744c6bc82e65f82109c8d7c612b3616c2ee60
 | Author: Bernt Hansen be...@norang.ca
 | Date:   Thu Jun 17 13:19:43 2010 -0400
 | 
 | Remove debug message for agenda sort function
 | 
 `

 and from previous runs of org-babel I've been collecting commits in
 the #+results: section with older stuff I manually update in
 the #+begin_example block.

 Now if I execute the shell script with the new babel setup I get this:

 (after the prompt to execute the shell script)

 ,[ test.org ]
 | * test.org
 | #+begin_src sh :results output
 |cd ~/git/emacs  git log 4d287c3c72e53f1e3c9fcd42a06599babbf9c6cc..
 | #+end_src
 | 
 | #+results:
 | #+begin_example
 | * test.org
 | #+begin_src sh :results output
 |cd ~/git/emacs  git log 4d287c3c72e53f1e3c9fcd42a06599babbf9c6cc..
 | #+end_src
 | 
 | #+results:
 | : commit 61bba1e248509ef2d06c95681a28288cf6af8287
 | : Author: Bernt Hansen be...@norang.ca
 | : Date:   Fri Jun 18 15:04:57 2010 -0400
 | : 
 | : Drop unused function
 | 
 | #+begin_example
 | commit 4d287c3c72e53f1e3c9fcd42a06599babbf9c6cc
 | Author: Bernt Hansen be...@norang.ca
 | Date:   Fri Jun 18 10:47:00 2010 -0400
 | 
 | Try autoclocking gnus mail and news reading
 | 
 | commit 904744c6bc82e65f82109c8d7c612b3616c2ee60
 | Author: Bernt Hansen be...@norang.ca
 | Date:   Thu Jun 17 13:19:43 2010 -0400
 | 
 | Remove debug message for agenda sort function
 | 
 | #+end_example
 | 
 | #+begin_example
 | commit 4d287c3c72e53f1e3c9fcd42a06599babbf9c6cc
 | Author: Bernt Hansen be...@norang.ca
 | Date:   Fri Jun 18 10:47:00 2010 -0400
 | 
 | Try autoclocking gnus mail and news reading
 | 
 | commit 904744c6bc82e65f82109c8d7c612b3616c2ee60
 | Author: Bernt Hansen be...@norang.ca
 | Date:   Thu Jun 17 13:19:43 2010 -0400
 | 
 | Remove debug message for agenda sort function
 | 
 `

 The results section duplicates part of the org file instead of inserting
 the output from the command.  This used to work with the old setup -- am
 I missing something?

 Regards,
 Bernt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [Update Config] Babel changes -- security updates and final integration push

2010-07-06 Thread Bernt Hansen
Eric Schulte schulte.e...@gmail.com writes:

 Wow, this is fixed now, Thanks for pointing this out Bernt.

That was quick!  Thanks!!

-Bernt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] New CSS for orgmode and Worg ?

2010-07-06 Thread Carsten Dominik


On Jul 7, 2010, at 12:20 AM, Bastien wrote:


Hi all,

the current CSS for orgmode.org and orgmode.org/Worg is nice: readable
and simple.  But I'm bugged by the feeling we can do better.

It would be super cool to celebrate the forthcoming 7.01 version of  
Org
with a brand new CSS. Maybe we can evaluate a few ones and decide  
which

one suits best the community until July, 18th...


Wow, great idea.  I am looking forward to seeing this!



Anyone with CSS expertise ready to take this challenge ?

Looking forward :)

--
Bastien

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [ANN] Org to Atom, revisited

2010-07-06 Thread Scott Jaderholm
David,

I love the idea of this project, and I really hope it makes it into org proper!

Unfortunately I haven't been able to get the sitemap/index feed
feature in this or an older version to work for me. Can you add more
details in Section 4.2?

It mentions org-atom-publish-org-as-atom-index but it's not in
http://github.com/dmj/dmj-org-mode/raw/org-atom/lisp/org-atom.el.

In the old version I think you had to put something like this the project-alist
    :index-function org-atom-publish-feed-index
Is that still necessary?
What about :auto-index t?

Maybe explain how to publish the sitemap? Does it just happen when you
publish the project? Maybe an example?

TIA
Scott


On Tue, Jun 15, 2010 at 10:51 AM, David Maus dm...@ictsoc.de wrote:

 The Org to Atom exporter I've preliminary announce some weeks ago
 entered a state I consider to be stable and consistent enough to be
 included into Org mode.

 It provides export, publishing and a sitemap functions that let you
 create an Atom feed for a web page project based on (multiple) Org
 mode files.  An example that shows the support of inline images in
 feed entry content can be found [here].

 [here]: http://ictsoc.de/code/org-atom/example.atom

 * Download and installation

  The Org to Atom exporter is maintained in a copy of Org mode's git
  repository in branch org-atom located at

  git://github.com/dmj/dmj-org-mode.git

  You can download the most recent version at

  [http://github.com/dmj/dmj-org-mode/raw/org-atom/lisp/org-atom.el]

  To use the exporter you need a recent version of atom-syndication.el,
  an elisp implementation of the Atom Syndication Format.  You can get
  atom-syndication.el from github, too:

  git://github.com/dmj/atom-syndication.git

 * Usage

  Please see the almost complete documentation below or read via web at

  [http://ictsoc.de/code/org-atom.html]

 * Backward incompatibility

  If you have used an older version of the exporter you need to revise
  your configuration due to incompatible changes.  Most notably:

    - in-buffer options and publishing properties have be (re)renamed
      to start with #+FEED and :feed instead of #+ATOM and :atom;

    - support for the atom:category element is temporarily removed;

    - some default values have changed:

      - content is not published by default

      - names of the atom:updated and atom:published property default to
        atom_updated and atom_published

 * Things yet to be done

  Besides support of even more atom elements (e.g. use tags for the
  atom:category element), the exporter would require a proper
  documentation for the Org mode manual, and of course some real-world
  testing.  Thus I'm interested not just in bugs, glitches,
  inconsistencies, and complains about the exporter but some feedback
  about the present documentation, too.

 * Documentation

                Publish Atom feeds based on Org files
                =

 Date: 2010-06-15 18:49:21 CEST

 Table of Contents
 =
 1 Exporting an Org file to Atom
    1.1 In-buffer options
    1.2 Headline properties
    1.3 Export settings
    1.4 Example
 2 Publish feeds for a web page project
    2.1 Publish a feed for each file in the project
    2.2 Publish a combined feed for project files


 1 Exporting an Org file to Atom
 

 An Atom feed consists of a head with feed meta data (e.g. feed title
 and description) and one or more feed entries.  The exporter maps Org
 mode subtrees to Atom feed entries and requires special in-buffer
 options with feed as well as headline properties with entry specific
 meta data.

 1.1 In-buffer options
 ==

 An Atom feed is identified by a globally unique identifier, preferably
 a UUID.  Such an identifier must be present in a Org file supposed to
 get exported or published to Atom in the =#+FEED_ID= in-buffer option.

 If you do not use a UUID, the value of this in-buffer option must be a
 proper IRI, like for example a URL that identifies this particular
 feed.

 To be able to properly reference feed entry content and the feed
 itself[1], at least the URL of the feed must be given
 by the =#+FEED_URL=.  By default Org assumes the published content
 available in the same place like the feed with the name of the Org
 file and the extension defined in =org-export-html-extension=.

 For example a feed for the file =example.org= with the in-buffer
 option =#+FEED_URL= set to =http://example.tld/feed.atom= is expected
 to reference content located on the URL
 =http://example.tld/example.html=.

 If you indent to use different URLs for the feed and the referenced
 content, you can set the content URL manually by providing the
 in-buffer option =#+FEED_CONTENT_URL=.

 Prospective feed entries are found by using the TAGS/PROP/TODO query
 specified in the =#+FEED_MAP_ENTRIES= option.

 If present, the exporter uses the in-buffer options =#+TITLE= and
 =#+DESCRIPTION=