[Orgmode] Re: Agenda view: How many hours did I work today, and on what

2009-06-09 Thread Daniel Clemente
El dl, jun 08 2009, Bernt Hansen va escriure:
 In the agenda hit 'R' to get a clock report that only covers the period
 of time displayed by the agenda.


  I had tried this but found it too ugly and hard to understand and I abandoned 
it. Now I'm retaking it and searching what changes I should do to make it 
comfortable. Some notes:

1. I didn't want to group tasks by level-2 headers, but show all tasks instead 
(at any level). Therefore I should use:  (setq 
org-agenda-clockreport-parameter-plist '(:link t :maxlevel 99 ))

2. The table is too wide and lines span into several visible lines. I should 
either learn to trim the table columns, or activate truncate-lines somehow when 
the table is bigger than the window.

3. I don't understand the table format. It is showing hierarchical information 
and thus would fit much better in an outline. It doesn't let me expand/contract 
sections and I would like this because there are too many. It doesn't recognize 
or highlight the keywords or priorities. Furthermore, the keys to move between 
cells (left/right arrow) have other meanings in the agenda view (ex: change 
days).

4. It seems this report can't be easily extended; well, only with :formula 
lines, which may be complex to write by hand. Useful extensions would be: a) to 
show the effort estimate for each task (and so to discover whether you did the 
task in time). Or b) to show the exact time period(s) when you worked on each 
task.



  So: this clock report mode in the agenda view isn't still comfortable, but 
seems the base for what I want; I will go on from this.

  Thanks,

Daniel


___
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] increase effort estimate on the fly.

2009-06-09 Thread Konstantin Antipin
Dear all,

Recently new feature was added - when you set an estimated effort for
a task, you can be notified when time is up.
(sound is controlled with org-clock-sound variable)
I found that pretty often  from the beginning I can not correctly
estimate what time task will take and I need to give myself an
additional time.

To address this issue I wrote couple of functions that helps me with that.
What do they do:
When you have clocked item and want to add time (increase effort
estimate), you call function org-clock-increase-effort-estimate, which
will ask you for a time period. It will update update currently
clocked item in a buffer as well as a mode line.

I hope this might be helpful to someone

Kostya

defun org-clock-increase-effort-estimate (add-effort)
  Add time to the effort estimate.
Update Effort property of currently clocked item.
Update mode line.
  (interactive sHow much to add? (hh:mm or mm)? )
  (if (and (org-clock-is-active) org-clock-effort)
  (let ((add-effort-minutes (org-string-to-minutes add-effort)))
(progn (setq org-clock-effort (org-minutes-to-hh:mm-string
   (+ add-effort-minutes
  (org-hh:mm-string-to-minutes 
org-clock-effort
   (org-clock-update-mode-line)
   (message about to increase effort.)
   (org-clock-set-effort-estimate-in-buffer org-clock-effort)
   )
))
  )

(defun org-clock-set-effort-estimate-in-buffer (effort-string)
  Increase effort estimate PROPERTY for the currently clocked item.
Jump to the correct buffer, increace the PROPERTY, jump back.
  (if (org-clock-is-active)
  (progn
(let ((back-mark (point-marker)))
  (org-clock-goto)
  (org-set-property Effort effort-string)
  (switch-to-buffer (marker-buffer back-mark))
  (goto-char back-mark)
  (message Effort was increased.)
  



(defun org-string-to-minutes (string)
  Recognizes two formats:
1:30 - converted to minutes
30   - interpreted as minutes.
  (case  (length (split-string string :))
(2 (org-hh:mm-string-to-minutes string))
(1 (string-to-int string))
)
  )

(defun org-clock-is-active ()
  Return true if clock is currently running.
nil otherwise.
  (if (marker-buffer org-clock-marker)
  t)
  )


;; Suggested bindings
(org-defkey org-mode-map \C-c\C-x\C-e 'org-clock-increase-effort-estimate)
(global-set-key \C-c\C-x\C-e 'org-clock-increase-effort-estimate)


___
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: SOLVED: elisp formulas in column view (without converting to tables)

2009-06-09 Thread Carsten Dominik

Hi,

sorry for replying so late to this proposal, which is a very
nice idea.  However, specifying lisp formulas in a #+COLUMNS
definition might be a bit tedious.

In the mean time, we have installed (in version 6.27) a patch by
Mikael Fornius.  This patch defines new operators `min', `max',
and `mean', and special versions for time computations `min:',
`max:', and `mean:'.  The patch also captures all operator
definitions into a single variable, which does allow for
user-defined Lisp operators.

I have not tried, but I believe it might now be simple to add new
operators by just adding to the variable `org-columns-compile-map'.
I would be interested to hear if someone has amended this variable
successfully.  If yes, maybe we can expose it better by making
is a defcustom, or by introducing a buffer-local add-on to it.

Hope this helps

- Carsten

On Mar 16, 2009, at 9:15 PM, n...@aleblanc.cotse.net n...@aleblanc.cotse.net 
 wrote:



n...@aleblanc.cotse.net writes:


Hi,
  I have rewritten the org-columns-compute function to allow elisp
  formulas in column view.
  It allows you to specify how to accumulate values from child  
headers,

  and how to specify the value for the current header, based on other
  columns.


Have since discovered that my new version doesn't work with checkbox
formulas. The solution is to use the old version of org-columns- 
compute

if the formula is not an elisp formula. Rename the old function to
org-columns-compute-orig, and then use this code for
org-columns-compute:

(defun org-columns-compute (property)
 Sum the values of property PROPERTY hierarchically, for the entire  
buffer.

 (interactive)
 (let* ((re (concat ^ outline-regexp))
 (lmax 30) ; Does anyone use deeper levels???
 (level 0)
 (ass (assoc property org-columns-current-fmt-compiled))
 ;; parse elisp form if there is one
 (form (nth 3 ass))
 (uselisp (and ( (length form) 1)
   (or (equal ( (substring form 0 1))
   (equal ( (substring form 1 2)
 (form (if uselisp
   (replace-regexp-in-string
\$\\([^()\  ]+\\)
(string-to-number (or (org-entry-get nil \\\1\) \0\))
(nth 3 ass) t)))
 ;; vector to hold running totals for each level
 (lsum (make-vector lmax (if uselisp nil 0)))
 (format (nth 4 ass))
 (printf (nth 5 ass))
 (beg org-columns-top-level-marker)
	 last-level val valflag end sumpos sum-alist str str1 useval  
prevtotal curtotal newvals)

   (if uselisp
(save-excursion
  ;; Find the region to compute
  (goto-char beg)
	  (setq end (condition-case nil (org-end-of-subtree t) (error  
(point-max

  (goto-char end)
  ;; Walk the tree from the back and do the computations
  (while (re-search-backward re beg t)
(setq sumpos (match-beginning 0)
  last-level level
  level (org-outline-level)
  ;; total from children, or nil if there were none
  prevtotal (if ( level last-level) (aref lsum last-level) nil)
  ;; total at this level
  curtotal (aref lsum level)
  ;; current property value as string
  val (org-entry-get nil property)
  ;; is it non-empty?
  valflag (and val (string-match \\S- val))
  ;; current property value as number (or nil if empty)
  curval (if valflag (org-column-string-to-number val format) 
nil)
  ;; get values to replace current value and running total
  newvals (if uselisp (eval-expression (read form))
(list (or prevtotal curval 0)
  (+ curtotal (or prevtotal curval 0)
(cond
 (( level last-level) ; we have moved up to a parent
  (setq
   ;; new value, as string
	   str (if (nth 0 newvals) (org-columns-number-to-string (nth 0  
newvals) format printf) nil)

   ;; add text properties to it
	   useval (org-add-props (copy-sequence str) nil 'org-computed  
t 'face 'bold)

   ;; get current text properties
   sum-alist (get-text-property sumpos 'org-summaries))
  ;; put new value here as a text property
  (if (assoc property sum-alist)
  (setcdr (assoc property sum-alist) useval)
(push (cons property useval) sum-alist)
(org-unmodified
 (add-text-properties sumpos (1+ sumpos)
  (list 'org-summaries sum-alist
  ;; put new org property value
  (if (nth 0 newvals) (org-entry-put nil property str))
  ;; set value for current level total
  (when (or prevtotal valflag)

Re: [Orgmode] Question about cycle mode and sorting/refiling

2009-06-09 Thread Carsten Dominik


On Jun 4, 2009, at 8:20 PM, Keith Swartz wrote:

A few weeks back, I asked about hooks when refiling and/or sorting,  
and am happy to report that these are working great for me ... /if/  
I refile one item at a time. I'm unable to figure out why if I try  
to refile multiple items in a /region/, it doesn't have the same  
behavior.


Here are my hook definitions:

(setq org-after-refile-insert-hook
'(lambda() (org-up-heading-safe) (org-sort-entries-or-items nil ? 
p))

(setq org-after-sorting-entries-or-items-hook
'(lambda() (org-cycle) (org-cycle))


There seem to be parenthesis missing from these definitions, but I
am assuming that you do have them in your real setup.



If I position the cursor on an item and refile it, it: a) resorts  
the destination tree by priority, and b) restores the visibility to  
folded, the way I like it.


HOWEVER, if I select multiple items in a folded subtree (with  
transient-mark-mode on; I'm using emacs 22.3), and reflie those, it  
does not always work. I can't figure out the rules for when it does,  
and when it doesn't, but when it does work, that appears to be an  
abnormality.


What happens in this scenario is that it will refile the items, but  
it will neither resort the destination folder (even though the hook  
is being called),


I believe this problem is now solved, I needed to deactive the region
before calling this hook.  Please upgrade to the latest git release
and try again.

 the visibility of the refiled nodes is not reset. Plus, the  
visibility of all items below the current point in the /originating/  
folder is also changed to children.


I am not sure if I understand correctly.  Do you mean the outline node
where the refiled items *originate* changes visibility?  I cannot
reproduce this.  Maybe you can try with the latest version and then,
if the problem persists, come up with a test case.

HTH

- 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


[Orgmode] org-batch-agenda lock problem

2009-06-09 Thread Angus Gibson
I am a recent convert to org-mode, and the ability to export the  
agenda is very useful. Currently I have a script that runs every 10  
seconds or so that calls:


emacs -batch -l ~/.emacs -eval '(org-batch-agenda a org-agenda-ndays  
1)' 2/dev/null


In order to put the agenda items on my desktop. This works fine, until  
I start to edit the org file. From what I have gathered, this causes a  
lock to be placed, and org-batch-agenda has a collision with this  
lock, resulting in no output because it's trying to output the message  
about resolving the collision. Obviously this isn't very useful, so I  
was wondering why org-batch-agenda would have to modify the file, or  
possibly the easiest way to resolve this (I'm not amazing with Emacs).


Thanks,
Angus


___
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] Community Choice Awards: Finalist Notification

2009-06-09 Thread Ross Turk


Hi!  We have just finished tallying the nominations for our fourth
annual SourceForge.net Community Choice Awards, and I have great news.

Your project, Org-Mode, has been chosen as a finalist in Most Likely to
Change the Way You Do Everything.

This year, we want our voters to know as much as possible about your
project...but we need your help!

In order to accept your nomination, please respond to this email with
the following info before June 17th:

1. Complete this sentence in about 140 characters: Our project is
[-foo-].  For example, Our project is a tool that helps you wash your
car.

2. Complete this sentence, also in about 140 characters: We should win
because [-bar-].  For example, We should win because we have a strong
community and we solve a universal problem.

3. Please provide a logo (or screenshot, if you'd prefer) for your
project.  It should be at least 640x480, but we'll also be showing it
as a thumbnail.

4. This one is optional, but it could make a big difference.  We'd like
to show our voters a video that introduces them to the core members of
your team.  Send along the URL (on YouTube) and we'll make sure they
see it!

5. In some cases, I'm mailing several people in your community because
I don't know who the right person is.  If you're not the right person
for me to be dealing with, please let me know.  I certainly don't want
to be irritating.

6. Our finalists are usually pretty interesting people.  Are you
willing to be contacted by our public relations team about interviews
with the press?

Thanks in advance for your responses.  If we don't receive this
information by June 17th, your position as a finalist may be given to
an alternate in your category - we'll be kicking off the final vote on
the 22nd, and we have to have time to put everything together!

Congratulations on having such a dedicated community, and best of luck!

Ross Turk
Director of Community, SourceForge___
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-batch-agenda lock problem

2009-06-09 Thread Carsten Dominik


On Jun 9, 2009, at 12:40 PM, Angus Gibson wrote:

I am a recent convert to org-mode, and the ability to export the  
agenda is very useful. Currently I have a script that runs every 10  
seconds or so that calls:


emacs -batch -l ~/.emacs -eval '(org-batch-agenda a org-agenda- 
ndays 1)' 2/dev/null


The following may or may not work, depending on what happens in non- 
interactive emacs sessions when a lock is encountered.  Maybe this  
would work?


emacs -batch -l ~/.emacs -eval '(progn (defun ask-user-about-lock  
(rest args) nil) (org-batch-agenda a org-agenda-ndays 1))' 2/dev/ 
null



or

emacs -batch -l ~/.emacs -eval '(progn (defun file-locked-p (rest  
args) nil) (org-batch-agenda a org-agenda-ndays 1))' 2/dev/null



These are bad hacks, but should be OK sice creating an agenda should  
not modify any file buffers...


- Carsten






In order to put the agenda items on my desktop. This works fine,  
until I start to edit the org file. From what I have gathered, this  
causes a lock to be placed, and org-batch-agenda has a collision  
with this lock, resulting in no output because it's trying to output  
the message about resolving the collision. Obviously this isn't very  
useful, so I was wondering why org-batch-agenda would have to modify  
the file, or possibly the easiest way to resolve this (I'm not  
amazing with Emacs).


Thanks,
Angus


___
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] FINALIST

2009-06-09 Thread Carsten Dominik

YES!

We have been chosen as finalists for the SourceForge.net
Community Choice Awards in the category Most Likely to
Change the Way You Do Everything.

Thanks to Marko Schütz for the initial nomination!

- 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


[Orgmode] Sourceforge community award

2009-06-09 Thread Carsten Dominik

OK, in my last email I already said that we have been selected
as a finalist for the Sourceforge Community Award in the category

Most Likely to Change the Way You Do Everything.

I am *very* excited about this, and I would love *us* to win
this award or at least deliver a very good showing.

We need to provide some information, within a week, and I would like
to invite all of you to makes proposals for the short sentences, for the
logo or screenshot we should be offering, and how to create a short
video about the main contributors.  Who should be in this video,
and how?

Anyone here who would like to do the collection/editing
of video snippets?  I have no technical knowledge in this area, and we
should think about a way to make a nice video showing *several* people,
that will also looks interesting for observers that are not our
default users.  This is where your help is *really* needed.

Below are the questions from sourceforge, let the brainstorming begin!

- Carsten

--

1. Complete this sentence in about 140 characters: Our project is
[-foo-].  For example, Our project is a tool that helps you wash your
car.

2. Complete this sentence, also in about 140 characters: We should win
because [-bar-].  For example, We should win because we have a strong
community and we solve a universal problem.

3. Please provide a logo (or screenshot, if you'd prefer) for your
project.  It should be at least 640x480, but we'll also be showing it
as a thumbnail.

4. This one is optional, but it could make a big difference.  We'd like
to show our voters a video that introduces them to the core members of
your team.  Send along the URL (on YouTube) and we'll make sure they
see it!

6. Our finalists are usually pretty interesting people.  Are you
willing to be contacted by our public relations team about interviews
with the press?



___
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: Agenda view: How many hours did I work today, and on what

2009-06-09 Thread Bernt Hansen
Daniel Clemente n142...@gmail.com writes:

 El dl, jun 08 2009, Bernt Hansen va escriure:
 In the agenda hit 'R' to get a clock report that only covers the period
 of time displayed by the agenda.


   I had tried this but found it too ugly and hard to understand and I
   abandoned it. Now I'm retaking it and searching what changes I
   should do to make it comfortable. Some notes:

 1. I didn't want to group tasks by level-2 headers, but show all tasks
 instead (at any level). Therefore I should use: (setq
 org-agenda-clockreport-parameter-plist '(:link t :maxlevel 99 ))

I use (:link nil :maxlevel 2).  This gives me totals for level 1 and
level 2 headings only.

My level 1 tasks tend to be categories mostly (Appointments, System
Maintenance, etc) and level 2 and deeper are the clocked items.

 
 2. The table is too wide and lines span into several visible lines. I
 should either learn to trim the table columns, or activate
 truncate-lines somehow when the table is bigger than the window.

Keeping task headlines short should help.  The table can get wide but my
lines never wrap.  For me truncate-lines is t in the agenda.  I have a
function key (f7) to toggle truncate lines on and off.


 3. I don't understand the table format. It is showing hierarchical
 information and thus would fit much better in an outline. It doesn't
 let me expand/contract sections and I would like this because there
 are too many. It doesn't recognize or highlight the keywords or
 priorities. Furthermore, the keys to move between cells (left/right
 arrow) have other meanings in the agenda view (ex: change days).

It's a data table of clocked items only.  It's not folded or expandable
(like column mode).

I export the agenda view (C-x C-w) to a text file if I need a copy for
some other application.



 4. It seems this report can't be easily extended; well, only
 with :formula lines, which may be complex to write by hand. Useful
 extensions would be: a) to show the effort estimate for each task (and
 so to discover whether you did the task in time). Or b) to show the
 exact time period(s) when you worked on each task.


The clock report in the agenda is mainly for reporting the time spent
working on items.  If you want to compare estimates with clocked amounts
for a particular subtree I would use a dynamic clock table instead.

You can specify block times to limit the range to specific dates.

See http://doc.norang.ca/org-mode.html#SavingEstimate

HTH,
-Bernt



 So: this clock report mode in the agenda view isn't still comfortable,
 but seems the base for what I want; I will go on from this.
   Thanks,

 Daniel


___
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] outline-minor-mode and code editing / export

2009-06-09 Thread Dan Davison
Carsten Dominik carsten.domi...@gmail.com writes:

 On Jun 7, 2009, at 7:19 PM, Dan Davison wrote:

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

 Hi Dan,

 an alternative solution would be to turn off the major mode hook for
 org-edit-src.  Would that be good or bad?  It is probably never a
 good idea to have code folded in these snippet buffers?

 I think you're right that it's a personal customisation and it's not
 really org's job to defend against it. I don't think the major mode
 hook
 should be disabled, as there'll be other things that users might
 want to
 configure, and retain in org-edit-src and htmlized versions. Do you
 think it would be of sufficient general utility to add hooks to org to
 cover this? (in which, e.g., outline-major-mode could be turned off?).
 I.e. something like

 1. org-edit-src-mode-hook *
 2. org-export-preprocess-src-buffer-hook

 Or maybe those should be the same hook?

 Yes, I would think so.  The hooks is called `org-src-mode-hook'.

Great, thanks.



 Dan

 * Btw, a trivial thing, but I wonder if it would be appropriate to
 rename
 org-exit-edit-mode as something like org-edit-src-mode; it now has two
 keybindings only one of which is to do with exiting.

 I don't understand this point.  Please try again :-)

No problem. We currently have this in org-src.el:

(define-minor-mode org-exit-edit-mode
  Minor mode installing a single key binding, \C-c '\ to exit special edit.)

However, the scope of that minor mode has now expanded, and as well as
the docstring being out of date, its name is misleading, as it is now
concerned with more than just *exit* (saving as well).

What I propose is that we rename org-exit-edit-mode as org-src-mode, and
that that minor mode is turned on when editing source blocks with C-c ',
and when processing with htmlize.  Because of the way you named the hook
you just created, the minor mode would automatically inherit it as its
minor mode hook. I think this would logically tie together your recent
changes (expansion of functionality in the edit buffer, and addition of
org-src-mode-hook), and would leave the door open for future additions
to org-src-mode.

I've quickly made these changes, and tested that the minor mode hook had
the desired effect (for me) on export and source code editing. Here's my
patch that does what I propose.

Dan

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 4e98bb9..b8fb201 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2219,7 +2219,7 @@ INDENT was the original indentation of the block.
(funcall mode)
  (fundamental-mode))
(font-lock-fontify-buffer)
-   (run-hooks 'org-src-mode-hook)
+   (org-src-mode)
(set-buffer-modified-p nil)
(org-export-htmlize-region-for-paste
 (point-min) (point-max
diff --git a/lisp/org-src.el b/lisp/org-src.el
index 401c628..524f6d6 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -116,9 +116,9 @@ This is needed for font-lock setup.)
 
 ;;; Editing source examples
 
-(defvar org-exit-edit-mode-map (make-sparse-keymap))
-(define-key org-exit-edit-mode-map \C-c' 'org-edit-src-exit)
-(define-key org-exit-edit-mode-map \C-x\C-s 'org-edit-src-save)
+(defvar org-src-mode-map (make-sparse-keymap))
+(define-key org-src-mode-map \C-c' 'org-edit-src-exit)
+(define-key org-src-mode-map \C-x\C-s 'org-edit-src-save)
 (defvar org-edit-src-force-single-line nil)
 (defvar org-edit-src-from-org-mode nil)
 (defvar org-edit-src-picture nil)
@@ -127,8 +127,14 @@ This is needed for font-lock setup.)
 (defvar org-edit-src-overlay nil)
 (defvar org-edit-src-nindent nil)
 
-(define-minor-mode org-exit-edit-mode
-  Minor mode installing a single key binding, \C-c '\ to exit special 
edit.)
+(define-minor-mode org-src-mode
+  Minor mode for language major mode buffers generated by org.
+This minor mode is turned on in two situations:
+- when editing a source code snippet with \C-c '\.
+- When formatting a source code snippet for export with htmlize.
+There is a mode hook, and keybindings for org-edit-src-exit and
+org-edit-src-save
+)
 
 (defun org-edit-src-code ()
   Edit the source code example at point.
@@ -187,7 +193,7 @@ the edited version.
(org-do-remove-indentation)
(let ((org-inhibit-startup t))
  (funcall lang-f)
- (run-hooks 'org-src-mode-hook))
+ (org-src-mode))
(set (make-local-variable 'org-edit-src-force-single-line) single)
(set (make-local-variable 'org-edit-src-from-org-mode) org-mode-p)
(when lfmt
@@ -197,7 +203,6 @@ the edited version.
  (while (re-search-forward ^, nil t)
(replace-match )))
(goto-line (1+ (- line begline)))
-   (org-exit-edit-mode)
(org-set-local 'org-edit-src-beg-marker beg)
(org-set-local 'org-edit-src-end-marker end)

[Orgmode] Re: Bernt's document and LaTeX [was: Re: http://doc.norang.ca/org-mode.html ]

2009-06-09 Thread Bernt Hansen
Nick Dokos nicholas.do...@hp.com writes:

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

 I would like to encourage you all to take another looks at Bernt's
 nearly completed document over at
 
  http://doc.norang.ca/org-mode.html
 
 If you are serious about using Org-mode to get organized, this
 is simply an awesome resource of ideas, customization snippets,
 tips and tricks.  I am learning looking at that, too.
 
 Thanks for doing this, Bernt.
 

 Seconded, thirded and fourthed: thanks Bernt!


Thanks for the encouragement guys :) I'm hoping to fill out the
unfinished sections of this document soon.  As long as there are
sections marked UNFINISHED I expect this document to be updated at least
once a week.

The last export time for the document is at the bottom of the file so
you can quickly see if there is any new content since the last time you
viewed it.

This document has turned into a bit of a monster with a life of its own
it seems.  It's _way_ longer than I originally intended.

I'm not sure it'll ever be _truly_ finished though ... I'm finding that
when I tweak my workflow I just keep updating this document.  When I try
some new workflow that might improve things for me I schedule a task to
describe this new workflow a month in the future -- this way the new
workflow can mature or die and I'm only documenting things that really
work well for me.  You'll probably see new items about some of the
following in the next 30 days:

  - Why I have special key bindings
  - Combining refile targets into one
  - Limiting time spent on tasks

Regards,
Bernt


___
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] I must be missing something...

2009-06-09 Thread David Abrahams

Hi,

I've been using and studying org mode for a few months now, and though
it seems to have great potential, some things still escape me.  For
example, do my DONE items simply accumulate forever in todo.org?  I know
there's an archiving feature... do I move those done items manually to
an archive when I no longer need to see them?

Also, how do I manage my projects?  Org mode seems to want to put
everything in one big file.  I know I *can* separate trees by file, but
it doesn't seem to be very convenient to do so.  For example, if I'm
visiting a project file, is there a way to get an agenda view on just
/that/ file without having to modify org-agenda-files?
 
I know I'm being a bit vague, but so far the basic operations of
org-mode, which were very fast to use at first, haven't scaled up very
easily to handle my whole life, and I'm not sure how to get there.

Many thanks in advance for any advice you can give,

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.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


[Orgmode] Re: face for clock display in modeline

2009-06-09 Thread David Abrahams

on Sat Jun 06 2009, Eric S Fraga ucecesf-AT-ucl.ac.uk wrote:

 Carsten Dominik writes:
 Thanks Eric!
 
 Samuel, after you next pull, customize the face org-mode-line-clock.

 You're welcome and I like what you have done.  I played around with
 the code in org-faces.el yesterday but your solution is much nicer
 than I what I had come up with (I'm still very much a noob when it
 comes to elisp).

Thanks to both of you; this is going to make a real difference in my
life!

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.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] Sourceforge community award

2009-06-09 Thread Bastien
Hi Carsten,

great news - suggestions below!

 1. Complete this sentence in about 140 characters: Our project is
 [-foo-].  For example, Our project is a tool that helps you wash your
 car.

Org is the extensible, customizable, self-documenting real-time project
planner. It makes you more productive by adapting itself to your needs.

 2. Complete this sentence, also in about 140 characters: We should win
 because [-bar-].  For example, We should win because we have a strong
 community and we solve a universal problem.

We should win because Org captures the essence of project planning.
Discovering Org is the best way to discover your productive self.

 3. Please provide a logo (or screenshot, if you'd prefer) for your
 project.  It should be at least 640x480, but we'll also be showing it
 as a thumbnail.

High-resolution picture of the Unicorn?

 4. This one is optional, but it could make a big difference.  We'd like
 to show our voters a video that introduces them to the core members of
 your team.  Send along the URL (on YouTube) and we'll make sure they
 see it!

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

 We need to provide some information, within a week, and I would like
 to invite all of you to makes proposals for the short sentences, for the
 logo or screenshot we should be offering, and how to create a short
 video about the main contributors.  Who should be in this video,
 and how?

- Carsten's video at Google
- shots from Russell Adam's 
- shots from various screencasts
- ...

I've just added a small dirty screencast about plain lists:
http://lumiere.ens.fr/~guerry/org-playing-with-lists-screencast.php

I would *love* to have a screencast demonstrating Sebastian's org-infojs
- will work on this.

 Anyone here who would like to do the collection/editing
 of video snippets?  I have no technical knowledge in this area, and we
 should think about a way to make a nice video showing *several* people,
 that will also looks interesting for observers that are not our
 default users.  This is where your help is *really* needed.

I have basic knowledge in this area, nothing terrific.  I'd glad to help
if no Steven Spielberg jumps on this.  :)

-- 
 Bastien


___
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: I must be missing something...

2009-06-09 Thread Bernt Hansen
David Abrahams d...@boostpro.com writes:

 Hi,


Hi David!

 I've been using and studying org mode for a few months now, and though
 it seems to have great potential, some things still escape me.  For
 example, do my DONE items simply accumulate forever in todo.org?  I know
 there's an archiving feature... do I move those done items manually to
 an archive when I no longer need to see them?

Stuff accumulates and I personally archive subtrees manually once/month.

 
 Also, how do I manage my projects?  Org mode seems to want to put
 everything in one big file.  I know I *can* separate trees by file, but
 it doesn't seem to be very convenient to do so.  For example, if I'm
 visiting a project file, is there a way to get an agenda view on just
 /that/ file without having to modify org-agenda-files?

I recently wrote about this here.
http://doc.norang.ca/org-mode.html#LimitingAgendaView
Maybe that will help?

  
 I know I'm being a bit vague, but so far the basic operations of
 org-mode, which were very fast to use at first, haven't scaled up very
 easily to handle my whole life, and I'm not sure how to get there.

 Many thanks in advance for any advice you can give,

I've been using org-mode for years and I use it for everything.  A
description of my work flow and setup for org-mode is at
http://doc.norang.ca/org-mode.html in case that's useful.

HTH,
-Bernt


___
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] I must be missing something...

2009-06-09 Thread giovanni . ridolfi

--- Mar 9/6/09, David Abrahams d...@boostpro.com ha scritto:

 Hi David,
 do my DONE items simply accumulate forever in
 todo.org? [...] do I move those done items
 manually to an archive when I no longer need to see them?

yes.

 

 if I'm
 visiting a project file, is there a way to get an agenda
 view on just
 /that/ file without having to modify org-agenda-files?

what about  C-a  a L  Timeline of the current buffer ?

  
 I know I'm being a bit vague, but so far the basic
 operations of
 org-mode, which were very fast to use at first, haven't
 scaled up very
 easily to handle my whole life, and I'm not sure how to get
 there.

you can
+ surf the worg site 
   http://orgmode.org/worg/
+  read the document of Bernt
http://doc.norang.ca/org-mode.html

and try by yourself:

For the things we have to learn before we can do, we learn by doing. 
Aristotle, Nicomachean Ethics (c. 325 BC) (II.1103a33) 


http://en.wikiquote.org/wiki/Aristotle#Nicomachean_Ethics_.28c._325_BC.29

cheers,

Giovanni





___
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] face for clock display in modeline

2009-06-09 Thread Samuel Wales
It works!

Thanks to both of you.

-- 
Myalgic encephalomyelitis denialism is causing death and severe suffering,
worse than MS.  Conflicts of interest are destroying research.  /You/ can
get the disease at any time permanently.  Do science and justice matter to
you?  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


___
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] Sourceforge community award

2009-06-09 Thread Russell Adams
On Tue, Jun 09, 2009 at 02:48:23PM +0200, Carsten Dominik wrote:


 1. Complete this sentence in about 140 characters: Our project is
 [-foo-].  For example, Our project is a tool that helps you wash your
 car.

Our project is the most flexible and intuitive way to manage
everything, yes everything, in plain text.


 2. Complete this sentence, also in about 140 characters: We should win
 because [-bar-].  For example, We should win because we have a strong
 community and we solve a universal problem.


We should win because Org-mode has a history of excellence, growing
and adapting to its users' needs without losing itself in complexity.

 3. Please provide a logo (or screenshot, if you'd prefer) for your
 project.  It should be at least 640x480, but we'll also be showing it
 as a thumbnail.

Any ideas here? Bigger unicorn, or a screenshot?

 4. This one is optional, but it could make a big difference.  We'd like
 to show our voters a video that introduces them to the core members of
 your team.  Send along the URL (on YouTube) and we'll make sure they
 see it!


Would it be sufficient to link them to existing videos, or do we need
new material? I know not all the contributors are featured in existing
videos, if they want to be seen they need to post something in a
hurry. ;]


--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
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] Sourceforge community award

2009-06-09 Thread Bastien
Russell Adams rlad...@adamsinfoserv.com writes:

 3. Please provide a logo (or screenshot, if you'd prefer) for your
 project.  It should be at least 640x480, but we'll also be showing it
 as a thumbnail.

 Any ideas here? Bigger unicorn, or a screenshot?

A friend of mine did the graphical work for the first unicorn.

Maybe I can ping him and ask for a bigger/fancier Unicorn?

If so, what background symbolic directions shall I give him 
to inspire a new/better Unicorn?

-- 
 Bastien


___
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] Saving the *Org Edit Src Example* buffer

2009-06-09 Thread Dan Davison
Carsten Dominik carsten.domi...@gmail.com writes:

 Applied, thanks.

Sorry to go on about this, but I don't think the patch that I sent has
been applied and I believe that the problem it addresses still exists:
go into a source code block, hit C-c ', go to end of edit buffer, press
return a few times, try C-x C-s and you'll either be back in the org
buffer (or if you're really unlucky in an edit buffer for a different
code block!). This occurs because when we drop out of the edit buffer,
point ends up outside the code block in the parent org buffer. I've now
realised that a similar problem occurs if you add blank lines at the
top, and so my original patch was insufficient.

My current patch follows. It's not perfect: if there are leading blank
lines then after C-x C-s point will end up in a different place, but at
least it's in the correct buffer :) It seems to me that making point
stay still would require org-edit-src-exit to inform org-edit-src-save
about exactly how many whitespace characters it has removed, and I
haven't tried to do that.

Dan

diff --git a/lisp/org-src.el b/lisp/org-src.el
index 401c628..f4559f2 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -403,18 +403,19 @@ the language, a switch telling of the content should be 
in a single line.
   (interactive)
   (unless (string-match \\`*Org Edit  (buffer-name (current-buffer)))
 (error This is not an sub-editing buffer, something is wrong...))
-  (let ((line (if (org-bound-and-true-p org-edit-src-force-single-line)
- 1
-   (org-current-line)))
-   (beg org-edit-src-beg-marker)
+  (let ((beg org-edit-src-beg-marker)
(end org-edit-src-end-marker)
(ovl org-edit-src-overlay)
(buffer (current-buffer))
(nindent org-edit-src-nindent)
-   code)
-  (goto-char (point-min))
-  (if (looking-at [ \t\n]*\n) (replace-match ))
-  (if (re-search-forward \n[ \t\n]*\\' nil t) (replace-match ))
+   line code)
+  (save-excursion
+(goto-char (point-min))
+(if (looking-at [ \t\n]*\n) (replace-match ))
+(if (re-search-forward \n[ \t\n]*\\' nil t) (replace-match )))
+  (setq line (if (org-bound-and-true-p org-edit-src-force-single-line)
+1
+  (org-current-line)))
   (when (org-bound-and-true-p org-edit-src-force-single-line)
 (goto-char (point-min))
 (while (re-search-forward \n nil t)

Dan


 - Carsten

 On Jun 2, 2009, at 5:49 PM, Dan Davison wrote:

 Dan Davison davi...@stats.ox.ac.uk writes:

 Following on from the recent improvements to the *Org Edit Src
 Example*
 buffer, I have one more proposal: I have remapped C-x C-s so that it
 saves the code in the org buffer, rather than offering to save the
 Edit
 buffer itself (as it used to be with the indirect edit buffer). I
 find
 this essential, although I recognise that remapping C-x C-s is a
 rather
 radical thing to do to an emacs buffer.

 I am using the simple-minded approach below; it seems to work fine (I

 Hmm, well I had used that for at least a week before posting, but I
 have
 now noticed a problem. It's a bit of a corner case. If you create
 extra
 blank lines at the end of the source code edit buffer and leave point
 down there, then do org-edit-src-exit, now back in the org buffer
 point
 is outside the source code block. In that case, the code that I just
 posted doesn't work. I suggest that org-edit-src-exit should in this
 situation place point at the end of the source code block, for example
 like this:


 diff --git a/lisp/org.el b/lisp/org.el
 index 659dfad..be459b5 100644
 --- a/lisp/org.el
 +++ b/lisp/org.el
 @@ -6757,7 +6757,9 @@ the language, a switch telling of the content
 should be in a single line.
code)
   (goto-char (point-min))
   (if (looking-at [ \t\n]*\n) (replace-match ))
 -  (if (re-search-forward \n[ \t\n]*\\' nil t) (replace-match ))
 +  (when (re-search-forward \n[ \t\n]*\\' nil t)
 +(replace-match )
 +(setq line (min line (org-current-line
   (when (org-bound-and-true-p org-edit-src-force-single-line)
 (goto-char (point-min))
 (while (re-search-forward \n nil t)


 Dan




 don't even notice a flicker -- should I be surprised at that?), but
 if
 someone can suggest an improved implementation I'd be happy to
 learn how
 it should be done (perhaps there are buffer variables other than
 point
 and mark that I should restore? Is there a general mechanism I should
 use for this?).

 Dan

 (defun org-edit-src-save ()
  Update the parent org buffer with the edited source code, save
 the parent org-buffer, and return to the source code edit
 buffer.
  (interactive)
  (let ((p (point))
 (m (mark)))
(org-edit-src-exit)
(save-buffer)
(org-edit-src-code)
(set-mark m)
(goto-char p)))

 (define-key org-exit-edit-mode-map \C-x\C-s 'org-edit-src-save)



 ___
 Emacs-orgmode mailing list
 Remember: use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 

Re: [Orgmode] Sourceforge community award

2009-06-09 Thread Carsten Dominik


On Jun 9, 2009, at 4:46 PM, Bastien wrote:


Russell Adams rlad...@adamsinfoserv.com writes:


3. Please provide a logo (or screenshot, if you'd prefer) for your
project.  It should be at least 640x480, but we'll also be showing  
it

as a thumbnail.


Any ideas here? Bigger unicorn, or a screenshot?


A friend of mine did the graphical work for the first unicorn.

Maybe I can ping him and ask for a bigger/fancier Unicorn?

If so, what background symbolic directions shall I give him
to inspire a new/better Unicorn?


I don't really think we should change it.  I do have a scalable SVG  
version of it.
One possibility would be to make a combination of a nice screen shot  
(with a better color scheme like Peter Jones') and to integrate the  
Unicorn logo into that image.


- Carsten



--
Bastien


___
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] Sourceforge community award

2009-06-09 Thread Russell Adams
On Tue, Jun 09, 2009 at 04:46:40PM +0200, Bastien wrote:
 Russell Adams rlad...@adamsinfoserv.com writes:
 
  3. Please provide a logo (or screenshot, if you'd prefer) for your
  project.  It should be at least 640x480, but we'll also be showing it
  as a thumbnail.
 
  Any ideas here? Bigger unicorn, or a screenshot?
 
 A friend of mine did the graphical work for the first unicorn.
 
 Maybe I can ping him and ask for a bigger/fancier Unicorn?
 
 If so, what background symbolic directions shall I give him 
 to inspire a new/better Unicorn?
 
 -- 
  Bastien
 

A unicorn with an accordian for an abdomen! ;]


--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
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-exp-block patch and Graphviz Demo

2009-06-09 Thread Russell Adams
I've looked, and it appears that the sed line is no longer required,
it was an old hack.

Regarding graphviz inclusion in PDF, the best output is still obtained
by dot - EPS, and then epstopdf - PDF, and its inclusion in latex.

How would you handle that in org-exp-block.el?

Thanks.

On Thu, May 28, 2009 at 03:57:42PM -0700, Eric Schulte wrote:
 
 That's fantastic, much simpler than the patch!
 
 Russell Adams rlad...@adamsinfoserv.com writes:
 
  Nicolas,
 
  You're right! I'd never seen -K, and its not in the manual page
  either. But clearly enough:
 
  $ dot --help
  Usage: dot [-Vv?] [-(GNE)name=val] [-(KTlso)val] dot files
 
  ...
 
   -Kv - Set layout engine to 'v' (overrides default based on command 
  name)
 
  I just tried it in the example I had supplied, and it worked properly!
 
  #+BEGIN_dot dot neato.png -Tpng -Kneato
  digraph test {
 
  a - { b c d e };
  e - { f g h i };
 
  };
 
  #+END_dot
 
  Perhaps the patch and changes for that are pointless after all!
 
  I went back and checked the postscript / EPS issue, and it is still
  present.
 
  Thanks for that neat tip!
 
 
  On Thu, May 28, 2009 at 08:03:23PM +0200, Org Mode List wrote:
  Hello,
  
  I could be wrong, but org-exp-block.el already provides support for any
  Graphviz command since you can add the option -K as an argument to dot.
  
  Then again, I can have mistaken your point.
  
  -- 
  Nicolas Goaziou
  
  
  
  ___
  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
  
 
 
  --
  Russell Adamsrlad...@adamsinfoserv.com
 
  PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
 
  Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
 
 
  ___
  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
 


--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
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-protecting-blocks: error with git version..

2009-06-09 Thread Madhu Rao

I just pulled the git version, but I get this error when I open emacs


An error has occurred while loading `.emacs':

Symbol's value as variable is void: org-protecting-blocks


Could you please help resolve?



___
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] Sourceforge community award

2009-06-09 Thread Carsten Dominik


On Jun 9, 2009, at 4:54 PM, Carsten Dominik wrote:



On Jun 9, 2009, at 4:46 PM, Bastien wrote:


Russell Adams rlad...@adamsinfoserv.com writes:


3. Please provide a logo (or screenshot, if you'd prefer) for your
project.  It should be at least 640x480, but we'll also be  
showing it

as a thumbnail.


Any ideas here? Bigger unicorn, or a screenshot?


A friend of mine did the graphical work for the first unicorn.

Maybe I can ping him and ask for a bigger/fancier Unicorn?

If so, what background symbolic directions shall I give him
to inspire a new/better Unicorn?


I don't really think we should change it.  I do have a scalable SVG
version of it.
One possibility would be to make a combination of a nice screen
shot (with a better color scheme like Peter Jones') and to integrate
the Unicorn logo into that image.


Something like this:

http://orgmode.org/Org-mode.png

Obviously done by a total graphics moron, so if you can do
better, let me know and I'll sent you the two images this is based  
on.


- Carsten




- Carsten



--
Bastien


___
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




===
PLEASE NOTE NEW ADDRESS
===
prof.dr. Carsten Dominikdomi...@uva.nl
Astronomical Institute 'Anton Pannekoek'
www.astro.uva.nl/~dominik
Faculty of Science, University of Amsterdam phone   
+31-20-5257477/7491
SCIENCE PARK 904, ROOM C4-106   fax +31-20-5257484
1098 XH Amsterdam, The Netherlands
mail: PO BOX 94249, 1090GE, Amsterdam






___
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-protecting-blocks: error with git version..

2009-06-09 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Jun 9, 2009, at 6:34 PM, Madhu Rao wrote:


I just pulled the git version, but I get this error when I open emacs


An error has occurred while loading `.emacs':

Symbol's value as variable is void: org-protecting-blocks


Could you please help resolve?



___
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] outline-minor-mode and code editing / export

2009-06-09 Thread Carsten Dominik


On Jun 9, 2009, at 3:22 PM, Dan Davison wrote:






Dan

* Btw, a trivial thing, but I wonder if it would be appropriate to
rename
org-exit-edit-mode as something like org-edit-src-mode; it now has  
two

keybindings only one of which is to do with exiting.


I don't understand this point.  Please try again :-)


No problem. We currently have this in org-src.el:

(define-minor-mode org-exit-edit-mode
 Minor mode installing a single key binding, \C-c '\ to exit  
special edit.)


However, the scope of that minor mode has now expanded, and as well as
the docstring being out of date, its name is misleading, as it is now
concerned with more than just *exit* (saving as well).

What I propose is that we rename org-exit-edit-mode as org-src-mode,  
and
that that minor mode is turned on when editing source blocks with C- 
c ',

and when processing with htmlize.


I have applied this patch, thanks - still looking at the other one...

- Carsten


 Because of the way you named the hook
you just created, the minor mode would automatically inherit it as its
minor mode hook. I think this would logically tie together your recent
changes (expansion of functionality in the edit buffer, and addition  
of

org-src-mode-hook), and would leave the door open for future additions
to org-src-mode.

I've quickly made these changes, and tested that the minor mode hook  
had
the desired effect (for me) on export and source code editing.  
Here's my

patch that does what I propose.

Dan

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 4e98bb9..b8fb201 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2219,7 +2219,7 @@ INDENT was the original indentation of the  
block.

(funcall mode)
  (fundamental-mode))
(font-lock-fontify-buffer)
-   (run-hooks 'org-src-mode-hook)
+   (org-src-mode)
(set-buffer-modified-p nil)
(org-export-htmlize-region-for-paste
 (point-min) (point-max
diff --git a/lisp/org-src.el b/lisp/org-src.el
index 401c628..524f6d6 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -116,9 +116,9 @@ This is needed for font-lock setup.)

;;; Editing source examples

-(defvar org-exit-edit-mode-map (make-sparse-keymap))
-(define-key org-exit-edit-mode-map \C-c' 'org-edit-src-exit)
-(define-key org-exit-edit-mode-map \C-x\C-s 'org-edit-src-save)
+(defvar org-src-mode-map (make-sparse-keymap))
+(define-key org-src-mode-map \C-c' 'org-edit-src-exit)
+(define-key org-src-mode-map \C-x\C-s 'org-edit-src-save)
(defvar org-edit-src-force-single-line nil)
(defvar org-edit-src-from-org-mode nil)
(defvar org-edit-src-picture nil)
@@ -127,8 +127,14 @@ This is needed for font-lock setup.)
(defvar org-edit-src-overlay nil)
(defvar org-edit-src-nindent nil)

-(define-minor-mode org-exit-edit-mode
-  Minor mode installing a single key binding, \C-c '\ to exit  
special edit.)

+(define-minor-mode org-src-mode
+  Minor mode for language major mode buffers generated by org.
+This minor mode is turned on in two situations:
+- when editing a source code snippet with \C-c '\.
+- When formatting a source code snippet for export with htmlize.
+There is a mode hook, and keybindings for org-edit-src-exit and
+org-edit-src-save
+)

(defun org-edit-src-code ()
  Edit the source code example at point.
@@ -187,7 +193,7 @@ the edited version.
(org-do-remove-indentation)
(let ((org-inhibit-startup t))
  (funcall lang-f)
- (run-hooks 'org-src-mode-hook))
+ (org-src-mode))
(set (make-local-variable 'org-edit-src-force-single-line) single)
(set (make-local-variable 'org-edit-src-from-org-mode) org-mode-p)
(when lfmt
@@ -197,7 +203,6 @@ the edited version.
  (while (re-search-forward ^, nil t)
(replace-match )))
(goto-line (1+ (- line begline)))
-   (org-exit-edit-mode)
(org-set-local 'org-edit-src-beg-marker beg)
(org-set-local 'org-edit-src-end-marker end)
(org-set-local 'org-edit-src-overlay ovl)






- Carsten







- Carsten

On Jun 6, 2009, at 9:32 PM, Dan Davison wrote:


In turn on outline-minor-mode in the language major modes that I
use, so
that code starts up folded, via a call to org-content that is made
in my
major-mode hook. I'm finding that this has two undesirable
consequences
for org-mode, as follows. I have also described a possible  
solution,

as
implemented by the patch at the end.

1. The code appears folded on HTML export

solution: add this line to org-export-format-source-code-or- 
example

(if (fboundp 'show-all) (show-all))

2. org-edit-src-save does not remember the visibility state, so  
C-x

C-s
causes a jump to a different visibility state

solution: save the value of org-cycle-global-status and, when the
edit buffer is re-entered, call one of {org-overview,

[Orgmode] Re: Sourceforge community award

2009-06-09 Thread Leo
On 2009-06-09 17:15 +0100, Carsten Dominik wrote:
 http://orgmode.org/Org-mode.png

 Obviously done by a total graphics moron, so if you can do better, let
 me know and I'll sent you the two images this is based on.

The 3D look for the keywords is actually quite nice.

-- 
Leo's Emacs uptime: 21 hours, 11 minutes, 30 seconds



___
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] Help with colors for a newbie...

2009-06-09 Thread mick
Hi,

I've been using org mode for a little while now but I'm still a newbie to both 
org mode and emacs.  I run org mode on my Nokia N810 as a pocket organizer.  I 
recently decided to change the color scheme to use a black background in the 
interest of saving battery power and to not blind myself at night.  Everything 
looks good so far except for one thing - I cannot see the cursor when it is on 
a hidden star.  I've looked though all of the faces settings and cannot figure 
out what I should set differently.  Could somebody point me to the setting I 
should change?

BTW - Thanks so very much for an awesome program Carsten!  I'm still barely 
scratching the surface but I'm looking forward to getting more out of it. 

Mick Davis



___
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: I must be missing something...

2009-06-09 Thread Bernt Hansen
David Abrahams d...@boostpro.com writes:

 on Tue Jun 09 2009, Bernt Hansen bernt-AT-norang.ca wrote:

 David Abrahams d...@boostpro.com writes:
 I've been using and studying org mode for a few months now, and though
 it seems to have great potential, some things still escape me.  For
 example, do my DONE items simply accumulate forever in todo.org?  I know
 there's an archiving feature... do I move those done items manually to
 an archive when I no longer need to see them?

 Stuff accumulates and I personally archive subtrees manually once/month.

 I have a lot of degenerate subtrees (items with no sub-items).  You
 just do those one-at-a-time?

If there are lots I just make a keyboard macro that archives the current
subtree.

Another possible option (untested) is if you move them all together you
can duplicate (or create) the parent task and then promote it.

This moves

* DONE Task 1 to archive
* DONE Task 2 to archive
...
* DONE Task n to archive

to

* New Fake Parent Task
** DONE Task 1 to archive
** DONE Task 2 to archive
...
** DONE Task n to archive

and then archive the new fake parent once including all of its subtasks.

The keyboard macro works pretty well for me - except blank lines
sometime mess up cursor positioning for the next task to archive - so be
careful your point is on or in a task you want to archive before
repeating it.  This shows up for a few tasks each month (with blank
lines before the task) but I haven't spent any time trying to improve
the situation yet.


 Also, how do I manage my projects?  Org mode seems to want to put
 everything in one big file.  I know I *can* separate trees by file, but
 it doesn't seem to be very convenient to do so.  For example, if I'm
 visiting a project file, is there a way to get an agenda view on just
 /that/ file without having to modify org-agenda-files?

 I recently wrote about this here.
 http://doc.norang.ca/org-mode.html#LimitingAgendaView
 Maybe that will help?

 It hits a lot of things in the general area of what I need, but the
 specific thing I wanted to do was to temporarily remove all tasks that
 live in a particular file from the agenda.  I was able to get a similar
 functionality by putting a unique tag on the root item in that file and
 the using org-agenda-filter-by-tag to filter it out, but that seemed a
 bit indirect.

I just use #+FILETAGS: for this and filter away the file I want to
remove.  I haven't explored if there is a way to have the filter
remembered between agenda views until I restore it (similar to the
agenda restriction lock) but I'm thinking that functionality probably
does not exist today.

Right now I have a bunch of deadlines on my farm.org file cluttering up
my agenda view so I'm regularly doing C-c a a / - f to hide the @farm
tagged tasks.  I want to see everything else but those.  I could drop
the farm.org file from my agenda but I'll probably forget to restore it
in time.  Filtering works for me in the interim until I find a better
solution.


 I know I'm being a bit vague, but so far the basic operations of
 org-mode, which were very fast to use at first, haven't scaled up very
 easily to handle my whole life, and I'm not sure how to get there.

 Many thanks in advance for any advice you can give,

 I've been using org-mode for years and I use it for everything.  A
 description of my work flow and setup for org-mode is at
 http://doc.norang.ca/org-mode.html in case that's useful.

 I've been through that material several times already; thank you _very_
 much for writing it.

You're most welcome :). Playing with publishing is (almost) fun.


Maybe I just need to keep working with it to learn
 more.  I find it's hard to take the time to do that when you're really
 trying to use org mode to get other stuff done!

Yes I can see that.  Org-mode is huge (in functionality and the way you
can approach a problem).  The best advice I can give is start small and
build on what you know until you end up with something that works for
you.  If my document can help give you ideas to get there that's great!

Regards,
Bernt


___
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] Sourceforge community award

2009-06-09 Thread Chris Randle
Hi All,

For an alternative logo, I went to glassgiant.com and generated the
attached file using Christophe Bataillon's logo. I thought it fitted the
your life in plain text strapline rather well.

-- 
Chris Randle


.=..
O...
...7O...
..Z=
.~8.
.Z,.
OO..
...~O,..
..,O=...
.D$Z,...
.,..NM...~O=
...:DMNZNMM.,OO,
...DDMMDOZZOODN8OZ~.
...,7$ZOZODD8MMMDDDOOOD=
.ZOZZZ8DD8DD88D8DD8.
.,?OZZ8DD8NMMMD8Z,..
...=OZ8D88DN888ODD888DDD8DI:
.+8ZZZ8D8DNND:..
...?OZZDD8DDDD..
.,8ODD8D8D$.
:ZZZODD8D,..
...?OZDDDNM=
..,O8O8DD88NMMMD
..OODDD8ND888D8,$DDD8DD8DD888D8.
.:ZZZOOO88OZ8DD8DDO.
.OZZZDDDNDD88D88O...
.OZZZ8DDODDDND88O...
.ODD88DD8888~...
.OODD888
.ZO8D8OODDDNND8D
.:Z8DDD888DDD88D~...
..ZZZOZODD8ND888O...
..+Z88DO8DD888DDD~..
...OZZZO8DND888,
...~OOOODDD8DDDND8..
:OZZZO8OO8D8DD88D8DZ
..=OZDDD8D88D$..
~DDDNDD,
..NDDD888O8D$...
...:D88D88..
.DD.
...O8DD8DD888DD8
+$87Z~.$D...
...~88..
..,7DDO.
.=D.
...:



 GlassGiant.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] Saving the *Org Edit Src Example* buffer

2009-06-09 Thread Carsten Dominik


On Jun 9, 2009, at 4:51 PM, Dan Davison wrote:


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


Applied, thanks.


Sorry to go on about this, but I don't think the patch that I sent has
been applied and I believe that the problem it addresses still exists:
go into a source code block, hit C-c ', go to end of edit buffer,  
press

return a few times, try C-x C-s and you'll either be back in the org
buffer (or if you're really unlucky in an edit buffer for a different
code block!). This occurs because when we drop out of the edit buffer,
point ends up outside the code block in the parent org buffer. I've  
now

realised that a similar problem occurs if you add blank lines at the
top, and so my original patch was insufficient.


You are right.



My current patch follows. It's not perfect: if there are leading blank
lines then after C-x C-s point will end up in a different place, but  
at

least it's in the correct buffer :) It seems to me that making point
stay still would require org-edit-src-exit to inform org-edit-src-save
about exactly how many whitespace characters it has removed, and I
haven't tried to do that.


I think the better way to do this is to first remove the
empty lines at the beginning and end of the buffer, and then to
remember the line.  This is what I have implemented now.

- Carsten



Dan

diff --git a/lisp/org-src.el b/lisp/org-src.el
index 401c628..f4559f2 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -403,18 +403,19 @@ the language, a switch telling of the content  
should be in a single line.

  (interactive)
  (unless (string-match \\`*Org Edit  (buffer-name (current- 
buffer)))
(error This is not an sub-editing buffer, something is  
wrong...))
-  (let ((line (if (org-bound-and-true-p org-edit-src-force-single- 
line)

- 1
-   (org-current-line)))
-   (beg org-edit-src-beg-marker)
+  (let ((beg org-edit-src-beg-marker)
   (end org-edit-src-end-marker)
   (ovl org-edit-src-overlay)
   (buffer (current-buffer))
   (nindent org-edit-src-nindent)
-   code)
-  (goto-char (point-min))
-  (if (looking-at [ \t\n]*\n) (replace-match ))
-  (if (re-search-forward \n[ \t\n]*\\' nil t) (replace-match ))
+   line code)
+  (save-excursion
+(goto-char (point-min))
+(if (looking-at [ \t\n]*\n) (replace-match ))
+(if (re-search-forward \n[ \t\n]*\\' nil t) (replace-match  
)))
+  (setq line (if (org-bound-and-true-p org-edit-src-force-single- 
line)

+1
+  (org-current-line)))
  (when (org-bound-and-true-p org-edit-src-force-single-line)
(goto-char (point-min))
(while (re-search-forward \n nil t)

Dan



- Carsten

On Jun 2, 2009, at 5:49 PM, Dan Davison wrote:


Dan Davison davi...@stats.ox.ac.uk writes:


Following on from the recent improvements to the *Org Edit Src
Example*
buffer, I have one more proposal: I have remapped C-x C-s so that  
it

saves the code in the org buffer, rather than offering to save the
Edit
buffer itself (as it used to be with the indirect edit buffer). I
find
this essential, although I recognise that remapping C-x C-s is a
rather
radical thing to do to an emacs buffer.

I am using the simple-minded approach below; it seems to work  
fine (I


Hmm, well I had used that for at least a week before posting, but I
have
now noticed a problem. It's a bit of a corner case. If you create
extra
blank lines at the end of the source code edit buffer and leave  
point

down there, then do org-edit-src-exit, now back in the org buffer
point
is outside the source code block. In that case, the code that I just
posted doesn't work. I suggest that org-edit-src-exit should in this
situation place point at the end of the source code block, for  
example

like this:


diff --git a/lisp/org.el b/lisp/org.el
index 659dfad..be459b5 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6757,7 +6757,9 @@ the language, a switch telling of the content
should be in a single line.
  code)
 (goto-char (point-min))
 (if (looking-at [ \t\n]*\n) (replace-match ))
-  (if (re-search-forward \n[ \t\n]*\\' nil t) (replace-match ))
+  (when (re-search-forward \n[ \t\n]*\\' nil t)
+(replace-match )
+(setq line (min line (org-current-line
 (when (org-bound-and-true-p org-edit-src-force-single-line)
   (goto-char (point-min))
   (while (re-search-forward \n nil t)


Dan





don't even notice a flicker -- should I be surprised at that?), but
if
someone can suggest an improved implementation I'd be happy to
learn how
it should be done (perhaps there are buffer variables other than
point
and mark that I should restore? Is there a general mechanism I  
should

use for this?).

Dan

(defun org-edit-src-save ()
Update the parent org buffer with the edited source code, save
the parent org-buffer, and return to the source code edit
buffer.
(interactive)
(let ((p (point))
(m (mark)))
  (org-edit-src-exit)
  (save-buffer)
  (org-edit-src-code)
  (set-mark m)
  (goto-char p)))


Re: [Orgmode] Sourceforge community award

2009-06-09 Thread srandby

Here are some ideas.


--

1. Complete this sentence in about 140 characters: Our project is
[-foo-].  For example, Our project is a tool that helps you wash your
car.


Our project is the best organizing tool that exists in this universe.



2. Complete this sentence, also in about 140 characters: We should win
because [-bar-].  For example, We should win because we have a strong
community and we solve a universal problem.


We should win because org-mode is transformative, innovative, and it is
supported and developed by an active and friendly community.



3. Please provide a logo (or screenshot, if you'd prefer) for your
project.  It should be at least 640x480, but we'll also be showing it
as a thumbnail.



I agree that an svg of the unicorn is good.


4. This one is optional, but it could make a big difference.  We'd like
to show our voters a video that introduces them to the core members of
your team.  Send along the URL (on YouTube) and we'll make sure they
see it!


Perhaps one could collect nice photos of each of the major contributors
who agree to be part of the video. These photos could be shown
sequentially (with appropriate transitions between photos) in the video
while the sound track would describe who is in each photo. If adding
sound is too much trouble, one could describe each photo with text,
maybe even org-mode style text.

It shouldn't be too hard to make such a video. I bet ffmpeg would work
to make a nice ogg video that could be posted on the org-mode website.
I'm sure it would be easy to put it on YouTube also.



6. Our finalists are usually pretty interesting people.  Are you
willing to be contacted by our public relations team about interviews
with the press?



___
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] Help with colors for a newbie...

2009-06-09 Thread Samuel Wales
I have cursor-color, cursor, and maybe text-cursor.

On Tue, Jun 9, 2009 at 11:02, m...@davisres.org wrote:
 Hi,

 I've been using org mode for a little while now but I'm still a newbie to 
 both org mode and emacs.  I run org mode on my Nokia N810 as a pocket 
 organizer.  I recently decided to change the color scheme to use a black 
 background in the interest of saving battery power and to not blind myself at 
 night.  Everything looks good so far except for one thing - I cannot see the 
 cursor when it is on a hidden star.  I've looked though all of the faces 
 settings and cannot figure out what I should set differently.  Could somebody 
 point me to the setting I should change?

 BTW - Thanks so very much for an awesome program Carsten!  I'm still barely 
 scratching the surface but I'm looking forward to getting more out of it.

 Mick Davis



 ___
 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




-- 
Myalgic encephalomyelitis denialism is causing death and severe suffering,
worse than MS.  Conflicts of interest are destroying research.  /You/ can
get the disease at any time permanently.  Do science and justice matter to
you?  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


___
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/2] Initialize org-clock-notification-was-shown on clock-in

2009-06-09 Thread Bernt Hansen
This makes org-clock-sound a little more well-behaved.  The clock
sound was only being issued if you were already clocking a task that
was under its limit, and changed to clocking something else.  Now each
time you clock in a new task it checks the estimated effort limit and
issues the org-clock-sound if the limit is exceeded.

This patch issues the org-clock-sound whenever you clock in a task
that is already over its estimated effort amount.  This allows you to
use the estimated effort as a limit for the amount of time to spend on
a task.  Each time you clock in the task you'll be notified that you
are over the limit.  This is great for tasks where you want to limit
the amount of time spent (per day, since last repeat) and is a
reminder to go work on something else instead.
---
This patch series is available at git://git.norang.ca/org-mode for-carsten

 lisp/org-clock.el |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 1016c6a..57f1a6f 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -420,6 +420,7 @@ clock into.  When SELECT is `C-u C-u', clock into the 
current task and mark
 is as the default task, a special task that will always be offered in
 the clocking selection, associated with the letter `d'.
   (interactive P)
+  (setq org-clock-notification-was-shown nil)
   (catch 'abort
 (let ((interrupting (marker-buffer org-clock-marker))
  ts selected-task target-pos (msg-extra ))
-- 
1.6.3.2.198.g6096d



___
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/2] Do not issue the 'task should be finished by now' message if the clock is stopped

2009-06-09 Thread Bernt Hansen
This patch prevents the org-clock-sound notification and the

   Task'BLAH' should be finished by now.

message when the termination time is reached and the clock is not
running.

Before this patch spurious notifications and messages were generated when
clocking in a task with estimated effort time remaining.  After clocking
out the task the remaining minutes would tick by and then the sound
and message that the task should be finished were generated - even though
you are not working on it anymore.
---
This patch series is available at git://git.norang.ca/org-mode for-carsten

 lisp/org-clock.el |   21 +++--
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 57f1a6f..ace7792 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -369,16 +369,17 @@ previous clocking intervals.
 (defun org-clock-notify-once-if-expired ()
   Show notification if we spent more time then we estimated before.
 Notification is shown only once.
-  (let ((effort-in-minutes (org-hh:mm-string-to-minutes org-clock-effort))
-   (clocked-time (org-clock-get-clocked-time)))
-(if (= clocked-time effort-in-minutes)
-   (unless org-clock-notification-was-shown
- (setq org-clock-notification-was-shown t)
- (org-clock-play-sound)
- (org-show-notification
-  (format Task '%s' should be finished by now. (%s)
-  org-clock-heading org-clock-effort)))
-  (setq org-clock-notification-was-shown nil
+  (when (marker-buffer org-clock-marker)
+(let ((effort-in-minutes (org-hh:mm-string-to-minutes org-clock-effort))
+ (clocked-time (org-clock-get-clocked-time)))
+  (if (= clocked-time effort-in-minutes)
+ (unless org-clock-notification-was-shown
+   (setq org-clock-notification-was-shown t)
+   (org-clock-play-sound)
+   (org-show-notification
+(format Task '%s' should be finished by now. (%s)
+org-clock-heading org-clock-effort)))
+   (setq org-clock-notification-was-shown nil)
 
 (defun org-show-notification (notification)
   Show notification. Use libnotify, if available.
-- 
1.6.3.2.198.g6096d



___
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] Fix typo in org-clock-get-clocked-time

2009-06-09 Thread Bernt Hansen
---
This patch series is available at git://git.norang.ca/org-mode for-carsten

 lisp/org-clock.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index ace7792..ad55bc1 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -355,7 +355,7 @@ If not, show simply the clocked time like 01:50.
   (force-mode-line-update))
 
 (defun org-clock-get-clocked-time ()
-  Get the clocked time for the rrent item in minutes.
+  Get the clocked time for the current item in minutes.
 The time returned includes the the time spent on this task in
 previous clocking intervals.
   (let ((currently-clocked-time
-- 
1.6.3.2.198.g6096d



___
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] save-excursion fails to restore point

2009-06-09 Thread Samuel Wales
Here is a minimal test case:

(save-excursion
  (outline-up-heading 1 'invisible-ok)
  (org-sort-entries-or-items nil ?a))

What happens is that point stays on the parent headline.

What I expect is for save-excursion to save point no
differently from just saving point and doing goto-char.

Also:

When I change a todo state and then sort entries manually
using my sort function, everything works.  But when I do so
from org-after-todo-state-change-hook, point gets placed on
the parent headline.  Point gets changed right after the
save-excursion in org-todo (3rd paren from last).

Reproducible?

RMS in the reply to
http://www.archivum.info/bug-gnu-em...@gnu.org/2006-01/msg00053.html
seems to say that it is inevitable.

Is there a way for org to work around this?

If not, it is a warning to the wise.

-- 
Myalgic encephalomyelitis denialism is causing death and severe suffering,
worse than MS.  Conflicts of interest are destroying research.  /You/ can
get the disease at any time permanently.  Do science and justice matter to
you?  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm


___
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 2/2] Do not issue the 'task should be finished by now' message if the clock is stopped

2009-06-09 Thread Carsten Dominik

All patches applied, thanks.

- Carsten

On Jun 9, 2009, at 10:43 PM, Bernt Hansen wrote:


This patch prevents the org-clock-sound notification and the

  Task'BLAH' should be finished by now.

message when the termination time is reached and the clock is not
running.

Before this patch spurious notifications and messages were generated  
when
clocking in a task with estimated effort time remaining.  After  
clocking

out the task the remaining minutes would tick by and then the sound
and message that the task should be finished were generated - even  
though

you are not working on it anymore.
---
This patch series is available at git://git.norang.ca/org-mode for- 
carsten


lisp/org-clock.el |   21 +++--
1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 57f1a6f..ace7792 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -369,16 +369,17 @@ previous clocking intervals.
(defun org-clock-notify-once-if-expired ()
  Show notification if we spent more time then we estimated before.
Notification is shown only once.
-  (let ((effort-in-minutes (org-hh:mm-string-to-minutes org-clock- 
effort))

-   (clocked-time (org-clock-get-clocked-time)))
-(if (= clocked-time effort-in-minutes)
-   (unless org-clock-notification-was-shown
- (setq org-clock-notification-was-shown t)
- (org-clock-play-sound)
- (org-show-notification
-  (format Task '%s' should be finished by now. (%s)
-  org-clock-heading org-clock-effort)))
-  (setq org-clock-notification-was-shown nil
+  (when (marker-buffer org-clock-marker)
+(let ((effort-in-minutes (org-hh:mm-string-to-minutes org-clock- 
effort))

+ (clocked-time (org-clock-get-clocked-time)))
+  (if (= clocked-time effort-in-minutes)
+ (unless org-clock-notification-was-shown
+   (setq org-clock-notification-was-shown t)
+   (org-clock-play-sound)
+   (org-show-notification
+(format Task '%s' should be finished by now. (%s)
+org-clock-heading org-clock-effort)))
+   (setq org-clock-notification-was-shown nil)

(defun org-show-notification (notification)
  Show notification. Use libnotify, if available.
--
1.6.3.2.198.g6096d



___
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] Calc formula with multi value and format string

2009-06-09 Thread Michaël Parienti

Hi,

I would like to put two computed values (sum and mean) into a cell of
a table. Reading the calc manual I found the following syntax:

|-+---|
| | Title |
|-+---|
| Label 1 | 0 |
| Label 2 | 1 |
|-+---|
| Label 3 | 1 |
|-+---|
| | 0.6667, 2 |
|-+---|
#+TBLFM: $LR2=vmean(@2..-I),vsum(@2..-I)::

Now I would like to format the meanm, but I don’t know where I should
put the format string. I tried several possibilities without success:

$LR2=vmean(@2..-I);%.2f,vsum(@2..-I)::  displays  0.67,vsum(@2..-I)
$LR2=vmean(@2..-I),vsum(@2..-I);%.2f::  displays  0.00
$LR2=vsum(@2..-I),vmean(@2..-I);%.2f::  displays  2.00 

(I don’t mind which value comes first)


Has anyone any idea to help me? Can I set the org-calc-default-modes
variable for just a table? 


-- 
Michaël P
gpg:D4C8 F73D A000 71C7 44EF  27E6 8982 4991 7126 3CE3


___
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] Sourceforge community award

2009-06-09 Thread Bastien
Chris Randle ch...@amlog.co.uk writes:

 For an alternative logo, I went to glassgiant.com and generated the
 attached file using Christophe Bataillon's logo. I thought it fitted the
 your life in plain text strapline rather well.

Great - I just added this to the Worg faq about the unicorn logo.

-- 
 Bastien


___
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] Sourceforge community award

2009-06-09 Thread Rick Moynihan
2009/6/9 Carsten Dominik carsten.domi...@gmail.com:
 OK, in my last email I already said that we have been selected
 as a finalist for the Sourceforge Community Award in the category

 Most Likely to Change the Way You Do Everything.

 I am *very* excited about this, and I would love *us* to win
 this award or at least deliver a very good showing.

This is awesome news!  Congratulations to Carsten and everyone who
makes org-mode what it is!  Do we know who the competition is yet?

 We need to provide some information, within a week, and I would like
 to invite all of you to makes proposals for the short sentences, for the
 logo or screenshot we should be offering, and how to create a short
 video about the main contributors.  Who should be in this video,
 and how?

I think the real problem here is the logistics of this.  Does anyone
have any experience with video?  Personally I'd like to see Carsten
(obviously), but I think the contributor net should be widened to
include at least one person who's made a significant contribution to
documenting org-mode best-practice, e.g. Bernt, Russel etc...

It'd be really nice to have the videos touch on both user and
developer perspective's, and perhaps even the fantastic community
interplay that occurs on this list.

 Below are the questions from sourceforge, let the brainstorming begin!

 - Carsten

 1. Complete this sentence in about 140 characters: Our project is
 [-foo-].  For example, Our project is a tool that helps you wash your
 car.

Org is the life hacker's swiss army knife.  Sharp, quick and powerful
you'll use it to cut deadlines and craft your own path to productivity.

 2. Complete this sentence, also in about 140 characters: We should win
 because [-bar-].  For example, We should win because we have a strong
 community and we solve a universal problem.

I'm afraid I've wracked my brains and couldn't come up with anything I
was happy with for this one...  These snippets seem to work best when
you can use a consistent metaphor throughout and I struggle to find
one that flows convincingly with the rather trad (and arrogant) We
should win because ... ...  Though I'm really not happy with it, I
think using jargon intended to resonate with the O'Reilly set is a
good idea... e.g. life hacker, alpha geek, ... Can anyone offer
any improvements on what I've got? :

We should win because our community of productivity alpha geeks share
their secrets openly... The pace of Org development is proof it works!

 3. Please provide a logo (or screenshot, if you'd prefer) for your
 project.  It should be at least 640x480, but we'll also be showing it
 as a thumbnail.

 4. This one is optional, but it could make a big difference.  We'd like
 to show our voters a video that introduces them to the core members of
 your team.  Send along the URL (on YouTube) and we'll make sure they
 see it!

 6. Our finalists are usually pretty interesting people.  Are you
 willing to be contacted by our public relations team about interviews
 with the press?





___
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] Screenshots section in Worg

2009-06-09 Thread Bastien
Org deserves a better screenshots page than this one:

  http://orgmode.org/worg/org-screenshots.php

Please send me your best screenshots of Org in action and I 
will populate this page with decent visual geeky lust.

-- 
 Bastien


___
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] Remove leftover debugging call

2009-06-09 Thread Bernt Hansen
---
Carsten: I don't think you intended to push this change to the public 
repository.

This patch is available at git://git.norang.ca/org-mode for-carsten

 lisp/org-docbook.el |1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/lisp/org-docbook.el b/lisp/org-docbook.el
index 5aa1263..00becb7 100644
--- a/lisp/org-docbook.el
+++ b/lisp/org-docbook.el
@@ -646,7 +646,6 @@ publishing directory.
 
  ;; Protected HTML
  (when (get-text-property 0 'org-protected line)
-   (debug)
(let (par (ind (get-text-property 0 'original-indentation line)))
  (when (re-search-backward
 \\(para\\)\\([ \t\r\n]*\\)\\= (- (point) 100) t)
-- 
1.6.3.2.198.g6096d



___
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] Sourceforge community award

2009-06-09 Thread Eddward DeVilla
Congratulations!  Org-mode, Carsten and the developers deserve the
recognition.  Now let's see.

1. Complete this sentence in about 140 characters: Our project is
[-foo-].  For example, Our project is a tool that helps you wash your
car.



Org-mode is the definition of lite weight productivity software.  It's
all the tools you need for planning, scheduling, managing projects,
organizing thoughts and more in a well documented, easy to learn and
use package.  Organize information in lists, tables, spread sheets,
outlines and more. Mark up, tag, cross reference, annotate and link
to/from your notes and information in the manner that suites you best
using the features you find useful while safely ignoring those
features you don't need.  Export and publish your information in
several formats for presentation or interoperability.  Extend it to
better suite the way you work and think using builtin hooks and APIs.


[too long, and yet not enough.  maybe...]


Org-mode is the simple, powerful management  organization tool that
other tools will have to try to match in flexibility and simplicity.



2. Complete this sentence, also in about 140 characters: We should win
because [-bar-].  For example, We should win because we have a strong
community and we solve a universal problem.


Org-mode already sets the bar high for organization tools and its
community has just begun developing plugins and useful/unexpected
extensions.


[It hurts to abbreviate it that much.]

That all I got.  I'm no good at video or art.  Sorry.

Edd


___
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: Sourceforge community award

2009-06-09 Thread Sivaram Neelakantan
Carsten Dominik carsten.domi...@gmail.com writes:


[snipped 25 lines]


 1. Complete this sentence in about 140 characters: Our project is
 [-foo-].  For example, Our project is a tool that helps you wash your
 car.


Org-mode: A better Post-it system!


I know it's more than that but we are trying to win aren't we?

And as a reminder, I posted this link 
http://www.nytimes.com/2009/05/28/technology/personaltech/28basics.html?_r=1pagewanted=all

sometime back.

Maybe it might jog someone elses' creativity?


 sivaram
 -- 



___
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