Re: [Orgmode] Tags not lining up in org-indent-mode

2010-04-22 Thread Jason Dunsmore
I figured out how to keep tabs from being used to align tags.  The
solution is to set indent-tabs-mode to nil locally for org-mode.

I believe the following patch should fix this issue.

--8---cut here---start-8---
index c875472..1d10754 100644
--- a/lisp/org-indent.el
+++ b/lisp/org-indent.el
@@ -131,6 +131,7 @@ FIXME:  How to update when broken?
   (setq org-indent-mode nil)
 (if org-indent-mode
(progn
+ (org-set-local 'indent-tabs-mode nil)
  (or org-indent-strings (org-indent-initialize))
  (when org-indent-mode-turns-off-org-adapt-indentation
(org-set-local 'org-adapt-indentation nil))
--8---cut here---end---8---

Regards,
Jason


___
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] Tags not lining up in org-indent-mode

2010-04-20 Thread Jason Dunsmore
I noticed that org-mode's tags do not line up along the right side when
org-indent-mode is enabled (indent-mode is an excellent feature, by the
way).  Probably because tab characters are being used to align the tags
on the right side.

Is there a way to use spaces instead of tabs to align tags, or is there
some other way to fix this?  I'm using Org-mode version 6.35trans
(release_6.35g.72.ge603).  Thanks.


___
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-beamer bug

2010-03-25 Thread Jason Dunsmore
From reading the org-beamer documentation, I get the impression that the
following two should headings should be equivalent:


* Example 1  :B_block:

* Example 2
:PROPERTIES:
:BEAMER_env: block
:END:


However, only the second example is actually exported with a block
environment.  This also happens with other environments.  The note
environment is the only one I tested that works by using a tag.

I'm using Org-mode version 6.34trans (release_6.34c.251.gd1289).

Regards,
Jason


___
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-beamer bug

2010-03-25 Thread Jason Dunsmore
Thanks for the explanation.

The documentation is confusing.

 If this property is set, the entry will also get a `:B_environment:'
 tag to make this visible.  This tag has no semantic meaning, it is
 only a visual aid.

I thought there was actually a `:B_environment:' tag.  I also didn't
know that this was referring to auto-selecting the tag when using the
PROPERTIES selection interface (C-c C-c inside a PROPERTIES drawer).

For that part of the documentation, I would suggest:

``If this property is set using C-c C-c inside the properties drawer,
  the entry will also get an environment tag (eg. :B_block:) to make
  this visible. This tag has no semantic meaning, it is only a visual
  aid.''

The org-beamer-set-environment-tag docstring states:

``Set an environment tag, to determine the beamer environment to be used.
  This makes use of the fast tag selection interface.''

But it doesn't determine the beamer environment to be used.  I would
suggest instead:

``Set a beamer environment tag using the fast tag selection interface.
  This is only a visual aid to indicate the beamer environment
  configured in the :BEAMER_env: property.''

What is the point of having an interface to select the beamer
environment tags (C-c C-b) if they are auto-generated?

Also, the example from
http://orgmode.org/manual/Beamer-class-export.html shows a :B_block: tag
in use without the :BEAMER_env: property.

--8---cut here---start-8---
 *** Request   :B_block:
 Please test this stuff!
--8---cut here---end---8---

This should be:

--8---cut here---start-8---
 *** Request   :B_block:
 :PROPERTIES:
 :BEAMER_env: block
 :END:
 Please test this stuff!
--8---cut here---end---8---

Did org-beamer previously support configuring beamer environments via
tags?  If so, why was it removed?  It seems like a nice feature.

Regards,
Jason


___
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-refile bug

2010-03-19 Thread Jason Dunsmore
Carsten Dominik carsten.domi...@gmail.com writes:

 A better solution would be to do a tab completion when trying to enter
 an invalid entry

 I am not sure if I understand you correctly, but there *is*
 completion support at that prompt.

What I meant was: show the possible completions whenever an incomplete
entry is entered.  Here is an example of this in Emacs:

- Type M-x Info RET.
- The prompt shows M-x Info-.
- Type RET again.
- A *Completions* buffer shows a list of all choices starting with
  Info-.
- Type M-x Info-asdf RET.
- The prompt shows M-x Info-asdf [No match] and continues to prompt
  the user.

This prevents invalid input.  Can something like this be used in the
org refile prompts?

Regards,
Jason


___
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] Displaying your Org agenda after idle time

2010-03-18 Thread Jason Dunsmore
I've been searching for a good way to remember to look at my agenda.
Great idea!


___
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-refile bug

2010-03-18 Thread Jason Dunsmore
Carsten Dominik carsten.domi...@gmail.com writes:

 I think your analysis is correct.  The bookmark-set function is always
 called *after* the note has been inserted at the target location.  So
 even if it fails, the note should not disappear.

 Without a reproducible test case, it is difficult to do more here.

I was mistaken.  It doesn't have to do with the bookmark function.  It
looks like org-refile-get-location was failing to handle the case where
the refile entry was invalid.  I was used to typing just the header name
at the refile prompt and I didn't realize the file name was in
parenthesis.

Here is a quick fix to prevent the entry from being lost:

--8---cut here---start-8---
diff --git a/lisp/org.el b/lisp/org.el
index 4876173..feb13db 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -9481,15 +9481,17 @@ See also `org-refile-use-outline-path' and 
`org-completion
(if (equal (car org-refile-history) (nth 1 org-refile-history))
(pop org-refile-history)))
  pa)   
-  (when (string-match \\`\\(.*\\)/\\([^/]+\\)\\' answ)
-   (setq parent (match-string 1 answ)
- child (match-string 2 answ))
-   (setq parent-target (or (assoc parent tbl) (assoc (concat parent /) 
tbl)
-   (when (and parent-target
-  (or (eq new-nodes t)
-  (and (eq new-nodes 'confirm)
-   (y-or-n-p (format Create new node \%s\?  
child
- (org-refile-new-child parent-target child))
+  (if (string-match \\`\\(.*\\)/\\([^/]+\\)\\' answ)
+ (progn
+   (setq parent (match-string 1 answ)
+ child (match-string 2 answ))
+   (setq parent-target (or (assoc parent tbl) (assoc (concat parent 
/) 
+   (when (and parent-target
+  (or (eq new-nodes t)
+  (and (eq new-nodes 'confirm)
+   (y-or-n-p (format Create new node \%s\?  
child
+ (org-refile-new-child parent-target child)))
+   (error Invalid location.)

 (defun org-refile-new-child (parent-target child)
   Use refile target PARENT-TARGET to add new CHILD below it.
--8---cut here---end---8---

A better solution would be to do a tab completion when trying to enter
an invalid entry, but this is beyond my current knowledge of elisp.

Regards,
Jason


___
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-refile bug

2010-03-17 Thread Jason Dunsmore
Mikael Fornius m...@abc.se writes:

 I can non reproduce this problem. 

 I Also use current release_6.34c.210.g6976 and tried with basic
 completion, ido-completion and iswitchb.

 Can you give some more information? Warnings in *Messages* and maybe
 M-x toggle-debug-on-error gives backtrace?

Thanks for looking into this.

There were no warnings or errors.  It just silently failed to file the
entry in my org file.  Only status messages were shown in *Messages*.

It has to do with the contents of my ~/.emacs.d/bookmarks file.  When it
wasn't working, my bookmarks file contained the following:


$ cat .emacs.d/bookmarks
 Emacs Bookmark Format Version 1 
;;; This format is meant to be slightly human-readable;
;;; nevertheless, you probably don't want to edit it.
;;; -*- End Of Bookmark File Format Version Stamp -*-
((org-refile-last-stored
 (filename . ~/repo/org/todo.org)
 (front-context-string . *** Buy some tom)
 (rear-context-string . se\n** Gardening\n)
 (position . 1030))
(org-remember-last-stored
 (filename . ~/repo/org/todo.org)
 (front-context-string . *** TODO Buy som)
 (rear-context-string . se\n** Gardening\n)
 (position . 874))
)


I removed the file and then refiling from org-remember using C-1 C-c
C-c began working.  After a successful test, the contents were:


$ cat .emacs.d/bookmarks
 Emacs Bookmark Format Version 1 
;;; This format is meant to be slightly human-readable;
;;; nevertheless, you probably don't want to edit it.
;;; -*- End Of Bookmark File Format Version Stamp -*-
((org-refile-last-stored
 (filename . ~/repo/org/todo.org)
 (front-context-string . ** test\n* Misc\n*)
 (rear-context-string . SEARCH\n\n* Inbox\n)
 (position . 318))
(org-remember-last-stored
 (filename . ~/repo/org/todo.org)
 (front-context-string . ** test\n* Misc\n*)
 (rear-context-string . SEARCH\n\n* Inbox\n)
 (position . 318))
)


Any idea what the problem is?


___
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-refile bug

2010-03-16 Thread Jason Dunsmore
Whenever I run org-remember, enter a single item, type C-1 C-c C-c,
and select a heading to file it under, the entry is lost.  Is this a
bug?  I'm using Org-mode version 6.34trans (release_6.34c.210.g6976).


___
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-R still in contrib?

2010-02-24 Thread Jason Dunsmore
Was org-R.el supposted to have been removed from the contrib directory
since it has been replaced by org-babel (see the message from Dan
Davison to this list on Sat, 24 Oct 2009)?

I somehow missed the important disclaimer at the top of
http://orgmode.org/worg/org-tutorials/org-R/org-R.php and spent some
time learning how to use an obsolete Org add-on.

Thanks,
Jason


___
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] How to combine the analogue (Moleskine) world with digital (org-mode) world ?

2010-01-27 Thread Jason Dunsmore
Torsten Wagner torsten.wag...@gmail.com writes:

 My question is now. What would be the best way to combine the
 moleskine and org-mode ? Does someone have experience  with a paper
 based and digital mixture system?

I used to use similar clunky mixed org and paper systems, but this
thread just inspired me to write the following function which solves the
problem for me.  The function will allow me to non-interactively add a
message to the Inbox section of my Org file.


(defun phone-remember (file note)
  (interactive)
  (find-file (concat ~/repo/org/ file .org))
  (goto-line 5)
  (org-show-entry)
  (insert (concat ** TODO  note \n)))


I put the following procmail rule in place to trigger that function from
my cell phone:


:0
* ^from.*1234567...@vtext.com
* ^Subject: Todo \/.*
| emacsclient.emacs-snapshot -e (phone-remember \todo\ \${MATCH}\)


So I just email myself a note from my phone staring with Todo and it
gets added to my todo list.

I just tested it out, and it works really well!

I run emacs in daemon mode, but the same could be done with just the
emacs command.  It might fit into others' systems better if org-remember
is somehow called non-interactively.  That way, your org-remember
templates would be available.  Please let me know if someone figures out
how to do this.

Regards,
Jason


___
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-mode as QDA-Software?

2009-12-21 Thread Jason McBrayer
On Fri, Dec 18, 2009 at 6:43 PM, Sven Bretfeld sven.bretf...@gmx.ch wrote:

 Org mode would be a nice base for bringing a good QDA-Software to the
 world of free software, isn't it? QDAS is a special type of software for
 qualitative data analysis[¹], mostly used in Sociology and related
 fields of Science. Existing programs like Atlas.ti[²] and MaxQDA[³] are
 what I deem the essence of proprietary stuff: very expensive, elitist
 and utterly unfree (but widely used by research groups who have enough
 money at their disposal).

Interestingly, I saw ads for MaxQDA plastered everywhere at the American
Anthropological Association conference recently, and immediately thought
that the best way to go about implementing a free alternative would be on
top of Emacs.  Really all it would take would be a few functions to add
user tags as text properties, and then some stuff for browsing those
tags and doing some simple analysis on them.

I mentioned this possibility to my wife, who is the linguistic
anthropologist in
the family, and hence the prospective user of this, and she categorically
shot down the idea of using emacs for handling her data, on the basis of
user-unfriendliness. But it's interesting to see that our thoughts are running
along the same lines. I'd love to work on this kind of thing (whether based on
emacs or as a standalone GPL application), but I'm afraid I can't do it unless
I can be paid for it.  :(


___
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 and git blame integration?

2009-12-02 Thread Jason Dunsmore
Hi,

I used to use state change logging (configured with ! in
org-todo-keywords), but I didn't like the way it cluttered my org files
and I rarely referred to the logged times.

As an alternative, I found the git-blame utility to be useful for
finding out stuck projects and tasks in my Org files.  For example, the
following command will sort each line in an org file by the date it was
committed:

git blame todo.org|cut -c29-|cut -c 20-25 --complement|sort -n|less -S

I made a couple of bash functions based on this:

function org_history () {
git blame $1|cut -c29-|cut -c 20-25 --complement|sort -n|less -S
}

# Limit the output to Org headlines
function org_history_headings () {
git blame $1|grep ') \*'|cut -c29-|cut -c 20-25 --complement|sort -n|less -S
}

But I still have to go back and forth between the git-blame output and
Org.

It'd be nice if I could view and edit the git-blame output in org-mode,
group the sort by a certain level heading, cycle body visibility, etc...
I'm not sure how difficult that would be to implement.  Does this sound
like a reasonable feature request?

Regards,
Jason


___
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] suggestion: automatically recording entry creation date

2009-11-21 Thread Jason Dunsmore
Ilya Shlyakhter ilya_...@alum.mit.edu writes:

 A frequently-needed task is to find recently created entries.  Right
 now I do this by manually pasting a date into each entry,
 and using the timeline agenda.
 Maybe, there are better ways?  E.g. have the option to automatically
 record a property, Creation-date, when an entry is created.
 There would be much clutter if every entry had a :PROPERTIES: line.
 But maybe there could be an option to hide the :PROPERTIES:
 lines completely, unless it contained some user-defined properties.

 Or, creation date could be stored as a text property, to avoid
 clutter, for long-running emacs sessions.   But it would be lost when
 the file is closed.
 Maybe at file-closing time it could be converted to a normal property
 in the :PROPERTIES: drawer.

 Or maybe there are other options?

If you keep your org files in a git repo, you can use git blame file
to see when an entry was created.


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


[Orgmode] Faces bug in org-indent-mode

2009-08-20 Thread Jason F. McBrayer
There's a little problem with faces in org-indent-mode.  Faces that
highlight to the end of the line (hl-line-face, org-level-faces if
org-fontify-whole-header-line is on, etc) get carried over to the start
of text on the next line.  Faces like that are pretty rare, but I
thought I'd go ahead and report this.
-- 
+---+  
| Jason F. McBrayerjmcb...@carcosa.net  |  
| If someone conquers a thousand times a thousand others in |  
| battle, and someone else conquers himself, the latter one |  
| is the greatest of all conquerors.  --- The Dhammapada|  


___
Emacs-orgmode mailing list
Remember: 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-show-notification will use todochiku.el if available

2009-07-23 Thread Jason F. McBrayer
Bastien bastiengue...@googlemail.com writes:

 thanks a lot for the idea.  I have generalized this approach a bit by
 adding a new option: org-show-notification-handler.  

That certainly does the job.  For me it means configuring notification
method in two places (org and todochiku), but that's not unreasonable,
given that not very many people will have todochiku installed.  Thanks
for including the feature if not the patch.

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


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


[Orgmode] [PATCH] org-show-notification will use todochiku.el if available

2009-07-22 Thread Jason F. McBrayer

This is a little patch to let org-show-notification (in org-clock.el)
use the package [todochiku.el] if available.  This means that if
todochiku has been set up correctly, org-show-notification will work
with Growl (on MacOS) or Snarl (on MSWindows), as well as libnotify (on
*ix). 

[todochiku.el] http://www.emacswiki.org/emacs-se/ToDoChiKu
---
 lisp/org-clock.el |9 ++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 594d3cf..5428aa1 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -440,9 +440,12 @@ Notification is shown only once.
(setq org-clock-notification-was-shown nil)
 
 (defun org-show-notification (notification)
-  Show notification. Use libnotify, if available.
-  (if (org-program-exists notify-send)
-  (start-process emacs-timer-notification nil notify-send 
notification))
+  Show notification. Use todochiku.el or libnotify, if available.
+  (if (fboundp 'todochiku-message)
+  (todochiku-message org-mode notification notification
+ (todochiku-icon 'emacs))
+(if (org-program-exists notify-send)
+(start-process emacs-timer-notification nil notify-send 
notification)))
   ;; In any case, show in message area
   (message notification))
 
-- 
1.6.1.2


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


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


Re: [Orgmode] Did Anyone Ever Get This Working ... ?

2009-06-02 Thread Jason Schadel
Looks like you received some other examples but here's how I did it:

(require 'trac-wiki)
(trac-wiki-define-project project-trac
https://trac.project.com/trac; username)
(autoload 'trac-wiki trac-wiki Trac wiki editing entry-point. t)
;;; - start orgstruct minor mode when trac-wiki is loaded.
(add-hook 'trac-wiki-mode-hook 'turn-on-orgstruct)

-Jason

On Mon, Jun 1, 2009 at 2:01 PM, Tennis Smith ten...@tripit.com wrote:
 Hi Jason,

 Do you have an example of how to run org-mode as a minor mode?  I'm trying
 to figure out how to do it. ;-)
 -T

 On Mon, Jun 1, 2009 at 6:38 AM, Jason Schadel jason.scha...@gmail.com
 wrote:

 Have you tried using trac-wiki mode with org-mode as a minor mode?
 You still have to use the wiki format but lists can be manipulated the
 org-mode way.

 On Fri, May 29, 2009 at 4:36 PM, Tennis Smith ten...@tripit.com wrote:
  Hi,
 
  Has anyone figured out a way to export from org to a trac wiki?  I've
  tried
  ascii (ugly) and html (doesn't work).
 
  Tks,
  -T
 
  ___
  Emacs-orgmode mailing list
  Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Did Anyone Ever Get This Working ... ?

2009-06-01 Thread Jason Schadel
Have you tried using trac-wiki mode with org-mode as a minor mode?
You still have to use the wiki format but lists can be manipulated the
org-mode way.

On Fri, May 29, 2009 at 4:36 PM, Tennis Smith ten...@tripit.com wrote:
 Hi,

 Has anyone figured out a way to export from org to a trac wiki?  I've tried
 ascii (ugly) and html (doesn't work).

 Tks,
 -T

 ___
 Emacs-orgmode mailing list
 Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: File local variables and export?

2009-05-05 Thread Jason Riedy
And Carsten Dominik writes:
 I can smuggle the value in by adding an entry to
 org-export-plist-vars referring to
 org-export-latex-image-default-option and pulling the value from
 the plist, but that feels incorrect.

 To me it sounds correct, actually.  I have added this, and will
 add other variables as needed.

I was thinking about using file locals to pass arguments along to
custom functions...  Carrying a central registry feels funny.   Why
do you prefer org-export-plist-vars?

Jason


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


[Orgmode] File local variables and export?

2009-05-04 Thread Jason Riedy
I'm trying to change org-export-latex-image-default-option to
width=.7\\linewidth in a file local variable.  It's set correctly as a
buffer local variable, and it's having no effect on the export.  My
guess is that the buffer-local property is stopping it as soon as
org-export-as-latex runs set-buffer.

I can smuggle the value in by adding an entry to org-export-plist-vars
referring to org-export-latex-image-default-option and pulling the value
from the plist, but that feels incorrect.

Am I missing something?  Or should I look into grabbing
buffer-local-variables before set-buffer and setting the variables in
the output buffer?

BTW, there's a typo in org-export-region-as-latex's docstring.  Replace
retunr with return...  That pops up in the docbook export, too. ;)

Jason



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


[Orgmode] [PATCH] Place org-export-latex-inline-image-extensions in the LaTeX custom group

2009-05-03 Thread Jason Riedy
Just fixing a typo.  The :group should be org-export-latex and not 
org-export-html.

Signed-off-by: Jason Riedy ja...@acm.org
---
 lisp/org-latex.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 718fc56..edf5069 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -274,7 +274,7 @@ Note that this depends on the way the LaTeX file is 
processed.
 The default setting (pdf and jpg) assumes that pdflatex is doing the
 processing.  If you are using latex and dvips or something similar,
 only postscript files can be included.
-  :group 'org-export-html
+  :group 'org-export-latex
   :type '(repeat (string :tag Extension)))
 
 (defcustom org-export-latex-coding-system nil
-- 
1.6.3.rc3.184.g9852e




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


[Orgmode] New Feature: org-refile can create new headings

2009-04-12 Thread Jason Jackson
Hey,
I use org-refile very often to move things around and reorganize my notes.
But one annoyance is when I want to reorganize an Item into a *new heading*
.

Typically, this happens when I'm doing my weekly GTD task sorting.

I have a huge 'bucket' of things I added during the week. And i'd like to
organize it all really quickly; but right now, anytime I want to make a new
heading, I have to scroll around and do it manually, loosing my place in the
bucket.

Could this be a new feature of org-mode, or any other ideas for a solution?

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


Re: [Orgmode] server-kill-new-buffers and org-agenda

2009-03-13 Thread Jason F. McBrayer
Taru Karttunen tar...@taruti.net writes:

 It seems that server-kill-new-buffers in emacs23 works fine for normal
 org-mode files, but it doesn't affect buffers opened with
 org-agenda. Is it possible to fix this?

As you probably realize, this is because those buffers aren't
server-editing buffers.

 The problematic behaviour is as follows:
 1) look at the agenda in emacsclient
 2) close emacsclient (org-mode buffers opened by agenda are not closed)
 3) some hours later the files are edited by git etc
 4) open emacsclient to edit some org-file and when saving in emacs
it complains rightly that the file has been changed on the disk.

 Thus I would need a way to close the buffers opened by org-agenda when
 the emacsclient exits.

You might consider global-auto-revert-mode.  If a buffer does not have
unsaved changes, and emacs notices that it has changed on disk, it
automatically refreshes it to the new version.  If it does have unsaved
changes, then it uses the normal behaviour.  As long as you remember to
save your org-mode buffers when you're done with the agenda, and rely on
your VCS to avoid losing data to overwriting, then it should be pretty
transparent. 

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


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


Re: [Orgmode] Re: OT Re: unicorn

2009-03-01 Thread Jason F. McBrayer
r...@rosslaird.info (Ross A. Laird) writes:

 So, before the age of Khafre no one seems to have thought to make art
 that was specific enough to be identifiable as one individual.

Or such art didn't survive because it was made of perishable materials.
Or it was specific enough to be identifiable as one individual /by a
member of their culture/, but not by us (because it depicted their
ceremonial properties, or their tattoos, or their name, or whatever,
instead of their face and form).

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


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


Re: [Orgmode] Exporting agenda items with data

2009-02-27 Thread Jason F. McBrayer
Carsten Dominik domi...@science.uva.nl writes:

 I want to simplify this further.  From now on, the hook will always
 contain that function, and you can control adding entry text entirely
 by setting org-agenda-add-entry-text-maxlines to a number greater that
 zero.  The default for the variable is zero, which means nothing will
 be added.

That's a great feature, and I like the simpler configuration.  I've
often wanted this for things like grocery lists and library lists.

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


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


Re: [Orgmode] Re: ascii export of url part of links possible?

2009-02-26 Thread Jason F. McBrayer
Eric S Fraga e.fr...@ucl.ac.uk writes:

 On 2009-02-25, Carsten Dominik domi...@science.uva.nl wrote:
 [...]
 I have been thinking that it might be better to force links into
 footnotes for ascii export.

 What do you think?

 I, for one, would find this very attractive.  And it's in line with
 what some of the text based web browsers generate in ascii dumps of
 web pages.

I think that's a good idea, as well.  It might even be particularly
nice to format the links and the footnotes in such a way that a
[Markdown][1] processor could understand them.

[1]: http://daringfireball.net/projects/markdown/

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


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


Re: [Orgmode] time tracking common activities

2009-02-20 Thread Jason F. McBrayer
J Aaron Farr fa...@apache.org writes:

 I'm wondering if anyone has any better ideas or sees some particular
 flaw to this approach.  I thought about creating a daily repeating event
 for things like email, but then the clock section would eventually get
 huge, right?

I do exactly this for my daily processing and weekly review tasks.  The
clock section does eventually get huge, but because it's in a drawer,
that's not really a problem.  I don't need to keep that time data for
more than a month, so I can purge it periodically.

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


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


[Orgmode] html export bug: extra space in verbatim region

2009-01-24 Thread Jason Dunsmore
Hello,

I may have found a bug in the html export function.  When I export an
org file that contains a colon-space verbatim region of text, extra
spaces show up in the html.  To reproduce, create an org file with the
text:

: Some example from a text file.

...visit the file in emacs, type M-x org-export-as-html, and visit the
html file in a web browser.  Note the extra space in front of Some.
I verified that this happens with org-mode 6.18c.

It doesn't happen if the space is removed from the org file, but then
highlighting doesn't work.

Thanks,
Jason


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


Re: [Orgmode] [PERF] Slow Org Agenda Custom Commands

2009-01-11 Thread Jason Jackson
Thank you Matthew, this improved the performance to an acceptable ~half
second

I still wonder if multiple property searches could be optimized somehow, but
for my purposes I'm satisfied =)

For example, you can't use agenda filter commands with
org-stuck-project-list, thus you'd have to resort to a slow property search.
Some people might want to search for high priority stuck projects. (I solved
this by introducing different 'priority' todo states)

-Jason

On Mon, Jan 12, 2009 at 1:34 PM, Matthew Lundin m...@imapmail.org wrote:


 Hi Jason,

 Jason Jackson ja...@cvk.ca writes:

  I'm using the following org agenda custom command, with a relatively
 small
  org-mode text file, and agenda creation is taking around 3-4 seconds, it
  becomes unbearably worse if I modify stuck-projects to also use
 properties
  searches)
 
  Is there anything I can change to speed up the commands execution; or
  developer changes to org-mode?
 
  (setq org-agenda-custom-commands
'((h Next Action
   (
(agenda 
((org-agenda-ndays 1)
 (org-agenda-time-grid '())
 (org-deadline-warning-days 5)
 (org-agenda-sorting-strategy '(time-up priority-down))
 (org-agenda-skip-deadline-if-done t)
 (org-agenda-overriding-header Today's Agenda: )
 ))
;;; SLOW COMMAND #1
(tags
 @HOME-habit-__IGNORE-SCHEDULED\2000-01-01\/TODO|BLOCKED|
  SUBMIT
  ((org-agenda-sorting-strategy '(priority-down))
   (org-agenda-overriding-header Unscheduled Todo
(@Home): )
   ))

 As you suggest, any searches for properties other than TODO, LEVEL,
 and CATEGORY can be quite slow.

 Have you considered using a todo search and then using secondary
 filtering to limit by tag. This would enable you to use either of the
 following variables:

 - org-agenda-todo-ignore-with-date
 - org-agenda-todo-ignore-scheduled

 Best,
 Matt

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


[Orgmode] Attachment feature - Can I have custom directories?

2009-01-10 Thread Jason Jackson
There are many times where I would like to associate an org-mode item with a
specific directory of my choosing for attachment directory.

Such that, C-c C-a f would open for example ~/docs/project1
and C-c C-a o would open the file inside

Of course, I still like the existing functionality of generating random
directory names too.

Can org-mode do this?



Also I should mention C-c C-a l (for symbolic links) just copies the file on
the windows platform, can we have it create a shortcut instead?

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


Re: [Orgmode] Windows and emacs

2009-01-09 Thread Jason F. McBrayer
Manish mailtomanish.sha...@gmail.com writes:

 On Fri, Jan 9, 2009 at 3:48 AM, Mike Newman wrote:
 [snip]
 What I use is the EmacsW32
 (http://ourcomments.org/Emacs/EmacsW32.html). This gives you recent
 snapshot of Emacs 23 (I use the patched version).

 Does tramp work well on it?

It works adequately.  I recommend using the plink*/pscp* methods rather
than the ssh*/scp* methods.

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


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


Re: [Orgmode] Re: How you can help

2008-10-23 Thread Jason F. McBrayer
Bernt Hansen [EMAIL PROTECTED] writes:

 Some kind of regression testing framework would be awesome.  Org-mode is
 large enough that this is almost a necessity to keep things stable and
 bug-free.


Maybe something like this: http://www.emacswiki.org/emacs/ElUnit ?

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] Sync org-mode files in different computers

2008-10-22 Thread Jason F. McBrayer
[EMAIL PROTECTED] (Flávio de Souza) writes:

 I would like to know how I sync org-mode files in different computer
 over local network and over the internet.

I think most people will agree that the best way to sync org-mode files
is to keep them under some kind of version control system.  The
advantage that has over something like rsync is that if you happen to
make changes in different places (laptop and home, for example) without
synchronizing in between (because you forget, or because your network
connection is down, or something), then you can merge your edits in some
way more fine-grained than newest change wins.

I started out using Subversion (svn) to keep my org-mode files, and am
now using Mercurial (hg), which has both the advantages of being a dvcs
(every working copy is also a complete repository) and of being easier
to set up.  Many people also like git or bzr.  For just the purposes of
syncing your org-mode files, which one you choose isn't very important. 

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] custom link type for files in a git repo

2008-10-07 Thread Jason F. McBrayer
Ian Barton [EMAIL PROTECTED] writes:

 Now that org and git are starting to be used in conjunction by more and
 more of us, would anyone else find it useful to have a custom link type
 for linking to git objects?

 Absolutely!!  git is my new favourite tool, and being able to combine
 org-mode and git in a usable workflow would be a great idea!

 Without wishing to start a VCS war, it would be nice if any org
 interface was as tool agnostic as possible. I use bzr, mainly because
 I use Ubuntu and it's what Canonical use. I am sure there are other
 people who use Hg, etc.

Since emacs already abstracts basic VCS functionality through its vc
interface, it would be nice if any org-vcs integration would use that.
I use three vc systems on a regular basis (svn at work, hg for my own
projects, and git for other peoples' projects that I track).

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] Re: Very slow agenda view

2008-09-16 Thread Jason F. McBrayer
Carsten Dominik [EMAIL PROTECTED] writes:

 So you could turn on tag inheritance for tags matches and turn it off
 for other views, using the command-specific option settings, like so:

Yes, that's helpful (in principle).  I'm going to try it out and see if
it helps much with the actual views I use.  Thanks.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] Re: Passing an option to org-file-apps?

2008-09-11 Thread Jason F. McBrayer
anhnmncb [EMAIL PROTECTED] writes:

 Daniel Clemente [EMAIL PROTECTED] writes:

 Hi,

 Something like this:
   [[file:~/doc/foo.pdf 25]]
 So org will invoke xpdf in this way: xpdf ~/doc/foo.pdf 25.

   Maybe it's better:
 [[shell:xpdf ~/doc/foo.pdf 25]]

 Thanks, it works, but when xpdf is running, emacs gets no responce, I
 have to quit xpdf.

Add an ampersand at the end of the command:
[[shell:xpdf ~/doc/foo.pdf 25 ]]

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] Opening links to Outlook items from Org mode (may be a FR)

2008-08-22 Thread Jason F. McBrayer
Manish [EMAIL PROTECTED] writes:

 I have to use Office and envy folks that can link to their emails
 (Gnus, VM etc.) and contacts (bbdb) from Org mode.  So I was looking
 around and found that links to Outlook items (emails, meetings,
 contacts etc.)  of the form Outlook:GUID can be stored and opened
 from other applications.  The links can be created (copied to
 clipboard) using Outlook Linker utility as described in [1].

(w32-shell-execute open outlook:blahblah) should do what you need.
The tricky part is getting the GUID into Emacs (requires gratis but
proprietary utility you link to).

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] Opening links to Outlook items from Org mode (may be a FR)

2008-08-22 Thread Jason F. McBrayer
[EMAIL PROTECTED] (Jason F. McBrayer) writes:

 Manish [EMAIL PROTECTED] writes:

 I have to use Office and envy folks that can link to their emails
 (Gnus, VM etc.) and contacts (bbdb) from Org mode.  So I was looking
 around and found that links to Outlook items (emails, meetings,
 contacts etc.)  of the form Outlook:GUID can be stored and opened
 from other applications.  The links can be created (copied to
 clipboard) using Outlook Linker utility as described in [1].

 (w32-shell-execute open outlook:blahblah) should do what you need.
 The tricky part is getting the GUID into Emacs (requires gratis but
 proprietary utility you link to).

Note: there is a better way of getting the GUID here:  doesn't require
you to install an extra program, just add a macro to your Outlook
settings:

http://mutable.net/blog/archive/2006/09/02/how_to_hyperlink_to_microsoft_outlook_messages.aspx

Now I just need to teach org-mode how to use w32-shell-execute to follow
those links...

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] Opening links to Outlook items from Org mode (may be a FR)

2008-08-22 Thread Jason F. McBrayer
[EMAIL PROTECTED] (Jason F. McBrayer) writes:

 Note: there is a better way of getting the GUID here:  doesn't require
 you to install an extra program, just add a macro to your Outlook
 settings:

 http://mutable.net/blog/archive/2006/09/02/how_to_hyperlink_to_microsoft_outlook_messages.aspx

 Now I just need to teach org-mode how to use w32-shell-execute to follow
 those links...

Right (trivial):

(defun org-open-outlook-url (uid)
  Open an outlook format url
  (interactive sGUID: )
  (w32-shell-execute nil (format Outlook:%s uid)))
(org-add-link-type Outlook 'org-open-outlook-url)

I've now got a little toolbar icon now in Outlook that will copy a link
which I can yank right into org, and org is capable of following it.
Very trivial modification of the macro above to get it to output
fully-formatted org-mode links.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] Opening links to Outlook items from Org mode (may be a FR)

2008-08-22 Thread Jason F. McBrayer
R. P. Dillon [EMAIL PROTECTED] writes:

 Does anyone know if this type of linking is possible with Thunderbird?
 Some Googling hasn't turned up anything, so maybe the solution is to
 switch to GNUs.  I like to use org-mode as my central repository of
 information, and linking to email messages would really round out that
 functionality.

If you have the freedom to use Thunderbird, you have the freedom to use
Gnus!  At work, I'm stuck with Outlook.  However, you might look at the
following thread, and see if it provides you enough to start rolling
your own solution:

http://groups.google.com/group/mozilla.dev.extensions/browse_thread/thread/a70339619f85a105/f4199f96df3ef426

You might look at this Thunderbird extension, too:

http://tobbe.nu/blog/2007/05/29/Thunderbird-extension-remote-message-id-RFC-2111/

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] Re: Very slow agenda view

2008-08-15 Thread Jason F. McBrayer
Rainer Stengele [EMAIL PROTECTED] writes:

 takes several seconds on my EmacsW32 3 GHz CPU. After changing the tag
 inheritance setting to nil the view shows in about 1 second! Which is
 good enough!

I have the same behaviour here; I had thought that the slowness was
mainly due to some of my agenda files being on a slow flash drive, but
tag inheritance turns out to be a much bigger factor.  Which is kind of
unfortunate, as some of my searches depended on tag inheritance, but I'm
willing to re-tag some things to get my agenda showing faster.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] Re: Persistent clocks

2008-07-30 Thread Jason F. McBrayer
Denis Bueno [EMAIL PROTECTED] writes:

 On Tue, Jul 29, 2008 at 21:26, Bernt Hansen [EMAIL PROTECTED] wrote:
 I use the clock all the time and occasionally I restart Emacs during
 the day.  In that case I find it pretty easy to go to agenda view for
 today, hit 'l' to show the clocked time for today and pick the last item
 and clock that in again - then I just delete the new clock line and the
 old start time is used when the clock stops.

 Ah, I see.  I just tried it.  Thanks for the tip.

 I personally don't do this enough to want it to be automatic.  In other
 work flows it may be wrong for it to be automatic.  For example: If you
 are in org FILE1 and quit with an open clock and then restart Emacs and
 open org FILE2 which also has an open clock it would be wrong to make
 that one active - since the last clocked time you used was in FILE1.

 I agree, there are thorny issues.  I think your way is better,
 especially considering that I'm not _constantly_ restarting Emacs, I
 just want to be able to _deal_ with restarting Emacs.

It might be nice if C-u C-c C-x C-i could find open clocks in the open
file and in the agenda files, and offer them to you as things to clock
into.  Perhaps only if it can't find any recently-clocked tasks in the
normal way, which it can't do right after starting emacs.  It's pretty
rare for me to restart emacs in the middle of the workday, but when I do
(usually because of upgrading emacs or a major package), the
agenda-log-view shuffle /works/ (better than manually searching), but
could be better.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] project management integration

2008-07-25 Thread Jason Schadel
I mostly use org-mode as a way to organize my tasks but would love if there
was a way to export/publish to a wiki.  Right now I'm using trac-wiki mode
to edit trac wiki pages.  It works pretty well but I find myself missing
org-mode's list/heading manipulation abilities.

I could see a benefit to importing trac tickets.  Not sure how that would
fit into org-mode though.

-Jason

On Tue, Jul 22, 2008 at 3:38 PM, Cezar Halmagean [EMAIL PROTECTED] wrote:


 Hello list,

  I anybody using/integrating org-mode in their workflow together with a
  project management system like Trac or Redmine ? Or is there a better
  sollution than those 2 that integrates better with org ?

 Cezar



 ___
 Emacs-orgmode mailing list
 Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Orgstruct-mode not present.

2008-07-25 Thread Jason Schadel
In the manual it says I can load an org minor mode(Orgstruct) but when I
try, it can't be found.  I'm using emacs 22.2.1 on a mac with org-mode
6.05b.

Any ideas why I can't find orgstruct anywhere?

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


Re: [Orgmode] project management integration

2008-07-23 Thread Jason Schadel
I mostly use org-mode as a way to organize my tasks but would love if there
was a way to export/publish to a wiki.  Right now I'm using trac-wiki mode
to edit trac wiki pages.  It works pretty well but I find myself missing
org-mode's list/heading manipulation abilities.

I could see a benefit to importing trac tickets.  Not sure how that would
fit into org-mode though.

-Jason

On Tue, Jul 22, 2008 at 3:38 PM, Cezar Halmagean [EMAIL PROTECTED] wrote:


 Hello list,

  I anybody using/integrating org-mode in their workflow together with a
  project management system like Trac or Redmine ? Or is there a better
  sollution than those 2 that integrates better with org ?

 Cezar



 ___
 Emacs-orgmode mailing list
 Remember: 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
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Using a Square box character for TODO and DONE states in org?

2008-07-18 Thread Jason F. McBrayer
Carsten Dominik [EMAIL PROTECTED] writes:

 On Jul 18, 2008, at 10:14 AM, Jose Robins wrote:

 I was just thinking today that instead of using TODO and DONE 
 keywords in org-mode to denote tasks,
 why not use a square box character (like in task manager apps) to denote 
 a TODO state and a square box
 with a tick to denote a completed state... That would make the tasks look 
 more intuitive...

 Since I'm only superficially familiar with UTF and issues with character 
 sets, could someone suggest a
 method on how to achieve this? I guess, I should be able to copy and 
 paste this character in a customize
 buffer, right? Any issues with this?

 You can use any characters if you also tell the syntax table that these are 
 word characters.

These characters may be helpful:

☐: U+2610 BALLOT BOX
☑: U+2611 BALLOT BOX WITH CHECK
☒: U+2612 BALLOT BOX WITH X

How helpful they are probably depends on your font; they look good but
small in DejaVu Sans Mono.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] exporting src as html

2008-07-17 Thread Jason F. McBrayer
Carsten Dominik [EMAIL PROTECTED] writes:

 Hi,

 do any of the HTML gurus on this list have an opinion on the
 additional div for specific source examples?


Instead of doing something like this:
div class=src
  div class=src-emacs-lisp
(psychoanalyze-pinhead)
  /div
/div

you should do something like this:

div class=src src-emacs-lisp
  (psychoanalyze-pinhead)
/div

Both the src and src-emacs-lisp classes will get applied to that div.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] [PATCH 0/4] Adding orgtbl-to-orbtbl and cleaning orgtbl-to-sqlinsert.

2008-05-05 Thread Jason Riedy
And Carsten Dominik writes:
 git://repo.or.cz/org-mode/ejr.git master

 Can you explain to step by step what I would have to do to
 pull these changes from your repository into a local branch in my own
 repository?  Thanks.

One long-term version is to add that repo as a named remote:
  git remote add ejr git://repo.or.cz/org-mode/ejr.git
Then you can update all your remotes in one go:
  git remote update
Or just grab one:
  git fetch ejr
If you want to remove that remote repo later, use
  git remote rm ejr
After fetching,
  git branch -r
should list the remote branches, including ejr/master, or
  git branch -a
lists all of the branches.

A short-term version is just
  git fetch git://repo.or.cz/org-mode/ejr.git master:refs/heads/ejr-tmp
to slurp it into a local ejr-tmp branch.  The typical
  git branch -D ejr-tmp
would delete that branch.  Note that for deleting branches
added via git remote, you need to pass -r to git branch as well.

The command
  git log -p --stat --color ..ejr/master
should give a pretty, colorized listing of the changes in
ejr/master and not in your current index.  Just
  git diff --color ..ejr/master
should give a colorized diff between your index and ejr/master.
You can base those off HEAD, i.e. HEAD..ejr/master, to see the
differences between your currently committed work and the named
branch (ejr/master).

The difference between HEAD and your current (unnamed) index
only matters if you've added changes to your index explicitly
(through git add) or implicitly (through a partial merge).
The OUTPUT FORMAT section of git-diff's man page (conveniently
also available as git diff --help) gives a list of which
sub-commands provide which diffs, in case you feel like poking
around to get a feel for how each level works.

Many of these work in various forms through Emacs and eshell, but
I admit I rarely use them directly from Emacs.  And git has many
more, newer gadgets that may be nicer.  The few simple tools fit
how I think well enough that I kinda stopped following the
improvements.

As an alternate method not using remotes, you could just save the
patches to an mbox (say ejr-silly-patches.mbox), create a branch,
then use
  git am ejr-silly-patches.mbox
to import the patches.  Some people prefer that method, and it
can make replying with corrections and requests a bit easier
if your mail reader can poke around individual mbox files.

And to save some digging in man pages and annoyance in the
future, applying a patch that adds files is easiest with
  git apply --index foo.patch
That option will add the changes, including new files, to the
index directly.  Then to see the differences before committing, you
need git diff HEAD.  Just using git apply does not update the
index and hence won't include the new files automatically, so
you'd need to find them and add them.

Jason


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


[Orgmode] [PATCH 1/4] Provide an *orgtbl-default-fmt* for entries not in a fmt plist.

2008-05-04 Thread Jason Riedy
The *orgtbl-default-fmt* is a hook for orgtbl transformations to
ensure a destination-sensible default for columns not present in
a fmt plist.  The leaving the value at nil changes no existing
behavior.

Signed-off-by: Jason Riedy [EMAIL PROTECTED]
---
 ChangeLog |6 ++
 lisp/org-table.el |5 -
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 15c9602..69710ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-05-04  Jason Riedy  [EMAIL PROTECTED]
+
+   * lisp/org-table.el (*orgtbl-default-fmt*): New variable.
+   (orgtbl-format-line): Use the value of *orgtbl-default-fmt*
+   when there is no other fmt available.
+
 2008-05-02  Carsten Dominik  [EMAIL PROTECTED]
 
* lisp/org.el (org-read-date-analyze): . as an alias for +0 in
diff --git a/lisp/org-table.el b/lisp/org-table.el
index ef1d932..17441cd 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -3631,6 +3631,7 @@ First element has index 0, or I0 if given.
 ;; Formatting parameters for the current table section.
 (defvar *orgtbl-hline* nil Text used for horizontal lines)
 (defvar *orgtbl-sep* nil Text used as a column separator)
+(defvar *orgtbl-default-fmt* nil Default format for each entry)
 (defvar *orgtbl-fmt* nil Format for each entry)
 (defvar *orgtbl-efmt* nil Format for numbers)
 (defvar *orgtbl-lfmt* nil Format for an entire line, overrides fmt)
@@ -3672,7 +3673,9 @@ First element has index 0, or I0 if given.
 (orgtbl-apply-fmt efmt (match-string 1 f)
   (match-string 2 f))
   f)))
-(orgtbl-apply-fmt (orgtbl-get-fmt *orgtbl-fmt* i) f)))
+ (orgtbl-apply-fmt (or (orgtbl-get-fmt *orgtbl-fmt* i)
+   *orgtbl-default-fmt*)
+   f)))
 line)))
   (push (if *orgtbl-lfmt*
(orgtbl-apply-fmt *orgtbl-lfmt* line)
-- 
1.5.5.rc1.121.g1594



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


[Orgmode] [PATCH 3/4] Add an orgtbl-to-orgtbl transformation.

2008-05-04 Thread Jason Riedy
Useful for documenting orgtbl transformation and formatting
functions.

Signed-off-by: Jason Riedy [EMAIL PROTECTED]
---
 ChangeLog |2 ++
 lisp/org-table.el |   16 
 2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d70bc98..d8f1a3c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
when there is no other fmt available.
(orgtbl-to-generic): Allow an explicitly nil :tstart or
:tend to suppress the appropriate string.
+   (orgtbl-to-orgtbl): New function for translating to another orgtbl
+   table.
 
 2008-05-02  Carsten Dominik  [EMAIL PROTECTED]
 
diff --git a/lisp/org-table.el b/lisp/org-table.el
index 19dd74a..af12a4c 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -3917,6 +3917,22 @@ this function is called.
   :hlstart @headitem )))
 (orgtbl-to-generic table (org-combine-plists params2 params
 
+(defun orgtbl-to-orgtbl (table params)
+  Convert the orgtbl-mode TABLE into another orgtbl-mode table.
+Useful when slicing one table into many.  The :hline, :sep,
+:lstart, and :lend provide orgtbl framing.  The default nil :tstart
+and :tend suppress strings without splicing; they can be set to
+provide ORGTBL directives for the generated table.
+  (let* ((params2
+ (list
+   :tstart nil :tend nil
+   :hline |---
+   :sep  | 
+   :lstart | 
+   :lend  |))
+(params (org-combine-plists params2 params)))
+(orgtbl-to-generic table params)))
+
 (provide 'org-table)
 
 ;; arch-tag: 4d21cfdd-0268-440a-84b0-09237a0fe0ef
-- 
1.5.5.rc1.121.g1594



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


[Orgmode] [PATCH 4/4] Clean up orgtbl-sqlinsert.

2008-05-04 Thread Jason Riedy
Use the default fmt function, collect only the first header
line for field names, and don't call plist-get for the table
name on every line.

Signed-off-by: Jason Riedy [EMAIL PROTECTED]
---
 contrib/ChangeLog|7 +++
 contrib/lisp/orgtbl-sqlinsert.el |   13 +++--
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 5db4bb3..85a7a27 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,10 @@
+2008-05-04  Jason Riedy  [EMAIL PROTECTED]
+
+   * lisp/orgtbl-sqlinsert.el (orgtbl-to-sqlinsert): Use the
+   default fmt function, collect only the first header line for
+   field names, and don't call plist-get for the table name on
+   every line.
+
 2008-04-15  Jason Riedy  [EMAIL PROTECTED]
 
* lisp/orgtbl-sqlinsert.el: New file.
diff --git a/contrib/lisp/orgtbl-sqlinsert.el b/contrib/lisp/orgtbl-sqlinsert.el
index 869f74f..648e44c 100644
--- a/contrib/lisp/orgtbl-sqlinsert.el
+++ b/contrib/lisp/orgtbl-sqlinsert.el
@@ -64,6 +64,8 @@ this function is called.
   org-table-last-alignment ))
 (nowebname (plist-get params :nowebname))
 (breakvals (plist-get params :breakvals))
+ (firstheader t)
+ (*orgtbl-default-fmt* 'orgtbl-sql-strip-and-quote)
 (params2
  (list
   :sqlname name
@@ -72,12 +74,10 @@ this function is called.
)
  BEGIN TRANSACTION;))
   :tend (lambda () (concat COMMIT; (if nowebname \n@  )))
-  :fmt (lambda (str) (orgtbl-sql-strip-and-quote str))
-; :hfmt (lambda (f) (push (concat [ f ]) hdrlist) )
-  :hfmt (lambda (f) (push f hdrlist) )
-  :hlfmt (lambda (lst) nil)
+  :hfmt (lambda (f) (progn (if firstheader (push f hdrlist)) ))
+  :hlfmt (lambda (lst) (setq firstheader nil))
   :lstart (lambda () (concat INSERT INTO 
- (plist-get params :sqlname) ( 
+ sqlname ( 
  (mapconcat 'identity (reverse hdrlist)
 , )
   ) (if breakvals \n  )
@@ -86,7 +86,8 @@ this function is called.
   :sep  , 
   :hline nil
   :remove-nil-lines t))
-(params (org-combine-plists params2 params)))
+(params (org-combine-plists params2 params))
+ (sqlname (plist-get params :sqlname)))
 (orgtbl-to-generic table params)))
 
 (defun orgtbl-sql-quote (str)
-- 
1.5.5.rc1.121.g1594



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


[Orgmode] [PATCH 0/4] Adding orgtbl-to-orbtbl and cleaning orgtbl-to-sqlinsert.

2008-05-04 Thread Jason Riedy
I needed an orgtbl-to-orgtbl transformation when writing up
transformation examples.  It seems pretty core, so I've
added it to org-table.el.  The function needs a way to
suppress :tstart and :tend strings, so I added support
for explicit nils.

Cleaning up the orgtbl-to-sqlinsert function lead to some cute
little problems.  One was that formatting columns with plist
would pass values through directly rather than quoting them.
So I a general *orgtbl-default-fmt* variable to handle all
columns that aren't in the plist.  A similar one for the header
might be useful, but I haven't needed it.

All these can be pulled from
  git://repo.or.cz/org-mode/ejr.git master

BTW, Bruno Haible's git ChangeLog merger has been working
wonderfully for me.  It also is in gnulib; see the message 
for how to generate it with gnulib-tool:
  http://article.gmane.org/gmane.comp.lib.gnulib.bugs/12653

Jason Riedy (4):
  Provide an *orgtbl-default-fmt* for entries not in a fmt plist.
  Allow an explicitly nil :tstart and :tend to suppress the strings.
  Add an orgtbl-to-orgtbl transformation.
  Clean up orgtbl-sqlinsert.

 ChangeLog|   10 ++
 contrib/ChangeLog|7 +++
 contrib/lisp/orgtbl-sqlinsert.el |   13 +++--
 lisp/org-table.el|   33 -
 4 files changed, 52 insertions(+), 11 deletions(-)



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


[Orgmode] [PATCH 2/4] Allow an explicitly nil :tstart and :tend to suppress the strings.

2008-05-04 Thread Jason Riedy
Passing explicit nils to leave out start and end strings feels
natural.  Also, transforming org-mode tables into other org-mode
tables can use :tstart and :tend to specify directives, so I
don't want to change the default splice setting for those.

Signed-off-by: Jason Riedy [EMAIL PROTECTED]
---
 ChangeLog |2 ++
 lisp/org-table.el |   12 
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 69710ec..d70bc98 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
* lisp/org-table.el (*orgtbl-default-fmt*): New variable.
(orgtbl-format-line): Use the value of *orgtbl-default-fmt*
when there is no other fmt available.
+   (orgtbl-to-generic): Allow an explicitly nil :tstart or
+   :tend to suppress the appropriate string.
 
 2008-05-02  Carsten Dominik  [EMAIL PROTECTED]
 
diff --git a/lisp/org-table.el b/lisp/org-table.el
index 17441cd..19dd74a 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -3773,8 +3773,10 @@ directly by `orgtbl-send-table'.  See manual.
 
 ;; Put header
 (unless splicep
-  (push (or (orgtbl-eval-str (plist-get params :tstart))
-   ERROR: no :tstart) *orgtbl-rtn*))
+  (if (not (plist-member params :tstart))
+  (push ERROR: no :tstart *orgtbl-rtn*)
+(let ((tstart (orgtbl-eval-str (plist-get params :tstart
+  (if tstart (push tstart *orgtbl-rtn*)
 
 ;; Do we have a heading section?  If so, format it and handle the
 ;; trailing hline.
@@ -3801,8 +3803,10 @@ directly by `orgtbl-send-table'.  See manual.
 (orgtbl-format-section nil)
 
 (unless splicep
-  (push (or (orgtbl-eval-str (plist-get params :tend))
-   ERROR: no :tend) *orgtbl-rtn*))
+  (if (not (plist-member params :tend))
+  (push ERROR: no :tend *orgtbl-rtn*)
+(let ((tend (orgtbl-eval-str (plist-get params :tend
+  (if tend (push tend *orgtbl-rtn*)
 
 (mapconcat 'identity (nreverse (if remove-nil-linesp
   (remq nil *orgtbl-rtn*)
-- 
1.5.5.rc1.121.g1594



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


[Orgmode] Using Org-Mode Table Formatting Functions draft

2008-05-04 Thread Jason Riedy
#+TITLE: Using Org-Mode Table Formatting Functions
#+AUTHOR: Jason Riedy
#+EMAIL: [EMAIL PROTECTED]
#+LANGUAGE: en
#+TEXT: *Abstract:* Org-mode's ability to slice one table into many
#+TEXT: separately formatted destinations helps keep documentation
#+TEXT: and data in sync.  We provide an example using both the
#+TEXT: multiple-target facilities and formatting with functions.
#+TEXT: Side-effects in the functions gather header data necessary
#+TEXT: for generating flexible SQL insertion statements.

I'm not asking for this to be in Worg yet; it uses the patches
I just sent.  ;)

* Introduction

In large-scale data analysis, one often associates integers with
parameter name rather than strings.  The performance and storage
difference is significant for multi-gigabyte data sets.  But
integers are not at all convenient or descriptive.
Systems like [[http://www.r-project.org][R]] provide a =factor= data type that 
translates the
stored integers into user-level strings.
Emulating that construct in SQL is handy for data transfer with 
[[http://www.sqlite.org][SQLite]]
or out-of-core analysis in R using a 
[[http://cran.r-project.org/web/packages/SQLiteDF/index.html][SQL back-end]].
That leaves the problem of maintaining a registry of integer level
codes, string names, and documentation.

[[http://orgmode.org][Org-mode]] provide a fast, light-weight table mechanism 
that can be sent
in email, bundled with code, or embedded in documentation.  The tables
can be transformed and placed elsewhere.  It sounds like a perfect
registry, generating documentation and code from one data table.
Similar techniques could be used in a multi-lingual document to store
many translations in one table and send them to sections in specific
languages.

We start with a simple table:
#+ORGTBL: SEND exdoc orgtbl-to-orgtbl :skipcols (2) :fmt (1 =%s=) :hfmt (1 
%s)
#+ORGTBL: SEND exsql orgtbl-to-sqlinsert :sqlname extbl :fmt (2 %s) :tstart 
#+BEGIN_EXAMPLE\nBEGIN TRANSACTION; :tend COMMIT;\n#+END_EXAMPLE
| Name  | Level | Description |
|---+---+-|
| normx | 1 | norm(x, \infty) |
| normb | 2 | norm(b, \infty) |
| normA | 3 | norm(A, \infty) |

That one source table contains the documentation in the first and
third column:
#+BEGIN RECEIVE ORGTBL exdoc
| Name | Description |
|---
| =normx= | norm(x, \infty) |
| =normb= | norm(b, \infty) |
| =normA= | norm(A, \infty) |
#+END RECEIVE ORGTBL exdoc

The first two columns of the source table provide the data we must
transfer the SQL.  The third column can be used to embed some
documentation into the table itself after the string is sanitized for
SQL.  The remaining necessary information, the SQL destination table
name, can be provided as a parameter to =#+ORGTBL: SEND=, producing
the following code chunk:
#+BEGIN RECEIVE ORGTBL exsql
#+BEGIN_EXAMPLE
BEGIN TRANSACTION;
INSERT INTO extbl( Name, Level, Description ) VALUES ( 'normx' , 1 , 'norm(x, 
infty)' );
INSERT INTO extbl( Name, Level, Description ) VALUES ( 'normb' , 2 , 'norm(b, 
infty)' );
INSERT INTO extbl( Name, Level, Description ) VALUES ( 'normA' , 3 , 'norm(A, 
infty)' );
COMMIT;
#+END_EXAMPLE
#+END RECEIVE ORGTBL exsql

We will explain the parameters used to produce both outputs.  The SQL
insertion statements use functions as formatting parameters, some of
which are called purely for the side-effect of gathering the header
fields.  The SQL-generating code is distributed with org-mode in
=contrib/lisp/orgtbl-sqlinsert.el=.

* Specifying multiple destinations for a single table

Sending one table to multiple destinations is straight-forward.  Add
one =SEND= directive for each destination.  For example, the first
table has the following two directives prepended, with parameters
described later:
: #+ORGTBL: SEND exdoc orgtbl-to-orgtbl ...
: #+ORGTBL: SEND exsql orgtbl-to-sqlinsert ...

The documentation removes the second column and adds fiddly formatting
parameters with
: :skipcols (2) :fmt (1 =%s=) :hfmt (1 %s)

The SQL-generating line gathers the destination table name and passes
integers through unchanged with the parameters
: :sqlname extbl :fmt (2 %s)
The SQL table name defaults to the name of the target, =exsql= in this
case.  And the default formatting used for
other columns is =orgtbl-sql-strip-and-quote=.  That routine only
removes potentially non-portable constructs; it is not designed to
prevent insertion attacks.
We could apply =orgtbl-sql-strip-and-quote= to the first column of the
documentation table to ensure the strings match exactly, but it
easier to use simple, non-mangled strings as names.

By default, a block of insertions is wrapped in =BEGIN TRANSACTION=
and =COMMIT= statements.  These can be supressed by setting =:tstart=
and =:tend= to =nil=.  The example used in this document uses a
double-embedding trick to wrap the statement in an org-mode code block:
: :tstart #+BEGIN_EXAMPLE\nBEGIN TRANSACTION;
: :tend COMMIT;\n#+END_EXAMPLE
Similar wrapping can embed the SQL statements

Re: [Orgmode] Bock quotes or indented quotes in org text

2008-05-02 Thread Jason F. McBrayer
Charles Martin [EMAIL PROTECTED] writes:

 It seems like I *much* just be having a senior moment, but I can't
 figure how to get a block quote or indented text in org mode.

Is this for exporting?  The org manual says this:

. o O ( 12.6.4 Quoted examples --)
  (  )
  ( When writing technical documents, you often need to insert   )
  ( examples that are not further interpreted by Org-mode.  For  )
  ( historical reasons, there are several ways to do this:   )
  (  )
  (* If a headline starts with the word `QUOTE', the text)
  (  below the headline will be typeset as fixed-width, to   )
  (  allow quoting of computer codes etc.)
  (  )
  (* Lines starting with `:' are also typeset in fixed-width )
  ( font.  `C-c :' Toggle fixed-width for entry (QUOTE) or   )
  ( region, see below.   )
  (  )
  (* Finally, text between #+BEGIN_EXAMPLE quoted text   )
  (#+END_EXAMPLE will also be exported in this way.  )
  (  )

That's not really satisfactory for me, because most of the time when I
want to export a blockquote, it's not a code sample, but a block quote
from an article or such.  I've ended up using

@blockquote
quoted text
@/blockquote

since I'm generally exporting HTML for blog usage.  That's not perfectly
satisfactory, either (since I /could/ want to export to something else),
but it's good enough most of the time.


-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


[Orgmode] [PATCH] Support multiple destinations for each radio table.

2008-04-16 Thread Jason Riedy
You can slice a single table full of calculations in different ways
into separate destinations.  Or you can format the table differently.
There are many fun and exciting possible uses.

A fancier implementation would scan the document *once* for the
set of destinations.  That could help implement another function
to update all destinations from all sources.

Signed-off-by: Jason Riedy [EMAIL PROTECTED]
---
  This also can be fetched by pulling 
git://repo.or.cz/org-mode/ejr.git multitarget-radio-table

 ChangeLog |   11 +
 doc/org.texi  |6 ++-
 lisp/org-table.el |  127 +++--
 3 files changed, 89 insertions(+), 55 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9ae71a9..8e89686 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2008-04-15  Jason Riedy  [EMAIL PROTECTED]
+
+   * lisp/org-table.el (orgtbl-gather-send-defs): New function to
+   gather all the SEND definitions before a table.
+   (orgtbl-send-replace-tbl): New function to find the RECEIVE
+   corresponding to the current name.
+   (orgtbl-send-table): Use the previous two functions and implement
+   multiple destinations for each table.
+
+   * doc/org.texi (Radio tables): Document multiple destinations.
+
 2008-04-15  Carsten Dominik  [EMAIL PROTECTED]
 
* lisp/org-agenda.el (org-agenda-columns-show-summaries)
diff --git a/doc/org.texi b/doc/org.texi
index c9eaab9..767830b 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -8397,8 +8397,10 @@ in the receiver lines. @code{translation_function} is 
the Lisp function
 that does the translation.  Furthermore, the line can contain a list of
 arguments (alternating key and value) at the end.  The arguments will be
 passed as a property list to the translation function for
-interpretation.  A few standard parameters are already recognized and
-acted upon before the translation function is called:
+interpretation.  Multiple @code{#+ORGTBL: SEND} lines with different
[EMAIL PROTECTED] send the table's data to separate destinations.  A
+few standard parameters are already recognized and acted upon before the
+translation function is called:
 
 @table @code
 @item :skip N
diff --git a/lisp/org-table.el b/lisp/org-table.el
index 1e1bd85..9193bf0 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -3492,6 +3492,41 @@ overwritten, and the table is not marked as requiring 
realignment.
  (push ( (/ (apply '+ (mapcar (lambda (x) (if (string-match 
org-table-number-regexp x) 1 0)) column)) maxcol) org-table-number-fraction) 
org-table-last-alignment))
 (funcall func table nil)))
 
+(defun orgtbl-gather-send-defs ()
+  Gathers a plist of :name, :transform, :params for each destination before
+a radio table.
+  (save-excursion
+(goto-char (org-table-begin))
+(let (rtn)
+  (beginning-of-line 0)
+  (while (looking-at #\\+ORGTBL: *SEND +\\([a-zA-Z0-9_]+\\) +\\([^ 
\t\r\n]+\\)\\( +.*\\)?)
+   (let ((name (org-no-properties (match-string 1)))
+ (transform (intern (match-string 2)))
+ (params (if (match-end 3)
+ (read (concat ( (match-string 3) ))
+ (push (list :name name :transform transform :params params)
+   rtn)
+ (beginning-of-line 0)))
+  rtn)))
+
+(defun orgtbl-send-replace-tbl (name txt)
+  Find and replace table NAME with TXT.
+  (save-excursion
+(goto-char (point-min))
+(unless (re-search-forward
+(concat BEGIN RECEIVE ORGTBL + name \\([ \t]\\|$\\)) nil t)
+  (error Don't know where to insert translated table))
+(goto-char (match-beginning 0))
+(beginning-of-line 2)
+(save-excursion
+  (let ((beg (point)))
+   (unless (re-search-forward
+(concat END RECEIVE ORGTBL + name) nil t)
+ (error Cannot find end of insertion region))
+   (beginning-of-line 1)
+   (delete-region beg (point
+(insert txt \n)))
+
 (defun orgtbl-send-table (optional maybe)
   Send a tranformed version of this table to the receiver position.
 With argument MAYBE, fail quietly if no transformation is defined for
@@ -3501,59 +3536,45 @@ this table.
 (unless (org-at-table-p) (error Not at a table))
 ;; when non-interactive, we assume align has just happened.
 (when (interactive-p) (org-table-align))
-(save-excursion
-  (goto-char (org-table-begin))
-  (beginning-of-line 0)
-  (unless (looking-at #\\+ORGTBL: *SEND +\\([a-zA-Z0-9_]+\\) +\\([^ 
\t\r\n]+\\)\\( +.*\\)?)
-   (if maybe
-   (throw 'exit nil)
- (error Don't know how to transform this table.
-(let* ((name (match-string 1))
-  beg
-  (transform (intern (match-string 2)))
-  (params (if (match-end 3) (read (concat ( (match-string 3) )
-  (skip (plist-get params :skip))
-  (skipcols (plist-get params :skipcols))
-  (txt (buffer-substring-no-properties

[Orgmode] [PATCH 1/4] Refactor orgtbl-to-generic; explicitly separate heading from body.

2008-04-16 Thread Jason Riedy
Parameters are fluidly bound as early as possible.  Added one
helper function, orgtbl-format-section, and removed one,
org-get-param.  Also cleaned org-format-line.

Signed-off-by: Jason Riedy [EMAIL PROTECTED]
---
 ChangeLog |   16 +++
 lisp/org-table.el |  124 
 2 files changed, 92 insertions(+), 48 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9ae71a9..4569d3a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2008-04-15  Jason Riedy  [EMAIL PROTECTED]
+
+   * lisp/org-table.el (*orgtbl-table*, *orgtbl-rtn*): Dynamically
+   bound variables to hold the input collection of lines and output
+   formatted text.
+   (*orgtbl-hline*, *orgtbl-sep*, *orgtbl-fmt*, *orgtbl-efmt*,
+   (*orgtbl-lfmt*, *orgtbl-lstart*, *orgtbl-lend*): Dynamically bound
+   format parameters.
+   (orgtbl-format-line): New function encapsulating formatting for a
+   single line.
+   (orgtbl-format-section): Similar for each section.  Rebinding the
+   dynamic vars customizes the formatting for each section.
+   (orgtbl-to-generic): Use orgtbl-format-line and
+   orgtbl-format-section.
+   (org-get-param): Now unused, so delete.
+
 2008-04-15  Carsten Dominik  [EMAIL PROTECTED]
 
* lisp/org-agenda.el (org-agenda-columns-show-summaries)
diff --git a/lisp/org-table.el b/lisp/org-table.el
index 1e1bd85..3cc70c1 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -3602,15 +3602,51 @@ First element has index 0, or I0 if given.
 (insert txt)
 (goto-char pos)))
 
-(defun org-get-param (params header i sym optional hsym)
-  Get parameter value for symbol SYM.
-If this is a header line, actually get the value for the symbol with an
-additional \h\ inserted after the colon.
-If the value is a protperty list, get the element for the current column.
-Assumes variables VAL, PARAMS, HEAD and I to be scoped into the function.
-  (let ((val (plist-get params sym)))
-(and hsym header (setq val (or (plist-get params hsym) val)))
-(if (consp val) (plist-get val i) val)))
+;; Dynamically bound input and output for table formatting.
+(defvar *orgtbl-table* nil
+  Carries the current table through formatting routines.)
+(defvar *orgtbl-rtn* nil
+  Formatting routines push the output lines here.)
+;; Formatting parameters for the current table section.
+(defvar *orgtbl-hline* nil Text used for horizontal lines)
+(defvar *orgtbl-sep* nil Text used as a column separator)
+(defvar *orgtbl-fmt* nil Format for each entry)
+(defvar *orgtbl-efmt* nil Format for numbers)
+(defvar *orgtbl-lfmt* nil Format for an entire line, overrides fmt)
+(defvar *orgtbl-lstart* nil Text starting a row)
+(defvar *orgtbl-lend* nil Text ending a row)
+
+(defun orgtbl-format-line (line)
+  Format LINE as a table row.
+  (if (eq line 'hline) (if *orgtbl-hline* (push *orgtbl-hline* *orgtbl-rtn*))
+(let* ((i 0)
+  (line
+   (mapcar
+(lambda (f)
+  (setq i (1+ i))
+  (let* ((*orgtbl-fmt* (if (consp *orgtbl-fmt*)
+(plist-get *orgtbl-fmt* i)
+*orgtbl-fmt*))
+ (*orgtbl-efmt* (if (consp *orgtbl-efmt*)
+ (plist-get *orgtbl-efmt* i)
+ *orgtbl-efmt*))
+ (f (if (and *orgtbl-efmt*
+ (string-match orgtbl-exp-regexp f))
+(format *orgtbl-efmt* (match-string 1 f)
+(match-string 2 f))
+  f)))
+(if *orgtbl-fmt* (format *orgtbl-fmt* f) f)))
+line)))
+  (push (if *orgtbl-lfmt* (apply 'format *orgtbl-lfmt* line)
+ (concat *orgtbl-lstart* (mapconcat 'identity line *orgtbl-sep*)
+ *orgtbl-lend*))
+   *orgtbl-rtn*
+
+(defun orgtbl-format-section (section-stopper)
+  Format lines until the first occurrence of SECTION-STOPPER.
+  (progn
+(while (not (eq (car *orgtbl-table*) section-stopper))
+  (orgtbl-format-line (pop *orgtbl-table*)
 
 (defun orgtbl-to-generic (table params)
   Convert the orgtbl-mode TABLE to some other format.
@@ -3658,51 +3694,43 @@ Valid parameters are
 In addition to this, the parameters :skip and :skipcols are always handled
 directly by `orgtbl-send-table'.  See manual.
   (interactive)
-  (let* ((p params)
-(splicep (plist-get p :splice))
-(hline (plist-get p :hline))
-rtn line i fm efm lfmt h)
-
-;; Do we have a header?
-(if (and (not splicep) (listp (car table)) (memq 'hline table))
-   (setq h t))
+  (let* ((splicep (plist-get params :splice))
+(hline (plist-get params :hline))
+(*orgtbl-table* table)
+(*orgtbl-sep* (plist-get params :sep))
+(*orgtbl-efmt* (plist-get params :efmt))
+(*orgtbl-lstart* (plist

[Orgmode] [PATCH 2/4] Support last-line specializers.

2008-04-16 Thread Jason Riedy
Each of lstart, lend, and lfmt permits a last-line specialization
called llstart, etc. with corresponding heading versions.

Signed-off-by: Jason Riedy [EMAIL PROTECTED]
---
 ChangeLog |   10 ++
 lisp/org-table.el |   32 
 2 files changed, 38 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4569d3a..13980bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2008-04-15  Jason Riedy  [EMAIL PROTECTED]
 
+   * lisp/org-table.el (*orgtbl-llfmt*, *orgtbl-llstart*)
+   (*orgtbl-llend*): Dynamic variables for last-line formatting.
+   (orgtbl-format-section): Shift formatting to support detecting the
+   last line and formatting it specially.
+   (orgtbl-to-generic): Document :ll* formats.  Set to the non-ll
+   formats unless overridden.
+   (orgtbl-to-latex): Suggest using :llend to suppress the final \\.
+
+2008-04-15  Jason Riedy  [EMAIL PROTECTED]
+
* lisp/org-table.el (*orgtbl-table*, *orgtbl-rtn*): Dynamically
bound variables to hold the input collection of lines and output
formatted text.
diff --git a/lisp/org-table.el b/lisp/org-table.el
index 3cc70c1..2eb9938 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -3613,8 +3613,11 @@ First element has index 0, or I0 if given.
 (defvar *orgtbl-fmt* nil Format for each entry)
 (defvar *orgtbl-efmt* nil Format for numbers)
 (defvar *orgtbl-lfmt* nil Format for an entire line, overrides fmt)
+(defvar *orgtbl-llfmt* nil Specializes lfmt for the last row)
 (defvar *orgtbl-lstart* nil Text starting a row)
+(defvar *orgtbl-llstart* nil Specializes lstart for the last row)
 (defvar *orgtbl-lend* nil Text ending a row)
+(defvar *orgtbl-llend* nil Specializes lend for the last row)
 
 (defun orgtbl-format-line (line)
   Format LINE as a table row.
@@ -3644,9 +3647,15 @@ First element has index 0, or I0 if given.
 
 (defun orgtbl-format-section (section-stopper)
   Format lines until the first occurrence of SECTION-STOPPER.
-  (progn
-(while (not (eq (car *orgtbl-table*) section-stopper))
-  (orgtbl-format-line (pop *orgtbl-table*)
+  (let (prevline)
+(progn
+  (while (not (eq (car *orgtbl-table*) section-stopper))
+   (if prevline (orgtbl-format-line prevline))
+   (setq prevline (pop *orgtbl-table*)))
+  (if prevline (let ((*orgtbl-lstart* *orgtbl-llstart*)
+(*orgtbl-lend* *orgtbl-llend*)
+(*orgtbl-lfmt* *orgtbl-llfmt*))
+(orgtbl-format-line prevline))
 
 (defun orgtbl-to-generic (table params)
   Convert the orgtbl-mode TABLE to some other format.
@@ -3670,17 +3679,20 @@ Valid parameters are
 May be nil to ignore hlines.
 
 :lstart String to start a new table line.
+:llstartString to start the last table line, defaults to :lstart.
 :lend   String to end a table line
+:llend  String to end the last table line, defaults to :lend.
 :sepSeparator between two fields
 :lfmt   Format for entire line, with enough %s to capture all fields.
 If this is present, :lstart, :lend, and :sep are ignored.
+:llfmt  Format for the entire last line, defaults to :lfmt.
 :fmtA format to be used to wrap the field, should contain
 %s for the original field value.  For example, to wrap
 everything in dollars, you could use :fmt \$%s$\.
 This may also be a property list with column numbers and
 formats. For example :fmt (2 \$%s$\ 4 \%s%%\)
 
-:hlstart :hlend :hlsep :hlfmt :hfmt
+:hlstart :hllstart :hlend :hllend :hlsep :hlfmt :hllfmt :hfmt
 Same as above, specific for the header lines in the table.
 All lines before the first hline are treated as header.
 If any of these is not present, the data line value is used.
@@ -3700,8 +3712,11 @@ directly by `orgtbl-send-table'.  See manual.
 (*orgtbl-sep* (plist-get params :sep))
 (*orgtbl-efmt* (plist-get params :efmt))
 (*orgtbl-lstart* (plist-get params :lstart))
+(*orgtbl-llstart* (or (plist-get params :llstart) *orgtbl-lstart*))
 (*orgtbl-lend* (plist-get params :lend))
+(*orgtbl-llend* (or (plist-get params :llend) *orgtbl-lend*))
 (*orgtbl-lfmt* (plist-get params :lfmt))
+(*orgtbl-llfmt* (or (plist-get params :llfmt) *orgtbl-lfmt*))
 (*orgtbl-fmt* (plist-get params :fmt))
 *orgtbl-rtn*)
 
@@ -3716,8 +3731,14 @@ directly by `orgtbl-send-table'.  See manual.
(progn
  (let* ((*orgtbl-lstart* (or (plist-get params :hlstart)
  *orgtbl-lstart*))
+(*orgtbl-llstart* (or (plist-get params :hllstart)
+  *orgtbl-llstart*))
 (*orgtbl-lend* (or (plist-get params :hlend) *orgtbl-lend*))
+(*orgtbl-llend* (or (plist-get params :hllend

[Orgmode] [PATCH 4/4] Add a :remove-nil-lines parameter to orgtbl-to-generic.

2008-04-16 Thread Jason Riedy
Useful if the header formatting is used purely for side-effects.

Signed-off-by: Jason Riedy [EMAIL PROTECTED]
---
 ChangeLog |5 +
 lisp/org-table.el |7 ++-
 2 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1347715..15937cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-16  Jason Riedy  [EMAIL PROTECTED]
+
+   * lisp/org-table.el (orgtbl-to-generic): Add a :remove-nil-lines
+   parameter that supresses lines that evaluate to NIL.
+
 2008-04-15  Jason Riedy  [EMAIL PROTECTED]
 
* lisp/org-table.el (orgtbl-get-fmt): New inline function for
diff --git a/lisp/org-table.el b/lisp/org-table.el
index 4ae90e3..9b4297b 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -3692,6 +3692,8 @@ Valid parameters are
 
 :sepSeparator between two fields
 
+:remove-nil-lines Do not include lines that evaluate to nil.
+
   Each in the following group may be either a string or a function
   of no arguments returning a string:
 :tstart String to start the table.  Ignored when :splice is t.
@@ -3731,6 +3733,7 @@ directly by `orgtbl-send-table'.  See manual.
   (interactive)
   (let* ((splicep (plist-get params :splice))
 (hline (plist-get params :hline))
+(remove-nil-linesp (plist-get params :remove-nil-lines))
 (*orgtbl-table* table)
 (*orgtbl-sep* (plist-get params :sep))
 (*orgtbl-efmt* (plist-get params :efmt))
@@ -3776,7 +3779,9 @@ directly by `orgtbl-send-table'.  See manual.
   (push (or (orgtbl-eval-str (plist-get params :tend))
ERROR: no :tend) *orgtbl-rtn*))
 
-(mapconcat 'identity (nreverse *orgtbl-rtn*) \n)))
+(mapconcat 'identity (nreverse (if remove-nil-linesp
+  (remq nil *orgtbl-rtn*)
+*orgtbl-rtn*)) \n)))
 
 (defun orgtbl-to-latex (table params)
   Convert the orgtbl-mode TABLE to LaTeX.
-- 
1.5.5.rc1.121.g1594



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


[Orgmode] [PATCH 0/4] Generalize orgtbl formatting with functions

2008-04-16 Thread Jason Riedy
This is lead-up to a contrib function that generates SQL insertions
from a table.  Using functions for some of the orgtbl parameters opens
up many possibilities.

Jason Riedy (4):
  Refactor orgtbl-to-generic; explicitly separate heading from body.
  Support last-line specializers.
  Allow functions for some orgtbl parameters.
  Add a :remove-nil-lines parameter to orgtbl-to-generic.

 ChangeLog |   45 +
 doc/org.texi  |5 +-
 lisp/org-table.el |  190 ++---
 3 files changed, 187 insertions(+), 53 deletions(-)



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


[Orgmode] Bug: Error in org-agenda-files = org-remember really breaks.

2008-04-14 Thread Jason Riedy
I haven't tried debugging this one, and I'm still not sure how I
figured out the problem.

I accidentally set org-agenda-files to a directory ~/.orgs
rather than (list ~/.orgs).  So something tried to read
the directory as a list of files...  And then org-remember
breaks in utterly confusing ways.  Some of the escape codes
are parsed correctly, some are not (e.g. %? and %!).  And
C-c C-c and C-c C-k both refuse to work correctly...

Good luck.  ;)

Jason



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


Re: [Orgmode] Re: Using Alt as Meta

2008-04-08 Thread Jason F. McBrayer
Dan Davison [EMAIL PROTECTED] writes:

 For me it shows

 A-right is undefined


Looks like you have your alt key mapped to alt, not to meta.  You can
change that in a number of ways; if you're running Gnome the easiest way
is through the keyboard control panel.  The default is supposed to be
that the alt key sends both alt and meta, but something may have gone
wrong in your case.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] Org-mode versus Taskpaper - now for real

2008-04-03 Thread Jason F. McBrayer
Rick Moynihan [EMAIL PROTECTED] writes:

 3. Offer some kind of Easy org installation.
- Effectively a distro of Emacs tailored to Org-mode.
- Ship with an installer.
- Give it a catchier product name.

IMO making sure that Emacs-W32 and Aquamacs always ship a current
version of org-mode would be the more straightforward and more
productive way of doing this.  Once someone starts using Emacs, they're
likely to spend more and more of their tube time in it.  The main good
thing about org-mode as opposed to TaskPaper or GTDTiddlyWiki (etc.,
etc.) is that it's in Emacs, and you always have all of Emacs'
facilities available to you in it.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


[Orgmode] s/unser/user/ in lisp/org-table.el

2008-03-28 Thread Jason Riedy
Little, copyright-less change appended.

BTW, while I'm waiting for completion of my copyright assignment,
my little orgtbl changes are sitting in a fork on repo.or.gz:
  http://repo.or.cz/w/org-mode/ejr.git

The changes have been updated to the new structure, and
everything *appears* to work.

You may want to describe forks in README_GIT.  Pulling from a
fork would be a bit more controlled than giving out push access,
removing the various copyright concerns.  I don't know of a
sensible way to manage ChangeLog files.

Jason
--
diff --git a/lisp/org-table.el b/lisp/org-table.el
index ee83da7..fbeb5e8 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -176,7 +176,7 @@ fromaccept as input, do not present for editing
 t:  accept as input and present for editing
   :group 'org-table-calculation
   :type '(choice
- (const :tag Never, don't even check unser input for them nil)
+ (const :tag Never, don't even check user input for them nil)
  (const :tag Always, both as user input, and when editing t)
  (const :tag Convert user input, don't offer during editing 'from)))



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


[Orgmode] Bruno Haible's git-merge-changelog

2008-03-28 Thread Jason Riedy
A quick search turned up Bruno Haible's git-merge-changelog:
  http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/git-merge-changelog.c

Potentially very useful.

Jason



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


Re: [Orgmode] cal-tex and entries from org

2008-03-27 Thread Jason F. McBrayer
Egli Christian (KIRO 433) [EMAIL PROTECTED] writes:

 Hi Jason

 I can't get scheduled entries from org-mode to show up in calendars
 printed via cal-tex.   My diary file looks like

 Which calendars are you printing? Not all calendars support printing of
 diary entries. This is actually a TODO item at the top of cal-tex.el to
 enable diary printing for all calendars. See
 http://cvs.savannah.gnu.org/viewvc/emacs/lisp/calendar/cal-tex.el?root=e
 macsview=markup.

It was weekly calendars, which I see don't have diary entries.  I guess
that would explain it.  Thanks.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


[Orgmode] [respun PATCH 2/3] Support last-line specializers.

2008-03-02 Thread jason
Each of lstart, lend, and lfmt permits a last-line specialization
called llstart, etc. with corresponding heading versions.

Signed-off-by: Jason Riedy [EMAIL PROTECTED]
---
  Argh.  Already found one problem: I didn't fall back to non-last-line
  properties when appropriate.

 org.el |   34 ++
 1 files changed, 26 insertions(+), 8 deletions(-)

diff --git a/org.el b/org.el
index 64121c9..f38f6ae 100644
--- a/org.el
+++ b/org.el
@@ -11792,9 +11792,13 @@ First element has index 0, or I0 if given.
 
 (defun orgtbl-format-section (section-stopper)
   Format lines until the first occurrence of SECTION-STOPPER.
-  (progn
-(while (not (eq (car table) section-stopper))
-  (orgtbl-format-line (pop table)
+  (let (prevline)
+(progn
+  (while (not (eq (car table) section-stopper))
+   (if prevline (orgtbl-format-line prevline))
+   (setq prevline (pop table)))
+  (if prevline (let ((lstart llstart) (lend llend) (lfmt llfmt))
+(orgtbl-format-line prevline))
 
 (defun orgtbl-to-generic (table params)
   Convert the orgtbl-mode TABLE to some other format.
@@ -11818,17 +11822,20 @@ Valid parameters are
 May be nil to ignore hlines.
 
 :lstart String to start a new table line.
+:llstartString to start the last table line, defaults to :lstart.
 :lend   String to end a table line
+:llend  String to end the last table line, defaults to :lend.
 :sepSeparator between two fields
 :lfmt   Format for entire line, with enough %s to capture all fields.
 If this is present, :lstart, :lend, and :sep are ignored.
+:llfmt  Format for the entire last line, defaults to :lfmt.
 :fmtA format to be used to wrap the field, should contain
 %s for the original field value.  For example, to wrap
 everything in dollars, you could use :fmt \$%s$\.
 This may also be a property list with column numbers and
 formats. For example :fmt (2 \$%s$\ 4 \%s%%\)
 
-:hlstart :hlend :hsep :hlfmt :hfmt
+:hlstart :hllstart :hlend :hllend :hsep :hlfmt :hllfmt :hfmt
 Same as above, specific for the header lines in the table.
 All lines before the first hline are treated as header.
 If any of these is not present, the data line value is used.
@@ -11847,8 +11854,11 @@ directly by `orgtbl-send-table'.  See manual.
 (sep (plist-get params :sep))
 (efmt (plist-get params :efmt))
 (lstart (plist-get params :lstart))
+(llstart (or (plist-get params :llstart) lstart))
 (lend (plist-get params :lend))
+(llend (or (plist-get params :llend) lend))
 (lfmt (plist-get params :lfmt))
+(llfmt (or (plist-get params :llfmt) lfmt))
 (fmt (plist-get params :fmt))
 rtn)
 
@@ -11860,10 +11870,15 @@ directly by `orgtbl-send-table'.  See manual.
 ;; trailing hline.
 (if (and (not splicep) (listp (car table)) (memq 'hline table))
(progn
- (let* ((lstart (or (plist-get params :hlstart) lstart))
-(lend (or (plist-get params :hlend) lend))
-(lfmt (or (plist-get params :hlfmt) lfmt))
-(fmt (or (plist-get params :hfmt) fmt)))
+ (let ((lstart (or (plist-get params :hlstart) lstart))
+   (llstart (or (plist-get params :hllstart) llstart))
+   (lend (or (plist-get params :hlend) lend))
+   (llend (or (plist-get params :hllend)
+  (plist-get params :hlend) llend))
+   (lfmt (or (plist-get params :hlfmt) lfmt))
+   (llfmt (or (plist-get params :hllfmt)
+  (plist-get params :hlfmt) llfmt))
+   (fmt (or (plist-get params :hfmt) fmt)))
(orgtbl-format-section 'hline))
  (if hline (push hline rtn))
  (pop table)))
@@ -11897,6 +11912,9 @@ LaTeX are:
example \%stimes10^{%s}\.  LaTeX default is \%s,(%s)\.
This may also be a property list with column numbers and formats.
 
+:llend If you find too much space below the last line of a table,
+   pass a value of \\ for :llend to suppress the final .
+
 The general parameters :skip and :skipcols have already been applied when
 this function is called.
   (let* ((alignment (mapconcat (lambda (x) (if x r l))
-- 
1.5.4.3




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


[Orgmode] [PATCH 3/3] Allow functions for some orgtbl parameters.

2008-03-02 Thread Jason Riedy
Functions and dynamic binding permit some fun uses, including
gathering up header names for use in SQL insert statements.

Signed-off-by: Jason Riedy [EMAIL PROTECTED]
---
 org.el   |   38 ++
 org.texi |5 -
 2 files changed, 34 insertions(+), 9 deletions(-)

diff --git a/org.el b/org.el
index f38f6ae..6f17f1e 100644
--- a/org.el
+++ b/org.el
@@ -11778,16 +11778,26 @@ First element has index 0, or I0 if given.
(mapcar
 (lambda (f)
   (setq i (1+ i))
-  (let* ((fmt (if (consp fmt) (plist-get fmt i) fmt))
- (efmt (if (consp efmt) (plist-get efmt i) efmt))
+  (let* ((fmt (if (and (not (functionp fmt)) (consp fmt))
+  (plist-get fmt i) fmt))
+ (efmt (if (and (not (functionp efmt)) (consp efmt))
+   (plist-get efmt i) efmt))
  (f (if (and efmt (string-match orgtbl-exp-regexp f))
-(format efmt (match-string 1 f)
- (match-string 2 f))
+(if (functionp efmt) (funcall efmt
+  (match-string 1 f)
+  (match-string 2 f))
+  (format efmt (match-string 1 f)
+  (match-string 2 f)))
   f)))
-(if fmt (format fmt f) f)))
+(cond ((functionp fmt) (funcall fmt f))
+  (fmt (format fmt f))
+  (t f
 line)))
-  (push (if lfmt (apply 'format lfmt line)
- (concat lstart (mapconcat 'identity line sep) lend))
+  (push (cond ((functionp lfmt) (funcall lfmt line))
+ (lfmt (apply 'format lfmt line))
+ (t (concat (if (functionp lstart) (funcall lstart) lstart)
+(mapconcat 'identity line sep)
+(if (functionp lend) (funcall lend) lend
rtn
 
 (defun orgtbl-format-section (section-stopper)
@@ -11821,11 +11831,18 @@ Valid parameters are
 :hline  String to be inserted on horizontal separation lines.
 May be nil to ignore hlines.
 
+:sepSeparator between two fields
+
+  Each in the following group may be either a string or a function
+  of no arguments returning a string:
 :lstart String to start a new table line.
 :llstartString to start the last table line, defaults to :lstart.
 :lend   String to end a table line
 :llend  String to end the last table line, defaults to :lend.
-:sepSeparator between two fields
+
+  Each in the following group may be a string, a function of one
+  argument (the field or line) returning a string, or a plist
+  mapping columns to either of the above:
 :lfmt   Format for entire line, with enough %s to capture all fields.
 If this is present, :lstart, :lend, and :sep are ignored.
 :llfmt  Format for the entire last line, defaults to :lfmt.
@@ -11840,6 +11857,7 @@ Valid parameters are
 All lines before the first hline are treated as header.
 If any of these is not present, the data line value is used.
 
+  This may be either a string or a function of two arguments:
 :efmt   Use this format to print numbers with exponentials.
 The format should have %s twice for inserting mantissa
 and exponent, for example \%stimes10^{%s}\.  This
@@ -11906,11 +11924,13 @@ LaTeX are:
original field value.  For example, to wrap everything in dollars,
use :fmt \$%s$\.  This may also be a property list with column
numbers and formats.  For example :fmt (2 \$%s$\ 4 \%s%%\)
+   The format may also be a function that formats its one argument.
 
 :efmt  Format for transforming numbers with exponentials.  The format
should have %s twice for inserting mantissa and exponent, for
example \%stimes10^{%s}\.  LaTeX default is \%s,(%s)\.
This may also be a property list with column numbers and formats.
+   The format may also be a function that formats its two arguments.
 
 :llend If you find too much space below the last line of a table,
pass a value of \\ for :llend to suppress the final .
@@ -11972,6 +11992,8 @@ TeXInfo are:
everything in @kbd{}, you could use :fmt \@kbd{%s}\.
This may also be a property list with column numbers and
formats.  For example :fmt (2 \@kbd{%s}\ 4 \@code{%s}\).
+   Each format also may be a function that formats its one
+   argument.
 
 :cf \f1 f2..\The column fractions for the table.  By default these
are computed automatically from the width

[Orgmode] How I'm using these: Generating SQL insert statements.

2008-03-02 Thread Jason Riedy
This code is only partially baked, but it's working for me at the
moment.  I'm using my multi-target changes to generate both a
LaTeX description of the values as well as SQL insert statements
in separate noweb chunks.  The code leaves a spare blank line
in place of the header and cannot handle more than one header line,
but it's all I need...

Jason

(defun ejr/orgtbl-to-sqlinsert (table params)
  Convert the orgtbl-mode TABLE to SQL insert statements.
TABLE is a list, each entry either the symbol `hline' for a horizontal
separator line, or a list of fields for that line.
PARAMS is a property list of parameters that can influence the conversion.
Supports all parameters from `orgtbl-to-generic'.  Most important for
SQL are:

:spliceWhen set to t, return only insert statements, don't wrap
   them in a transaction.  Default is nil.

:sqlname   The name of the database table; defaults to the name of the
   target region.

:tstart, :tend
   The strings used to begin and commit the transaction.

:fmt   A format to be used to wrap the field value, should contain %s
   for the original field value.  The default wraps the
   value in the non-standard [] quote marks but does not
   protect against ] characters in the header name.  The
   format may also be a function that formats its one
   argument.

:hfmt  A function that gathers the []-quoted header names into a
   dynamically scoped variable HDRLIST.

The general parameters :skip and :skipcols have already been applied when
this function is called.
  (let* (hdrlist
 (alignment (mapconcat (lambda (x) (if x r l))
   org-table-last-alignment ))
 (params2
  (list
   :sqlname name
   :tstart BEGIN TRANSACTION;
   :tend COMMIT;
   :fmt [%s]
   :hfmt (lambda (f) (push (concat [ f ]) hdrlist) )
   :hlfmt (lambda (lst) nil)
   :lstart (lambda () (concat INSERT INTO 
  (plist-get params :sqlname) ( 
  (mapconcat 'identity (reverse hdrlist)
 , )
   ) VALUES ( ))
   :lend  );
   :sep  , 
   :hline nil)))
(orgtbl-to-generic table (org-combine-plists params2 params



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


[Orgmode] One table, multiple radio targets?

2008-02-28 Thread Jason Riedy
Anyone have a clever way to generate multiple outputs from one
table?  It's pretty clear that orgtbl-send-table doesn't handle
multiple ORGTBL lines, and I'm not clever enough to hack in a
loop over multiple clauses on one ORGTBL line.

The context is a probably too clever mechanism to generate both
code and documentation at once.  I'm using noweb to document a
SQL schema, and a few tables are pre-loaded with data.  I'd like
to send one orgtbl-mode table to LaTeX and SQL insert statements.

Jason



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


[Orgmode] Re: Git repository

2008-01-31 Thread Jason Riedy
And Russell Adams writes:
 When I was selecting a VC, I narrowed it down to Bazaar or Git. Being
 a prior Arch user, Bazaar fixed most of my complaints while using the
 same architecture.

The Arch architecture doesn't fit everyone.  In particular, a
colleague and I used tla to shoot changes back and forth rapidly.
We ended up with a history with at least 40% merge detritus.  git
doesn't bother recording merge information when the merge is
trivial (a fast-forward of one history to match another).  That
fit our working model and my mental model better.

Generally, git tracks contents rather than changes.  That's how
my head works as well, so most git functions do what I expect and
want.  Any technical differences are insignificant in comparison.

Git and Mercurial archives can exist on the far side of a dumb
transport like http.  They're not ideal necessarily, but they
function well enough.

Jason



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


Re: [Orgmode] Re: depending TODOs, scheduling following TODOs automatically

2007-10-12 Thread Jason F. McBrayer
Rainer Stengele [EMAIL PROTECTED] writes:

 I also do not expect to grow Org into anything near a full PM.
 But I do would be more than glad to get some basic (trigger or blocker)
 functionality to model dependencies between todos.

I would think that setting these up initially would require as much
work and attention as simply managing them manually.

 Again, one of my main needs would be to hide todos until other todos
 are in a certain state. Then show them after the trigger is pulled.
 At the moment I have to a lot of todos in my agenda which I cannot
 work on because of the trigger not ready. Or I have to undo the
 todos to not see them and not forget to trigger them myself at the
 right moment.

What I do is mark tasks that can't be done yet as either NEEDSPREREQ
or WAITING, or put them in my SomedayMaybe.org file if there's no
possibility I'll get to them before my next weekly review.  I only
look at NEXTACTION tasks when I'm choosing a task to do, and when I
complete a task, I look at its project to see if any NEEDSPREREQ tasks
can now be done.  If so, I change those to NEXTACTION.

Yes, it would be possible to annotate these with a hook of some kind
so that they are changed from NEEDSPREREQ to NEXTACTION
automatically.  But my feeling is that doing that would frontload the
planning process too much, take just as much time/attention, and
overall interfere with getting things done.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] depending TODOs, scheduling following TODOs automatically

2007-10-12 Thread Jason F. McBrayer
pete phillips [EMAIL PROTECTED] writes:

 org-mode developed as a means of maintaining lists, and it excels at
 this. Just because the GTD methodology uses the term Project doesn't
 mean that we should turn org-mode into a fully fledged project
 planning application. If you need project planning capability, then
 you probably need all the bells and whistles that go with it - GANT
 and PERT charts, critical path calculations, multi-user capabilities
 etc.

I agree.  If you're using a GTD-like methodology, all you really need
is something that is good at maintaining lists of things (and
generating cross-cutting lists of things like project vs. context).
If you are using a day-planner methodology, all you really need is to
be able to maintain dated lists with attached statuses.  Org-mode is
really good for both of these things.

Once you get into enterprise (read as over-bureaucratized) project
planning, then you really need software designed for the bureaucratic
requirements of your organization, or for your organziation's
bureaucracy to be built around something like MS-Project.  I don't
think it's a good idea for org-mode to try to support this type of
work.  Gnome Planner might be a workable tool for this kind of job.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] another GTD question from dto

2007-10-06 Thread Jason F. McBrayer
David O'Toole [EMAIL PROTECTED] writes:

 This gives in the agenda:

  dto:  Scheduled:  NEXT Chapter 5
  dto:  Scheduled:  NEXT Chapter 1

 Without any indication which book the chapters are from.  Can I fix
 this with properties or tags or categories or something?

I always try to put enough information in a task headline to make it
unambiguous.  This is more GTD, I think, but it's also a bit more
manual. 

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] org-crypt.el --- Public key encryption for org-mode entries

2007-09-29 Thread Jason F. McBrayer
John Wiegley [EMAIL PROTECTED] writes:

 The following code is preliminary, but gets the job done in my
 simple tests.  Now's the time to beat down on, and refine, the user
 interface and behavior.

This is a very nifty idea.  It might be an idea for someone setting up
org-crypt to do something like:

(eval-after-load org-crypt
  (add-hook 'org-mode-hook
(lambda nil (add-hook
'after-save-hook
'org-encrypt-entries
nil t

(This is untested, could be wrong in some way).

Rather than rely on setting a local variable list in their org-mode
files. 

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] How I run org-agenda -csv to create data for my ListPro program

2007-09-29 Thread Jason F. McBrayer
Charles Cave [EMAIL PROTECTED] writes:

 I wanted to show how I use the org-batch-agenda-csv command
 to create a file to import into the ListPro program
 that I run on my Palm M515 handheld.

Nifty.  I use something similar in Python for syncing with my paper
notebook by generating pdfs of my custom agendas.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] Re: Release org-mode 5.10

2007-09-28 Thread Jason F. McBrayer
Bernt Hansen [EMAIL PROTECTED] writes:

 Carsten Dominik [EMAIL PROTECTED] writes:

   - The clocktable has a new `:scope' parameter.

 Cool! :)  So now I can split my files again and still get a daily
 summary across all file.  Thanks!

I haven't gotten to try the new clocktable features yet, but from the
description, it seems to cover everything I could possibly need in the
area of time tracking :)

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] Re: Open gnus link without popping up a new frame

2007-09-26 Thread Jason F. McBrayer
Nuutti Kotivuori [EMAIL PROTECTED] writes:

 Leo wrote:
 I run Emacs in xterm and popup frames are useless. Thus I would like to
 open a gnus link without a new frame. I have the following config:

 Does gnus-other-frame in an xterm actually do something? Is there a
 frame it can pop up?

Frames on a tty work kind of like 'screen' windows.  They take up the
whole tty, and you can switch between them with C-x 5 o.  I'd assume
gnus-other-frame works normally in this context.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] org-mode PDAs

2007-09-17 Thread Jason F. McBrayer
Cezar [EMAIL PROTECTED] writes:

   I would like to know if there are any PDA or Smartphone devices to
   use with org-mode, and be able to sync between them with ease.

Not entirely serious:  has anyone ported emacs to the N800 or OpenMoko
yet? 

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] Clocktable from multiple files?

2007-09-13 Thread Jason F. McBrayer
Carsten Dominik [EMAIL PROTECTED] writes:

 In fact, maybe the whole clocking stuff needs an overhaul at some
 point, but right now I don't have time to do it.  I not sure in what
 direction to take this.  Maybe create a timeclock - compatible list
 from scanning the agenda buffers?  I still think that collecting the
 CLOCK entries in the outline does make a lot of sense.  The clock
 table was a quick hack I once did, but apparently not really though
 through very well.

I can't volunteer to write anything at this point, but I do have some
comments.

I think accumulating CLOCK entries in the outline is The Right Thing.
It keeps the times with the tasks, and so forth, and clocking in and out
of tasks is really convenient.  What we're lacking right now are
flexible-enough ways of dealing with the information those entries
represent.  Right now, the clock table does everything I really need to
do, but not everything I would like to be able to do.

Here are some things that any future org-clock.el or similar ought to
be able to handle:

1. Including CLOCK entries from all org-agenda-files in its summaries
2. Including CLOCK entries from archive files associated with files used
   to construct its summaries.  Right now I can't archive completed
   projects because of the need to include them and their tasks in
   monthly reports, for example.
3. Conversely, limiting summaries to only a subtree (having a clock
   table per project, for example).  I don't need this right now, but
   someone consulting or freelancing for several clients probably would.

Maybe someone will get inspired by this :)   

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] running remember with emacsclient - how to get a new frame

2007-09-07 Thread Jason F. McBrayer
Scott Jaderholm [EMAIL PROTECTED] writes:

 This is great. How would you make it so that the frame displays with remember
 as the only window ?

I have this in my .emacs, which I didn't post before as it wasn't
precisely relevant to the question asked:

(add-hook 'remember-mode-hook 'delete-other-windows)

Perhaps not the most elegant solution, since if you're using remember by
hand (not popping it up in a new frame), your window layout won't be
restored after you finish with remember.  But it's good enough for me.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


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


Re: [Orgmode] running remember with emacsclient - how to get a new frame

2007-09-06 Thread Jason F. McBrayer
pete phillips [EMAIL PROTECTED] writes:

 Hi

 I want to bind a keyboard key to run 

   /usr/bin/emacsclient.emacs-snapshot  -e (remember)

I define this function in my .emacs:

(defun my-remember nil
  (progn (select-frame
  (make-frame '((name . *Remember*) )))
 (raise-frame)
 (remember)))

And this additional code to close the frame if remember was opened in
its own frame:

(setq remember-all-handler-functions t)
(setq remember-handler-functions
  '(org-remember-handler
  (lambda nil
(let* ((frame-names-alist (make-frame-names-alist))
   (frame (cdr (assoc *Remember* frame-names-alist
  (if frame
  (delete-frame frame t))
 
And use a script called 'remember' that runs:

emacsclient -n --eval '(my-remember)'

I've got quite a bit of other code to make emacsclient maximally
desktop-environment-friendly --- emacsclient always opening in new
frames, closing frames killing the associated buffer,
server-done closing the frame, a script to either start emacs or use
emacsclient as needed, running emacs with the initial frame unmapped,
letting you delete all visible frames, and a .desktop file that wraps
the aforementioned script.  One of these days I should package it all
up, but it's kind of all over the place.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Tutorials

2007-09-02 Thread Jason F. McBrayer
Xavier Maillard [EMAIL PROTECTED] writes:

Carsten Dominik [EMAIL PROTECTED] writes:

 - How you, personally, use Org-mode for plannig and
   monitoring your tasks (we could have *many* of those).

I have most of one of these sitting in a folded, cobwebby headline in
my main projects file.  I'll see about dusting it off and polishing it
off. 

 Any news of this piece of dust ? :) I am really curious about how
 people are actually using org-mode to try to find the best
 combination for me. By the way I loved John's article.

I'm working on it for a few minutes most mornings before work.  It's
getting a little long, I'm afraid, and once I finish it, it will need a
good edit before posting.  Also needs updating for post-5.04 changes.
But I do still intend to publish it.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [POLL] How do you enter your tasks/todos ?

2007-08-17 Thread Jason F. McBrayer
Xavier Maillard [EMAIL PROTECTED] writes:

 This is a serious question. I have no success at all (it is even worse
 than before) with the GTD methodology and I am pretty sure it has to
 do with the way I manage toenter new todos in my system. I almost only
 use remember for that. I guess I'm wrong using this method.

I use both remember and directly editing my main org-mode file.  Things
from remember only go into my Inbox.org, which I manually process into
my Projects.org.

 So what is the way you do ? The same apply for your diary, do you
 solely use org-mode or do you also happen to use the calendar/diary ?

I don't use diary-mode.  I did use it for recurring appointments and
such, but org supports those natively now.

 Optionnal question: does anybody successfully use org-mode and GTD ?

Yes, mostly.  I'm very successful with it at work; not so much at home,
but that is a motivational problem, not an organizational one, and GTD
is not a motivational system.

I'm working on a detailed whitepaper on my org-mode/GTD usage, but it's
not my highest priority right now.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Integration of Org mode and mairix

2007-08-01 Thread Jason F. McBrayer
Bastien [EMAIL PROTECTED] writes:

 Xiao-Yong Jin [EMAIL PROTECTED] writes:

 Probably it's the time for us to think of a universal way to support
 system dependent 3rd party index tools. Mairix may not be the only
 search tool people want to use with org-mode, though it is my
 favourite and only index tool I use for now.

 Please see (and comment) my suggestion here:

   http://article.gmane.org/gmane.emacs.orgmode/2563

I think that's basically right, though in the case of email search,
probably the best thing would be making nnir work right (and provide
nnir with a mairix backend).  nnir is supposed to provide a layer of
indirection between mail indexers and gnus, which should be enough for
org-mode needs.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Interpretation of priorities in org-mode

2007-08-01 Thread Jason F. McBrayer
Piotr Zielinski [EMAIL PROTECTED] writes:

 I'd like to find out how different people use priorities (#A, #B, ...)
 in org-mode.  I've always assumed the standard interpretation (#A =
 high priority, #B = medium, #C = low).  However, the problem with this
 approach is that what high priority means is not well defined, and
 if you are not careful, then all your items will quickly become high
 priority, which defeats the whole point.

I don't really use priorities at all, since I'm using org-mode to do
GTD.  If something has to be done today, then that's a deadline, not a
priority.  If I don't need or want to get something done /in the next
week/, it probably shouldn't be crowding up my todo-lists at all, and
making it harder for me to find things I should be doing; it should be
on my someday/maybe list.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Integration of Org mode and mairix

2007-07-31 Thread Jason F. McBrayer
Bastien [EMAIL PROTECTED] writes:

 So if you do [[mairixt:m:xyz]] it will pull out the entire thread in
 which that message id is present, so you have the full context, which I
 find very useful.

 Yes, i also like the fast intexing. Other people playing with it around?

TBH, I haven't messed with mairix or the associated patches posted here,
even though I do need such a solution, because it doesn't look like any
of the posted solutions work with IMAP mailstores, only local mailstores
like nnml and nnmaildir.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [POLL] Different face for 'stuck projects'

2007-07-26 Thread Jason F. McBrayer
Leo [EMAIL PROTECTED] writes:

 I'd like your opinions on making 'stuck projects' display with a
 different face. Do you think this is a good idea?

I'd guess identifying stuck projects may be too much work to be done
continually as fontification is, given that the rules for identifying a
stuck project may be quite complex.

In my workflow, I only need to identify stuck projects when doing a
weekly review, so the agenda view works fine for me.  I don't worry
about stuck projects being mixed in with my other projects the rest of
the time, since they won't produce anything that will show up in my
agenda searches.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] C-u C-c C-t broken

2007-07-19 Thread Jason F. McBrayer
Carsten Dominik [EMAIL PROTECTED] writes:


   Works just fine for me, it offers completion on TODO
 keywords.

 Anyone else has problems with this?

It works for me; though I had previously not known it existed.  Now that
I know about it, I doubt I'll use C-c C-t without the prefix arg
anymore.  

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Integration of Org mode and Gnus

2007-07-18 Thread Jason F. McBrayer
Bastien [EMAIL PROTECTED] writes:

 Anyway, i think gnus-registry comes in handy here.

It looks like that may indeed be the way forward, if it will let you
follow a link by message-id rather than group.  I'm not clear on the
specifics of how you'd set it up, though.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Integration of Org mode and Gnus

2007-07-17 Thread Jason F. McBrayer
Georg C. F. Greve [EMAIL PROTECTED] writes:

 Ideally, I'd like to make a decision on email when I find them in the
 inboxes, and either archive them without a link, or archive them with a
 link for my Org mode files. The same goes for mail I send.

 So for sending mail and for moving mail to archive folders, I would like
 to be able to memorise a link for the email in its *final storage*
 location.

I don't have a solution to this, but I'd like to note that I have the
same problem.

One possible way of approaching it might be with nnir (see
http://www.emacswiki.org/cgi-bin/wiki/IndexMail and
http://www.emacswiki.org/cgi-bin/wiki/nnir.el) so that the link you
save in org is a link to a search that will find the message, not a
link to the message itself.  But nnir is currently not working very
reliably for me (trying to use the IMAP backend).

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Column view questions

2007-07-12 Thread Jason F. McBrayer
Charles philip Chan [EMAIL PROTECTED] writes:

 Daniel J. Sinder [EMAIL PROTECTED] writes:

 Seeing as bbdb lacks the same functionality that I need for org
 (namely, the vCard importer) I don't see a big benefit (for me) in
 going to bbdb.

 You can import vcard into bbdb:

 http://www.emacswiki.org/cgi-bin/emacs-en/BbdbImporters#toc3

The importers on emacswiki don't work reliably, unfortunately (last
time I checked).


-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Column view questions

2007-07-11 Thread Jason F. McBrayer
Daniel J. Sinder [EMAIL PROTECTED] writes:

 PROPERTIES and column view are fantastic!  Thanks Carsten.

 I already have visions of moving my address book into org.  I've set
 my sights on finally learning Elisp by writing a vCard-to-org
 function (and the reverse).

 How well does generating column view scale for hundreds of headlines?

You'd be better off moving your address book into bbdb (no need to
abuse org for the purpose when there's already a perfectly good emacs
tool for the purpose).  We really need a good vCard-to-bbdb (and the
reverse) converter, though.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Tutorials

2007-07-10 Thread Jason F. McBrayer
Carsten Dominik [EMAIL PROTECTED] writes:

 - How you, personally, use Org-mode for plannig and
   monitoring your tasks (we could have *many* of those).

I have most of one of these sitting in a folded, cobwebby headline in
my main projects file.  I'll see about dusting it off and polishing it
off. 

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Tutorials

2007-07-10 Thread Jason F. McBrayer
Jost Burkardt [EMAIL PROTECTED] writes:

 Maybe I could put something together about remember-mode integration -
 my favourite feature. 

 Any Idea, where to publish it? I currently have no web-site running.
 Maybe emacswiki is an good place to put it? Other Ideas?

For tutorials like this, emacswiki would be entirely appropriate and
useful.  Just be sure to give it a good title and link to it from the
OrgMode page.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] OT: remember'ing from other programs with stumpwm

2007-07-06 Thread Jason F. McBrayer
Dmitri Minaev [EMAIL PROTECTED] writes:

 On 7/6/07, Jason F. McBrayer [EMAIL PROTECTED] wrote:
 What about x-clipboard-yank?  Also, if x-select-enable-clipboard is
 non-nil, shouldn't emacs paste the clipboard when available?

 If I knew these words before, I would've used them :). Well, there are
 more things in heaven and earth...


Yep, emacs is like that.  M-x apropos and M-x apropos-variable are
really helpful for finding things before you try to implement them
yourself.  Also, emacswiki.org is helpful.

IMO x-select-enable-clipboard should ALWAYS be t.  Setting it to nil
is saying please break my clipboard handling.  I want it to not
work.  KTHXBYE.  Still seems to default to nil in order to behave the
same way as the emacs of yore, however.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode version 5.01

2007-07-05 Thread Jason F. McBrayer
David O'Toole [EMAIL PROTECTED] writes:

 A lot of this will help my new project:
 http://dto.freeshell.org/notebook/Eon.html 

Eon looks very interesting and promising, but I'd have to see some
more concrete examples of usage to really buy-into it.  How friendly
will it be with org?  I liked the idea and look of linkd, but never
installed it because I wasn't sure how linkd links would get along
with org-native links.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode 4.78

2007-06-21 Thread Jason F. McBrayer
Carsten Dominik [EMAIL PROTECTED] writes:

 That is possible, but a bit more complex, so I am not sure when I
 will get around to this.  For the time being, if you need to assign
 the clocking to a date, just clock in and out and then change the
 dates by hand.

Indeed, that is what I do, currently, or make the clockline by hand
with org-time-stamp.  And I'm not sure there's a tremendous need for
this feature to be added.

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode 4.78

2007-06-20 Thread Jason F. McBrayer
[EMAIL PROTECTED] writes:


 Sorry, that was pretty vague. What I meant was, if you have a clock
 table like this:

 #+BEGIN: clocktable :maxlevel 4 :emphasize nil :block lastweek
 ...

 the :block lastweek part doesn't really fit with clock entries like

 ** some entry
 CLOCK: = 2:00

 since there isn't any date info in the clock entry. It appears that
 these entries are included in the clock table no matter what the
 setting of :block or :tstart, :tend. This works OK for me. I can
 limit the table to dateless clock entries by setting :tstart to a
 date in the future, for example.

I'd like to be able to assign dates to these timestamp-less clock
entries.  Just to have a way of saying I worked on this for two hours
on Tuesday without having to clock in and out specific times.  Useful
for entering things retroactively, for example, or putting in full-day
events. 

-- 
+---+
| Jason F. McBrayer[EMAIL PROTECTED]  |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors.  --- The Dhammapada|


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


<    1   2   3   4   >