Re: [Orgmode] Importing text/data on export?

2010-12-01 Thread Eric S Fraga
Luke Crook l...@balooga.com writes:

 I would like to create some technical specifications in a format of 
 (a) Cover Page, (b) Title Page, (c) Revision History, (d) TOC, 
 (e) List of Tables, (f) List of Figures, and (g) Actual 
 specifications/text/etc.

 A-C might be part of each org-mode document, or might only be included on 
 export.
 However there are fields in these sections that are document specific that 
 must 
 be updated on export, for example; title, doc number, revision number. 
 In addition, the Cover Page has to be of the approved format having space 
 for the appropriate signoff signatures for the author and several approvers. 
 Is org-mode capable of this, or is this something that has to be done outside 
 of org-mode?

 For the revision history, I think creating this table on export by 
 including the commit text from git would be great. Does anyone have any
  pointers on how to accomplish this?

 -Luke

Luke,

I guess it all depends on what export target you are aiming for.  If you
want latex (+pdf), much of this can be captured with actual latex
commands (\listoffigures, say).  

Independent of the export target, the revision history could be
generated using babel with the appropriate log command depending on the
version control system you use, as in

--8---cut here---start-8---
#+begin_src sh :results output :exports results
git log -10 --oneline
#+end_src
--8---cut here---end---8---

HTH,
eric
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.99.g9db0.dirty)

___
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: moving in the agenda view is slow

2010-12-01 Thread Eric S Fraga
Eric S Fraga ucec...@ucl.ac.uk writes:

[...]

 In any case, I will try all of this on Tuesday on my office system.

Well, I've tried it and I get essentially the same results as I did on
my home system.  The behaviour that I observed last week seems to have
disappeared.  Although the change in behaviour could be due to org
changing, I think it's actually my X window system driver which was
acting up last week and it could have been causing problems with the
font server...  I'll re-run the timings if and when the slow behaviour
appears again.

In summary, moving within the agenda window is now as it used to be:
fast!

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.99.g9db0.dirty)

___
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-mac-protocol/org-protocol-capture

2010-12-01 Thread Konrad Hinsen

On 30 Nov 2010, at 03:53, Timothy Brown wrote:


I think the intended behavior i'm confused about is remember coming up
instead of the new capture functionality.  I assume that has to do  
with

this line here in the Applescript:

set theProtocol to org-protocol:/mac-remember:/y/

but i'm not sure how to modify this to forego the older remember
functionality and use the newer capture functionality.


That would require new code in org-mac-protocol.el. mac-remember is a  
new protocol implemented in that module, which uses the remember  
framework. Switching to capture would require defining a new protocol  
mac-capture and implement it.


I have actually started doing that and my current version is already  
usable. But I am not happy yet with some of the details. If you want  
to try it, my version of org-mac-protocol.el is attached, as well as  
org-capture.scpt that calls it.


Konrad.



org-mac-protocol.el
Description: Binary data






(*
org-capture.scpt --- make a note in an org-mode file, linking to the  
front

document and any selected text

Copyright (C) 2009, 2010 Christopher Suckling

Author: Christopher Suckling suckling at gmail dot com

This file is Free Software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

It is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
License for more details.

You should have received a copy of the GNU General Public License
along with GNU Emacs; see the file COPYING.  If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.

Vesion: 0.634

Commentary

Part of org-mac-protocol

Installation

1) Open in AppleScript Editor
2) Save as File Format: Script in  ~/Library/Scripts/

Please see org-mac-protocol.org for full installation and usage  
instructions

*)

set ASTID to AppleScript's text item delimiters
set text item delimiters to {:}
set myPath to (path to me) as text
set orgQSLib to (text items 1 through -2 of myPath)  orgQSLib: as  
text

set AppleScript's text item delimiters to ASTID

set getEmacsLib to (load script file ((orgQSLib as text)   
getEmacsClient.scpt))
set getItemMetaLib to (load script file ((orgQSLib as text)   
getItemMetadata.scpt))

global escapeLib
set escapeLib to ((orgQSLib as text)  escape.rb)
set theProtocol to org-protocol:/mac-capture:/w/

tell application System Events
set theApp to item 1 of (get name of processes whose frontmost is true)
end tell

set theScript to getEmacsLib's getEmacsClient()  
getItemMetaLib's getItemMetadata(theProtocol, theApp)


do shell script theScript___
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] (require 'ob-eval) missing in ob-gnuplot.el

2010-12-01 Thread Thomas Holst
Hello,

recently I started using org-babel and I'm really fond of it. It makes
my daily life as an electrical engineer a lot easier! So I would like to
thank you all for org-mode and for org-babel. Both really changed my way
of working.

With a recent org-mode (pull from yesterday evening) I get an error when
I try to eval gnuplot source.

definition of function org-babel-eval-wipe-error-buffer is void

#+begin_src emacs-lisp
  (require 'ob-eval)
#+end_src

fixes this, so I think it is missing in ob-gnuplot.el

Bis neulich ...
  Thomas
-- 
Das Leben ist so einfach,
 dass es schon wieder schwierig ist!

___
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 and XEmacs, indenting too far

2010-12-01 Thread Robert Pluim
Hi, I'm using XEmacs 21.5  (beta29) garbanzo d27c1ee1943b+ [Lucid]
(i686-pc-cygwin, Mule) of Mon Oct 18 2010 on RPluim, with the following
org-capture-templates

((t Todo entry (file+headline ~/org/notes.org Tasks) * TODO %?))

The problem is that for some reason the resulting TODO heading is has 2
extra spaces, and is placed at too deep a level, giving:

* Tasks
***   TODO a task

I've tested this on a fairly recent emacs24 build, and everything works
fine there, so this is probably something XEmacs specific.  Can anyone
suggest any way to track this down (I'd bisect, but I've yet to find a
'good' version)?

Thanks

Robert


___
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] org-agenda: rework ndays and span handling

2010-12-01 Thread Puneeth
On Wed, Dec 1, 2010 at 5:23 AM, Carsten Dominik
carsten.domi...@gmail.com wrote:
 Hi everyone,

 can we have a few testers for this patch?  Apply it an play with your
 agenda, switching from day to week view etc, refresh with r and g, and
 check if everything works as expected?  That would be nice, thanks.

The patch doesn't apply to the current head. Julien, would it be
possible to send another patch? Or could you tell me the commit to
which it should be applied to?

-- Puneeth

___
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: Generate list of all tags in use?

2010-12-01 Thread Uriel Avalos
That's a start but not quite what I was looking for. First, I thinking
of a global tag list. Second, I was thinking in terms of some kind of
agenda view. That function just ouputs the buffer tags in the
mini-buffer at the bottom.

On Wed, 24 Nov 2010 19:15:17 -0800
Richard Lawrence richard.lawre...@berkeley.edu wrote:

 Hi Uriel,
 
  Is there a way to generate a list of all tags in use in all agenda files?
  I'm thinking of something like a tag cloud. 
 
 Would org-get-buffer-tags help you out?
 
 Richard
 
 
 ___
 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] [PATCH] more typos

2010-12-01 Thread Brian Gough
From 04038c5a1f22ecf8219343e5ea80d1c7298edb90 Mon Sep 17 00:00:00 2001
From: Brian Gough b...@network-theory.co.uk
Date: Thu, 25 Nov 2010 17:04:22 +
Subject: [PATCH] more typos

---
 doc/org.texi |   13 +++--
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index a0b1b0b..9637fcb 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -1557,8 +1557,9 @@ to disable them individually.
 @vindex org-cycle-include-plain-lists
 Items can be folded just like headline levels.  Normally this works only if
 the cursor is on a plain list item.  For more details, see the variable
-...@code{org-cycle-include-plain-lists}. to @code{integrate}, plain list items
-will be treated like low-level.  The level of an item is then given by the
+...@code{org-cycle-include-plain-lists}.  If this variable is set to
+...@code{integrate}, plain list items will be treated like low-level
+headlines.  The level of an item is then given by the
 indentation of the bullet/number.  Items are always subordinate to real
 headlines, however; the hierarchies remain completely separated.
 @orgcmd...@key{ret},org-insert-heading}
@@ -9153,7 +9154,7 @@ after the backquote, a help window will pop up.
 @kindex '
 Pressing the single-quote @kbd{'} followed by another character modifies
 the symbol before point with an accent or a font.  If you wait more than
-1.5 seconds after the backquote, a help window will pop up.  Character
+1.5 seconds after the single-quote, a help window will pop up.  Character
 modification will work only inside l...@tex{} fragments, outside the quote
 is normal.
 @end itemize
@@ -11966,7 +11967,7 @@ The @code{:tangle} header argument specifies whether or 
not the code
 block should be included in tangled extraction of source code files.
 
 @itemize @bullet
-...@item @code{yes}
+...@item @code{tangle}
 The code block is exported to a source code file named after the
 basename (name w/o extension) of the Org-mode file.  E.g., @code{:tangle
 yes}.
@@ -12274,7 +12275,7 @@ contents of the standard output stream are returned as 
text. (In certain
 languages this also contains the error output stream; this is an area for
 future work.)
 
-...@subsection @code{:session}
+...@subsection Session
 @subsubsection @code{:results value}
 The code is passed to the interpreter running as an interactive Emacs
 inferior process. The result returned is the result of the last evaluation
@@ -13844,7 +13845,7 @@ Dynamic blocks are enclosed by a BEGIN-END structure 
that assigns a name
 to the block and can also specify parameters for the function producing
 the content of the block.
 
-#+BEGIN:dynamic block
+...@cindex #+BEGIN:dynamic block
 @example
 #+BEGIN: myblock :parameter1 value1 :parameter2 value2 ...
 
-- 
1.6.0.6


___
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] correct grammar

2010-12-01 Thread Brian Gough
From 246fdc680679a86c77c2736629711cd49e626fa2 Mon Sep 17 00:00:00 2001
From: Brian Gough b...@network-theory.co.uk
Date: Thu, 25 Nov 2010 17:08:38 +
Subject: [PATCH] correct grammar

---
 doc/org.texi |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 2814cf5..dce82a1 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -768,8 +768,8 @@ As a project planning environment, Org works by adding 
metadata to outline
 nodes.  Based on this data, specific entries can be extracted in queries and
 create dynamic @i{agenda views}.
 
-Org mode contains the Org Babel environment which allows to work with
-embedded source code block in a file, to facilitate code evaluation,
+Org mode contains the Org Babel environment which allows you to work with
+embedded source code blocks in a file, to facilitate code evaluation,
 documentation, and tangling.
 
 Org's automatic, context-sensitive table editor with spreadsheet
@@ -4769,7 +4769,7 @@ a regular expression and matched against the property 
values.
 @cindex inheritance, of properties
 
 @vindex org-use-property-inheritance
-The outline structure of Org-mode documents lends itself for an
+The outline structure of Org-mode documents lends itself to an
 inheritance model of properties: if the parent in a tree has a certain
 property, the children can inherit this property.  Org-mode does not
 turn this on by default, because it can slow down property searches
-- 
1.6.0.6


___
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] correct language names, acronyms etc.

2010-12-01 Thread Brian Gough
From 2c77e5b2a3b48708b2e0993fe773950332fd6dd2 Mon Sep 17 00:00:00 2001
From: Brian Gough b...@network-theory.co.uk
Date: Thu, 25 Nov 2010 17:07:36 +
Subject: [PATCH] correct language names, acronyms etc.

---
 doc/org.texi |   42 +-
 1 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index f511d36..2814cf5 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -8956,8 +8956,8 @@ variable @code{org-pretty-entities}, or on a per-file 
base with the
 @table @kbd
 @kindex C-c C-x \
 @item C-c C-x \
-Toggle display of entities as UTF8 characters.  This does not change the
-buffer content which remains plain ASCII, but it overlays the UTF8 character
+Toggle display of entities as UTF-8 characters.  This does not change the
+buffer content which remains plain ASCII, but it overlays the UTF-8 character
 for display purposes only.
 @end table
 
@@ -8995,7 +8995,7 @@ subscript, but @samp...@{b@}} will.
 @table @kbd
 @kindex C-c C-x \
 @item C-c C-x \
-In addition to showing entities as UTF8 characters, this command will also
+In addition to showing entities as UTF-8 characters, this command will also
 format sub- and superscripts in a WYSIWYM way.
 @end table
 
@@ -9787,7 +9787,7 @@ toc: @r{Should the table of contents @emph{initially} 
be visible?}
  @r{Even when @code{nil}, you can always get to the toc with 
@kbd{i}.}
 tdepth:  @r{The depth of the table of contents.  The defaults are taken from}
  @r{the variables @code{org-export-headline-levels} and 
@code{org-export-with-toc}.}
-ftoc:@r{Does the css of the page specify a fixed position for the toc?}
+ftoc:@r{Does the CSS of the page specify a fixed position for the toc?}
  @r{If yes, the toc will never be displayed as a section.}
 ltoc:@r{Should there be short contents (children) in each section?}
  @r{Make this @code{above} if the section should be above initial 
text.}
@@ -11182,7 +11182,7 @@ can be used to map arbitrary language names to existing 
major modes.
 Controls the way Emacs windows are rearranged when the edit buffer is created.
 @item org-src-preserve-indentation
 This variable is especially useful for tangling languages such as
-python, in which whitespace indentation in the output is critical.
+Python, in which whitespace indentation in the output is critical.
 @item org-src-ask-before-returning-to-edit-buffer
 By default, Org will ask before returning to an open edit buffer. Set
 this variable to nil to switch without asking.
@@ -11351,17 +11351,17 @@ Code blocks in the following languages are supported.
 @item @b{Language} @tab @b{Identifier} @tab @b{Language} @tab @b{Identifier}
 @item Asymptote @tab asymptote @tab C @tab C
 @item C++ @tab C++ @tab Clojure @tab clojure
-...@item css @tab css @tab ditaa @tab ditaa
+...@item CSS @tab css @tab ditaa @tab ditaa
 @item Graphviz @tab dot @tab Emacs Lisp @tab emacs-lisp
 @item gnuplot @tab gnuplot @tab Haskell @tab haskell
-...@item LaTeX @tab latex @tab Matlab @tab matlab
+...@item LaTeX @tab latex @tab MATLAB @tab matlab
 @item Mscgen @tab mscgen @tab Objective Caml @tab ocaml
-...@item Octave @tab octave @tab OZ @tab oz
+...@item Octave @tab octave @tab Oz @tab oz
 @item Perl @tab perl @tab Python @tab python
 @item R @tab R @tab Ruby @tab ruby
 @item Sass @tab sass @tab GNU Screen @tab screen
 @item shell @tab sh @tab SQL @tab sql
-...@item Sqlite @tab sqlite
+...@item SQLite @tab sqlite
 @end multitable
 
 Language-specific documentation is available for some languages.  If
@@ -11785,7 +11785,7 @@ should be collected from the code block.
 @item @code{value}
 This is the default.  The result is the value of the last statement in the
 code block.  This header argument places the evaluation in functional
-mode.  Note that in some languages, e.g., python, use of this result type
+mode.  Note that in some languages, e.g., Python, use of this result type
 requires that a @code{return} statement be included in the body of the source
 code block. E.g., @code{:results value}.
 @item @code{output}
@@ -11830,7 +11830,7 @@ Result are assumed to be parseable code and are 
enclosed in a code block.
 E.g., @code{:results value code}.
 @item @code{pp}
 The result is converted to pretty-printed code and is enclosed in a code
-block.  This option currently supports Emacs Lisp, python, and ruby.  E.g.,
+block.  This option currently supports Emacs Lisp, Python, and Ruby.  E.g.,
 @code{:results value pp}.
 @end itemize
 
@@ -11868,7 +11868,7 @@ Note that for some languages, including R, gnuplot, 
LaTeX and ditaa,
 graphical output is sent to the specified file without the file being
 referenced explicitly in the code block. See the documentation for the
 individual languages for details. In contrast, general purpose languages such
-as python and ruby require that the code explicitly create output
+as Python and Ruby require that the code explicitly create output
 corresponding to the 

[Orgmode] [Babel] No output returned if just one command is failing

2010-12-01 Thread Sébastien Vauban
#+TITLE: Babel doesn't return output if one command fails
#+DATE:  2010-12-01
#+LANGUAGE:  en_US

* Abstract

When just one command fails in Babel, then there is no shell output at all.

* One command fails

For example, the last command (=datee=) is not found:

#+begin_src sh :var file=(buffer-file-name) :results output :exports both
echo $(basename $file)
datee
#+end_src

#+results:

Result set is empty, while the =echo= command did work, and did produce
output.

* All commands are successful

Only if all commands are successful, I see all results:

#+begin_src sh :var file=(buffer-file-name) :results output :exports both
echo $(basename $file)
date
#+end_src

#+results:
#+begin_example
ecm-babel-one-error-no-results.txt
Wed, Dec 01, 2010 10:21:09 AM
#+end_example

Best regards,
  Seb

-- 
Sébastien Vauban


___
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 1/4] Rename org-agenda-today to org-today.

2010-12-01 Thread Carsten Dominik

Hi Julien,

the purpose of this change is  to be able to use
this also in org.el without having to load org-agenda.el?

- Carsten

On Nov 29, 2010, at 3:18 PM, Julien Danjou wrote:


Signed-off-by: Julien Danjou jul...@danjou.info
---
lisp/org-agenda.el |   18 ++
lisp/org.el|6 ++
2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 48856c9..aee7ca7 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -3208,7 +3208,7 @@ dates.
 org-timeline-show-empty-dates))
 (org-deadline-warning-days 0)
 (org-agenda-only-exact-dates t)
-(today (org-agenda-today))
+(today (org-today))
 (past t)
 args
 s e rtn d emptyp)
@@ -3285,7 +3285,7 @@ When EMPTY is non-nil, also include days  
without any entries.

 (if inactive org-ts-regexp-both org-ts-regexp)))
 dates dates1 date day day1 day2 ts1 ts2)
(if force-today
-   (setq dates (list (org-agenda-today
+   (setq dates (list (org-today
(save-excursion
  (goto-char beg)
  (while (re-search-forward re end t)
@@ -3396,7 +3396,7 @@ given in `org-agenda-start-on-weekday'.
  org-agenda-start-on-weekday nil))
 (thefiles (org-agenda-files nil 'ifmode))
 (files thefiles)
-(today (org-agenda-today))
+(today (org-today))
 (sd (or start-day today))
 (start (if (or (null org-agenda-start-on-weekday)
( org-agenda-ndays 7))
@@ -3839,7 +3839,7 @@ for a keyword.  A numeric prefix directly  
selects the Nth keyword in

  (org-set-sorting-strategy 'todo)
  (org-prepare-agenda TODO)
  (if (and (stringp arg) (not (string-match \\S- arg))) (setq arg  
nil))

-  (let* ((today (org-agenda-today))
+  (let* ((today (org-today))
 (date (calendar-gregorian-from-absolute today))
 (kwds org-todo-keywords-for-agenda)
 (completion-ignore-case t)
@@ -7956,7 +7956,7 @@ belonging to the \Work\ category.
  (let* ((cnt 0) ; count added events
 (org-agenda-new-buffers nil)
 (org-deadline-warning-days 0)
-;; Do not use `org-agenda-today' here because appt only takes
+;; Do not use `org-today' here because appt only takes
 ;; time and without date as argument, so it may pass wrong
 ;; information otherwise
 (today (org-date-to-gregorian
@@ -7999,15 +7999,9 @@ belonging to the \Work\ category.
(message No event to add)
  (message Added %d event%s for today cnt (if ( cnt 1) s  
)


-(defun org-agenda-today ()
-  Return today date, considering `org-extend-today-until'.
-  (time-to-days
-   (time-subtract (current-time)
- (list 0 (* 3600 org-extend-today-until) 0
-
(defun org-agenda-todayp (date)
  Does DATE mean today, when considering `org-extend-today-until'?
-  (let ((today (org-agenda-today))
+  (let ((today (org-today))
	(date (if (and date (listp date)) (calendar-absolute-from-gregorian  
date)

date)))
(eq date today)))
diff --git a/lisp/org.el b/lisp/org.el
index 873b294..6c4c433 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4798,6 +4798,12 @@ The following commands are available:
   (nthcdr 2 time
(current-time)))

+(defun org-today ()
+  Return today date, considering `org-extend-today-until'.
+  (time-to-days
+   (time-subtract (current-time)
+ (list 0 (* 3600 org-extend-today-until) 0
+
 Font-Lock stuff, including the activators

(defvar org-mouse-map (make-sparse-keymap))
--
1.7.2.3


___
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] [PATCH] mismatched quotes

2010-12-01 Thread Brian Gough
From 20ba1bd3800f5865cbbf27ae1d550efb892abd90 Mon Sep 17 00:00:00 2001
From: Brian Gough b...@network-theory.co.uk
Date: Thu, 25 Nov 2010 17:04:41 +
Subject: [PATCH] mismatched quotes

---
 doc/org.texi |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index 9637fcb..5267148 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -12303,7 +12303,7 @@ process. For example, compare the following two blocks:
 : bye
 @end example
 
-In non-session mode, the '2' is not printed and does not appear.
+In non-session mode, the `2' is not printed and does not appear.
 @example
 #+begin_src python :results output :session
  print hello
@@ -12317,8 +12317,8 @@ In non-session mode, the '2' is not printed and does 
not appear.
 : bye
 @end example
 
-But in @code{:session} mode, the interactive interpreter receives input '2'
-and prints out its value, '2'. (Indeed, the other print statements are
+But in @code{:session} mode, the interactive interpreter receives input `2'
+and prints out its value, `2'. (Indeed, the other print statements are
 unnecessary here).
 
 @node Noweb reference syntax, Key bindings and useful functions, Results of 
evaluation, Working With Source Code
-- 
1.6.0.6


___
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] The way Org sections are exported to HTML

2010-12-01 Thread Sébastien Vauban
#+TITLE: The way the sections are exported in HTML DIV
#+DATE:  2010-11-30
#+LANGUAGE:  en_US

* Abstract

Trying to play with showing/hiding the H2 sections of text, I discovered
that the H2 sections end where the first H3 subsection begins.

* Example

This is what this section is about.

** First

First example is...

** Second

Second example is...

* Questions

Shouldn't it make more sense that the H2 contents would *contain* all the
subsection texts (H3, H4, ...)?

The above example is currently exported as:

#+begin_src html
h2 id=sec-2span class=section-number-22/span Example/h2
div class=outline-text-2 id=text-2
pThis is what this section is about./p
/div!-- This is misplaced? --

div id=outline-container-2_1 class=outline-3
h3 id=sec-2_1span class=section-number-32.1/span First/h3
div class=outline-text-3 id=text-2_1
pFirst example is.../p
/div
/div
#+end_src

I would expect that it was like this, instead:

#+begin_src html
h2 id=sec-2span class=section-number-22/span Example/h2
div class=outline-text-2 id=text-2
pThis is what this section is about./p

div id=outline-container-2_1 class=outline-3
h3 id=sec-2_1span class=section-number-32.1/span First/h3
div class=outline-text-3 id=text-2_1
pFirst example is.../p
/div
/div
/div!-- I expected it here... --
#+end_src

Best regards,
  Seb

-- 
Sébastien Vauban


___
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] Shift-arrow and M-arrow bindings in OSX port of Emacs 23

2010-12-01 Thread Gaspaio
hello everybody,

Has any of you  manage to remove de MacUser-friendly custom bindings included 
in the emacs.app version available with Port ?

Bindings including S + arrow or M + arrow and bound to the end/beginning of 
line, region selection commands, etc, instead of the default mode-dependent 
bindings of emacs. 
As a result, I am unable to use most of the interesting commands in org-mode, 
orgtbl-mode, etc. Every time I use S-right, i start selecting a region.
The variable 'org-support-shift-select' don't seem to do anything here.

Any ideas ? I'd like to reset all bindings to emacs default and then customize 
some of them myself.

G


___
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] Blockquotes in lists?

2010-12-01 Thread Richard Lawrence
Dear Orgsters,

Is it possible to embed blockquotes inside list items, so that (e.g.)
they are indented beyond the enclosing list item in LaTeX exports?

So, for example, the following Org list:

* Some headline
  - list item 1
#+BEGIN_QUOTE
A great thing was said!
#+END_QUOTE
  - list item 2

will export to LaTeX as:

% ...
\begin{itemize}
\item list item 1
\end{itemize}

\begin{quote}
A great thing was said!
\end{quote}

\begin{itemize}
\item list item 2
\end{itemize}
% ...

but what I would like is:

% ...
\begin{itemize}
\item list item 1
  \begin{quote}
  A great thing was said!
  \end{quote}
\item list item 2
\end{itemize}
% ...

Is this possible?  If so, what am I missing something?  If not, should
there be a way to get this behavior?

Thanks!

Best,
Richard


___
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] Shift-arrow and M-arrow bindings in OSX port of Emacs 23

2010-12-01 Thread Michael Brand
On Tue, Nov 30, 2010 at 17:19, Gaspaio ggasp...@gmail.com wrote:
 Has any of you  manage to remove de MacUser-friendly custom bindings included 
 in the emacs.app version available with Port ?

If this means an Emacs version that has the variables
ns-*-modifier for Cocoa then you can use these, if not then maybe
the variables mac-*-modifier.

With Mac OS X I use Cocoa Emacs and this

(when (eq system-type 'darwin)
  ;; * modifier keys
  ;;   - key `command': mapped to Emacs Meta
  (setq ns-command-modifier 'meta)
  ;;   - key `option': ignored by Emacs to let the OS do AltGr
  (setq ns-option-modifier 'none))

Michael

___
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-babel] R, :session and empty line in #+results

2010-12-01 Thread Thomas S. Dye

Aloha Bernd,

On Nov 30, 2010, at 1:23 PM, Bernd Weiss wrote:


Dear all,

I would like to use R objects across/among code blocks. Therefore, I  
included the header argument :session which then produces the  
following results:



#+BEGIN_SRC R  :results output :session
x - 1
x
x + 1
#+END_SRC

#+results:
:
: [1] 1
: [1] 2

#+BEGIN_SRC R :results output :session
x
#+END_SRC

#+results:
: [1] 1


How can I get rid of the first line of the first #+results-block?  
BTW: if I remove the :session argument this empty line disappears.




#+BEGIN_SRC R
x - 1
x
x + 1
#+END_SRC

#+results:
: 2

hth,
Tom

Thanks for your help,

Bernd


P.S. As far as I can see my question is not related to Dr. Bate's  
question on Removing the blank lines between code and results  
blocks in LaTeX export http://www.mail-archive.com/emacs-orgmode@gnu.org/msg29957.html 



___
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] The way Org sections are exported to HTML

2010-12-01 Thread Sébastien Vauban
#+TITLE: The way the sections are exported in HTML DIV
#+DATE:  2010-11-30
#+LANGUAGE:  en_US

* Abstract

Trying to play with showing/hiding the H2 sections of text, I discovered
that the H2 sections end where the first H3 subsection begins.

* Example

This is what this section is about.

** First

First example is...

** Second

Second example is...

* Questions

Shouldn't it make more sense that the H2 contents would *contain* all the
subsection texts (H3, H4, ...)?

The above example is currently exported as:

#+begin_src html
h2 id=sec-2span class=section-number-22/span Example/h2
div class=outline-text-2 id=text-2
pThis is what this section is about./p
/div!-- This is misplaced? --

div id=outline-container-2_1 class=outline-3
h3 id=sec-2_1span class=section-number-32.1/span First/h3
div class=outline-text-3 id=text-2_1
pFirst example is.../p
/div
/div
#+end_src

I would expect that it was like this, instead:

#+begin_src html
h2 id=sec-2span class=section-number-22/span Example/h2
div class=outline-text-2 id=text-2
pThis is what this section is about./p

div id=outline-container-2_1 class=outline-3
h3 id=sec-2_1span class=section-number-32.1/span First/h3
div class=outline-text-3 id=text-2_1
pFirst example is.../p
/div
/div
/div!-- I expected it here... --
#+end_src

Best regards,
  Seb

-- 
Sébastien Vauban


___
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] org-agenda: rework ndays and span handling

2010-12-01 Thread Puneeth
On Wed, Dec 1, 2010 at 2:54 PM, Julien Danjou jul...@danjou.info wrote:
 On Wed, Dec 01 2010, Puneeth wrote:

 The patch doesn't apply to the current head. Julien, would it be
 possible to send another patch? Or could you tell me the commit to
 which it should be applied to?

 No problem, here's a rebased patch on master.

Thanks.  I tested the patch and works fine for me.

-- Puneeth

___
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: [Babel] Arguments...

2010-12-01 Thread Sébastien Vauban
Hi Eric,

Eric Schulte wrote:
 Sébastien Vauban wxhgmqzgw...@spammotel.com writes:
 The variables are not exported to HTML (and LaTeX?), making the readability
 of such a documented code a bit difficult. Feature or bug?

 The variable names should be exported to both HTML and LaTeX (when
 org-export-latex-listings is set to true) when the following declaration
 schema is used (at least they are for me).

 #+source: something(x=9)
 #+begin_src emacs-lisp
   x
 #+end_src

I confirm that variable names are not exported when they don't get a value,
such as here:

#+source: add-column-in-table(table, column, type, nullability)
#+begin_src sql
-- add column `$column' (if column does not exist yet)
IF NOT EXISTS (SELECT *
   FROM INFORMATION_SCHEMA.COLUMNS
   WHERE TABLE_NAME = '$table'
   AND COLUMN_NAME = '$column')
BEGIN
ALTER TABLE $table
ADD $column $type $nullability
END
#+end_src

Best regards,
  Seb

-- 
Sébastien Vauban


___
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] Shift-arrow and M-arrow bindings in OSX port of Emacs 23

2010-12-01 Thread Gaspaio
Well, the problem is not with the CMD or the Alt Keys on my MacBook keyboard, 
but with the Shift key.
I solved part of my problem by binding the Meta to CMD and leaving the 'Fn' for 
the system, but how do i deal with shift ?

I don't seem to have access to the commands org-shiftup, org-shiftdown, …
When i set 'shift-select-mode' to nil, i still don't have access to these 
commands, and i think its because S-up is being translated to up, etc.
How can i stop this translation ? Or should I simply remap the org-shiftup/down 
... commands to something line C-up ?

I can't seem to find any doc online on this, but i doubt I'm the only one 
affected ...

Thanks.
R

On Dec 1, 2010, at 7:37 AM, Michael Brand wrote:

 On Tue, Nov 30, 2010 at 17:19, Gaspaio ggasp...@gmail.com wrote:
 Has any of you  manage to remove de MacUser-friendly custom bindings 
 included in the emacs.app version available with Port ?
 
 If this means an Emacs version that has the variables
 ns-*-modifier for Cocoa then you can use these, if not then maybe
 the variables mac-*-modifier.
 
 With Mac OS X I use Cocoa Emacs and this
 
 (when (eq system-type 'darwin)
  ;; * modifier keys
  ;;   - key `command': mapped to Emacs Meta
  (setq ns-command-modifier 'meta)
  ;;   - key `option': ignored by Emacs to let the OS do AltGr
  (setq ns-option-modifier 'none))
 
 Michael


___
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 2/2] org-publish

2010-12-01 Thread Manuel Giraud

This second patch (that should be applied after the first one) adds a
formating option to sitemap entries. One can now use a formated string
to generate a sitemap entry. This formated string currently understands
title (%T), author (%A) and date (%D).

diff --git a/lisp/org-publish.el b/lisp/org-publish.el
index 296921f..ec58af0 100644
--- a/lisp/org-publish.el
+++ b/lisp/org-publish.el
@@ -267,6 +267,22 @@ You can overwrite this default per project in your
   :group 'org-publish
   :type 'boolean)
 
+(defcustom org-publish-sitemap-date-format %Y-%m-%d
+  Format for `format-time-string' which is used to print a date
+in the sitemap.
+  :group 'org-publish
+  :type 'string)
+
+(defcustom org-publish-sitemap-file-entry-format [%T]
+  How a sitemap file entry is formated.
+Watch out the text used for the link should between brackets.
+
+%T is the title.
+%A is the author.
+%D is the date formated using `org-publish-sitemap-date-format'.
+  :group 'org-publish
+  :type 'string)
+
 
 ;;; Timestamp-related functions
 
@@ -370,6 +386,8 @@ This splices all the components into the list.
 (defvar sitemap-sort-folders)
 (defvar sitemap-ignore-case)
 (defvar sitemap-requested)
+(defvar sitemap-date-format)
+(defvar sitemap-file-entry-format)
 (defun org-publish-compare-directory-files (a b)
   Predicate for `sort', that sorts folders and files for sitemap.
   (let ((retval t))
@@ -392,8 +410,10 @@ This splices all the components into the list.
 (not (string-lessp B A))
 		((or (equal sitemap-sort-files 'chronologically)
 		 (equal sitemap-sort-files 'anti-chronologically))
-		 (let ((A (org-publish-find-date a))
-		   (B (org-publish-find-date b)))
+		 (let* ((adate (org-publish-find-date a))
+			(bdate (org-publish-find-date b))
+			(A (+ (lsh (car adate) 16) (cadr adate)))
+			(B (+ (lsh (car bdate) 16) (cadr bdate
 		   (setq retval (if (equal sitemap-sort-files 'chronologically)
 (= A B)
   (= A B)))
@@ -695,6 +715,10 @@ If :makeindex is set, also produce a file theindex.org.
 sitemap.org))
 	  (sitemap-function (or (plist-get project-plist :sitemap-function)
 'org-publish-org-sitemap))
+	  (sitemap-date-format (or (plist-get project-plist :sitemap-date-format)
+   org-publish-sitemap-date-format))
+	  (sitemap-file-entry-format (or (plist-get project-plist :sitemap-file-entry-format)
+	 org-publish-sitemap-file-entry-format))
 	  (preparation-function (plist-get project-plist :preparation-function))
 	  (completion-function (plist-get project-plist :completion-function))
 	  (files (org-publish-get-base-files project exclude-regexp)) file)
@@ -770,12 +794,27 @@ Default for SITEMAP-FILENAME is 'sitemap.org'.
 		  (setq indent-str (make-string
 	(+ (length indent-str) 2) ?\ )))
 	;; This is common to 'flat and 'tree
-	(insert (concat indent-str  + [[file: link ][
-			(org-publish-find-title file)
-			]]\n)
+	(let ((entry
+		   (org-publish-format-file-entry sitemap-file-entry-format 
+		  file project-plist))
+		  (regexp \\(.*\\)\\[\\([^][]+\\)\\]\\(.*\\)))
+	  (string-match regexp entry)
+	  (insert (concat indent-str  +  (match-string 1 entry)
+			  [[file: link ][
+			  (match-string 2 entry)
+			  ]] (match-string 3 entry) \n))
   (save-buffer))
 (or visiting (kill-buffer sitemap-buffer
 
+(defun org-publish-format-file-entry (fmt file project-plist)
+  (org-replace-escapes fmt
+		   (list (cons %T (org-publish-find-title file))
+			 (cons %D (format-time-string 
+	 sitemap-date-format 
+	 (org-publish-find-date file)))
+			 (cons %A (or (plist-get project-plist :author)
+	user-full-name)
+			
 (defun org-publish-find-title (file)
   Find the title of FILE in project.
   (or
@@ -800,7 +839,9 @@ Default for SITEMAP-FILENAME is 'sitemap.org'.
 (defun org-publish-find-date (file)
   Find the date of FILE in project.
 If FILE provides a #+date keyword use it else use the file
-system's modification time.
+system's modification time.
+
+It returns time in `current-time' format.
   (let ((visiting (find-buffer-visiting file)))
 (save-excursion
   (switch-to-buffer (or visiting (find-file file)))
@@ -809,10 +850,9 @@ system's modification time.
 	(unless visiting
 	  (kill-buffer (current-buffer)))
 	(if date
-	(let ((dt (org-time-string-to-time date)))
-	  (+ (lsh (car dt) 16) (cadr dt)))
+	(org-time-string-to-time date)
 	  (when (file-exists-p file)
-	(org-publish-cache-ctime-of-src file)))
+	(nth 5 (file-attributes file
 
 
 ;;; Interactive publishing functions

-- 
Manuel Giraud
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org

Re: [Orgmode] The way Org sections are exported to HTML

2010-12-01 Thread Manuel Giraud
Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Shouldn't it make more sense that the H2 contents would *contain* all the
 subsection texts (H3, H4, ...)?

I agree that this make more sense and think it is required for someone
who wants to use an org-mode customized css.

Best regards,
-- 
Manuel Giraud

___
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] Blockquotes in lists?

2010-12-01 Thread Nicolas Goaziou
Hello,

 Richard Lawrence writes:

 Is it possible to embed blockquotes inside list items, so that
 (e.g.) they are indented beyond the enclosing list item in LaTeX
 exports?

This is a work in progress. There should be a testing phase related to
it soon.

Regards,

-- Nicolas

___
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-babel] R, :session and empty line in #+results

2010-12-01 Thread Bernd Weiss

Am 01.12.2010 02:19, schrieb Thomas S. Dye:

Aloha Bernd,

On Nov 30, 2010, at 1:23 PM, Bernd Weiss wrote:


Dear all,

I would like to use R objects across/among code blocks. Therefore, I
included the header argument :session which then produces the
following results:


#+BEGIN_SRC R :results output :session
x - 1
x
x + 1
#+END_SRC

#+results:
:
: [1] 1
: [1] 2

#+BEGIN_SRC R :results output :session
x
#+END_SRC

#+results:
: [1] 1


How can I get rid of the first line of the first #+results-block? BTW:
if I remove the :session argument this empty line disappears.



#+BEGIN_SRC R
x - 1
x
x + 1
#+END_SRC

#+results:
: 2



Hi Tom,

Thanks for your reply!

I should have noted that I am preparing a beamer presentation and I need 
all the code and the results. So, your answer does not solve my problem.


Maybe this is another information I should have given: To control 
org-babel's behaviour, I am defining the following buffer-wide header 
arguments:


#+BABEL: :results output replace :exports both :comments both :session


Bernd

___
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] org-agenda: rework ndays and span handling

2010-12-01 Thread Eric S Fraga
Carsten Dominik carsten.domi...@gmail.com writes:

 Hi everyone,

 can we have a few testers for this patch?  Apply it an play with your
 agenda, switching from day to week view etc, refresh with r and g,
 and check if everything works as expected?  That would be nice,
 thanks.

 - Carsten

Mostly works fine but there is one problem I have encountered.  If you
change your view (mine defaults to day so I sometimes switch to week
view), you can go forward and backward as expected.  However, if you
/jump/ (j in agenda view) to a given date, the view resets to the
default (well, to single day view in my case).  I prefer the view to
remain as I have specified it last until I change it myself.

Thanks,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.159.g23265)

___
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] Error in pre-command-hook

2010-12-01 Thread Thorsten
When entering a date and pressing M-+ to increment 1 day I get the following 
error message:
Error in pre-command-hook: (wrong-type-argument symbolp 
(lambda nil (interactive) (org-eval-in-calendar 
(quote (calendar-forward-day 1)

This only happens once, the first time I press M-+ in a new Emacs session. 
Then I can try again and everything works fine. 

cheers 
Thorsten

PS
GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-03-29 
on rothera, modified by Debian
Org-mode version 7.3




___
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] Capture into subheading of current headline

2010-12-01 Thread Carsten Dominik

Hi Nathan,

On Nov 28, 2010, at 8:10 PM, Nathan Neff wrote:


I think I'm missing something obvious here -- I can't
define a capture template that puts the results as a sub-heading
of the heading that the cursor is currently in.


You can insert a capture entry at the location where you are
at using a zero prefix to the capture command:

C-0 C-c r

Does that do what you want?  It hast the advantage that
it works for any entry-like templates in your setup.

I guess we could make a special target for filing as child
of current heading if mor ethan one person found this useful

- Carsten



For example:

* Some Heading
cursor is here
some text in this heading
I want to use org-capture to put a subheading here

I tried defining a template that used the org-end-of-subtree  
function:


(setq org-capture-templates
`((x Subheading entry (function org-end-of-subtree) *
%?\n\n :clock-in t :clock-resume t)
 )
 )

But, the captured data is inserted as a sibling heading
in front of the heading where the cursor is, like this:

* The result of my capture template
* Some Heading
cursor is here
**  I want the result of the capture template here

I've also tried outline-next-heading, and outline-end-of-subtree
but they add
non-subtree headlines, and insert into #+begin_src / #+end_src blocks,
which is undesirable

I've also tried the solution proposed in this thread, but haven't
quite got it correct:
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28946.html

Any help appreciated,

Thanks,
--Nate

___
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: [PATCH 1/4] Rename org-agenda-today to org-today.

2010-12-01 Thread Bernt Hansen
Julien Danjou jul...@danjou.info writes:

 On Tue, Nov 30 2010, Carsten Dominik wrote:

 the purpose of this change is  to be able to use
 this also in org.el without having to load org-agenda.el?

 Yes, and to be consistent. The variable org-extend-today-until is
 defined in org.el, it seems more general than org-agenda, i.e. it has no
 sense to be defined as an agenda function.

Hi Julien,

These details should be in the commit message text when you post patches
to the list.  My initial reaction to your patches was 'Why do we need
this?'

Please add enough detail in the commit message text in the future so the
purpose of the patch is clearly stated.

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] [PATCH] org-agenda: rework ndays and span handling

2010-12-01 Thread Julien Danjou
On Wed, Dec 01 2010, Eric S Fraga wrote:

 Mostly works fine but there is one problem I have encountered.  If you
 change your view (mine defaults to day so I sometimes switch to week
 view), you can go forward and backward as expected.  However, if you
 /jump/ (j in agenda view) to a given date, the view resets to the
 default (well, to single day view in my case).  I prefer the view to
 remain as I have specified it last until I change it myself.

Good catch. Patch updated fixing that.

From 884f93e653ab82e37d34a72d33a87050e49d7493 Mon Sep 17 00:00:00 2001
From: Julien Danjou jul...@danjou.info
Date: Fri, 26 Nov 2010 14:22:17 +0100
Subject: [PATCH] org-agenda: rework ndays and span handling

* org-agenda.el (org-agenda-custom-commands-local-options):
Allow org-agenda-span to be a symbol.
(org-agenda-ndays): Make obsolete.
(org-agenda-span): New variable superseding org-agenda-ndays.
(org-agenda-menu): Use org-agenda-current-span.
(org-agenda-current-span): New local variable storing current
span.
(org-agenda-list): Take a span instead of ndays as argument.
This function is now responsible for computing the ndays based
on span.
(org-agenda-ndays-to-span): Return span only if number of days
really matches.
(org-agenda-span-to-ndays): New function.
(org-agenda-manipulate-query): Use org-agenda-compute-starting-span.
(org-agenda-goto-today): Use org-agenda-compute-starting-span.
(org-agenda-later): Do not give compute a new span, use the
current one.
(org-agenda-day-view, org-agenda-week-view)
(org-agenda-month-view, org-agenda-year-view): Stop touching
org-agenda-ndays.
(org-agenda-change-time-span): Only compute starting-span.
(org-agenda-compute-starting-span): New function derived from
the old org-agenda-compute-time-span.
(org-agenda-set-mode-name): Compute mode based on
org-agenda-current-span.
(org-agenda-span-name): New function.

* org-mouse.el: Replace Replace org-agenda-ndays by
org-agenda-current-span.

* org.texi, orgguide.texi: Replace org-agenda-ndays by org-agenda-span.

Signed-off-by: Julien Danjou jul...@danjou.info
---
 doc/org.texi   |   14 ++--
 doc/orgguide.texi  |6 +-
 lisp/org-agenda.el |  190 +--
 lisp/org-mouse.el  |4 +-
 4 files changed, 120 insertions(+), 94 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index e2e9af5..b5b70c9 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -6966,14 +6966,14 @@ paper agenda, showing all the tasks for the current week or day.
 @table @kbd
 @cindex org-agenda, command
 @orgcmd{C-c a a,org-agenda-list}
-...@vindex org-agenda-ndays
+...@vindex org-agenda-span
 Compile an agenda for the current week from a list of Org files.  The agenda
 shows the entries for each day.  With a numeric pre...@footnote{for backward
 compatibility, the universal prefix @kbd{C-u} causes all TODO entries to be
 listed before the agenda.  This feature is deprecated, use the dedicated TODO
 list, or a block agenda instead (@pxref{Block agenda}).}  (like @kbd{C-u 2 1
 C-c a a}) you may set the number of days to be displayed (see also the
-variable @code{org-agenda-ndays})
+variable @code{org-agenda-span})
 @end table
 
 Remote editing from the agenda buffer means, for example, that you can
@@ -7621,10 +7621,10 @@ argument as well.  For example, @kbd{200712 w} will jump to week 12 in
 be mapped to the interval 1938-2037.
 @c
 @orgcmd{f,org-agenda-later}
-...@vindex org-agenda-ndays
-Go forward in time to display the following @code{org-agenda-ndays} days.
+...@vindex org-agenda-span
+Go forward in time to display the following @code{org-agenda-current-span} days.
 For example, if the display covers a week, switch to the following week.
-With prefix arg, go forward that many times @code{org-agenda-ndays} days.
+With prefix arg, go forward that many times @code{org-agenda-current-span} days.
 @c
 @orgcmd{b,org-agenda-earlier}
 Go backward in time to display earlier dates.
@@ -8369,7 +8369,7 @@ or, if you need to modify some paramet...@footnote{quoting depends on the
 system you use, please check the FAQ for examples.}
 @example
 emacs -eval '(org-batch-store-agenda-views  \
-  org-agenda-ndays 30   \
+  org-agenda-span month \
   org-agenda-start-day 2007-11-01 \
   org-agenda-include-diary nil  \
   org-agenda-files (quote (~/org/project.org)))'  \
@@ -14033,7 +14033,7 @@ You may also modify parameters on the fly like this:
 @example
 emacs -batch -l ~/.emacs  \
-eval '(org-batch-agenda a   \
-org-agenda-ndays 30   \
+org-agenda-span month \
 org-agenda-include-diary nil  \
 org-agenda-files (quote (~/org/project.org)))'  \
| lpr
diff --git 

Re: [Orgmode] Capture into subheading of current headline

2010-12-01 Thread Carsten Dominik

Hi Nathan,

On Nov 28, 2010, at 8:10 PM, Nathan Neff wrote:


I think I'm missing something obvious here -- I can't
define a capture template that puts the results as a sub-heading
of the heading that the cursor is currently in.


To insert a capture entry at point can be done with a zero prefix  
argument


C-0 C-c r

which will work for any entry templates you have defined.

I guess we could also have a special target for this.
To make your own, make the target function point at the *parent*  
headline.


- Carsten



For example:

* Some Heading
cursor is here
some text in this heading
I want to use org-capture to put a subheading here

I tried defining a template that used the org-end-of-subtree  
function:


(setq org-capture-templates
`((x Subheading entry (function org-end-of-subtree) *
%?\n\n :clock-in t :clock-resume t)
 )
 )

But, the captured data is inserted as a sibling heading
in front of the heading where the cursor is, like this:

* The result of my capture template
* Some Heading
cursor is here
**  I want the result of the capture template here

I've also tried outline-next-heading, and outline-end-of-subtree
but they add
non-subtree headlines, and insert into #+begin_src / #+end_src blocks,
which is undesirable

I've also tried the solution proposed in this thread, but haven't
quite got it correct:
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28946.html

Any help appreciated,

Thanks,
--Nate

___
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] Bug report : choke on clocktable mode with accents in headlines

2010-12-01 Thread Benjamin Drieu

Hey org-moders,

when going to clocktable mode in an agenda buffer, I get the following
error if one of the headlines contains an accent.  If no headline
contain any accent, everything works as expected.

I am running org-mode 7.3 on GNU emacs 22.3.1.

Here is the backtrace:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  replace-match(nil t t #(file:/home/benj/.org/work.org::Tasks%20Alc\x8f4ve 0 
31 nil 31 36 (fontified nil org-category work face org-level-1 
:org-clock-minutes 296) 36 39 nil 39 43 (fontified nil org-category work face 
org-level-1 :org-clock-minutes 296) 43 45 (fontified nil org-category work 
face org-level-1 :org-clock-minutes 296)))
  org-link-escape(#(file:/home/benj/.org/work.org::Tasks Alc\x8f4ve 0 31 nil 
31 36 (fontified nil org-category work face org-level-1 :org-clock-minutes 
296) 36 37 nil 37 41 (fontified nil org-category work face org-level-1 
:org-clock-minutes 296) 41 43 (fontified nil org-category work face 
org-level-1 :org-clock-minutes 296)))
  org-make-link-string(#(file:/home/benj/.org/work.org::Tasks Alc\x8f4ve 0 31 
nil 31 36 (fontified nil org-category work face org-level-1 
:org-clock-minutes 296) 36 37 nil 37 41 (fontified nil org-category work face 
org-level-1 :org-clock-minutes 296) 41 43 (fontified nil org-category work 
face org-level-1 :org-clock-minutes 296)) #(Tasks Alc\x8f4ve 0 10 
(:org-clock-minutes 296 face org-level-1 org-category work fontified nil) 10 
12 (:org-clock-minutes 296 face org-level-1 org-category work fontified nil)))
  byte-code(ÆÇ 
ÈÉÊ\ÉË\ÉÌ\...@ÉÍ\AÉÎ\†%ÏBÉÐ\CÉÑ\DÉÒ\EÉÓ\FÉÔ\GÉÕ\HÉÖ\IÉ×\‰J…`ØJ!AKȉLMȉNOȉPQȉRSȉTUȉVWȉXYȉZ[ȉ\\]ȉ^_ȉ`aÈbCƒÈH„¿Fƒ»G„¿ÙÚ!ˆÛ
!ˆÜÝÈ\ˆhƒåÞhÈß#�...@fxa@GàX8^F¨ƒñáF!FG¨ƒýáG!GFƒFƒâãàf...@fa@$FGƒ3Gƒ3âãàg...@ga@$GFƒCäåæçF!\!FGƒSäåæçG!\!G
   
`ȓˆ`L`[\fƒt\fƒt...@9ƒtè\f!‚¡\fé=ƒêß!‚¡\fë=ƒ’êß!ì\f!‚¡\fí=ƒ¡ìî 
C!ß_\f…§\f`Œ\fƒr\fï=ƒ¹~ˆ‚r\fð=ƒÅñ ˆ‚r\fò=ƒÖó „Ëñ 
ˆ‚r\f9ƒøôõö\f!\ƒø÷øùö\f!\!OÝúˆñ 
ˆ‚r`ƒr\fcéû!dÈ/üdËß#düdÌß#düdÊï#dýc!ˆc‰...@‰/ƒqrþ/!qˆÿbgd!‰]ƒmh/ijb!k]R\\\B\\\n†iÿb\\)‚',[bˆ`„܁lFGK…Šm#ˆebˆßaoƒ°aÈaƒ°n`o\ƒ°e‰N„¾p`o\‰NƒÜNbˆnNo\‰Mƒ’Šqù!ˆrs!ƒØtù•ù”Z!‰OƒØOBXƒØDƒuO\A†v‚vPI„øà!‚?wâxî
 y 
ezŽ{øà!!*#øà!\QE…~|`!Su}S\A†~u~S\A†~uS\A†~u€S\a...@„”oùuƒ”\\b\\‚ƒo!„eƒ®r„p‚±vpqp…†os‡\PjM!P…°
\\B\\)‚’\\Ÿ\\
ƒù\\…Łˆ‰\\Š#‚Å   
bˆ‹A†/ŒfA!ùŽOHƒ'^‘Q‚*v’°`ƒ:“‚=v”EƒK•‚Nv–%ˆ\n†Yb‹—`ƒk„‚nvEƒy˜‚|„™j\n†‡ÿ!šˆ›È\\\‰\\@;ƒ»...@gùvƒ»\\@ÿàOšƒ»\\ˆ\\A\\‹ˆ‰›È\\\`ƒÖœ‚فŠ#!ˆù!ˆÉž\‰VƒQVŸ=ƒ4`ƒù‚ÿB\\Ï\\W⁠Wà`ƒù‚ÿÏ\\`ƒ$ù‚%ÿÏ\\WScˆßU‚€V;ƒH¡V±ˆßU‚€ف¢!ˆ‚€É
£\‰T;ƒ€ô¤T\ƒ€ßUŠøùɁ£\\±ˆqÿ!ˆLbˆ¥Èwˆ¦ 
ˆUƒ·VŸ=ƒ¯Š§Wȁ¨#ˆ©cˆ)ª«!ˆ_ƒÄùuˆ¬ ˆ\n.(‡ [hlchars ins 
total-time params scope tostring ((1 . *) (2 . /)) make-marker nil 
plist-get :scope :tostring :multifile :header :maxlevel 3 :step :emphasize 
:timestamp :tstart :tend :block :link :tags org-make-tags-matcher error 
Clocktable `:step' can only be used with `:block' or `:tstart,:end' 
org-clocktable-steps throw exit org-clock-special-range t 2 
calendar-gregorian-from-absolute format %4d-%02d-%02d org-float-time apply 
encode-time org-parse-time-string eval agenda org-agenda-files 
agenda-with-archives org-add-archive-files file-with-archives buffer-file-name 
file subtree org-narrow-to-subtree ...] 14)
  org-dblock-write:clocktable((:name clocktable :link t :maxlevel 2 :tstart 
734105 :tend 734106 :scope file :indentation-column 0 :content \n :tostring t 
:multifile t))
  byte-code(ÆÇ 
ÈÉÊ\ÉË\ÉÌ\...@ÉÍ\AÉÎ\†%ÏBÉÐ\CÉÑ\DÉÒ\EÉÓ\FÉÔ\GÉÕ\HÉÖ\IÉ×\‰J…`ØJ!AKȉLMȉNOȉPQȉRSȉTUȉVWȉXYȉZ[ȉ\\]ȉ^_ȉ`aÈbCƒÈH„¿Fƒ»G„¿ÙÚ!ˆÛ
!ˆÜÝÈ\ˆhƒåÞhÈß#�...@fxa@GàX8^F¨ƒñáF!FG¨ƒýáG!GFƒFƒâãàf...@fa@$FGƒ3Gƒ3âãàg...@ga@$GFƒCäåæçF!\!FGƒSäåæçG!\!G
   
`ȓˆ`L`[\fƒt\fƒt...@9ƒtè\f!‚¡\fé=ƒêß!‚¡\fë=ƒ’êß!ì\f!‚¡\fí=ƒ¡ìî 
C!ß_\f…§\f`Œ\fƒr\fï=ƒ¹~ˆ‚r\fð=ƒÅñ ˆ‚r\fò=ƒÖó „Ëñ 
ˆ‚r\f9ƒøôõö\f!\ƒø÷øùö\f!\!OÝúˆñ 
ˆ‚r`ƒr\fcéû!dÈ/üdËß#düdÌß#düdÊï#dýc!ˆc‰...@‰/ƒqrþ/!qˆÿbgd!‰]ƒmh/ijb!k]R\\\B\\\n†iÿb\\)‚',[bˆ`„܁lFGK…Šm#ˆebˆßaoƒ°aÈaƒ°n`o\ƒ°e‰N„¾p`o\‰NƒÜNbˆnNo\‰Mƒ’Šqù!ˆrs!ƒØtù•ù”Z!‰OƒØOBXƒØDƒuO\A†v‚vPI„øà!‚?wâxî
 y 
ezŽ{øà!!*#øà!\QE…~|`!Su}S\A†~u~S\A†~uS\A†~u€S\a...@„”oùuƒ”\\b\\‚ƒo!„eƒ®r„p‚±vpqp…†os‡\PjM!P…°
\\B\\)‚’\\Ÿ\\
ƒù\\…Łˆ‰\\Š#‚Å   

Re: [Orgmode] Re: moving in the agenda view is slow

2010-12-01 Thread Eric S Fraga
Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi Rainer,

 Rainer Stengele wrote:
 after disabling the showing of the outline path in agenda views:

[...]


 What do you exactly mean by: disabling the showing of the outline path in 
 agenda
 views?

 Best regards,
   Seb

I think he means the display that appears in the mini-buffer showing the
headline structure that leads to the particular element in the agenda
view.  This is fontified (quite nicely, actually) and I was suspecting
that this is what was causing a slowdown on my system as well which is
why I think the problem has something to do with the windowing system
and fonts...

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.99.g9db0.dirty)

___
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] [Babel] No output returned if just one command is failing

2010-12-01 Thread Eric Schulte
Hi Seb,

I don't forsee adding partial results insertion both because

- it would add a good deal of complexity to the code to insert results
  part-way through a run

- the current behavior of only inserting results on a fully successful
  run is reasonable and is probably more obvious (at least to me) than
  inserting partial results

Best -- Eric

Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 #+TITLE: Babel doesn't return output if one command fails
 #+DATE:  2010-12-01
 #+LANGUAGE:  en_US

 * Abstract

 When just one command fails in Babel, then there is no shell output at all.

 * One command fails

 For example, the last command (=datee=) is not found:

 #+begin_src sh :var file=(buffer-file-name) :results output :exports both
 echo $(basename $file)
 datee
 #+end_src

 #+results:

 Result set is empty, while the =echo= command did work, and did produce
 output.

 * All commands are successful

 Only if all commands are successful, I see all results:

 #+begin_src sh :var file=(buffer-file-name) :results output :exports both
 echo $(basename $file)
 date
 #+end_src

 #+results:
 #+begin_example
 ecm-babel-one-error-no-results.txt
 Wed, Dec 01, 2010 10:21:09 AM
 #+end_example


 Best regards,
   Seb

___
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][Babel] (require 'ob-eval) missing in ob-gnuplot.el

2010-12-01 Thread Eric Schulte
Hi Thomas,

Thomas Holst thomas.ho...@de.bosch.com writes:

 Hello,

 recently I started using org-babel and I'm really fond of it. It makes
 my daily life as an electrical engineer a lot easier! So I would like to
 thank you all for org-mode and for org-babel. Both really changed my way
 of working.


That's great to hear, thanks for sharing.


 With a recent org-mode (pull from yesterday evening) I get an error when
 I try to eval gnuplot source.

 definition of function org-babel-eval-wipe-error-buffer is void

 #+begin_src emacs-lisp
   (require 'ob-eval)
 #+end_src

 fixes this, so I think it is missing in ob-gnuplot.el


I've just pushed up a fix which should ensure that ob-eval is required
whenever ob is required (including gnuplot).

Cheers -- Eric


 Bis neulich ...
   Thomas

___
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-babel] R, :session and empty line in #+results

2010-12-01 Thread Eric Schulte
Hi Bernd,

I've just pushed up a change which should remove these empty lines.

Best -- Eric

Bernd Weiss bernd.we...@uni-koeln.de writes:

 Am 01.12.2010 02:19, schrieb Thomas S. Dye:
 Aloha Bernd,

 On Nov 30, 2010, at 1:23 PM, Bernd Weiss wrote:

 Dear all,

 I would like to use R objects across/among code blocks. Therefore, I
 included the header argument :session which then produces the
 following results:


 #+BEGIN_SRC R :results output :session
 x - 1
 x
 x + 1
 #+END_SRC

 #+results:
 :
 : [1] 1
 : [1] 2

 #+BEGIN_SRC R :results output :session
 x
 #+END_SRC

 #+results:
 : [1] 1


 How can I get rid of the first line of the first #+results-block? BTW:
 if I remove the :session argument this empty line disappears.


 #+BEGIN_SRC R
 x - 1
 x
 x + 1
 #+END_SRC

 #+results:
 : 2


 Hi Tom,

 Thanks for your reply!

 I should have noted that I am preparing a beamer presentation and I
 need all the code and the results. So, your answer does not solve my
 problem.

 Maybe this is another information I should have given: To control
 org-babel's behaviour, I am defining the following buffer-wide header
 arguments:

 #+BABEL: :results output replace :exports both :comments both :session


 Bernd

 ___
 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] [PATCH] org-agenda: rework ndays and span handling

2010-12-01 Thread Julien Danjou
On Wed, Dec 01 2010, Puneeth wrote:

 The patch doesn't apply to the current head. Julien, would it be
 possible to send another patch? Or could you tell me the commit to
 which it should be applied to?

No problem, here's a rebased patch on master.

From f265c3fa8cbf448a13f4df5161b077cbad9dd659 Mon Sep 17 00:00:00 2001
From: Julien Danjou jul...@danjou.info
Date: Fri, 26 Nov 2010 14:22:17 +0100
Subject: [PATCH] org-agenda: rework ndays and span handling

* org-agenda.el (org-agenda-custom-commands-local-options):
Allow org-agenda-span to be a symbol.
(org-agenda-ndays): Make obsolete.
(org-agenda-span): New variable superseding org-agenda-ndays.
(org-agenda-menu): Use org-agenda-current-span.
(org-agenda-current-span): New local variable storing current
span.
(org-agenda-list): Take a span instead of ndays as argument.
This function is now responsible for computing the ndays based
on span.
(org-agenda-ndays-to-span): Return span only if number of days
really matches.
(org-agenda-span-to-ndays): New function.
(org-agenda-manipulate-query): Use org-agenda-compute-starting-span.
(org-agenda-goto-today): Use org-agenda-compute-starting-span.
(org-agenda-later): Do not give compute a new span, use the
current one.
(org-agenda-day-view, org-agenda-week-view)
(org-agenda-month-view, org-agenda-year-view): Stop touching
org-agenda-ndays.
(org-agenda-change-time-span): Only compute starting-span.
(org-agenda-compute-starting-span): New function derived from
the old org-agenda-compute-time-span.
(org-agenda-set-mode-name): Compute mode based on
org-agenda-current-span.
(org-agenda-span-name): New function.

* org-mouse.el: Replace Replace org-agenda-ndays by
org-agenda-current-span.

* org.texi, orgguide.texi: Replace org-agenda-ndays by org-agenda-span.

Signed-off-by: Julien Danjou jul...@danjou.info
---
 doc/org.texi   |   14 ++--
 doc/orgguide.texi  |6 +-
 lisp/org-agenda.el |  188 +--
 lisp/org-mouse.el  |4 +-
 4 files changed, 119 insertions(+), 93 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index e2e9af5..b5b70c9 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -6966,14 +6966,14 @@ paper agenda, showing all the tasks for the current week or day.
 @table @kbd
 @cindex org-agenda, command
 @orgcmd{C-c a a,org-agenda-list}
-...@vindex org-agenda-ndays
+...@vindex org-agenda-span
 Compile an agenda for the current week from a list of Org files.  The agenda
 shows the entries for each day.  With a numeric pre...@footnote{for backward
 compatibility, the universal prefix @kbd{C-u} causes all TODO entries to be
 listed before the agenda.  This feature is deprecated, use the dedicated TODO
 list, or a block agenda instead (@pxref{Block agenda}).}  (like @kbd{C-u 2 1
 C-c a a}) you may set the number of days to be displayed (see also the
-variable @code{org-agenda-ndays})
+variable @code{org-agenda-span})
 @end table
 
 Remote editing from the agenda buffer means, for example, that you can
@@ -7621,10 +7621,10 @@ argument as well.  For example, @kbd{200712 w} will jump to week 12 in
 be mapped to the interval 1938-2037.
 @c
 @orgcmd{f,org-agenda-later}
-...@vindex org-agenda-ndays
-Go forward in time to display the following @code{org-agenda-ndays} days.
+...@vindex org-agenda-span
+Go forward in time to display the following @code{org-agenda-current-span} days.
 For example, if the display covers a week, switch to the following week.
-With prefix arg, go forward that many times @code{org-agenda-ndays} days.
+With prefix arg, go forward that many times @code{org-agenda-current-span} days.
 @c
 @orgcmd{b,org-agenda-earlier}
 Go backward in time to display earlier dates.
@@ -8369,7 +8369,7 @@ or, if you need to modify some paramet...@footnote{quoting depends on the
 system you use, please check the FAQ for examples.}
 @example
 emacs -eval '(org-batch-store-agenda-views  \
-  org-agenda-ndays 30   \
+  org-agenda-span month \
   org-agenda-start-day 2007-11-01 \
   org-agenda-include-diary nil  \
   org-agenda-files (quote (~/org/project.org)))'  \
@@ -14033,7 +14033,7 @@ You may also modify parameters on the fly like this:
 @example
 emacs -batch -l ~/.emacs  \
-eval '(org-batch-agenda a   \
-org-agenda-ndays 30   \
+org-agenda-span month \
 org-agenda-include-diary nil  \
 org-agenda-files (quote (~/org/project.org)))'  \
| lpr
diff --git a/doc/orgguide.texi b/doc/orgguide.texi
index b67f7f1..690111b 100644
--- a/doc/orgguide.texi
+++ b/doc/orgguide.texi
@@ -1931,9 +1931,9 @@ Delete other windows.
 Switch to day/week view. 
 @c
 @item f @r{and} b
-Go forward/backward in time to display 

[Orgmode] Re: moving in the agenda view is slow: solved!

2010-12-01 Thread Rainer Stengele
Am 29.11.2010 17:15, schrieb Sébastien Vauban:
 Hi Rainer,
 
 Rainer Stengele wrote:
 after disabling the showing of the outline path in agenda views:

 line-move 430 
 0.189000  0.0004395348
 line-move-1   430 
 0.173000  0.0004023255
 org-agenda-previous-line  214 
 0.156000  0.0007289719
 org-agenda-next-line  216 
 0.095 0.0004398148
 next-line 216 
 0.048 0.000222
 org-agenda-do-context-action  430 
 0.047 0.0001093023
 org-detach-overlay431 
 0.015 3.48...e-005
 org-unhighlight   431 
 0.015 3.48...e-005
 line-move-partial 430 
 0.0   0.0
 org-agenda-post-command-hook  431 
 0.0   0.0
 org-get-at-bol430 
 0.0   0.0

 scrolling with n and p runs smoothly now! Sigh! That means the slowness
 is connected to my .emacs and org settings!? I'am afraid I have to go
 through all the settings and find the culprit.
 
 What do you exactly mean by: disabling the showing of the outline path in 
 agenda
 views?
 
 Best regards,
   Seb
 
Hi Sebastian

I meant setting org-agenda-show-outline-path to nil.

-

Now the more intersting news.
Reading through my .emacs I found and removed the 2 reasons for the slowness!

1. smooth-scolling.el (from http://www.emacswiki.org/emacs/SmoothScrolling)

The file includes this:

#+BEGIN_SRC emacs-lisp
(defadvice previous-line (after smooth-scroll-down
(optional arg try-vscroll)
activate)
  Scroll down smoothly if cursor is within `smooth-scroll-margin'
lines of the top of the window.
  (and
   ;; Only scroll down if there is buffer above the start of the window.
   ( (window-start) (buffer-end -1))
   (let ((lines-from-window-top
  (smooth-scroll-lines-from-window-top)))
 (and
  ;; Only scroll down if we're within the top margin
  (= lines-from-window-top smooth-scroll-margin)
  ;; Only scroll down if we're in the top half of the window
  (= lines-from-window-top
  ;; N.B. `window-height' includes modeline, so if it returned 21,
  ;; that would mean exactly 10 lines in the top half and 10 in
  ;; the bottom.  22 (or any even number) means there's one in the
  ;; middle.  In both cases the following expression will
  ;; yield 10:
  (/ (1- (window-height)) 2))
  (save-excursion
(scroll-down
  (1+ (- smooth-scroll-margin lines-from-window-top

(defadvice next-line (after smooth-scroll-up
(optional arg try-vscroll)
activate)
  Scroll up smoothly if cursor is within `smooth-scroll-margin'
lines of the bottom of the window.
  (and
   ;; Only scroll up if there is buffer below the end of the window.
   ( (window-end) (buffer-end 1))
   (let ((lines-from-window-bottom
  (smooth-scroll-lines-from-window-bottom)))
 (and
  ;; Only scroll up if we're within the bottom margin
  (= lines-from-window-bottom smooth-scroll-margin)
  ;; Only scroll up if we're in the bottom half of the window.
  (= lines-from-window-bottom
  ;; See above notes on `window-height'.
  (/ (1- (window-height)) 2))
  (save-excursion
(scroll-up
 (1+ (- smooth-scroll-margin lines-from-window-bottom
;;;_ + provide
(provide 'smooth-scrolling)
#+END_SRC

2. (add-hook 'org-agenda-mode-hook 'hl-line-mode)
-

Switching off both features brings back immediate scrolling.

I do miss the features of smooth-scrolling and hl-line but it is not worth the
performance penalty.

Thanks to all for considering and helping.
What a relieve to be able to again scroll fast in the agenda ...

Best,

Rainer


___
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 1/2] org-publish

2010-12-01 Thread Manuel Giraud

Hi,

This first patch adds sort options to the sitemap. In addition to
alphabetical order, one can choose chronological or anti-chronological
ordering of sitemap entries. To retrieve file date, it tries to parse
the #+date keyword and if not present defaults to file modification
time.

diff --git a/doc/org.texi b/doc/org.texi
index 4e8eb63..c283503 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -10859,9 +10859,13 @@ of links to all files in the project.
 (default) or @code{last} to display folders first or last,
 respectively.  Any other value will mix files and folders.
 
-...@item @code{:sitemap-alphabetically}
-...@tab The site map is normally sorted alphabetically.  Set this explicitly to
-...@code{nil} to turn off sorting.
+...@item @code{:sitemap-sort-files}
+...@tab How the files are sorted in the site map.  Set this
+...@code{alphabetically} (default), @code{chronologically} or
+...@code{anti-chronologically}. @code{chronologically} sorts the files with
+older date first while @code{anti-chronologically} sorts the files with newer
+date first. @code{alphabetically} sorts the files alphabetically. The date of
+a file is retrieved with @code{org-publish-find-date}.
 
 @item @code{:sitemap-ignore-case}
 @tab Should sorting be case-sensitive?  Default @code{nil}.
diff --git a/lisp/org-publish.el b/lisp/org-publish.el
index c66cd29..edc0b5c 100644
--- a/lisp/org-publish.el
+++ b/lisp/org-publish.el
@@ -186,8 +186,9 @@ sitemap of files or summary page for a given project.
Set this to `first' (default) or `last' to
display folders first or last, respectively.
Any other value will mix files and folders.
-  :sitemap-alphabetically  The site map is normally sorted alphabetically.
-   Set this explicitly to nil to turn off sorting.
+  :sitemap-sort-files  The site map is normally sorted alphabetically.
+   You can change this behaviour setting this to
+   `chronologically', `anti-chronologically' or nil.
   :sitemap-ignore-case Should sorting be case-sensitive?  Default nil.
 
 The following properties control the creation of a concept index.
@@ -233,13 +234,18 @@ Any changes made by this hook will be saved.
   :group 'org-publish
   :type 'hook)
 
-(defcustom org-publish-sitemap-sort-alphabetically t
-  Should sitemaps be sorted alphabetically by default?
+(defcustom org-publish-sitemap-sort-files 'alphabetically
+  How sitemaps files should be sorted by default?
+Possible values are `alphabetically', `chronologically', `anti-chronologically' and nil.
+If `alphabetically', files will be sorted alphabetically.
+If `chronologically', files will be sorted with older modification time first.
+If `anti-chronologically', files will be sorted with newer modification time first.
+nil won't sort files.
 
 You can overwrite this default per project in your
-`org-publish-project-alist', using `:sitemap-alphabetically'.
+`org-publish-project-alist', using `:sitemap-sort-files'.
   :group 'org-publish
-  :type 'boolean)
+  :type 'symbol)
 
 (defcustom org-publish-sitemap-sort-folders 'first
   A symbol, denoting if folders are sorted first in sitemaps.
@@ -360,30 +366,37 @@ This splices all the components into the list.
 (nreverse (org-publish-delete-dups (delq nil rtn)
 
 
-(defvar sitemap-alphabetically)
+(defvar sitemap-sort-files)
 (defvar sitemap-sort-folders)
 (defvar sitemap-ignore-case)
 (defvar sitemap-requested)
 (defun org-publish-compare-directory-files (a b)
-  Predicate for `sort', that sorts folders-first/last and alphabetically.
+  Predicate for `sort', that sorts folders and files for sitemap.
   (let ((retval t))
-(when (or sitemap-alphabetically sitemap-sort-folders)
-  ;; First we sort alphabetically:
-  (when sitemap-alphabetically
-(let* ((adir (file-directory-p a))
-   (aorg (and (string-match \\.org$ a) (not adir)))
-   (bdir (file-directory-p b))
-   (borg (and (string-match \\.org$ b) (not bdir)))
-   (A (if aorg
-  (concat (file-name-directory a)
-  (org-publish-find-title a)) a))
-   (B (if borg
-  (concat (file-name-directory b)
-  (org-publish-find-title b)) b)))
-  (setq retval (if sitemap-ignore-case
-			   (not (string-lessp (upcase B) (upcase A)))
-			 (not (string-lessp B A))
-
+(when (or sitemap-sort-files sitemap-sort-folders)
+  ;; First we sort files:
+  (when sitemap-sort-files
+	(cond ((equal sitemap-sort-files 'alphabetically)
+	   (let* ((adir (file-directory-p a))
+		  (aorg (and (string-match \\.org$ a) (not adir)))
+		  (bdir (file-directory-p b))
+		  (borg (and (string-match \\.org$ b) (not bdir)))
+		  (A (if aorg
+			 (concat (file-name-directory a)
+ 

[Orgmode] Re: [Babel] How to pass variables to SQL blocks?

2010-12-01 Thread Sébastien Vauban
Hi Eric,

Eric Schulte wrote:
 Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Babel's sql support did not have any variable handling. I just copied over
 the variable support from ob-sqlite to ob-sql, so the following should now
 work (notice: my code block is different from yours)

 ** sql variables
 #+results: sql-param
 | table   | valueTable0   |
 | column  | valueColumn0  |
 | type| valueType0|
 | nullability | valueNullability0 |

 I want to apply the values onto the following chunk of code:

 #+srcname: add-column-in-table-0
 #+begin_src sql :var table=sql-param[0,1] :var column=sql-param[1,1] :var 
 type=sql-param[2,1] :var nullability=sql-param[3,1]
 -- add column `...@column' (if column does not exist yet)
 IF NOT EXISTS (SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = '@table'
AND COLUMN_NAME = '@column')
 BEGIN
 ALTER TABLE $table
 ADD $column $type @nullability
 END
 #+end_src

 results in the following code block expansion (C-c C-v v)
 #+begin_src sql
   -- add column `...@column' (if column does not exist yet)
   IF NOT EXISTS (SELECT *
  FROM INFORMATION_SCHEMA.COLUMNS
  WHERE TABLE_NAME = '@table'
  AND COLUMN_NAME = '@column')
   BEGIN
   ALTER TABLE valueTable0
   ADD valueColumn0 valueType0 @nullability
   END
 #+end_src

For your information, this was the intended code snippet:

#+srcname: add-column-in-table-0
#+begin_src sql :var table=sql-param[0,1] :var column=sql-param[1,1] :var 
type=sql-param[2,1] :var nullability=sql-param[3,1] :tangle yes
-- add column `$column' (if column does not exist yet)
IF NOT EXISTS (SELECT *
   FROM INFORMATION_SCHEMA.COLUMNS
   WHERE TABLE_NAME = '$table'
   AND COLUMN_NAME = '$column')
BEGIN
ALTER TABLE $table
ADD $column $type $nullability
END
#+end_src

(I thought this feature would be implemented using real SQL vars, hence my @
prefix. But viewing the code shows the replacement is made outside of the SQL
snippet's knowledge.)

Tested. Works as expected... Thanks a lot!


Maybe the following should be put on some TODO list, even if not urgent?

 * No warning if block does not exist

 Please note that inexistent references are ignored, without further notice.
 That's the case for such a block (where I forgot the number suffix):

 #+srcname: contains-inexistent-ref
 #+begin_src sql :noweb yes
 add-column-in-table
 #+end_src

Thanks.

Best regards,
  Seb

-- 
Sébastien Vauban


___
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: [Babel] Arguments...

2010-12-01 Thread Eric Schulte
Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

 Hi Eric,

 Eric Schulte wrote:
 Sébastien Vauban wxhgmqzgw...@spammotel.com writes:
 The variables are not exported to HTML (and LaTeX?), making the readability
 of such a documented code a bit difficult. Feature or bug?

 The variable names should be exported to both HTML and LaTeX (when
 org-export-latex-listings is set to true) when the following declaration
 schema is used (at least they are for me).

 #+source: something(x=9)
 #+begin_src emacs-lisp
   x
 #+end_src

 I confirm that variable names are not exported when they don't get a value,
 such as here:

 #+source: add-column-in-table(table, column, type, nullability)
 #+begin_src sql
 -- add column `$column' (if column does not exist yet)
 IF NOT EXISTS (SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = '$table'
AND COLUMN_NAME = '$column')
 BEGIN
 ALTER TABLE $table
 ADD $column $type $nullability
 END
 #+end_src


Ah, That is the problem.

Babel currently only support variable names *with* default values.  This
simplifies our internal variable handling.  I agree that in the future
it would be good to allow variable names which don't have default values
specified but currently all behavior is undefined when variables
definitions don't have an assignment.

I'm noting this with our variable-handling related development tasks.

Best -- Eric

___
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: [Babel] No output returned if just one command is failing

2010-12-01 Thread Sébastien Vauban
Hi Eric,

Eric Schulte wrote:
 I don't forsee adding partial results insertion both because

 - it would add a good deal of complexity to the code to insert results
   part-way through a run

I can't comment on this, of course.

 - the current behavior of only inserting results on a fully successful
   run is reasonable and is probably more obvious (at least to me) than
   inserting partial results

Being fond of Babel, I'm using it always, everywhere. I prefer:

1. typing my shell commands in an Org buffer,
2. evaluate the block,
3. get the results automagically inserted in the buffer,
4. (eventually, version the whole file for later comparisons when updating the
   code),
5. export the whole to HTML and/or PDF.

The current behavior, even if totally respectable and defendable, inhibits
such a way of working: if you write (or update) a shell code, and don't see
(more or less) the same things as the ones you would see in a shell buffer,
then you can't use such an Org buffer -- as long as one command fails.

I don't especially want you to change your position, but I'm explaining the
negative consequences for me.

Thanks!

Best regards,
  Seb

-- 
Sébastien Vauban


___
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] Blockquotes in lists?

2010-12-01 Thread Richard Lawrence
Hi Nicolas,

 Is it possible to embed blockquotes inside list items, so that
 (e.g.) they are indented beyond the enclosing list item in LaTeX
 exports?

 This is a work in progress. There should be a testing phase related to
 it soon.

Great, thanks!

Richard

___
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: imenu support for babel blocks

2010-12-01 Thread Sébastien Vauban
Hi Eric and David,

Eric Schulte wrote:
 Hi David,

 I've never used imenu myself, but that sounds useful. I'd recommend using
 the following rather than building your own regexp

 (push (list Source code chunks
 org-babel-src-name-w-name-regexp 2)
   imenu-generic-expression)

 You're right that the Org-mode imenu setup looks fairly complex, and is
 probably overwriting your simple expression above. Unfortunately I don't
 know much about imenu and I'm now sure how a code block menu fits into the
 existing Org-mode imenu support.

I've written the following in my .emacs file:

#+begin_src emacs-lisp
  ;; extension of Imenu
  (when (and
 ;; `org-babel' has been loaded
 (fboundp 'org-babel-execute-src-block)

 ;; `imenu' has been loaded
 (fboundp 'try-to-add-imenu))

(setq org-src-blocks-imenu-generic-expression
  `((Snippets ,org-babel-src-name-w-name-regexp 2)))

(add-hook 'org-mode-hook
  (lambda ()
(setq imenu-generic-expression
  org-src-blocks-imenu-generic-expression
#+end_src

... but I never see any name of code chunk in the IMenu menu.
I only see the headings of my current Org file.

Any idea what I'm doing wrong?

Best regards,
  Seb

-- 
Sébastien Vauban


___
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: moving in the agenda view is slow

2010-12-01 Thread Carsten Dominik


On Nov 30, 2010, at 1:30 PM, Eric S Fraga wrote:


Sébastien Vauban wxhgmqzgw...@spammotel.com writes:


Hi Rainer,

Rainer Stengele wrote:

after disabling the showing of the outline path in agenda views:


[...]



What do you exactly mean by: disabling the showing of the outline  
path in agenda

views?

Best regards,
 Seb


I think he means the display that appears in the mini-buffer showing  
the

headline structure that leads to the particular element in the agenda
view.  This is fontified (quite nicely, actually) and I was suspecting
that this is what was causing a slowdown on my system as well which is
why I think the problem has something to do with the windowing system
and fonts...


To disable this feature, use

(setq org-agenda-show-outline-path nil)


- 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-babel] R, :session and empty line in #+results

2010-12-01 Thread Bernd Weiss

Am 01.12.2010 10:01, schrieb Eric Schulte:

Hi Bernd,

I've just pushed up a change which should remove these empty lines.


Just updated my org-mode repository and it works great.

Thanks a lot!

Bernd

___
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] org-agenda: rework ndays and span handling

2010-12-01 Thread Eric S Fraga
Julien Danjou jul...@danjou.info writes:

 On Wed, Dec 01 2010, Eric S Fraga wrote:

 Mostly works fine but there is one problem I have encountered.  If you
 change your view (mine defaults to day so I sometimes switch to week
 view), you can go forward and backward as expected.  However, if you
 /jump/ (j in agenda view) to a given date, the view resets to the
 default (well, to single day view in my case).  I prefer the view to
 remain as I have specified it last until I change it myself.

 Good catch. Patch updated fixing that.

Seems to work just fine now for a variety of date and view changes.

Thanks,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.159.g23265.dirty)

___
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: org-mode gnus integration across two machines when using nnimap

2010-12-01 Thread e20100633
Hello,

Tommy Kelly tommy.ke...@verilab.com writes:

 I'm looking for help in running Gnus with nnimap, and org-mode, across
 multiple machines.

 When reading my email in Gnus (using nnimap off Gmail), I create tasks
 from any given message by using orgp-mode's capture feature. A TODO gets
 created with a hyperlink that, on clicking, takes me back to the
 relevant email in Gnus. That's all cool.

I'm sorry I have no answers for you, but I'm very interested by your way
of using org-mode TODO's to point on emails with gnus. Can you take a
minute to describe it please ?

I'm a kind of newbie, so is it possible for you to tell precisely what
you're doing ? Besides, I have to say that I know how org-mode and gnus
are working, but I don't get how you point automagically a mail you are
reading in an org-file. Thank you very much.

Regards,

-- 
~ #ID: e20100633 e20100633()inbox!lv #TEL: 9-8M 4554
~ TYPE 1707-A3 S/N L3-M2812 SLACKWARE 13.0 RLU #527034
{,_,
Pour se faire la main, Dieu créa un imbécile. Ensuite,
il créa tout un conseil d'université.-- Mark Twain


___
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] Capture into subheading of current headline

2010-12-01 Thread Eric S Fraga
Carsten Dominik carsten.domi...@gmail.com writes:

 Hi Nathan,

 On Nov 28, 2010, at 8:10 PM, Nathan Neff wrote:

 I think I'm missing something obvious here -- I can't
 define a capture template that puts the results as a sub-heading
 of the heading that the cursor is currently in.

 You can insert a capture entry at the location where you are
 at using a zero prefix to the capture command:

 C-0 C-c r

 Does that do what you want?  It hast the advantage that
 it works for any entry-like templates in your setup.

 I guess we could make a special target for filing as child
 of current heading if mor ethan one person found this useful

 - Carsten

I can see this being useful but isn't this really a case of trying to
massage org-capture into doing something which would best handled
through a more general template mechanism (e.g yasnippet)?  I may be
biased because I already use yasnippet to insert particular types of
entries into org files, especially latex directives and some babel
code blocks...

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.159.g23265)

___
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] Synchronize files among computers via MobileOrg, and create tasks from iPhones?

2010-12-01 Thread Jing Su
Dear all,

Just curious that if we could push to the MobileOrg server, e.g., DropBox,
from a computer, and pull it down from another computer, so that we can
synchronize org files on different computers via MobileOrg. I used to use
CVS for synchronizing, but now SSHing in and out are blocked at my working
places, so I can no longer synchronize files between home computers and work
computers via ssh+cvs. Could someone kindly suggest some methods to securely
synchronize files without ssh please?

It would also be great if more functions of the org-mode (e.g., creating new
tasks) can be accessed from an iPhone. I am struggling to decide if I should
stay with Org-mode (I love Emacs) or switch to outlook. I can access all
functions of my online calendars from my iPhone or from Outlook or a web
browser on any computer; but for MobileOrg, I have to put things as notes on
my iPhone, then do the copy/paste later when I can access my MAIN desktop --
synchronizing org files among computers is painful, as I just explained, so
I have to set one as the MAIN desktop for using the org-mode.

Best,

Jing
___
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] Shift-arrow and M-arrow bindings in OSX port of Emacs 23

2010-12-01 Thread Michael Brand
On Wed, Dec 1, 2010 at 12:00, Gaspaio ggasp...@gmail.com wrote:
 When i set 'shift-select-mode' to nil, i still don't have access to these 
 commands, and i think its because S-up is being translated to up, etc.
 How can i stop this translation ? Or should I simply remap the 
 org-shiftup/down ... commands to something line C-up ?

Can you try what `C-h c S-up' tells in an Org buffer of an Emacs
started without any config? A Cocoa Emacs 23.2 tells `S-up runs
the command org-shiftup', both with shift-select-mode set to t or
nil.

Michael

___
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] Synchronize files among computers via MobileOrg, and create tasks from iPhones?

2010-12-01 Thread Erik Iverson



Jing Su wrote:

Dear all,

Just curious that if we could push to the MobileOrg server, e.g., 
DropBox, from a computer, and pull it down from another computer, so 
that we can synchronize org files on different computers via MobileOrg. 


I store all my *actual* org files on Dropbox, along with the Mobile Org
versions.  This gives me sync'ing between all my computers with Dropbox
installed.

I used to use CVS for synchronizing, but now SSHing in and out are 
blocked at my working places, so I can no longer synchronize files 
between home computers and work computers via ssh+cvs. Could someone 
kindly suggest some methods to securely synchronize files without ssh 
please?


This I am not sure about, although some people use org-crypt for this
I think.  There is also something called mobile org crypt also which
lets you store encrypted org files on Dropbox for viewing on the iphone.

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg32149.html



It would also be great if more functions of the org-mode (e.g., creating 
new tasks) can be accessed from an iPhone. I am struggling to decide if 
I should stay with Org-mode (I love Emacs) or switch to outlook. 


!!!

I can 
access all functions of my online calendars from my iPhone or from 
Outlook or a web browser on any computer; but for MobileOrg, I have to 
put things as notes on my iPhone, then do the copy/paste later when I 
can access my MAIN desktop -- synchronizing org files among computers is 
painful, as I just explained, so I have to set one as the MAIN desktop 
for using the org-mode.


Not if you just use Dropbox for storing your actual org files. Also,
there is org-mobile-pull that should pull in any notes captured on
the iPhone and place them in an org file of your choosing for
refiling.

As for calendar, there are tools on the list for synching with
Google calendar, although not from mobile org as far as I know.


___
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] Error in pre-command-hook

2010-12-01 Thread David Maus
At Wed, 1 Dec 2010 12:27:10 + (UTC),
Thorsten wrote:

 When entering a date and pressing M-+ to increment 1 day I get the following
 error message:
 Error in pre-command-hook: (wrong-type-argument symbolp
 (lambda nil (interactive) (org-eval-in-calendar
 (quote (calendar-forward-day 1)

 This only happens once, the first time I press M-+ in a new Emacs session.
 Then I can try again and everything works fine.

I cannot reproduce this.  Can you give a step-by-step instruction (aka
minimal example)?  I tried to reproduce this one with Org 7.3 while
scheduling an item, but no luck: M-+ is not bount to a function.

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


pgpAq3abB2Q3M.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] Visual indication on unscheduled TODOs

2010-12-01 Thread Martin Svenson
Hi (this is my first post),

I'm trying to get a visual hint that a certain TODO is unscheduled, so that
I can immediately see this when I go through the outline during regular
reviews.

My first strategy was to try and add a font-lock hook to achieve this
multiline font-lock behaviour:

See
http://paste.lisp.org/+2IFV

However, this failed. I presume my added faces are being overwritten by
org-mode since the hook is being called before org-mode writes the faces.
What could I do about that?

My second option was to write an interactive function:

(defun org-mark-unscheduled ()
  (interactive)
  (save-excursion
(goto-char (point-min))
(while (re-search-forward org-complex-heading-regexp nil t)
  (let* ((state (match-string 2))
 (state-start (match-beginning 2))
 (state-end (match-end 2))
 (scheduled (org-entry-get nil SCHEDULED))
 (deadline (org-entry-get nil DEADLINE)))
(when (and (not scheduled) state-start state-end)
  (overlay-put
   (make-overlay state-start state-end)
   'face 'org-todo-scheduled))

This works quite well but I get the nagging feeling I'm going about this the
wrong way. Surely, being able to see which items are due for scheduling is a
common task? (I do note that I could search for them, but then I would not
have the context of the actually scheduled tasks in the same view...)

Regards,
Martin
___
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] [mobileorg-android] sync error, sdcard, index.org was not found

2010-12-01 Thread Matthew Jones
Those setup notes are a little out of date I'll update them now, but you
also need to read through this section of the org mode manual:

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

It sounds like you aren't using org-mobile-push to generate the staging
area.

http://matburt.net


On Tue, Nov 30, 2010 at 4:33 AM, Martin G. Skjæveland
mart...@ifi.uio.nowrote:

 Hi,

 I just got myself a HTC Z, but I cannot get mobileorg to sync. The error
 message I get when pressing the sync button is:

  The file /sdcard/dropbox/org/index.org was not found.

 Here is what I did to get the error:

 - Installed Dropbox from Android Market. (Downloaded org-files to
 /sdcard/dropbox/org/. This I have checked with a file manager.)
 - Installed MobileOrg from Android Market. (Version 0.4.7, it says.)
 - Setup MobileOrg:
  - Synchronization Mode: SDCard
  - Full local path to your index.org file: /sdcard/dropbox/org/index.org
  - Storage Mode: sdcard
 - Go back to MobileOrg menu, press Sync, and get the error.

 Originally I had no index.org file (should I have had one?) so I created
 one. I'm guessing that that this might be the problem? It says on [1] that
 index.org will be created, but it is not clear if this also goes for local
 system setup (and not WebDAV). My index.org file looks like this:

 --cut
  * [[work.org][work]]
  * [[home.org][home]]
 --cut

 The instructions on mobileorg-android's page [2] are not completely clear.
 Have I done all the necessary preparations?

 Thanks!

 Martin

 [1] https://github.com/matburt/mobileorg-android/wiki/SetupNotes
 [2] https://github.com/matburt/mobileorg-android/wiki/

 ___
 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] Re: [Babel] Reporting 2 problems of code execution

2010-12-01 Thread Eric Schulte
Sébastien Vauban wxhgmqzgw...@spammotel.com writes:


 You're right that could be it. I often forget about adding that setting, even
 though it's more or less mandatory for the sh blocks -- at least, in many sh
 blocks I write...


You can specify this as the default header argument for all shell blocks
with the following.

#+begin_src emacs-lisp
  (add-to-list 'org-babel-default-header-args '((:results . output)))
#+end_src

___
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] Help: Updating my org-mode repository which lies in

2010-12-01 Thread Sunny Srivastava
Hello Org-moders:

I want to update my org-mode and emacs-starter-kit repository. My org-mode
repository is in the emacs-starter-kit repository. I am a beginner in
org-mode as well as git. Before doing anything I want to make sure that I am
not doing anything incorrect. Please bear with me if the query is very
basic.

I googled on how to get the latest update and checked the org-mode website
instructions. If I have tp update my org-mode repository (which lies in
src/org/) should I just do

 $ git pull  make clean  make  make doc  make install 

Also, will it break anything in the emacs-starter-kit repository? (I am
sorry, but I am worried)

Please accept my apologies if this should have been addressed to directly to
the Eric (I am using his forked version of emacs-starter-kit).

Thank you in advance.

Best Regards,
S.
___
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] Capture into subheading of current headline

2010-12-01 Thread Nathan Neff
On Wed, Dec 1, 2010 at 8:30 AM, Eric S Fraga ucec...@ucl.ac.uk wrote:
 Carsten Dominik carsten.domi...@gmail.com writes:

 Hi Nathan,

 On Nov 28, 2010, at 8:10 PM, Nathan Neff wrote:

 I think I'm missing something obvious here -- I can't
 define a capture template that puts the results as a sub-heading
 of the heading that the cursor is currently in.

 You can insert a capture entry at the location where you are
 at using a zero prefix to the capture command:

 C-0 C-c r

 Does that do what you want?  It hast the advantage that
 it works for any entry-like templates in your setup.

 I guess we could make a special target for filing as child
 of current heading if mor ethan one person found this useful

 - Carsten

 I can see this being useful but isn't this really a case of trying to
 massage org-capture into doing something which would best handled
 through a more general template mechanism (e.g yasnippet)?  I may be
 biased because I already use yasnippet to insert particular types of
 entries into org files, especially latex directives and some babel
 code blocks...

 --
 : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
 : using Org-mode version 7.3 (release_7.3.159.g23265)


I had the same thoughts, but I already have a capture template which
uses (clock)
to insert itself as a child of the currently clocked item.

I want to use that same template, except just be able to insert it as
a child of the current item.

I could define a yasnippet, but didn't want to define the same template twice.

Thanks,
--Nate

___
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: org-mode gnus integration across two machines when using nnimap

2010-12-01 Thread Eric S Fraga
e20100633 e20100...@inbox.lv writes:

 Hello,

 Tommy Kelly tommy.ke...@verilab.com writes:

 I'm looking for help in running Gnus with nnimap, and org-mode, across
 multiple machines.

 When reading my email in Gnus (using nnimap off Gmail), I create tasks
 from any given message by using orgp-mode's capture feature. A TODO gets
 created with a hyperlink that, on clicking, takes me back to the
 relevant email in Gnus. That's all cool.

 I'm sorry I have no answers for you, but I'm very interested by your way
 of using org-mode TODO's to point on emails with gnus. Can you take a
 minute to describe it please ?

 I'm a kind of newbie, so is it possible for you to tell precisely what
 you're doing ? Besides, I have to say that I know how org-mode and gnus
 are working, but I don't get how you point automagically a mail you are
 reading in an org-file. Thank you very much.

 Regards,

Basically, when reading an email (in gnus, in wl, in other emacs MUAs
possibly), type C-c l (org-store-link) which will /store/ a link to
that email (store is the wrong word, in my view; it should arguably be
make or create or define or ... but that's neither here nor
there).  You can then put that link in an org file with C-c C-l RET
(org-store-link, accepting the default which should be the last link you
stored).

If you later open the link (C-c C-o, org-open-at-point), it should start
up gnus and show you that email.  I switched from wl to gnus partly
because this procedure works marginally better in gnus than in wl.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.162.g8e74)

___
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: Having (too) many files in org-agenda-files

2010-12-01 Thread Eric S Fraga
Sébastien Vauban wxhgmqzgw...@spammotel.com writes:

[...]

 Anyway, I now do have found the culprit: the =column-marker= package (which
 highlights my columns 78, 79 and 80 of text), loaded in my .emacs file by this
 snippet):

[...]

 Though, such a capability being really nice, do you know some replacement for
 this?

Maybe check out /develock-mode/ in Emacs 23.x.  

Aside: Personally, I don't like it and I wish I could figure out how to
turn it off so if anybody can help with this, I would greatly appreciate
it!  It appears to be turned on by default in some modes (not org,
luckily) but I have no found any hook which turns it on...
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.162.g8e74)

___
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


Fwd: [Orgmode] Synchronize files among computers via MobileOrg, and create tasks from iPhones?

2010-12-01 Thread Jing Su
-- Forwarded message --
From: Jing Su jing.su...@gmail.com
Date: Wed, Dec 1, 2010 at 5:08 PM
Subject: Re: [Orgmode] Synchronize files among computers via MobileOrg, and
create tasks from iPhones?
To: Erik Iverson er...@ccbr.umn.edu


Great idea to set the org-directory as the DropBox! I am thinking about
trying it too, though keeping two copies in the DropBox is kind of odd.  If
only there is an iPhone version of the org-mode! or even an Emacs
environment! (no, I am not fancying typing M-x org-add-planning-info or C-c
C-x C-a, I mean something that can support .elc files)

As for the notes on iphone idea, I still have not got used to it. Say when
I am fishing outside and receive a phone call from a friend inviting me for
a party tonight; I decide to buy some gift on my way home, and invite this
friend for dinner next weekend. With the MobileOrg I have to put details
into notes, put a reminder on some other calendars for buying the gift, and
remember to copy and paste the notes as new tasks tonight -- if I am not
drunk or too tired by that time. Or if I can put two items in my org files
with reminders, one task for the gift, one project for the dinner next week,
then continue fishing in a worry-free mode. Yes, being able to capture notes
is great, but allowing creating new tasks would be greater.

I am just curious why such basic functions of the org-mode are not available
for MobileOrg -- due to technical issues (no Emacs runtime environment
available on iPhones yet), or due to the philosophy that smartphones are not
supposed to be used to create new tasks, or currently most smartphone users
do not need such functions yet? I feel that smartphones gradually take the
role of traditional computers, and it is wise to begin to port most
frequently used functions of the org-mode onto smartphones.


On Wed, Dec 1, 2010 at 2:01 PM, Erik Iverson er...@ccbr.umn.edu wrote:



 Jing Su wrote:

 Dear all,

 Just curious that if we could push to the MobileOrg server, e.g., DropBox,
 from a computer, and pull it down from another computer, so that we can
 synchronize org files on different computers via MobileOrg.


 I store all my *actual* org files on Dropbox, along with the Mobile Org
 versions.  This gives me sync'ing between all my computers with Dropbox
 installed.


  I used to use CVS for synchronizing, but now SSHing in and out are blocked
 at my working places, so I can no longer synchronize files between home
 computers and work computers via ssh+cvs. Could someone kindly suggest some
 methods to securely synchronize files without ssh please?


 This I am not sure about, although some people use org-crypt for this
 I think.  There is also something called mobile org crypt also which
 lets you store encrypted org files on Dropbox for viewing on the iphone.

 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg32149.html



 It would also be great if more functions of the org-mode (e.g., creating
 new tasks) can be accessed from an iPhone. I am struggling to decide if I
 should stay with Org-mode (I love Emacs) or switch to outlook.


 !!!

  I can access all functions of my online calendars from my iPhone or from
 Outlook or a web browser on any computer; but for MobileOrg, I have to put
 things as notes on my iPhone, then do the copy/paste later when I can access
 my MAIN desktop -- synchronizing org files among computers is painful, as I
 just explained, so I have to set one as the MAIN desktop for using the
 org-mode.


 Not if you just use Dropbox for storing your actual org files. Also,
 there is org-mobile-pull that should pull in any notes captured on
 the iPhone and place them in an org file of your choosing for
 refiling.

 As for calendar, there are tools on the list for synching with
 Google calendar, although not from mobile org as far as I know.




-- 
Jing Su, PhD





-- 
Jing Su, PhD
___
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] Help: Updating my org-mode repository which lies in

2010-12-01 Thread suvayu ali
On Wed, Dec 1, 2010 at 10:42 PM, Sunny Srivastava
research.b...@gmail.com wrote:
  $ git pull  make clean  make  make doc  make install

Yes, that should be all right.

-- 
Suvayu

Open source is the future. It sets us free.

___
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, Python and UTF-8

2010-12-01 Thread Vincent Beffara

Hi,

I am discovering org-mode and org-babel, and wanted to try it out with
python code blocks. My use case would involve text processing, encoded
as UTF-8. Usually a python file has to contain a line to that effect,
saying sth like   # -*- coding: utf-8 -*-(without which an error is
raised).

Is there a way to manage that during org-babel block evaluation ?

Thanks for your help !

   /v


___
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] Babel, Python and UTF-8

2010-12-01 Thread Eric Schulte
Hi Vincent,

I would suggest just trying it out first and seeing if you get an error
without such a line.  Also, you could try adding the line to the
beginning of your code block.

If there is definitely a problem please reply to this thread and we
could easily add a header argument for this case, possibly named
:prefix which could be used to specify such a code-block-prefix for
code evaluation.  This header argument could then be set globally or on
the file, heading, or code block level.

Best -- Eric

Vincent Beffara vbeff...@ens-lyon.fr writes:

 Hi,

 I am discovering org-mode and org-babel, and wanted to try it out with
 python code blocks. My use case would involve text processing, encoded
 as UTF-8. Usually a python file has to contain a line to that effect,
 saying sth like   # -*- coding: utf-8 -*-(without which an error is
 raised).

 Is there a way to manage that during org-babel block evaluation ?

 Thanks for your help !

/v


 ___
 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] MobileOrg and Voice Capturing (Android)

2010-12-01 Thread Sven Bretfeld
Hi Mark

Mark Elston m_els...@comcast.net writes:

 Have you looked at sl4a (formerly ase)?  With it you can
 start Intents and perform clipboard operations plus file
 manipulations using a standard scripting language like
 perl, python, or ruby (among others).  This might be
 very useful.

That's really useful. I have created a simple python script to call
voice input:

,SpeechToClip.py
| 
| import android
| droid = android.Android()
| droid.setClipboard(droid.recognizeSpeech()[1])
| 
`

Now, I couldn't figure out how to extend the script to call MobileOrg's
Capture activity. Is that possible? Maybe even with an automatic
insertion of the clipboard content?

Thanks for help

Sven

___
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: Visual indication on unscheduled TODOs

2010-12-01 Thread Matt Lundin
Martin Svenson phr...@mail.com writes:

 I'm trying to get a visual hint that a certain TODO is unscheduled, so
 that I can immediately see this when I go through the outline during
 regular reviews.
 ...

 ...but I get the nagging feeling I'm going about this the wrong way.
 Surely, being able to see which items are due for scheduling is a
 common task? (I do note that I could search for them, but then I would
 not have the context of the actually scheduled tasks in the same
 view...)

Within an org buffer, I would use a sparse tree:

C-c / m 
-SCHEDULED={.}/!

This tells org to highlight anything that does not have a scheduled
property. The /! tells Org to limit the search to active todos.

To see all unscheduled todos across my agenda files, I would use:

--8---cut here---start-8---
(add-to-list 'org-agenda-custom-commands
 '(u Unscheduled alltodo 
   ((org-agenda-todo-ignore-scheduled t
--8---cut here---end---8---

Best,
Matt

___
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: org-mode gnus integration across two machines when using nnimap

2010-12-01 Thread Bernt Hansen
Eric S Fraga e.fr...@ucl.ac.uk writes:

 e20100633 e20100...@inbox.lv writes:

 Hello,

 Tommy Kelly tommy.ke...@verilab.com writes:

 I'm looking for help in running Gnus with nnimap, and org-mode, across
 multiple machines.

 When reading my email in Gnus (using nnimap off Gmail), I create tasks
 from any given message by using orgp-mode's capture feature. A TODO gets
 created with a hyperlink that, on clicking, takes me back to the
 relevant email in Gnus. That's all cool.

 I'm sorry I have no answers for you, but I'm very interested by your way
 of using org-mode TODO's to point on emails with gnus. Can you take a
 minute to describe it please ?

 I'm a kind of newbie, so is it possible for you to tell precisely what
 you're doing ? Besides, I have to say that I know how org-mode and gnus
 are working, but I don't get how you point automagically a mail you are
 reading in an org-file. Thank you very much.

 Regards,

 Basically, when reading an email (in gnus, in wl, in other emacs MUAs
 possibly), type C-c l (org-store-link) which will /store/ a link to
 that email (store is the wrong word, in my view; it should arguably be
 make or create or define or ... but that's neither here nor
 there).  You can then put that link in an org file with C-c C-l RET
 (org-store-link, accepting the default which should be the last link you
 stored).

 If you later open the link (C-c C-o, org-open-at-point), it should start
 up gnus and show you that email.  I switched from wl to gnus partly
 because this procedure works marginally better in gnus than in wl.

I use capture mode for this.  While reading an email I create a new TODO
task with C-M-r t which gives me this:

,
| * TODO cursor is here
| [2010-12-01 Wed 20:23]
| 
[[gnus:nntp%2Bnews.gmane.org:gmane.emacs.orgmode#87zkspksr2@ucl.ac.uk][email
 from Eric S. Fraga: Re: {Orgmode} Re: org-mode gnu]]
`

and I normally enter something like 'Reply to Eric' as the TODO task and
file it with C-c C-c.

Later I can open the link with C-c C-o on the headline or from the
agenda to get back to the gnus mail or news article directly.

My todo capture template looks like this:

,
| (setq org-capture-templates (quote ((t todo entry (file 
~/git/org/refile.org) * TODO %?
|   %U
|   %a :clock-in t :clock-resume t
`

(extracted from http://doc.norang.ca/org-mode.html#Capture)

HTH,
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: Babel, Python and UTF-8

2010-12-01 Thread Vincent Beffara

Hi,

 I would suggest just trying it out first and seeing if you get an error
 without such a line.

Well, I do, that's why I'm asking ;-)

 Also, you could try adding the line to the beginning of your code
 block.

I tried like this :

--8---cut here---start-8---
#+begin_src python
# -*- coding: utf-8 -*-
s = é
#+end_src
--8---cut here---end---8---

The error message tells me that the error happens on line 4, hence the
coding line ends up on line 3, and python only takes it into account if
it is one of the first two ... so it almost works, but it doesn't.

 If there is definitely a problem please reply to this thread and we
 could easily add a header argument for this case, possibly named
 :prefix which could be used to specify such a code-block-prefix for
 code evaluation.  This header argument could then be set globally or on
 the file, heading, or code block level.

That would be fantastic ! (And possibly useful in other cases as well
...)

Thanks,

/vincent


___
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: org-mode gnus integration across two machines when using nnimap

2010-12-01 Thread Greg Troxel

  Basically, when reading an email (in gnus, in wl, in other emacs MUAs
  possibly), type C-c l (org-store-link) which will /store/ a link to
  that email (store is the wrong word, in my view; it should arguably be
  make or create or define or ... but that's neither here nor
  there).  You can then put that link in an org file with C-c C-l RET
  (org-store-link, accepting the default which should be the last link you
  stored).

Perhaps my capture setup isn't fancy enough, but I think it would be
nice if the default for capture when invoked from gnus were to grab the
gnus link and insert it in the body of the new org headline.



pgpdvGUxjOYts.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: org-mode gnus integration across two machines when using nnimap

2010-12-01 Thread Matt Lundin
Greg Troxel g...@ir.bbn.com writes:

   Basically, when reading an email (in gnus, in wl, in other emacs MUAs
   possibly), type C-c l (org-store-link) which will /store/ a link to
   that email (store is the wrong word, in my view; it should arguably be
   make or create or define or ... but that's neither here nor
   there).  You can then put that link in an org file with C-c C-l RET
   (org-store-link, accepting the default which should be the last link you
   stored).

 Perhaps my capture setup isn't fancy enough, but I think it would be
 nice if the default for capture when invoked from gnus were to grab the
 gnus link and insert it in the body of the new org headline.

That's what the %a is for in the capture template.

,[ from C-h v org-capture-templates ]
|   %a  annotation, normally the link created with `org-store-link'
`

However, the default setup (i.e., when org-capture-templates is nil)
also grabs the link:

,[ org-capture.el (1110-1101) ]
| ;; Use an arbitrary default template
| '(t Task entry (file+headline  Tasks) * TODO %?\n  %u\n  %a)))
`

Here's what happened when I used the default template on your email:

--8---cut here---start-8---
** TODO 
   [2010-12-01 Wed]
   [[gnus:gmane.emacs.orgmode#rmid3plvsz2@fnord.ir.bbn.com][greg Troxel: 
Re: Re: org-mode gnus integration across two machines when using nnimap]]
--8---cut here---end---8---

But perhaps I misunderstand what you mean by the body of the default
gnus headline. Here's a simple template for capturing a link in a
headline:

--8---cut here---start-8---
(l link entry
 (file ~/org/inbox.org)
 * %a\n %U\n %?\n %i)
--8---cut here---end---8---

Do you have org-gnus in activated in org-modules (the default)?

Best,
Matt

___
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: Having (too) many files in org-agenda-files

2010-12-01 Thread Jeff Horn
 Though, such a capability being really nice, do you know some replacement for
 this?

Pardon the noise if this has an obvious answer... but why not just use
auto-fill with a column set to 80 instead of the highlighting? Is it
because sometimes you want to overflow past the 80th column?

Jeff

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
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] MobileOrg and Voice Capturing (Android)

2010-12-01 Thread Matthew Jones
I think I need to make a small change to the Capture activity to allow it to
be invoked... I'm looking into it right now.

http://matburt.net


On Wed, Dec 1, 2010 at 8:52 PM, Mark Elston m_els...@comcast.net wrote:

 I don't know about the current state of MobileOrg and its
 implementation details but I would look at the two sl4a
 methods:

  startActivity, and
  startActivityForResult.

 Playing with these two methods should get you most of the
 way there, I would think.

 Mark



 2010 5:25 PM, Sven Bretfeld wrote:

 Hi Mark

 Mark Elstonm_els...@comcast.net  writes:

  Have you looked at sl4a (formerly ase)?  With it you can
 start Intents and perform clipboard operations plus file
 manipulations using a standard scripting language like
 perl, python, or ruby (among others).  This might be
 very useful.


 That's really useful. I have created a simple python script to call
 voice input:

 ,SpeechToClip.py
 |
 | import android
 | droid = android.Android()
 | droid.setClipboard(droid.recognizeSpeech()[1])
 |
 `

 Now, I couldn't figure out how to extend the script to call MobileOrg's
 Capture activity. Is that possible? Maybe even with an automatic
 insertion of the clipboard content?

 Thanks for help

 Sven



 ___
 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: org-mode gnus integration across two machines when using nnimap

2010-12-01 Thread e20100633
Hello,

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

 I use capture mode for this.  While reading an email I create a new TODO
 task with C-M-r t which gives me this:

 [snip (13 lines)]

 ,
 | (setq org-capture-templates (quote ((t todo entry (file 
 ~/git/org/refile.org) * TODO %?
 |   %U
 |   %a :clock-in t :clock-resume t
 `

Very interesting, thank you very much. I think I'm gona rebind the C-M-r
t key ; I'll never remember this combo...

BTW, I have to tell you I'm a fan of your howtos on norang.ca ; you
helped me so much in my every day work with them. I missed somehow this
trick for org-capture-templates in your public html files, and probably
some others... I read them when I was just starting using org-mode ; I
have to re-read all of this :)

Regards,

-- 
~ #ID: e20100633 e20100633()inbox!lv #TEL: 9-8M 4554
~ TYPE 1707-A3 S/N L3-M2812 SLACKWARE 13.0 RLU #527034
{,_,
Pour se faire la main, Dieu créa un imbécile. Ensuite,
il créa tout un conseil d'université.-- Mark Twain


___
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-indent mode not indenting free text?

2010-12-01 Thread Antti Kaihola
Erik Iverson writes:
  I still see the additional stars added to headlines, and they are
  shadowed properly. But the free text lines under each headline are
  not shown indented as they previously were.

I see the same thing. Indent-mode also only indents one space at a
time even though org-indent-indentation-level is set to 2.

Nicolas Goaziou wrote:
 I can confirm this.

 It looks like the following commit is the culprit

 commit e40903a6b6087ab4b97c51830bfc36cc2f3a83c8

2010/11/23 David Maus dm...@ictsoc.de:
 Nope *cough*, 950bea36f8321b4ffdadd7c435619277bbcf201d (logic unit
 misfired).

 Fixed in master,

I just updated to 768774812875b68dbd8b215a9c036597e00fb6d0 (Wed Dec 1
16:54:09 2010 +). Free text is still not indented and indents are
only one space.

I did a git bisect with this result:

95bb16661b22ce83326f13304ed4ad690cc03eba is the first bad commit
commit 95bb16661b22ce83326f13304ed4ad690cc03eba
Author: Achim Gratz strom...@nexgo.de
Date:   Fri Nov 19 01:37:01 2010 +

Fix byte compiler warnings

* org-macs.el (org-called-interactively-p): Wrap function call in
with-no-warnings.
(with-silent-modifications) Declare macro for Emacs  23.2.

TINYCHANGE

:04 04 a6a2a10812ae5218f732d8419016b9b4be84996a
828a0e2bbbc5b1c52ed713cc64dc3ba764a5e406 M  lisp

___
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