Re: [O] would take more than an org-mode strip-down.

2011-10-03 Thread Rustom Mody
Suvayu ali said

> This made me think, although not exactly what James is expecting but
> it might be possible to package a minimal Emacs distribution with the
> latest stable org-mode included as an alternate download. It could
> supply some skeleton files which would be used as default
> customisations and extended as the user grows in lisp proficiency.
> Pretty much the same as `emacs -Q -l minimal-org.el'. This could be
> offered as a download on the home page for non-techie users.
>

+1

There is a recent question on the python mailing list
http://groups.google.com/group/comp.lang.python/browse_thread/thread/38017fbf4c06f5f5#

A couple of us responded with '... you want org mode...'
It suggests one more user-story to the list I earlier suggested: org as
mini-dbms.
[Traditionally spreadsheets are used for calculation as well as simply
storing data]


Re: [O] Checkbox difficulties

2011-10-03 Thread Nick Dokos
Dave Abrahams  wrote:

> 
> on Mon Oct 03 2011, Nick Dokos  wrote:
> 
> > Dave Abrahams  wrote:
> >
> >> Wow, that's awesome... we're *so* close... but how do I get it to
> >> automatically mark the item DONE when the last box is checked?
> >> 
> >
> > Take a look at
> >
> >  http://thread.gmane.org/gmane.emacs.orgmode/42715/focus=42721
> 
> Works!  Oh-so-awesome!  Shouldn't these capabilities be built-in and
> shipped as first class Org features?
> 

Well, if the function can be made to work completely generally, maybe:
as it stands, it is more a proof-of-concept than a complete solution.

I added an entry in the FAQ on Worg about this - I figured this is the
second time the question has been asked on the list: ergo it's a FAQ ;-)

   http://orgmode.org/worg/org-faq.html#sec-9-7

You might want to read the entry: it includes a slightly revised function
but it also includes a couple of caveats that explain why I think it's
not a complete solution:

Nick




Re: [O] would take more than an org-mode strip-down.

2011-10-03 Thread suvayu ali
Hi Carsten,

On Fri, Sep 30, 2011 at 8:00 AM, Carsten Dominik
 wrote:
>
> 3. File structure and letting other people be you assistant
>
>   I agree that Org-mode will not be easy for an assistant to open up
>   in you absence, if that assistant is not trained in
>   Emacs/Org-mode.  A program like Things is *much* better for this
>   work flow.
>

This made me think, although not exactly what James is expecting but
it might be possible to package a minimal Emacs distribution with the
latest stable org-mode included as an alternate download. It could
supply some skeleton files which would be used as default
customisations and extended as the user grows in lisp proficiency.
Pretty much the same as `emacs -Q -l minimal-org.el'. This could be
offered as a download on the home page for non-techie users.

I would expect having a download only for Windows and OS X should
suffice since Linux users already have Emacs (with some version of
org-mode) from their respective repositories. Is that an idea worth
pursuing?

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] would take more than an org-mode strip-down.

2011-10-03 Thread Allen S. Rout

On 09/27/2011 01:04 PM, James Levine wrote:


I thought I’d zoom out and tell you what a consumer experience is
like:


I'm replying off the list.  BTW, are you either The Conductor, or The
Author? ;)

Your experience seems to be informed by a sense that 'org-mode' is
eager for market share or some such.  I think you'll find that's not a
common case.  Certainly, org-mode afficionados are eager to expound on
their preferred tools; but that doesn't mean they're after mass-market
appeal.

For example:


2) Some things are just better with a gui.


to a project subtitled "Your life in plain text" suggests your
perspective is not aligned with that of many of the project
participants.  I do not mean by this a disparagement of your
perspective, merely discriminating it from that of the average nerd.



Your composition style is literate and prolific; you might enjoy this
series of essays by Neal Stephenson, entitled "In the beginning was
the Command Line".

http://steve-parker.org/articles/others/stephenson/

(also available from the author's website in other formats)

http://www.cryptonomicon.com/beginning.html


but the discussion of 'fallibility...' includes several paragraphs
which I feel might be illuminating, especially on the topic of
documentation.

http://steve-parker.org/articles/others/stephenson/fallibility.shtml

In My Opinion, the current docs in org-mode are targeted at those who
expect to have their own heads and shoulders inside the 'engine
compartment' of org and emacs.  This makes them a poor tool to
communicate with End-Users.  But this might be acceptable, because
there's no hood on the engine, and the bloody thing is steered with a
rudder and laterals, instead of the nice sane wheel and pedals
everyone else uses. :)


- Allen S. Rout




[O] Exclude some files from

2011-10-03 Thread Marcelo de Moraes Serpa
Hey guys,

I'm using org-export-icalendar-combine-agenda-files to export the agenda
files into one .ics file. However, I'd like to exclude a particular org file
from this export. How could I do it?

Thanks,

- Marcelo.


Re: [O] [OT] How to save and restore window and frame layout and position of windows on monitor - session management

2011-10-03 Thread Dave Abrahams

on Mon Oct 03 2011, brian powell  wrote:

> * Discovered this a few days ago: Will it solve your "proble"--which
> seems to be "saving state"; well, maybe, if you play with the code a
> little:
>
> ;;; perspective.el --- switch between named "perspectives" of the editor
>
> ;; Copyright (C) 2008-2010 Nathan Weizenbaum 
> ;;
> ;; Licensed under the same terms as Emacs.
>
> ;; Author: Nathan Weizenbaum
> ;; URL: http://github.com/nex3/perspective-el
> ;; Version: 1.6
> ;; Created: 2008-03-05
> ;; By: Nathan Weizenbaum
> ;; Keywords: workspace, convenience, frames
>
> ;;; Commentary:
>
> ;; This package provides tagged workspaces in Emacs, similar to
> ;; workspaces in windows managers such as Awesome and XMonad (and
> ;; somewhat similar to multiple desktops in Gnome or Spaces in OS X).

Aaagh, not another one!  Now I have another package to evaluate.  Can't
the community settle on one solution to this problem?

http://www.emacswiki.org/emacs/WorkgroupsForWindows

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com




Re: [O] Recursive org-agenda-files

2011-10-03 Thread netty hacky
Hi Neilen,

I think you want these in your .emacs (from
http://orgmode.org/worg/org-faq.html, "Can I add files recursively to
my list of agenda files?"):
(load-library "find-lisp")
(setq org-agenda-files (find-lisp-find-files "~/org" "\.org$"))

Or you can add each project directory to org-agenda-files yourself,
however, this is not recursive, it only adds .org files under the
project directories, not their sub-directories (see docstring of
org-agenda-files: C-h v org-agenda-files):
(setq org-agenda-files '("~/org/projA" "~/org/projB" "~/org/projC"))

In my setup, I also use the following to exclude directory "exc" from the list:
(eval-when-compile (require 'cl))
(setq org-agenda-files
  (remove-if '(lambda (x)
(string-match
 (concat "^" (regexp-quote (expand-file-name
"~/org/exc/")))
 x))
 org-agenda-files))

Net

On Mon, Oct 3, 2011 at 8:48 AM, Neilen Marais  wrote:
> Hi,
>
> I like to have a directory per project, with an .org file in each
> directory. Is there a way to set org-agenda-files such that it can
> recursively scan my whole projects dir for all org files?
>
> Thanks
> Neilen
>
>



Re: [O] Reminders with alarms

2011-10-03 Thread Ivan Vilata i Balaguer
brian powell (2011-09-08 17:42:02 +0200) wrote:

> P.S. I've used calendar/*Fancy Diary Entries* and appt.el for many
> years--works great--I just have it pop up a big blank emacs screen
> with the alarm reminder--I usually set it for 15 minutes ahead of the
> important reminder:
> ;;; appt.el --- appointment notification functions.
> ;; Copyright (C) 1989, 1990, 1994 Free Software Foundation, Inc.
> ;; Author: Neil Mager 
> ...
> (setq appt-message-warning-time 15)
> (setq appt-display-interval 5)

I also use appt.el, but I've written a notification function that calls
a little script to use FreeDesktop.org's notifications and send a
message to Screen sessions.  The script is only called from the Emacs
server process to avoid repeated messages, since I may have other Emacs
processes running.

The function is (customize appt-disp-window-function to use this):

8<
(defun ivb/appt-disp-window (min-to-app new-time appt-msg)
  (if (condition-case nil
  (server-running-p)
(void-function nil))
  (call-process "notify" nil 0 nil "Reminder" appt-msg))
  (appt-disp-window min-to-app new-time appt-msg))
8<

The "notify" script contains:

8<
#!/bin/sh

case $# in
1)   title="Notification" message="$1" ;;
2)   title="$1" message="$2" ;;
*)   echo "Usage: $(basename $0) [TITLE] MESSAGE" > /dev/stderr
 exit 1
esac

# Show X notification on current display.
test "$DISPLAY" && notify-send -t 0 "$title" "$message"

# Notify screen sessions.
for scrname in $(screen -ls | sed -ne 's/^\t\([^\t]*\)\t.*/\1/p')
do
screen -S $scrname -X wall "$title: $message"
done
8<

It should be executable and placed in your $PATH.  On Debian/Ubuntu
you'll need the libnotify-bin and screen packages.

Customize appt-display-duration, appt-display-interval and
appt-message-warning-time to your liking, then run:

8<
(appt-activate +1)
(bh/org-agenda-to-appt)
8<

HTH,
-- 
Ivan Vilata i Balaguer -- http://elvil.net/




Re: [O] [OT] How to save and restore window and frame layout and position of windows on monitor - session management

2011-10-03 Thread brian powell
* Also, there are these commands which may be what is sought (to "save state"):
** "Click  on a completion to select it.
In this buffer, type RET to select the completion near point.

Possible completions are:
desktop-change-dir  desktop-clear
desktop-readdesktop-remove
desktop-revert  desktop-save
desktop-save-in-desktop-dir desktop-save-mode



> On Mon, Oct 3, 2011 at 5:13 AM, Rainer M Krug  wrote:
>> Hi
>>
>> this is slightly off-topic, but I rather try it here first: I would like to
>> save my window and frame layout and restore it after re-starting emacs. I
>> have the buffers auto saved, and that is working. But I don't get my head
>> around the session management. I found the website
>> http://www.emacswiki.org/emacs/SessionManagement  but each time I look at
>> it, I get more confused and lost.
>>
>> So - does somebody use session management (I am at the moment only
>> interested to getting back the layout of the different frames in a window,
>> and all open windows restored) and could share some insight and code
>> snippets for a confused org-user to achieve this?
>>
>> Thanks,
>>
>> Rainer
>>
>> --
>> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
>> UCT), Dipl. Phys. (Germany)
>>
>> Centre of Excellence for Invasion Biology
>> Stellenbosch University
>> South Africa
>>
>> Tel :       +33 - (0)9 53 10 27 44
>> Cell:       +33 - (0)6 85 62 59 98
>> Fax (F):       +33 - (0)9 58 10 27 44
>>
>> Fax (D):    +49 - (0)3 21 21 25 22 44
>>
>> email:      rai...@krugs.de
>>
>> Skype:      RMkrug
>>
>>
>



Re: [O] [OT] How to save and restore window and frame layout and position of windows on monitor - session management

2011-10-03 Thread brian powell
* Discovered this a few days ago: Will it solve your "proble"--which
seems to be "saving state"; well, maybe, if you play with the code a
little:

;;; perspective.el --- switch between named "perspectives" of the editor

;; Copyright (C) 2008-2010 Nathan Weizenbaum 
;;
;; Licensed under the same terms as Emacs.

;; Author: Nathan Weizenbaum
;; URL: http://github.com/nex3/perspective-el
;; Version: 1.6
;; Created: 2008-03-05
;; By: Nathan Weizenbaum
;; Keywords: workspace, convenience, frames

;;; Commentary:

;; This package provides tagged workspaces in Emacs, similar to
;; workspaces in windows managers such as Awesome and XMonad (and
;; somewhat similar to multiple desktops in Gnome or Spaces in OS X).

;; perspective.el provides multiple workspaces (or "perspectives") for
;; each Emacs frame.  This makes it easy to work on many separate projects
;; without getting lost in all the buffers.

;; Each perspective is composed of a window configuration and a set of
;; buffers.  Switching to a perspective activates its window
;; configuration, and when in a perspective only its buffers are
;; available by default.

On Mon, Oct 3, 2011 at 5:13 AM, Rainer M Krug  wrote:
> Hi
>
> this is slightly off-topic, but I rather try it here first: I would like to
> save my window and frame layout and restore it after re-starting emacs. I
> have the buffers auto saved, and that is working. But I don't get my head
> around the session management. I found the website
> http://www.emacswiki.org/emacs/SessionManagement  but each time I look at
> it, I get more confused and lost.
>
> So - does somebody use session management (I am at the moment only
> interested to getting back the layout of the different frames in a window,
> and all open windows restored) and could share some insight and code
> snippets for a confused org-user to achieve this?
>
> Thanks,
>
> Rainer
>
> --
> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
> UCT), Dipl. Phys. (Germany)
>
> Centre of Excellence for Invasion Biology
> Stellenbosch University
> South Africa
>
> Tel :       +33 - (0)9 53 10 27 44
> Cell:       +33 - (0)6 85 62 59 98
> Fax (F):       +33 - (0)9 58 10 27 44
>
> Fax (D):    +49 - (0)3 21 21 25 22 44
>
> email:      rai...@krugs.de
>
> Skype:      RMkrug
>
>



[O] Bug: Invalid refile target [7.7 (release_7.7.370.g8e44ba)]

2011-10-03 Thread Dave Abrahams


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

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

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


Today I was trying to refile an agenda item.  Ido gave me many completions
to work with including the following:

Boost Libraries
Boost Libraries (todo.txt)

I've seen lots of duplicates over the past couple of weeks, and always
wondered why I was getting them.  I still don't know.  These, though,
aren't exact duplicates.  When I try to refile into the first one, I
get:

org-refile-get-location: Invalid target location

Now, interestingly, after refiling successfully into the second one, I
can't get the duplication to show up anymore, for any item I might
choose to refile.  So, sorry, no backtrace.

Emacs  : GNU Emacs 23.3.1 (x86_64-apple-darwin10.8.0, Carbon Version 1.6.0 
AppKit 1038.36)
 of 2011-09-12 on pluto.luannocracy.com
Package: Org-mode version 7.7 (release_7.7.370.g8e44ba)

current state:
==
(setq
 org-x-backends '(ox-org ox-redmine)
 org-agenda-deadline-leaders '("D: " "D%d: ")
 org-clock-in-switch-to-state "STARTED"
 org-agenda-skip-scheduled-if-deadline-is-shown t
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-special-ctrl-a/e '(nil . t)
 org-x-redmine-title-prefix-match-function 'org-x-redmine-title-prefix-match
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-agenda-custom-commands '(("E" "Errands (next 3 days)" tags
   
"Errand&TODO<>\"DONE\"&TODO<>\"CANCELED\"&STYLE<>\"habit\"&SCHEDULED<\"<+3d>\""
   ((org-agenda-overriding-header "Errands (next 3 
days)")

)
   )
  ("A" "Priority #A tasks" agenda ""
   ((org-agenda-ndays 1)
(org-agenda-overriding-header
 "Today's priority #A tasks: ")
(org-agenda-skip-function
 (quote
  (org-agenda-skip-entry-if (quote notregexp)
   "\\=.*\\[#A\\]")
  )
 )
)
   )
  ("b" "Priority #A and #B tasks" agenda ""
   ((org-agenda-ndays 1)
(org-agenda-overriding-header
 "Today's priority #A and #B tasks: ")
(org-agenda-skip-function
 (quote
  (org-agenda-skip-entry-if (quote regexp) 
"\\=.*\\[#C\\]")
  )
 )
)
   )
  ("w" "Waiting/delegated tasks" tags
   "TODO=\"WAITING\"|TODO=\"DELEGATED\""
   ((org-agenda-overriding-header 
"Waiting/delegated tasks:")
(org-agenda-sorting-strategy
 (quote (todo-state-up priority-down 
category-up)))
)
   )
  ("p" "Unprioritized tasks" tags
   
"AREA<>\"Work\"&TODO<>\"\"&TODO<>{DONE\\|CANCELED\\|NOTE\\|PROJECT\\|DEFERRED\\|SOMEDAY}"
   ((org-agenda-files
 

   (quote





 
("~/Documents/Tasks/todo.txt")





 )
 
 

[O] Recursive org-agenda-files

2011-10-03 Thread Neilen Marais
Hi,

I like to have a directory per project, with an .org file in each
directory. Is there a way to set org-agenda-files such that it can
recursively scan my whole projects dir for all org files?

Thanks
Neilen



Re: [O] Checkbox difficulties

2011-10-03 Thread Dave Abrahams

on Mon Oct 03 2011, Nick Dokos  wrote:

> Dave Abrahams  wrote:
>
>> Wow, that's awesome... we're *so* close... but how do I get it to
>> automatically mark the item DONE when the last box is checked?
>> 
>
> Take a look at
>
>  http://thread.gmane.org/gmane.emacs.orgmode/42715/focus=42721

Works!  Oh-so-awesome!  Shouldn't these capabilities be built-in and
shipped as first class Org features?

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com




Re: [O] Checkbox difficulties

2011-10-03 Thread Dave Abrahams

on Mon Oct 03 2011, Nick Dokos  wrote:

> Dave Abrahams  wrote:
>
>> Wow, that's awesome... we're *so* close... but how do I get it to
>> automatically mark the item DONE when the last box is checked?
>> 
>
> Take a look at
>
>  http://thread.gmane.org/gmane.emacs.orgmode/42715/focus=42721

Thanks!  Trying it now...

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com




Re: [O] [PATCH] Re: Latex Export: Place Caption Below Table

2011-10-03 Thread Nick Dokos
Eric S Fraga  wrote:

> t...@tsdye.com (Thomas S. Dye) writes:
> 
> > Nick Dokos  writes:
> 
> >> The following patch (deliberately hidden as a binary octet-stream to keep 
> >> it
> >> out of patchwork) will do that - but IMO, it would be better to have yet 
> >> another
> >> user-settable option to control the placement.
> >>
> >> Nick
> >>
> >>
> >
> > Aloha all,
> >
> > The inlined patch introduces a variable
> > org-export-latex-table-caption-above to control the placement of table
> > captions.  Thanks to Nick Dokos for leading the way on this.
> >
> > Tom
> 
> 
> thanks for doing this -- I was swamped last week so had no chance of
> following the thread until today!
> 
> One comment on the last version of the patch: would it not be better for
> the variable to be a defcustom variable instead of defvar?

I agree - being able to customize variables without resorting to lisp is
generally preferable: it is friendlier to newcomers and it allows even
experienced users to find the various knobs.

If the patch is deemed acceptable, it might also be nice to be able to
set the variable per-file through the OPTIONS line, but that can
certainly wait.

> Otherwise,
> the patch looks fine to me although I'm unlikely to use the new
> functionality ;-)

Unless you try to publish an article in a journal with a perverse layout
policy :-)

I applied the patch and took it for a short spin. git complained about
trailing whitespace:

,
| /home/nick/Mail/inbox/1021:197: trailing whitespace.
| (if (and floatp org-export-latex-table-caption-above) 
| /home/nick/Mail/inbox/1021:212: trailing whitespace.
| (if (and floatp (not 
org-export-latex-table-caption-above)) 
| /home/nick/Mail/inbox/1021:225: trailing whitespace.
|   (if (not org-export-latex-table-caption-above) tbl) 
| /home/nick/Mail/inbox/1021:231: trailing whitespace.
|   (if org-export-latex-table-caption-above tbl) 
| warning: 4 lines add whitespace errors.
`

but other than that the patch worked fine.

Thanks, Tom!
Nick





Re: [O] Bug: Feature-request: `org-after-checkbox-statistics-hook' [7.7 (release_7.7.370.g8e44ba)]

2011-10-03 Thread Dave Abrahams

on Sun Oct 02 2011, Nicolas Goaziou  wrote:

> Dave Abrahams  writes:
>
>> I was using checkboxes for a group of subtasks, and was surprised when
>> the following (which I lifted from the manual) wasn't causing the parent
>> item to be marked DONE upon checking the last box.
>>
>> (defun dwa/org-summary-todo (n-done n-not-done)
>>   "Switch entry to DONE when all subentries are done, to TODO otherwise."
>>   (let (org-log-done org-log-states)   ; turn off logging
>> (org-todo (if (= n-not-done 0) "DONE" "TODO"
>> (add-hook 'org-after-todo-statistics-hook 'dwa/org-summary-todo)
>>
>> So I set some debugger breakpoints and realized that code wasn't even
>> getting called.  There's a completely separate wad of code in org-list
>> that handles checkbox statistics.  So naturally, there's a hook, which I
>> added my TODO->DONE function to:
>>
>> (add-hook 'org-checkbox-statistics-hook 'dwa/org-summary-todo)
>>
>> But `org-checkbox-statistics-hook' is a list of nullary functions, so of
>> course this broke since my function expects N-DONE and N-NOT-DONE.  I
>> looked around for an easy way to determine N-DONE and N-NOT-DONE but it
>> doesn't seem to exist; it's buried in the logic of
>> org-update-checkbox-count... I think.  What I need is a hook that acts
>> like org-after-todo-statistics-hook, but for checkboxes.
>
> You just have to search for "[ ]" or "[-]" in the current section. If
> there is none, and there is at least one "[X]", you can mark your task
> as done.

Silly me; I was looking for a programmatic interface that would handle
things at a level of abstraction above pattern matching in text.  But
given the number of similar-looking regexps I see scattered through the
Org code I'm guessing that's just not the way things are done.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com



Re: [O] Org-special-blogs does not make well-formed xhtml

2011-10-03 Thread Sebastien Vauban
Hi Christian Moe,

Christian Moe wrote:
> Hi,
>
> XHTML produced with Org-special-blocks is not well-formed;  tags 
> get wrapped in  tags. Example:
>
> Some text.
>
> #+begin_sidebar
>   Some details left out of the main text.
>
>   Some more details.
> #+end_sidebar
>
> Some more text.
>
> This results in the following html, which causes XML processors to fail.
>
> 
> 
>   Some details left out of the main text.
> 
> 
>   Some more details.
> 
> 
> 
> Some more text.
> 
>
> The problem seems to be fixed by un-commenting the fifth line in the 
> below function in org-special-blocks.el:
>
> (defun org-special-blocks-convert-html-special-cookies ()
>   "Converts the special cookies into div blocks."
>   ;; Uses the dynamically-bound variable `line'.
>   (when (string-match "^ORG-\\(.*\\)-\\(START\\|END\\)$" line)
> ;(org-close-par-maybe)
> (message "%s" (match-string 1))
> (if (equal (match-string 2 line) "START")
>  (insert "\n")
>(insert "\n"))
> (throw 'nextline nil)))
>
> Does anyone know if that was commented out for a reason?

git blame suggests it was there since that file org-special-blocks.el has been
added (in contrib/lisp, by Carsten, on 2009-05-07 13:53)...

Best regards,
  Seb

-- 
Sebastien Vauban




[O] Org-special-blogs does not make well-formed xhtml

2011-10-03 Thread Christian Moe

Hi,

XHTML produced with Org-special-blocks is not well-formed;  tags 
get wrapped in  tags. Example:


   Some text.

   #+begin_sidebar
 Some details left out of the main text.

 Some more details.
   #+end_sidebar

   Some more text.

This results in the following html, which causes XML processors to fail.

   
   
 Some details left out of the main text.
   
   
 Some more details.
   
   
   
   Some more text.
   

The problem seems to be fixed by un-commenting the fifth line in the 
below function in org-special-blocks.el:


   (defun org-special-blocks-convert-html-special-cookies ()
 "Converts the special cookies into div blocks."
 ;; Uses the dynamically-bound variable `line'.
 (when (string-match "^ORG-\\(.*\\)-\\(START\\|END\\)$" line)
   ;(org-close-par-maybe)
   (message "%s" (match-string 1))
   (if (equal (match-string 2 line) "START")
   (insert "\n")
 (insert "\n"))
   (throw 'nextline nil)))

Does anyone know if that was commented out for a reason?


Yours,
Christian



Re: [O] How to debug "Specified time is not representable"

2011-10-03 Thread Karl Voit
Hi!

* Jambunathan K  wrote:
> Karl Voit  writes:
>
>> When I get «Specified time is not representable» while creating the
>> Agenda view, I want to get more information *where* the problem is.
>>
>> I found [1] and following and so I got it that there is no way of
>> managing timestamps before 1970 :-(
>>
>> Is there a way to get to the problematic time stamp?
>>   1. http://lists.gnu.org/archive/html/emacs-orgmode/2011-05/msg00729.html
>
> Hope you have looked at C-h v org-read-date-force-compatible-dates 

Meanwhile: yes.

I do not want to use timestamps outside of UNIX epoch. I just wanted
to *locate* the culprit.

> A simple M-x grep-find on .org files for the year should work.

I do not know the year.

> You may also try
> M-x debug-on-entry RET ding RET
> Look at the backtrace and see whether you can get some clues.

Sorry, no clue.

> Works best if your orgmode is not compiled

When I have compiled Orgmode, should I delete all *.elc files?

-- 
Karl Voit




[O] [OT] How to save and restore window and frame layout and position of windows on monitor - session management

2011-10-03 Thread Rainer M Krug
Hi

this is slightly off-topic, but I rather try it here first: I would like to
save my window and frame layout and restore it after re-starting emacs. I
have the buffers auto saved, and that is working. But I don't get my head
around the session management. I found the website
http://www.emacswiki.org/emacs/SessionManagement  but each time I look at
it, I get more confused and lost.

So - does somebody use session management (I am at the moment only
interested to getting back the layout of the different frames in a window,
and all open windows restored) and could share some insight and code
snippets for a confused org-user to achieve this?

Thanks,

Rainer

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

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

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

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

email:  rai...@krugs.de

Skype:  RMkrug


Re: [O] [PATCH] Re: Latex Export: Place Caption Below Table

2011-10-03 Thread Eric S Fraga
t...@tsdye.com (Thomas S. Dye) writes:

> Nick Dokos  writes:

>> The following patch (deliberately hidden as a binary octet-stream to keep it
>> out of patchwork) will do that - but IMO, it would be better to have yet 
>> another
>> user-settable option to control the placement.
>>
>> Nick
>>
>>
>
> Aloha all,
>
> The inlined patch introduces a variable
> org-export-latex-table-caption-above to control the placement of table
> captions.  Thanks to Nick Dokos for leading the way on this.
>
> Tom

Tom & Nick,

thanks for doing this -- I was swamped last week so had no chance of
following the thread until today!

One comment on the last version of the patch: would it not be better for
the variable to be a defcustom variable instead of defvar?  Otherwise,
the patch looks fine to me although I'm unlikely to use the new
functionality ;-)

Thanks again,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.7 (release_7.7.340.g80931)