[Orgmode] [PATCH] Avoid losing persisted clock data when exiting emac without loading org-mode

2009-10-23 Thread Kai Tetzlaff
Hi,

i noticed that when using the org-mode clock persistence, the stored
clock data gets deleted when i start emacs and exit again without
turning on org-mode in between.

When looking at org-clock-persistence-insinuate it looks like org-clock
load will only run after org-mode gets started whereas org-clock-save
will always be called when exiting emacs:

(defun org-clock-persistence-insinuate ()
  "Set up hooks for clock persistence"
  (add-hook 'org-mode-hook 'org-clock-load)
  (add-hook 'kill-emacs-hook 'org-clock-save))

Not running org-mode-hook (i.e. not starting org-mode) thus does not
load clock data but org-clock-save overwrites any prviously saved data
when exiting emacs.

An easy fix for that would be to just add org-clock-load to e.g.
emacs-startup-hook. But this will only work if the code in
org-clock-load does not depend on any org-mode initialization code (or
would require loading org-mode).

So org-clock-save should probably check if org-clock-load has been
running during the current emacs session (or if clock persistence was
just enabled) and only then save clock data when exiting emacs. I tried
to add this to the code in org-clock-save:

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index c7ebbf8..c0fe4e6 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -1803,7 +1803,8 @@ This function is made for clock tables."
   "Persist various clock-related data to disk.
 The details of what will be saved are regulated by the variable
 `org-clock-persist'."
-  (when org-clock-persist
+  (when (and org-clock-persist
+ (or org-clock-loaded (not (file-exists-p
org-clock-persist-file
 (let (b)
   (with-current-buffer (find-file (expand-file-name
org-clock-persist-file))
(progn


/Kai

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index c7ebbf8..c0fe4e6 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -1803,7 +1803,8 @@ This function is made for clock tables."
   "Persist various clock-related data to disk.
 The details of what will be saved are regulated by the variable
 `org-clock-persist'."
-  (when org-clock-persist
+  (when (and org-clock-persist
+ (or org-clock-loaded (not (file-exists-p 
org-clock-persist-file
 (let (b)
   (with-current-buffer (find-file (expand-file-name 
org-clock-persist-file))
(progn
___
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] [babel] Is ":results output inline" possible

2009-10-23 Thread emailorama
>>>  -- Is it possible to use #+lob: with ":results output org" ?
>>>  -- Is it possible for #+lob: to take a string argument ?
>>
>> Both these were bugs, which are fixed in my development branch -- they
>> should be merged into org-core by Eric soon.
>
> Those changes are in the main org git repo now, so your examples should
> work. Note that with your third example, the header args need to be
> placed on the #+lob line rather than with the source block, so
> that #+lob knows that it is to output org code (header args placed
> with #+lob are inherited by the referenced source block).

Hello Dan,

Wow - that was fixed quickly !

org-mode is a great package, and babel and #+lob bring
such nice integration with several useful languages.
I'm probably just beginning to realize the potential.

Thanks very much for your response,

al







___
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: Org-mode version 6.31trans; Problem with new 'away time' feature

2009-10-23 Thread Kai Tetzlaff
John Wiegley wrote:
> On Oct 22, 2009, at 6:32 PM, Kai Tetzlaff wrote:
> 
>> 'Cannot restart clock because task does not contain unfinished clock'
>>
>> When i look at the corresponding clock line the previously running clock
>> has now indeed been stopped (with a time stamp corresponding to the
>> current time).
> 
> This is an interesting bug.  It sounds like the point is not being moved
> to the correct location to perform the clock-in.  I'll take a look. 

I did some additional investigation and found that if i'm clocking into
an item with an unresolved inactive clock from the agenda (created by
deleting the end time in its most recent CLOCK: line) a similar thing
happens. I'm actually getting clocked out of the current clock and a new
CLOCK line gets added which is then the running clock.

Don't know if this helps but stepping through the code in the debugger i
get to the following code in org-clock-resolve-clock:

((eq resolve-to 'now)
 (if restart-p
 (error "RESTART-P is not valid here"))
 (if (or close-p org-clock-clocking-in)   <-- org-close: nil,
org-clock-clocking-in: t
 (org-clock-clock-out clock fail-quietly) <-- clock-out done here
   (unless (org-is-active-clock clock)
 (org-clock-clock-in clock 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


[Orgmode] Personal unit testing within org mode?

2009-10-23 Thread Oliver Charles
Personal unit tests [1] are unit tests for life. You give yourself a
few clear goals that you must pass daily (or perhaps weekly) and try
to reach them. By reviewing and evaluating the goals every morning
they are clear in your head and to me they seem like a great way to
change behaviour and habits.

At least, I thought that in theory a while ago, but never got round to
finding a simple way to integrate them into my life.

org-habit which came out recently has given me motivation to start
work on making org-punit, but before I start work on my first ever bit
of real Elisp (which is going to take some learning anyway!), I wanted
to quickly let you guys know how I plan to do this.

I think tests can be defined as a new keyword sequence: (sequence
"TEST" "|" "PASSED" "FAILED"). All unit tests are set to repeat daily,
and have state change logging enabled. So when you move from TEST ->
PASSED, it logs this and then moves back to TEST. SImple so far right?

Well another important part is being able to review how well I've done
in the last week, and this is where org-habit comes in. I'm thinking
of ripping off that little graph it produces, but the problem I have
is where should I put it? Do you think it will work in the agenda, or
should I generate some type of custom view? Perhaps something like
generating time clock reports?

I'd love to hear your thoughts on this!

-- 
Oliver Charles / aCiD2


___
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] Find the LaTeX symbol

2009-10-23 Thread Carsten Dominik

Hi,

if you have forgotten which macro to use for a particular
symbol in LaTeX, check this out.  Pretty neat :-)

http://detexify.kirelabs.org/classify.html

- Carsten





___
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: Added support for "habit tracking"

2009-10-23 Thread John Wiegley

On Oct 23, 2009, at 2:10 AM, Marcelo de Moraes Serpa wrote:

How could I define it so I can have a habit that happens weekly but  
that has a hard deadline of that very same weekday it has been  
specified to?


In this case you would use an ordinary task with a ++1w repeater.  Are  
you wanting to use habits just for the graph?


Habits are different from tasks.  It is "suggested" that you do them  
within a range of time, but it's not completion which is important,  
rather consistency over the long-run.  Hence the graph to indicate  
your overall progress on the goal of being consistent.


A weekly review, on the other hand, is something that you really  
should do every week, and if you miss it doesn't matter how well  
you've been doing in the past, a single missed week could throw you  
off considerably.


John


___
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] Personal unit testing within org mode?

2009-10-23 Thread John Wiegley

On Oct 23, 2009, at 6:08 AM, Oliver Charles wrote:


I think tests can be defined as a new keyword sequence: (sequence
"TEST" "|" "PASSED" "FAILED"). All unit tests are set to repeat daily,
and have state change logging enabled. So when you move from TEST ->
PASSED, it logs this and then moves back to TEST. SImple so far right?

Well another important part is being able to review how well I've done
in the last week, and this is where org-habit comes in. I'm thinking
of ripping off that little graph it produces, but the problem I have
is where should I put it? Do you think it will work in the agenda, or
should I generate some type of custom view? Perhaps something like
generating time clock reports?


Doesn't org-habit, with repeating tasks, already give you just what  
you've described above?  All you need to do is add the todo states to  
your #+TODO line at the top of your Org file.  Then they will repeat  
as you've described, and reporter progress below.  You'd have to  
simulate FAILED condition by just not recording the task as done, and  
a PASSED if you do achieve it.  Then the habits graph could be  
meaningful for this.


John


___
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] Org-mobile bug?

2009-10-23 Thread Phil Branigan
Somehow, in putting together the file list, org-mobile-push strips the home ~
from the file names in org-agenda-files, so that no org files are actually
getting copied to my staging directory.  I sure would appreciate any hints on
how to track this to ground.

 



___
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] Find the LaTeX symbol

2009-10-23 Thread Eric Schulte
Carsten Dominik  writes:

> Hi,
>
> if you have forgotten which macro to use for a particular
> symbol in LaTeX, check this out.  Pretty neat :-)
>
> http://detexify.kirelabs.org/classify.html
>

Very cool!  I have to look up symbols at least two+ times a day.

Thanks for sharing. -- Eric

>
> - Carsten
>
>
>
>
>
> ___
> 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] Re: Added support for "habit tracking"

2009-10-23 Thread Marcelo de Moraes Serpa
>
> Habits are different from tasks.  It is "suggested" that you do them within
> a range of time, but it's not completion which is important, rather
> consistency over the long-run.  Hence the graph to indicate your overall
> progress on the goal of being consistent.
>

But isn't consistency in the long-run the fact that you have actually
*completed* them?

So, the thing here is the concept of habit. So, from what I could
understand, a habit has to happen during a period of time and have a
deadline.

In this case, IMO, a weekly review is a habit, even though it does not
happen daily, it still has consistent period to be respected (1 day, every
seven days), and a deadline (the very same day). Or habits need to be daily?

Thanks!

On Fri, Oct 23, 2009 at 5:34 AM, John Wiegley  wrote:

> On Oct 23, 2009, at 2:10 AM, Marcelo de Moraes Serpa wrote:
>
>  How could I define it so I can have a habit that happens weekly but that
>> has a hard deadline of that very same weekday it has been specified to?
>>
>
> In this case you would use an ordinary task with a ++1w repeater.  Are you
> wanting to use habits just for the graph?
>
> Habits are different from tasks.  It is "suggested" that you do them within
> a range of time, but it's not completion which is important, rather
> consistency over the long-run.  Hence the graph to indicate your overall
> progress on the goal of being consistent.
>
> A weekly review, on the other hand, is something that you really should do
> every week, and if you miss it doesn't matter how well you've been doing in
> the past, a single missed week could throw you off considerably.
>
> John
>
___
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: [babel][Orgmode] Subtree exporting to different LaTeX_CLASS

2009-10-23 Thread Thomas S. Dye

Jerry,

Yes, org-babel opens a whole range of possibilities.

The setup I described produces three documents: 1) LaTeX document, 2)  
beamer slide show, and 3) html user manual.  1) and 2) are written  
completely in their own sets of source blocks, in native LaTeX and  
beamer, and are processed by org-babel-tangle to make files that LaTeX  
can typeset.  I don't edit these after they have been tangled.  3) is  
exported using one of the org-mode facilities and contains, where  
appropriate, the source code of various LaTeX and beamer source  
blocks, using the :exports header argument.  For long bits of LaTeX  
code that readers of my user manual would fully understand, I  
set :exports none.  When the LaTeX code does something more  
interesting, I set :exports code, so it appears in the user manual.


The intent of the manual is to show my employees how to solve document  
preparation problems that are common in our work.


Of course, document preparation also includes figures as well as  
text.  org-babel lets me write modular code that queries a MySQL  
server, processes the results of the query in R, and writes a graphic  
to disk.  The LaTex and beamer code in the source blocks can refer to  
these graphic files.  Of course, I write notes about the various parts  
of the figure preparation code as I go.  In this way, the org-mode  
file approximates a reproducible research document.   The modularity  
of the code lets me isolate things like SQL queries.  In the case  
where I have several figures that describe one set of objects and the  
definition of the objects changes as a result of the ongoing analysis,  
I can change the query in one place and expect that the change will  
show up in all of the figures that use that query.


This is the only way I currently move information into the LaTeX and  
beamer source blocks from outside them.  I'm new to this, however, and  
I'm fairly certain my workflow will change as I explore and better  
understand the many possibilities offered by org-babel.  I'll be  
interested to learn the workflow you devise.


HTH,
Tom

Thomas S. Dye, Ph.D.
T. S. Dye & Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.com


On Oct 23, 2009, at 2:48 AM, JBash wrote:


Tom,

Thanks very much for pointing this out.  I had not taken the time to  
investigate org-babel up to now.  I didn't know enough about it to  
know I needed to find out about it...


I've been looking at the information about it on worg, and it seems  
like it opens a whole range of possibilities.


So, if I may inquire further about the process you are using in your  
workflow, for clarification.  If I understand...


You are using the source blocks to contain the entire document(s),  
in separate parts (preamble, intro, chapters, summary, etc.), and  
using orgmode outlining functions to capture notes, thoughts,  
actions, etc.  Some of these subtrees then may be exported and  
placed inside the source blocks of one (or both/more) of the  
documents, with additional editing (of the source) as needed.  Is  
that the general idea?


Thanks,
Jerry



On Thu, Oct 22, 2009 at 6:13 PM, Thomas S. Dye  wrote:
Hi Jerry,

I do this using org-babel.  I love being able to write my article  
*and* my beamer presentation in the same file.  Using the literate  
programming facility of org-babel, I'm able to write them each in  
pieces, then assemble them at the end for tangling and export.  This  
means I have to write real LaTeX and beamer code, rather than having  
the LaTeX export facility of org-mode do its work, but org-mode  
makes this easy with Ctrl-C ', which opens up the source block in a  
buffer where auctex and reftex are active.


It looks something like this:

#+srcname: latex-preamble
#+begin_src latex :exports none
\documentclass{article}
\author{A. N. Author}
\title{Article Title}
\newcommand{\attr}[1]{\textbf{#1}}

\begin{document}

\maketitle
#+end_src

#+srcname: beamer-preamble
#+begin_src latex :exports none
\documentclass{beamer}
... (lots of stuff here)
\begin{document}

\maketitle

#+end_src

#+srcname: latex-document
#+begin_src latex :tangle adz_print.tex :exports none
  % <>
  % <
...
  \end{document}
#+end_src

#+srcname: beamer-document
#+begin_src latex :tangle adz_beamer.tex :exports none
  % <>
  % <>
...
  \end{document}
#+end_src

Calling org-babel-tangle gives me adz_print.tex for my article and  
adz_beamer.tex for my beamer presentation.


There are probably other ways to achieve this (org-mode, you know)  
that might be simpler.


The text I write outside the source blocks tracks what I hope to  
achieve, decisions I've made, etc. and uses the export facilities of  
org-mode to create a user manual for my employees.  Right now I'm  
targeting html for the user manual, but LaTeX export would also work.


HTH,
Tom



Thomas S. Dye, Ph.D.
T. S. Dye & Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
ht

Re: [babel][Orgmode] Subtree exporting to different LaTeX_CLASS

2009-10-23 Thread Thomas S. Dye

Jerry,

I forgot to mention a setup step.  You'll need this in .emacs to  
register LaTeX as a source language in org-babel.


(org-babel-add-interpreter "latex")
(add-to-list 'org-babel-tangle-langs '("latex" "tex"))

HTH,
Tom

Thomas S. Dye, Ph.D.
T. S. Dye & Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.com


___
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] getting Firefox tabs into org on a mac

2009-10-23 Thread Samuel Wales
Hi Andreas,

On Tue, Oct 20, 2009 at 01:12, Andreas Burtzlaff  wrote:
> I will add an entry to the tab context menu tonight to do this in one
> step.

Thanks, kind of you.

> Concerning syncing I'm not sure I get your plan entirely. Is the main
> purpose of it to synchronize the tabs between different browsers?

Yes, that would be nice.  Also, you don't want to save a
duplicate of the same tab.

It might be useful to have more than one remember template:
one for saving all tabs and one for saving one tab.  Another
idea is to have a button on the status line that you can
left click on to remember one tab.

Apparent bugs and suggestions follow.  (Others not
developing Fireforg need not read.)

===

There was a setting that I didn't understand having to do
with using DOI.  Perhaps how this works can be explained.
Does it use the net?  You might want to mention that it
stands for digital object identifier.

I had to change head -1 to head -n 1 in the pull script to
fix an error in head.  head is /sw/bin/head, perhaps from
some fink or macports package.

Perhaps the error messages in emacs and ff can explain what
you need to do to fix them.  Also, perhaps common
non-working states can be checked for.  That would make it
easier.

I used your suggested template:

  ("fireforg" ?w  "* %:description \n %:link %!")

Sometimes, nothing happens.  Other times, emacs opens a
buffer that is blank.  It expects you to do c-x # to finish
the buffer.  Currently nothing is happening, so I can't
describe that one more fully.

At one point I got this error message.

  error in process filter: Setting current directory: no such
  file or directory,
  /Users/.../fireforg/org-protocol:/remember:/http%3A%2F%2F...

It might be nice to document whether any of the options will
slow Firefox or Emacs down.  (Even if none of them do.)

I noticed that the Read It Later extension no longer has a
button.  Might be a coincidence.

Perhaps giving git instructions would make it easier to dl
the .sh, .xpi, and .el all at once.  "git clone
http://repo.or.cz/w/org-fireforg.git"; did not work.
(Something about corruption; I don't have the output now.)

That is all the bug reporting I can do.  I will have to stop
trying to get Fireforg to work.  I cannot make further
attempts as debugging requires far too much physical use of
keyboard and mouse.

Thanks.


On Tue, Oct 20, 2009 at 17:00, Andreas Burtzlaff  wrote:
> On Tue, 20 Oct 2009 10:12:42 +0200
> Andreas Burtzlaff  wrote:
>
>> On Mon, 19 Oct 2009 20:40:54 -0700
>> Samuel Wales  wrote:
>>
>> > I have a huge number of Firefox tabs that I want to get into
>> > org.  Figuring out how has gotten complicated, despite good
>> > documentation out there.
>> >
>> > I want simply title and url for each tab.
>> >
>> > Maybe like this:
>> >
>> >   * Firefox tabs
>> >     * Public Git Hosting - Worg.git/summary
>> >   http://repo.or.cz/w/Worg.git
>> >     * Google Search
>> >   http://www.google.com
>> >
>> > Would be nice to get fancier by allowing annotations (for
>> > use by fireforg?).  And allowing syncing back and forth.
>> > But first, I just want to get started.
>> >
>> > I envision two ways of doing this.  Maybe there are more.
>> >
>> >   1) Have emacs or a script convert one of the folders in
>> >      the bookmark file to an org outline as above.
>> >   2) Have org-mac-protocol set up for individual tabs to be
>> >      clicked to get them remembered.
>> >
>> > If I do (2), then I'd want it to be easy.  That is, without
>> > having to switch from mouse to keyboard.  But does (2) work
>> > on a Mac?  Last I heard, org-mac-protocol works for Safari,
>> > but not Firefox.
>>
>> Fireforg has a workaround for Macs:
>> http://orgmode.org/worg/org-devel.php#sec-1.2.6
>>
>> So you could select the tabs one after another and trigger remember
>> from the Fireforg status bar menu. (This menu is accessible by right
>> clicking on the status bar entry.)
>>
>> I will add an entry to the tab context menu tonight to do this in one
>> step.
>
> With the latest version it is possible to pass all tabs to remember
> by selecting "All tabs"-> "remember (..)" in the status bar menu.
> This only makes sense when using a remember template that stores the
> note automatically ("%!" in the template string).
>
> Your proposed format would be:
> "* %:description \n %:link %!"
>
> If the mac workaround is enabled and the latest version of pull.sh is used, 
> then
> this should also work on a Mac.
>
> Andreas
>
>> Concerning syncing I'm not sure I get your plan entirely. Is the main
>> purpose of it to synchronize the tabs between different browsers?
>>
>> Andreas
>>
>> > Ideas very welcome.  I am stuck here.
>> >
>> > Thanks.
>> >
>> >
>> > P.S.  I /also/ have a huge number of Safari tabs and a huge
>> > number of emacs-w3m tabs.  I've found those also difficult
>> > to orgify.  So ideas here are also welcome.  But Firefox is
>> > more important now.
>> >
>> >
>> > ___
>> > Emacs-o

Re: [Orgmode] getting Firefox tabs into org on a mac

2009-10-23 Thread Samuel Wales
Minor correction and new error messages.

The process filter error message was probably due to not running the
fireforg things in .emacs.  I had commented them out because they take
several minutes to load the links in org-agenda-files, and when I
restarted emacs to try to get fireforg to work, they didn't get run.

Here are new error messages.

error in process filter: org-protocol-unhex-compound: Invalid
character: 8211, #o20023, #x2013
error in process filter: Invalid character: 8211, #o20023, #x2013


On 2009-10-23, Samuel Wales  wrote:
> Hi Andreas,
>
> On Tue, Oct 20, 2009 at 01:12, Andreas Burtzlaff  wrote:
>> I will add an entry to the tab context menu tonight to do this in one
>> step.
>
> Thanks, kind of you.
>
>> Concerning syncing I'm not sure I get your plan entirely. Is the main
>> purpose of it to synchronize the tabs between different browsers?
>
> Yes, that would be nice.  Also, you don't want to save a
> duplicate of the same tab.
>
> It might be useful to have more than one remember template:
> one for saving all tabs and one for saving one tab.  Another
> idea is to have a button on the status line that you can
> left click on to remember one tab.
>
> Apparent bugs and suggestions follow.  (Others not
> developing Fireforg need not read.)
>
> ===
>
> There was a setting that I didn't understand having to do
> with using DOI.  Perhaps how this works can be explained.
> Does it use the net?  You might want to mention that it
> stands for digital object identifier.
>
> I had to change head -1 to head -n 1 in the pull script to
> fix an error in head.  head is /sw/bin/head, perhaps from
> some fink or macports package.
>
> Perhaps the error messages in emacs and ff can explain what
> you need to do to fix them.  Also, perhaps common
> non-working states can be checked for.  That would make it
> easier.
>
> I used your suggested template:
>
>   ("fireforg" ?w  "* %:description \n %:link %!")
>
> Sometimes, nothing happens.  Other times, emacs opens a
> buffer that is blank.  It expects you to do c-x # to finish
> the buffer.  Currently nothing is happening, so I can't
> describe that one more fully.
>
> At one point I got this error message.
>
>   error in process filter: Setting current directory: no such
>   file or directory,
>   /Users/.../fireforg/org-protocol:/remember:/http%3A%2F%2F...
>
> It might be nice to document whether any of the options will
> slow Firefox or Emacs down.  (Even if none of them do.)
>
> I noticed that the Read It Later extension no longer has a
> button.  Might be a coincidence.
>
> Perhaps giving git instructions would make it easier to dl
> the .sh, .xpi, and .el all at once.  "git clone
> http://repo.or.cz/w/org-fireforg.git"; did not work.
> (Something about corruption; I don't have the output now.)
>
> That is all the bug reporting I can do.  I will have to stop
> trying to get Fireforg to work.  I cannot make further
> attempts as debugging requires far too much physical use of
> keyboard and mouse.
>
> Thanks.
>
>
> On Tue, Oct 20, 2009 at 17:00, Andreas Burtzlaff  wrote:
>> On Tue, 20 Oct 2009 10:12:42 +0200
>> Andreas Burtzlaff  wrote:
>>
>>> On Mon, 19 Oct 2009 20:40:54 -0700
>>> Samuel Wales  wrote:
>>>
>>> > I have a huge number of Firefox tabs that I want to get into
>>> > org.  Figuring out how has gotten complicated, despite good
>>> > documentation out there.
>>> >
>>> > I want simply title and url for each tab.
>>> >
>>> > Maybe like this:
>>> >
>>> >   * Firefox tabs
>>> >     * Public Git Hosting - Worg.git/summary
>>> >   http://repo.or.cz/w/Worg.git
>>> >     * Google Search
>>> >   http://www.google.com
>>> >
>>> > Would be nice to get fancier by allowing annotations (for
>>> > use by fireforg?).  And allowing syncing back and forth.
>>> > But first, I just want to get started.
>>> >
>>> > I envision two ways of doing this.  Maybe there are more.
>>> >
>>> >   1) Have emacs or a script convert one of the folders in
>>> >      the bookmark file to an org outline as above.
>>> >   2) Have org-mac-protocol set up for individual tabs to be
>>> >      clicked to get them remembered.
>>> >
>>> > If I do (2), then I'd want it to be easy.  That is, without
>>> > having to switch from mouse to keyboard.  But does (2) work
>>> > on a Mac?  Last I heard, org-mac-protocol works for Safari,
>>> > but not Firefox.
>>>
>>> Fireforg has a workaround for Macs:
>>> http://orgmode.org/worg/org-devel.php#sec-1.2.6
>>>
>>> So you could select the tabs one after another and trigger remember
>>> from the Fireforg status bar menu. (This menu is accessible by right
>>> clicking on the status bar entry.)
>>>
>>> I will add an entry to the tab context menu tonight to do this in one
>>> step.
>>
>> With the latest version it is possible to pass all tabs to remember
>> by selecting "All tabs"-> "remember (..)" in the status bar menu.
>> This only makes sense when using a remember template that stores the
>> note automatically ("%!" in the template string).
>>
>> Your 

[Orgmode] Remember put new item in the top of the list

2009-10-23 Thread Marcelo de Moraes Serpa
Hello,

How could I setup org-remember to put the item I collect in the top of the
list instead of the bottom?

I have the following code:

(setq org-remember-templates
'(
 ("NextAction" ?t "*** TODO %^{Brief Description} %^g\n%?\nAdded: %U"
"~/org/gtd/newgtd.org" "*Next Actions*")
 ("Inbox" ?i "\n* %^{topic} %T \n%i%?\n" "~/org/gtd/inbox.org")
 ("Someday" ?s "\n* %^{topic} %T \n%i%?\n" "~/org/gtd/someday.org")
 ;;("WordofDay" ?w "\n* %^{topic} \n%i%?\n" "C:/charles/gtd/wotd.org")
 ))

For NextAction, I would like them to be placed at the top, is it possible?

Thanks,

Marcelo.
___
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: Added support for "habit tracking"

2009-10-23 Thread John Wiegley

On Oct 23, 2009, at 11:24 AM, Marcelo de Moraes Serpa wrote:

But isn't consistency in the long-run the fact that you have  
actually *completed* them?


Yes and no.  I don't need to always complete them, and yet I could  
still be consistent.  It's optimal to be perfectly consistent, but  
that's no what's expected.


Missing a deadline is something else entirely, as one imagines there  
are consequences.  Missing a habit is, well, just harder to pin down.


In this case, IMO, a weekly review is a habit, even though it does  
not happen daily, it still has consistent period to be respected (1  
day, every seven days), and a deadline (the very same day). Or  
habits need to be daily?


I guess it all comes down to whether you just want the graph or not.   
A weekly review is really something you need to do every week, so it's  
just a repeating task.  I have too have regular repeating tasks for  
things like downloading bank statements, paying the rent, visiting the  
dentist, etc.  These are tasks which are _each important in  
themselves_.  A habit, on the other hand, is never important in  
itself.  It doesn't matter so much if I miss washing the dishes  
today.  It's the _habit overall which is important_.  As long as I  
wash them more often than not, I'm doing better than if I'd never used  
Org at all.


The only difference between regular repeating tasks and habits is this:

 1. Habits appear at the bottom of the agenda (by default)
 2. Habits can be removed by hitting K
 3. Habits have a little graph, since you need to see consistency  
over a

period of time.

Another difference between habits and tasks is this: If I get to the  
end of my day and there are tasks yet undone, it means I need to  
schedule them for another day.  But if there are habits undone, *I  
never reschedule them*.  Once I reach a point during the day when I  
know I no longer have time or opportunity to work on my habits, I just  
hit K and exclude them from the view.  What it means is that I'll try  
again to do them tomorrow.


But since tasks are, in a way, much more self-important, they need to  
be allocated to a certain day, or given a specific deadline -- whether  
or not that deadline repeats itself.


John



___
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