Re: [O] Getting lots of Emacs crashes

2014-10-21 Thread Noah Slater
Thanks. I have done that now. They told me to upgrade my Emacs. I have
done so. We'll see what happens. :)

On 13 October 2014 17:54, Nicolas Goaziou  wrote:
> Hello,
>
> Noah Slater  writes:
>
>> Is there anything else I could provide that would help? It's still
>> happening to me occasionally.
>
> An ECM for the infloop could help. If it segfaults, however, it is
> probably outside of Lisp scope and you should report it to the Emacs
> development team.
>
>
> Regards,
>
> --
> Nicolas Goaziou



-- 
Noah Slater
https://twitter.com/nslater



Re: [O] Getting lots of Emacs crashes

2014-10-13 Thread Noah Slater
Is there anything else I could provide that would help? It's still
happening to me occasionally.

On 5 October 2014 20:43, Noah Slater  wrote:
> Using Org version: release_8.3beta-38-gbaa2c5
>
> $ emacs --version
>
> GNU Emacs 24.4.50.1
>
> $ emacs --debug-init
>
> Fatal error 11: Segmentation fault/usr/local/bin/emacs: line 2: 18940
> Abort trap: 6
> /usr/local/Cellar/emacs/HEAD/Emacs.app/Contents/MacOS/Emacs -nw "$@"
>
> (Here I ran org-agenda, and it segfaulted.)
>
> I tried the above command again, and Emacs does not segfault. However,
> this time, I go to mark an Org item as done, and Emacs uses up 100%
> CPU.
>
> So I try this again, but I use dtruss -p PID to get a trace.
>
> What I do here is that I open Emacs, set the trace running, then open
> the agenda, move to the item, press "t" to bring up the change state
> menu, then hit "d" for DONE.
>
> That's when Emacs hangs, and this is the trace from pressing "d":
>
> stat64("/var/run/random-seed\0", 0x7FFF5FBFA690, 0x1015661C8) = -1 Err#2
> symlink("nsla...@air.fritz.box.19297\0",
> "/Users/nslater/Documents/Org/.#Tech.org\0") = 0 0
> write_nocancel(0x4, "\033[39d\033[?25lTODO state changed to
> \033[1m\033[38;5;28mDONE\033[0m\033[39;49m\033[K\033[24;3H\033[?12l\033[?25h\033[?12;25h\0",
> 0x5E) = 94 0
> select(0x5, 0x7FFF5FBFE1A0, 0x7FFF5FBFE120, 0x0, 0x7FFF5FBFDDF0) = -1 Err#4
> sigreturn(0x7FFF5FBFDD30, 0x1E, 0x7FFF5FBFDD30) = 0 Err#-2
> __pthread_canceled(0x0, 0x7FFF5FBFE1A0, 0x7FFF5FBFE120) = -1 Err#22
> ioctl(0x4, 0x4004667F, 0x7FFF5FBFCADC) = 0 0
> read(0x4, "d\b\0", 0x1) = 1 0
> ioctl(0x4, 0x4004667F, 0x7FFF5FBFCADC) = 0 0
> ioctl(0x4, 0x4004667F, 0x7FFF5FBFCADC) = 0 0
> stat64("/Users/nslater/Documents/Org/Tech.org\0", 0x7FFF5FBFC6D8,
> 0x100522438) = 0 0
> gettimeofday(0x7FFF5FBFD188, 0x0, 0x0) = 1412534490 0
> write_nocancel(0x4,
> "\033[39;23H\033[?25l\033[1m\033[91mTODO\033[0m\033[39;49m\033[24;3H\033[?12l\033[?25h\033[?12;25h#\0",
> 0x43) = 67 0
> gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534492 0
> gettimeofday(0x7FFF5FBFD328, 0x0, 0x0) = 1412534494 0
> gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534504 0
> gettimeofday(0x7FFF5FBFD388, 0x0, 0xE0E4) = 1412534505 0
> gettimeofday(0x7FFF5FBFD388, 0x0, 0xE0E4) = 1412534507 0
> gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534515 0
> gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534523 0
> gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534528 0
> gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534531 0
> gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534539 0
> gettimeofday(0x7FFF5FBFD388, 0x0, 0xE0E4) = 1412534540 0
> gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534542 0
>
> And then just gettimeofday messages forever.
>
> Any clue?
>
> On 1 September 2014 22:06, Noah Slater  wrote:
>> Hello,
>>
>> I'm getting a lot of Emacs crashes recently using Org. Is there any
>> way I can help to debug why this is happening?
>>
>> Thanks,
>>
>> --
>> Noah Slater
>> https://twitter.com/nslater
>
>
>
> --
> Noah Slater
> https://twitter.com/nslater



-- 
Noah Slater
https://twitter.com/nslater



Re: [O] Getting lots of Emacs crashes

2014-10-05 Thread Noah Slater
Using Org version: release_8.3beta-38-gbaa2c5

$ emacs --version

GNU Emacs 24.4.50.1

$ emacs --debug-init

Fatal error 11: Segmentation fault/usr/local/bin/emacs: line 2: 18940
Abort trap: 6
/usr/local/Cellar/emacs/HEAD/Emacs.app/Contents/MacOS/Emacs -nw "$@"

(Here I ran org-agenda, and it segfaulted.)

I tried the above command again, and Emacs does not segfault. However,
this time, I go to mark an Org item as done, and Emacs uses up 100%
CPU.

So I try this again, but I use dtruss -p PID to get a trace.

What I do here is that I open Emacs, set the trace running, then open
the agenda, move to the item, press "t" to bring up the change state
menu, then hit "d" for DONE.

That's when Emacs hangs, and this is the trace from pressing "d":

stat64("/var/run/random-seed\0", 0x7FFF5FBFA690, 0x1015661C8) = -1 Err#2
symlink("nsla...@air.fritz.box.19297\0",
"/Users/nslater/Documents/Org/.#Tech.org\0") = 0 0
write_nocancel(0x4, "\033[39d\033[?25lTODO state changed to
\033[1m\033[38;5;28mDONE\033[0m\033[39;49m\033[K\033[24;3H\033[?12l\033[?25h\033[?12;25h\0",
0x5E) = 94 0
select(0x5, 0x7FFF5FBFE1A0, 0x7FFF5FBFE120, 0x0, 0x7FFF5FBFDDF0) = -1 Err#4
sigreturn(0x7FFF5FBFDD30, 0x1E, 0x7FFF5FBFDD30) = 0 Err#-2
__pthread_canceled(0x0, 0x7FFF5FBFE1A0, 0x7FFF5FBFE120) = -1 Err#22
ioctl(0x4, 0x4004667F, 0x7FFF5FBFCADC) = 0 0
read(0x4, "d\b\0", 0x1) = 1 0
ioctl(0x4, 0x4004667F, 0x7FFF5FBFCADC) = 0 0
ioctl(0x4, 0x4004667F, 0x7FFF5FBFCADC) = 0 0
stat64("/Users/nslater/Documents/Org/Tech.org\0", 0x7FFF5FBFC6D8,
0x100522438) = 0 0
gettimeofday(0x7FFF5FBFD188, 0x0, 0x0) = 1412534490 0
write_nocancel(0x4,
"\033[39;23H\033[?25l\033[1m\033[91mTODO\033[0m\033[39;49m\033[24;3H\033[?12l\033[?25h\033[?12;25h#\0",
0x43) = 67 0
gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534492 0
gettimeofday(0x7FFF5FBFD328, 0x0, 0x0) = 1412534494 0
gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534504 0
gettimeofday(0x7FFF5FBFD388, 0x0, 0xE0E4) = 1412534505 0
gettimeofday(0x7FFF5FBFD388, 0x0, 0xE0E4) = 1412534507 0
gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534515 0
gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534523 0
gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534528 0
gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534531 0
gettimeofday(0x7FFF5FBFD388, 0x0, 0x0) = 1412534539 0
gettimeofday(0x7FFF5FBFD388, 0x0, 0xE0E4) = 1412534540 0
gettimeofday(0x7FFF5FBFD328, 0x0, 0xE0E0) = 1412534542 0

And then just gettimeofday messages forever.

Any clue?

On 1 September 2014 22:06, Noah Slater  wrote:
> Hello,
>
> I'm getting a lot of Emacs crashes recently using Org. Is there any
> way I can help to debug why this is happening?
>
> Thanks,
>
> --
> Noah Slater
> https://twitter.com/nslater



-- 
Noah Slater
https://twitter.com/nslater



[O] Clock start time is gone

2014-09-07 Thread Noah Slater
Hello,

I'm moving point over a habit in the agenda, clocking on with I,
switching buffer a few times, then switching back and hitting O.

Occasionally, I get a "Clock start time is gone" message. I just got
one now. If I go to the node, I see this:

:LOGBOOK:
CLOCK: [2014-09-07 Sun 19:41]
- State "DONE"   from "TODO"   [2014-09-01 Mon 22:46]
CLOCK: [2014-09-01 Mon 22:01]--[2014-09-01 Mon 22:46] =>  0:45
...

So this doesn't make any sense. The clock start time is right there!

Any idea?

Thanks,

-- 
Noah Slater
https://twitter.com/nslater



Re: [O] Command to open up any agenda file?

2014-09-02 Thread Noah Slater
Kyle,

Ooh, thanks! Any way to get it so I don't have to TAB complete the
leading path? Sort of how like org-iswitchb lets me just type in "Fo"
and then tab complete to "Foo.org" without
"/Users/nslater/Documents/Org" or whatever being prepended?


On 1 September 2014 22:58, Kyle Meyer  wrote:
> Kyle Meyer  wrote:
> [...]
>> I don't know of any Org function that does this either (and, as
>> suggested, I prefer projectile for this), but if you just want a single
>> function, I think it could be as simple as this:
>>
>> #+begin_src elisp
>>   (defun find-org-agenda-file (file)
>> (interactive (list (org-completing-read "Agenda file: " 
>> (org-agenda-files
>> (find-file file))
>> #+end_src
>
> Oops, I'd actually change that to this (although the interactive
> behavior is the same).
>
> #+begin_src elisp
>   (defun find-org-agenda-file ()
> (interactive)
> (find-file (org-completing-read "Agenda file: " (org-agenda-files
> #+end_src



-- 
Noah Slater
https://twitter.com/nslater



[O] Sort habits in agenda view

2014-09-01 Thread Noah Slater
Hello,

I have quite a few habits, spread across quite a few agenda files. But
they're shown in some sort of order in the agenda view which looks
like habits I am doing worse with are at the top.

I suppose that makes sense for some people. But what I'd really like
to be able to do is chunk the habits by category (in my case:
categories are derived from filenames).

How habits are then ordered *within the category chunk* is another
question. It would be nice to be able to select from "in the order
they appear in the file" and "smart sorting based on history of
habit".

Can someone help me with this?

Thanks,

-- 
Noah Slater
https://twitter.com/nslater



[O] Getting lots of Emacs crashes

2014-09-01 Thread Noah Slater
Hello,

I'm getting a lot of Emacs crashes recently using Org. Is there any
way I can help to debug why this is happening?

Thanks,

-- 
Noah Slater
https://twitter.com/nslater



[O] Command to open up any agenda file?

2014-09-01 Thread Noah Slater
Hello,

I quite like C-c b (org-iswitchb) but it only works if the file is
already open. What I really want is a command that lets me tab
complete any agenda file at all. Does such a thing exist? I couldn't
find it in the docs.

Thanks!

-- 
Noah Slater
https://twitter.com/nslater



[O] Agenda filtering by category does not work for habits

2014-08-31 Thread Noah Slater
Hello,

In my default agenda view, I have several habits displayed using the
standard built in habits module.

If I move to a habit and try to the the "<" command, which should
restrict by category (in this case, filename) nothing happens. I get
"No category at point".

I have tried manually setting the category in the file, and the same
thing happens.

Two questions:

1) Is this a bug? How do I fix it?

2) Is there a way to filter the agenda by category with a prompt,
instead of having to move to a point? I'd like to do it like a tag,
where I can hit a key, start typing the name of a category, tab to
complete, hit enter, and have the agenda filtered.

Thank you,

-- 
Noah Slater
https://twitter.com/nslater



[O] Customising colour of heading properties

2014-08-30 Thread Noah Slater
Hello,

Let's say I have this:

*** TODO Org tidy-up
SCHEDULED: <2014-08-22 Fri .+1d/2d>
:LOGBOOK:...
:PROPERTIES:...

Now, in my relatively default configuration "Org tidy-up" is the same
face as everything that appears after it.

Is there any way to make the SCHEDULED, LOGBOOK, and PROPERTIES bits a
different face? (In this case, to make it grey, or less distracting.)

I'd like that if there's actual textual content in the node, after
PROPERTIES, say, that that is the regular face.

Thanks,

-- 
Noah Slater
https://twitter.com/nslater



[O] org-checklist not working as advertised

2014-08-21 Thread Noah Slater
Hello,

I am following the instructions here:

http://stackoverflow.com/questions/20164918/

But I am configuring org-modules to use the checklist module.

Except it doesn't work.

I've verified that my config has been updated to show that the
checklist module should be loaded.

How do I debug this problem?

Thanks,

-- 
Noah Slater
https://twitter.com/nslater



Re: [O] Marking items done in the past

2014-08-21 Thread Noah Slater
I have posted this to StackOverflow, if someone wants to grab the karma:

http://stackoverflow.com/questions/25437069/

On 18 August 2014 02:52, Noah Slater  wrote:
> Hello,
>
> I have a number of habits set up that I regularly fill in the day
> after the activity was done. Is there a way to mark an item as done
> (in a way that hooks into the habits stuff) but for a day in the past?
>
> So instead of doing C-c C-t d (I have "d" set up as "DONE") I could
> get a prompt which asked me for a date.
>
> Something like that anyway.
>
> Thanks,
>
> --
> Noah Slater
> https://twitter.com/nslater



-- 
Noah Slater
https://twitter.com/nslater



[O] Marking items done in the past

2014-08-17 Thread Noah Slater
Hello,

I have a number of habits set up that I regularly fill in the day
after the activity was done. Is there a way to mark an item as done
(in a way that hooks into the habits stuff) but for a day in the past?

So instead of doing C-c C-t d (I have "d" set up as "DONE") I could
get a prompt which asked me for a date.

Something like that anyway.

Thanks,

-- 
Noah Slater
https://twitter.com/nslater



[O] Problem with org-plot: (void-variable data-file)

2014-08-09 Thread Noah Slater
Hello,

I'm working through this:

https://www.gnu.org/software/emacs/manual/html_node/org/Org_002dPlot.html

Using ob-plot.el that comes with the org extras.

I created the demo table there, and I run org-plot/gnuplot, and I get:

Error running timer: (void-variable data-file)

Any clue?

Thanks,

Noah


[O] MobileOrg

2014-08-06 Thread Noah Slater
Hello folks,

Does anyone know what's happening to MobileOrg? It seems like the project
was taken over by a new maintainer and then subsequently abandoned.

I'd love to use MobileOrg, but I always feel wary about starting to use new
software which likely wont receive any updates.

Thanks,

Noah


Re: [O] Filtering org-clock-display

2014-08-05 Thread Noah Slater
Hello Bastien,

I can't get this to work.

(org-clock-display '(16)) -- this works fine!

(let ((org-clock-display-default-range 'thisweek))
  (org-clock-display))

^ This however just runs org-clock-display for all time without a prompt.

I have updated to HEAD and ran `make`.


On 28 July 2014 17:45, Bastien  wrote:

> Hi Noah,
>
> Noah Slater  writes:
>
> > Can I pass in the range when calling it from a function?
>
> Not directly.
>
> (org-clock-display '(16)) will interactively prompt for a range.
>
> (let ((org-clock-display-default-range 'thisweek))
>   (org-clock-display))
>
> will display the clock with the new option
> `org-clock-display-default-range' set to thisweek.
>
> HTH,
>
> --
>  Bastien
>


Re: [O] Filtering org-clock-display

2014-05-31 Thread Noah Slater
Works! Thanks!

Can I pass in the range when calling it from a function?

At the moment, I'm calling org-clock-display from a wrapper function that
does some other things. It would be cool to configure a default range when
calling it in that function.


On 31 May 2014 16:48, Bastien  wrote:

> Noah Slater  writes:
>
> > I'm getting an error on HEAD now:
>
> Please run `make' or `make autoloads'.
>
> See http://orgmode.org/manual/Installation.html
>
> --
>  Bastien
>


Re: [O] Filtering org-clock-display

2014-05-31 Thread Noah Slater
I'm getting an error on HEAD now:

Debugger entered--Lisp error: (void-function org-add-props)
  (org-add-props "WARNING: No org-loaddefs.el file could be found from
where org.el is loaded." nil (quote face) (quote org-warning))
  (message (org-add-props "WARNING: No org-loaddefs.el file could be found
from where org.el is loaded." nil (quote face) (quote org-warning)))
  (condition-case nil (load (concat (file-name-directory load-file-name)
"org-loaddefs.el") nil t t t) (error (message (org-add-props "WARNING: No
org-loaddefs.el file could be found from where org.el is loaded." nil (qu$
  (or (equal this-command (quote eval-buffer)) (condition-case nil (load
(concat (file-name-directory load-file-name) "org-loaddefs.el") nil t t t)
(error (message (org-add-props "WARNING: No org-loaddefs.el file could b$
  eval-buffer(# nil
"/Users/nslater/.emacs.d/vendor/org-mode/lisp/org.el" nil t)  ; Reading at
buffer position 3681

load-with-code-conversion("/Users/nslater/.emacs.d/vendor/org-mode/lisp/org.el"
"/Users/nslater/.emacs.d/vendor/org-mode/lisp/org.el" nil t)
  require(org)
  eval-buffer(# nil
"/Users/nslater/.emacs.d/lisp/init-org.el" nil t)  ; Reading at buffer
position 127
  load-with-code-conversion("/Users/nslater/.emacs.d/lisp/init-org.el"
"/Users/nslater/.emacs.d/lisp/init-org.el" nil t)
  require(init-org)
  eval-buffer(# nil "/Users/nslater/.emacs.d/init.el" nil
t)  ; Reading at buffer position 2043
  load-with-code-conversion("/Users/nslater/.emacs.d/init.el"
"/Users/nslater/.emacs.d/init.el" t t)
  load("/Users/nslater/.emacs.d/init" t t)
  #[0 "^H\205\262^@ \306=\203^Q^@\307^H\310Q\202;^@
\311=\204^^^@\307^H\312Q\202;^@\313\307\314\315#\203*^@\316\202;^@\313\307\314\317#\203:^@\320\nB^R\321\202;^@\316\322^S\323^A\322\211#\210^K\322=\203a^@\324\325\32$
  command-line()
  normal-top-level()



On 30 May 2014 14:15, Bastien  wrote:

> Hi Noah,
>
> Noah Slater  writes:
>
> > That's pretty cool. Any reason it doesn't use the same syntax as the
> > :tstart param though?
>
> I first want to see if the new feature is useful before adding up more
> subfeatures.  So let's wait until 8.3 is released and see if (more)
> people want more flexibility here.  In the meantime, I think it makes
> sense to offer the predefined ranges that we can use in org clock
> tables.
>
> > This breaks a function I had written (and perhaps other people's
> > functions).
>
> This is now fixed, thanks,
>
> --
>  Bastien
>


Re: [O] Filtering org-clock-display

2014-05-26 Thread Noah Slater
Aha! Sorry, I hadn't updated my checkout to HEAD.

I see that when I run that command now, I get a prompt asking me for
"Range" with the following options:

lastmonth lastweek lastyear thismonth
thisweek thisyear today yesterday

And the new doc:

With one universal prefix argument, show the total time for
today.  With two universal prefix arguments, show the total time
for a custom range, entered at the prompt.  With three universal
prefix arguments, show the total time in the echo area.

That's pretty cool. Any reason it doesn't use the same syntax as the
:tstart param though?

This breaks a function I had written (and perhaps other people's functions).

To replicate this breakage, I wrote this function:

(defun clock-display-test ()
  (interactive)
  (org-clock-display))

Before this change, that would successfully call org-clock-display. Now it
displays this error in *Messages*:

clock-display-test: Wrong number of arguments: (lambda (arg) "Show subtree
times in the entire buffer.

With one universal prefix argument, show the total time for
today.  With two universal prefix arguments, show the total time
for a custom range, entered at the prompt.  With three universal
prefix arguments, show the total time in the echo area.

Use \\[org-clock-remove-overlays] to remove the subtree times."
(interactive "P") (org-clock-remove-overlays) (let* ((todayp (equal arg
(quote (4 (customp (equal arg (quote (16 (prop (cond (todayp
:org-clock-minutes-today) (customp :org-clock-minutes-custom) (t
:org-clock-minutes))) time h m p) (cond (todayp (org-clock-sum-today))
(customp (org-clock-sum-custom)) (t (org-clock-sum))) (if (eq arg (quote
(64))) nil (save-excursion (goto-char (point-min)) (while (or (and (equal
(setq p (point)) (point-min)) (get-text-property p prop)) (setq p
(next-single-property-change (point) prop))) (goto-char p) (if (setq time
(get-text-property p prop)) (progn (org-clock-put-overlay time (setq h
(/ org-clock-file-total-minutes 60) m (- org-clock-file-total-minutes (* 60
h))) (if org-remove-highlights-with-change (progn (org-add-hook (quote
before-change-functions) (quote org-clock-remove-overlays) nil (quote
local)) (message (concat (format "Total file time%s: " (cond (todayp "
for today") (customp " (custom)") (t ""))) (org-minutes-to-clocksum-string
org-clock-file-total-minutes) " (%d hours and %d minutes)") h m))), 0

That doesn't look right to me. Should an error be printing out all that
stuff like that?

How should I change my function to call org-clock-display? Can I pass in
the range as an argument somehow?

Does it make sense for this function to behave like it used to if you just
call it like (org-clock-display) with no other arguments? (i.e. Make this
great new functionality backwards compatible, and off-by-default.)



On 26 May 2014 07:14, Bastien  wrote:

> Hi Noah,
>
> Noah Slater  writes:
>
> > How do I configure the filtering?
>
> What filtering?
>
> Please re-read the whole thread (where I mention that we *could* have
> an option for the default filtering option).  Also put more context in
> your questions -- such terse sentences makes me feel like I'm just an
> answering machine.
>
> Thanks,
>
> --
>  Bastien
>


Re: [O] Filtering org-clock-display

2014-05-25 Thread Noah Slater
On 25 May 2014 07:26, Bastien  wrote:

> Hi Noah,
>
> Noah Slater  writes:
>
> > As for the rest, please try C-u C-u C-c C-x C-d from master.
> >
> > We can enhance it by having an option setting the default custom
> > range for such display, but going further would be too much.
> >
> >
> > What does this do? (What changed?) Does it let me filter the display
> > by time period?
>
> Yes -- try it, you'll see.


How do I configure the filtering?


Re: [O] How can you sort an Org clock table?

2014-05-24 Thread Noah Slater
Here's a broken example:

#+BEGIN: clocktable :maxlevel 2 :link :scope file :sort (2 . ?T)
#+END:

* A
CLOCK: [2014-05-24 Sat 10:00]--[2014-05-24 Sat 11:00] =>  1:00
* B
CLOCK: [2014-05-24 Sat 11:00]--[2014-05-24 Sat 12:30] =>  1:30
* C
CLOCK: [2014-05-24 Sat 12:30]--[2014-05-24 Sat 15:00] =>  2:30

If you run C-c C-c on the clocktable, it will update, but the sorting is
wrong. It should be in reverse order because it's "T" and not "t".

Now: remove ":link" and try again. The sorting works!


On 20 April 2014 12:22, Bastien  wrote:

> Noah Slater  writes:
>
> > If you add ":link" to the BEGIN blog, the sorting doesn't appear to
> > kick in. Bug, I expect.
>
> Please provide a reproducible example.
>
> --
>  Bastien
>


Re: [O] Filtering org-clock-display

2014-05-24 Thread Noah Slater
On 20 April 2014 15:18, Bastien  wrote:

> Noah Slater  writes:
>
> > Note: sorting the clock table doesn't work very well. I want each
> > level to be sorted recursively.
>
> Yeah, me too -- if you can work on enhancing how the :sort parameters
> is handled for clocktables, that'd be great.
>

Okay, I'll consider that, thanks.


> As for the rest, please try C-u C-u C-c C-x C-d from master.
>
> We can enhance it by having an option setting the default custom range
> for such display, but going further would be too much.
>

What does this do? (What changed?) Does it let me filter the display by
time period?

Sorry it took me so long to respond.


Re: [O] Problem with org-clock-display

2014-04-20 Thread Noah Slater
I guess Sebastien's point is that without a custom face, the only way to
turn the dots off is to set the shadow face to be hidden. But that could
have unintended side-effects. So if there's no custom face, then there
should be a config so that people can turn it off without having to deal
with those side-effects.


On 20 April 2014 14:30, Bastien  wrote:

>
>
> Hi Sébastien,
>
> Sebastien Vauban 
> writes:
>
> > If you don't like to add a face, then I'd also favor the possibility to
> > turn off the display of dots -- without having to touch the shadow face

Re: [O] Filtering org-clock-display

2014-04-20 Thread Noah Slater
I suppose, in a way, blurring the line between org-clock-display and
clocktables is what I am trying to do. I think org-clock-display is much
more useful and easier to use. (Though I don't doubt that clocktables work
better for some folks.)

I started out with clocktables, but I found it clumsy to be checking my
clock times in one location, and then clocking times in another location.
This is true even when the clocktable is in the same file as the nodes.

Bit of context: I'm clock times for my own benefit, not for a client. My
primary concern is time allocation. i.e. Making sure that each of the areas
I clock under receives an appropriate amount of attention.

Old workflow:

- Jump to the top of the file or to the index file with my clocktable
- Refresh the clocktable
- Sort the clocktable by time
- Scan the table for the next area that needs my attention
- Either activate the link or manually find the corresponding node
- Clock on to that node

Note: sorting the clock table doesn't work very well. I want each level to
be sorted recursively.

New (and preferred) workflow:

- Sort nodes recursively (thanks Sacha!)
- org-overview
- org-clock-display
- Drill down into the area I that needs the most attention
- Clock on to that node

In this second workflow, notice that:

- Sorting works (because it can be done recursively, either manually as you
expand each node, or with a recursive function)
- The data (i.e. clocked time) is available *in situ* as I navigate around
the file

Wrt the laziness remark :) I am happy to write patches.



On 20 April 2014 12:26, Bastien  wrote:

> Noah Slater  writes:
>
> > What do others think about this idea?
>
> I welcome feedback on this but let's take care not to overengineer
> this: if we add to many features to `org-clock-display', it will blur
> the line between this temporary display and clock tables.
>
> I would first try using temporary clock tables then see if the feature
> is still need for org-clock-display.
>
> Just my 2cts of lets-pretend-laziness-is-carefulness, of course,
>
> --
>  Bastien
>


Re: [O] Sorting nodes by clocked time

2014-04-20 Thread Noah Slater
Thanks Sacha, that's great!


On 18 April 2014 02:09, Sacha Chua  wrote:

> Noah Slater  writes:
>
> Hello, Noah, all!
>
> > Using this a bit, it doesn't quite do what I want it to do.
> > Is there any way to sort recursively?
> > At the moment, calling org-sort-entries on the whole buffer only sorts
> the
> > top level nodes.
>
> Here's a rather inefficient hack (but hey, it seems to work =) ):
>
> (defun sacha/org-sort-recursively (type)
> (org-map-entries
>  (lambda ()
>  (condition-case nil
>  (org-sort-entries nil type)
>  (error nil)
>
> Call with M-: (sacha/org-sort-recursively ?K) or merge the code into
> your own.
>
> Sacha
>
>
>


Re: [O] How can you sort an Org clock table?

2014-04-20 Thread Noah Slater
Hmm. I'm not sure this is working.

If you add ":link" to the BEGIN blog, the sorting doesn't appear to kick
in. Bug, I expect.

If I remove ":link" I can see that some sorting is taking place. But it's
not what I expect.

With "?t" I am getting this sort order:

- (empty cell)
- "4:02"
- "1d 5:15"
- "1d 9:08"
- "14:19"

With "?T" I am getting this sort order:

- "14:19"
- "1d 9:08"
- "1d 5:15"
- (empty cell)

Note that this isn't the reverse order.



On 16 April 2014 18:26, Bastien  wrote:

> Hi Noah,
>
> from master, you can now use a :sort parameter in clocktable
> to sort a column.  For example:
>
> #+BEGIN: clocktable :maxlevel 2 :scope file :sort (2 . ?t)
> #+CAPTION: Clock summary at [2014-04-16 mer. 18:12]
> | Headline |   Time |
> |--+|
> | *Total time* | *0:34* |
> |--+|
> | STRT abc |   0:15 |
> | STRT def |   0:19 |
> #+END:
>
> The (2 . ?t) means: "sort the second column by time."
>
> Let me know if it works for you,
>
> --
>  Bastien
>


Re: [O] Possible to always show items in clocktable?

2014-04-20 Thread Noah Slater
Thanks for the help, folks!


On 17 April 2014 10:38, Bastien  wrote:

> Hi Noah,
>
> Noah Slater  writes:
>
> > My intention here is to highlight notes that have received no
> > attention. I want them to show up on my report so that I can see that
> > I need to work on them.*
>
> You can create a dynamic block that does this:
>
> - call org-clock-sum to reset clock sums in the buffer
> - scans for :org-clock-minutes in all headlines
> - create a table from headlines that have no such property
>
> This way you can even add more information in the table.
>
> Happy hacking :)
>
> --
>  Bastien
>


[O] Filtering org-clock-display

2014-04-20 Thread Noah Slater
At the start of a clocktable, I can specify a few parameters that allow me
to filter/restrict the time ranges used for display.

For instance, this only shows me clocks from the past 30 days:

:tstart "<-30d>"

What I'd like to do is do this for org-clock-display too.

Perhaps I could specify it at the file level, like:

#+CLOCKPROPS:

Or perhaps this is something I could specify at the node level?

Either way, this would allow me to specify things like :tstart and I could
therefor have my clock display only show me times clocked in the previous
30 days (or whatever).

What do others think about this idea?


Re: [O] Org clock cookies

2014-04-20 Thread Noah Slater
Okay, yep. I'm happy with the org-clock-display stuff for now. Thanks for
your responses on this thread.


On 17 April 2014 12:34, Bastien  wrote:

> Hi Noah,
>
> Noah Slater  writes:
>
> > "[01:10]" would mean I had spent 1hr 10m on this node, and all
> > subnodes. Similarly, "[2d 01:10]" would mean I had spent 2d, 1hr, and
> > 10m on this node, and all subnodes.
>
> We can make `org-clock-display' display effort too.
>
> Since `org-clock-display' has been fixed, can you first check
> if the current behavior better fits your needs?
>
> > I've already started hacking on this, and can share the patch if it's
> > something you're interested in reviewing/integrating.
>
> I'm reluctant adding more cookies because they add temporary
> content to the headline.
>
> --
>  Bastien
>


Re: [O] Problem with org-clock-display

2014-04-20 Thread Noah Slater
Hmm. Okay. It might be a good idea to have org-clock-shadow or something,
so it can be customised separately. I might want to hide the dots, but
still have shadow as a useable face.


On 20 April 2014 11:02, Bastien  wrote:

> Noah Slater  writes:
>
> > Can the dots use a custom face? I'd like to customise the colour (by
> > perhaps turning it off).
>
> It uses the shadow face.
>
> M-x customize-face RET shadow RET
>
> --
>  Bastien
>


Re: [O] Problem with org-clock-display

2014-04-20 Thread Noah Slater
Can the dots use a custom face? I'd like to customise the colour (by
perhaps turning it off).


On 19 April 2014 07:18, Bastien  wrote:

>
>
> Hi,
>
> Sebastien Vauban 
> writes:
>
> > See http://screencast.com/t/fmR5TJfa what happens to the size of the
> > titles, when the overlay is applied or removed.
>
> Fixed, although I think this bug was present before I tweaked this
> function.
>
> > Also, I did prefer (unlike Noah) when there were no "reading dots". Is
> > there a way to remove them, or at least to get them in a very light
> > gray, for example?
>
> I reinstalled the dots (different ones) with a shadow background:
> having the dots is good to match the headline visually.
>
> --
>  Bastien
>
>
>


Re: [O] Problem with org-clock-display

2014-04-18 Thread Noah Slater
On 18 April 2014 17:03, Sebastien Vauban  wrote:

>
> Also, I did prefer (unlike Noah) when there were no "reading dots". Is
> there a way to remove them, or at least to get them in a very light
> gray, for example?


They are completely removed for me.


Re: [O] Sorting nodes by clocked time

2014-04-17 Thread Noah Slater
Using this a bit, it doesn't quite do what I want it to do.

Is there any way to sort recursively?

At the moment, calling org-sort-entries on the whole buffer only sorts the
top level nodes.


On 17 April 2014 14:45, Noah Slater  wrote:

> Actually, I renamed this my-overview, added (org-clock-display), and bound
> it to C-c o. Very swish.
>
>
> On 17 April 2014 14:34, Noah Slater  wrote:
>
>> I came up with this:
>>
>> (defun my-sort-buffer ()
>>   (interactive)
>>   (mark-whole-buffer)
>>   (org-sort-entries t ?K)
>>   (org-overview))
>>
>> Seems to do what I want. This is most excellent. Making some great
>> progress here. Thanks. And I will send you a token of my gratitude at the
>> end of the month, when I have funds available.
>>
>>
>>
>>
>> On 17 April 2014 14:26, Bastien  wrote:
>>
>>> Noah Slater  writes:
>>>
>>> > Okay, wow. Thanks for writing that. Do you have a Gittip or
>>> > something? I would love to support your OSS work in some way or
>>> > otherwise show my gratitude beyond words in an email!
>>>
>>> You can use my paypal account: bastien.gue...@free.fr
>>>
>>> Thanks!
>>>
>>> > Anyway. I tried your function and it works. But afterwards, the node
>>> > is completely folded. So I added (org-cycle) to the sequence of
>>> > functions inside save-restriction. That seems to work, but I'm no
>>> > elisp/Org pro. Is this how you would have done it?
>>>
>>> Well, quite long explanations would follow... I'll let you discover by
>>> reading the code and by trial-and-error for now, need to run!
>>>
>>> --
>>>  Bastien
>>>
>>
>>
>


Re: [O] Sorting nodes by clocked time

2014-04-17 Thread Noah Slater
Actually, I renamed this my-overview, added (org-clock-display), and bound
it to C-c o. Very swish.


On 17 April 2014 14:34, Noah Slater  wrote:

> I came up with this:
>
> (defun my-sort-buffer ()
>   (interactive)
>   (mark-whole-buffer)
>   (org-sort-entries t ?K)
>   (org-overview))
>
> Seems to do what I want. This is most excellent. Making some great
> progress here. Thanks. And I will send you a token of my gratitude at the
> end of the month, when I have funds available.
>
>
>
>
> On 17 April 2014 14:26, Bastien  wrote:
>
>> Noah Slater  writes:
>>
>> > Okay, wow. Thanks for writing that. Do you have a Gittip or
>> > something? I would love to support your OSS work in some way or
>> > otherwise show my gratitude beyond words in an email!
>>
>> You can use my paypal account: bastien.gue...@free.fr
>>
>> Thanks!
>>
>> > Anyway. I tried your function and it works. But afterwards, the node
>> > is completely folded. So I added (org-cycle) to the sequence of
>> > functions inside save-restriction. That seems to work, but I'm no
>> > elisp/Org pro. Is this how you would have done it?
>>
>> Well, quite long explanations would follow... I'll let you discover by
>> reading the code and by trial-and-error for now, need to run!
>>
>> --
>>  Bastien
>>
>
>


Re: [O] Sorting nodes by clocked time

2014-04-17 Thread Noah Slater
I came up with this:

(defun my-sort-buffer ()
  (interactive)
  (mark-whole-buffer)
  (org-sort-entries t ?K)
  (org-overview))

Seems to do what I want. This is most excellent. Making some great progress
here. Thanks. And I will send you a token of my gratitude at the end of the
month, when I have funds available.




On 17 April 2014 14:26, Bastien  wrote:

> Noah Slater  writes:
>
> > Okay, wow. Thanks for writing that. Do you have a Gittip or
> > something? I would love to support your OSS work in some way or
> > otherwise show my gratitude beyond words in an email!
>
> You can use my paypal account: bastien.gue...@free.fr
>
> Thanks!
>
> > Anyway. I tried your function and it works. But afterwards, the node
> > is completely folded. So I added (org-cycle) to the sequence of
> > functions inside save-restriction. That seems to work, but I'm no
> > elisp/Org pro. Is this how you would have done it?
>
> Well, quite long explanations would follow... I'll let you discover by
> reading the code and by trial-and-error for now, need to run!
>
> --
>  Bastien
>


Re: [O] Sorting nodes by clocked time

2014-04-17 Thread Noah Slater
Actually. What I want, I think, is a function that sorts the whole buffer
and then collapses all nodes.

I think your my-hide-all-drawers-in-current-subtree thing will take care of
collapsing all nodes. But I'm now on StackOverflow trying to work out how
to sort the whole buffer.


On 17 April 2014 14:02, Noah Slater  wrote:

> Okay, wow. Thanks for writing that. Do you have a Gittip or something? I
> would love to support your OSS work in some way or otherwise show my
> gratitude beyond words in an email!
>
> Anyway. I tried your function and it works. But afterwards, the node is
> completely folded. So I added (org-cycle) to the sequence of functions
> inside save-restriction. That seems to work, but I'm no elisp/Org pro. Is
> this how you would have done it?
>
>
> On 17 April 2014 13:55, Bastien  wrote:
>
>> Noah Slater  writes:
>>
>> > Okay, that seem to work.
>> >
>> > But I'm not able to get this work:
>> >
>> > (add-hook 'org-after-sorting-entries-or-items-hook
>> >   (lambda() (org-cycle-hide-drawers 'children)))
>> >
>> > After running the sort, all the LOGBOOK draws are still open.
>>
>> Try this:
>>
>> (defun my-hide-all-drawers-in-current-subtree ()
>>   "Hide all drawers in the current subtree."
>>   (save-restriction
>> (org-narrow-to-subtree)
>> (org-cycle-hide-drawers 'all)
>> (org-cycle-internal-local)))
>>
>> (add-hook 'org-after-sorting-entries-or-items-hook
>>   'my-hide-all-drawers-in-current-subtree)
>>
>> > I'm also thinking: even if this closes the logbook draws, all the
>> > nodes will be unfolded. But my node tree is quite large. Is it be
>> > possible to refold all the nodes after n-levels?
>> >
>> > So let's say I have:
>> >
>> > * Level 1
>> > ** Level 2
>> > *** Level 3
>> >
>> > If I move the point to Level 1 and sort, I'd like it fold all Level 2
>> > items, but leave Level 1 unfolded.
>>
>> You can fix the cycling through the hook above.
>>
>> HTH,
>>
>> --
>>  Bastien
>>
>
>


Re: [O] Sorting nodes by clocked time

2014-04-17 Thread Noah Slater
Oh, funny. I had already patched this locally. I picked "e" for "tim[e]".

Using your version, I get an error:

"sort: Wrong type argument: number-or-marker-p, (10426 . 10437)"

Any clue?

I tried to recompile everything under my .emacs.d (including org-mode), but
I still get the error.


On 17 April 2014 10:33, Bastien  wrote:

> Hi Noah,
>
> Noah Slater  writes:
>
> > Is there any way to sort a collection of siblings by the total
> > clocked time?
>
> Now there is in master: C-c ^ k on a headline.
>
> Thanks for this idea,
>
> --
>  Bastien
>


Re: [O] Sorting nodes by clocked time

2014-04-17 Thread Noah Slater
Okay, wow. Thanks for writing that. Do you have a Gittip or something? I
would love to support your OSS work in some way or otherwise show my
gratitude beyond words in an email!

Anyway. I tried your function and it works. But afterwards, the node is
completely folded. So I added (org-cycle) to the sequence of functions
inside save-restriction. That seems to work, but I'm no elisp/Org pro. Is
this how you would have done it?


On 17 April 2014 13:55, Bastien  wrote:

> Noah Slater  writes:
>
> > Okay, that seem to work.
> >
> > But I'm not able to get this work:
> >
> > (add-hook 'org-after-sorting-entries-or-items-hook
> >   (lambda() (org-cycle-hide-drawers 'children)))
> >
> > After running the sort, all the LOGBOOK draws are still open.
>
> Try this:
>
> (defun my-hide-all-drawers-in-current-subtree ()
>   "Hide all drawers in the current subtree."
>   (save-restriction
> (org-narrow-to-subtree)
> (org-cycle-hide-drawers 'all)
> (org-cycle-internal-local)))
>
> (add-hook 'org-after-sorting-entries-or-items-hook
>   'my-hide-all-drawers-in-current-subtree)
>
> > I'm also thinking: even if this closes the logbook draws, all the
> > nodes will be unfolded. But my node tree is quite large. Is it be
> > possible to refold all the nodes after n-levels?
> >
> > So let's say I have:
> >
> > * Level 1
> > ** Level 2
> > *** Level 3
> >
> > If I move the point to Level 1 and sort, I'd like it fold all Level 2
> > items, but leave Level 1 unfolded.
>
> You can fix the cycling through the hook above.
>
> HTH,
>
> --
>  Bastien
>


Re: [O] Problem with org-clock-display

2014-04-17 Thread Noah Slater
Ah, sorry.

So what I mean is, if you have a long list of lines like this:

* A5:10 ...
* B8:40 ...
* C2:50 ...

Then it is a bit tricky to see what time is clocked for, say, B.

It is easy above because there are only three nodes. But if you have 20
nodes, it gets tricky.

So my thinking was that previously the "" bits helped
to guide your eye across. But I am not so sure, you know. Because if you
have 20 of those in a row, it's not really helping much.

* A ... 5:10 ...
* B ... 8:40 ...
* C ... 2:50 ...

Again, this is easy when you just have three. But you have 20 in a row,
it's hard to follow.

So my idea was to use something like ln-line (thanks!) to show you where
you are. Then I can just navigate around the nodes, and it is obvious what
time matches up to what node.

Bit I'm wondering if you have any better ideas.

Or, given the readability problems, it makes sense to display the
"..." bits by default. (Though I am not sure that they are
actually much more readable.)

This is one of the reasons I suggested an alternative approach: do not
align the times to the right at all, just stick them right next to the node
titles, like so:

* Apple 5:10 ...
* Bananas 8:40 ...
* Carrots 2:50 ...

As you can see, the times wont line up then, but matching them to the node
titles is easy.


On 17 April 2014 13:43, Bastien  wrote:

> Noah Slater  writes:
>
> > Now I need to solve the problem of being able to tie the node to the
> > clock-display. (If there's a big list, then it's hard to visually
> > match them.)
>
> I'm not really sure what you mean by "tie the node to the clock-display".
>
> > I think I recall a minor mode that highlighted the current line your
> > point is on.
>
> M-x hl-line-mode RET
>
> > That would fix it. But then, it would be nice if that
> > worked with my mouse too.
> >
> > Any ideas?
> >
> > I think unless there's an obvious way to solve this, that it might
> > actually make sense to have the "..." bit visible by default, and
> > provide an option to turn it off for people who don't mind the way it
> > looks.
> >
> > Thoughts?
>
> The dots have been removed, so really not sure what we are talking
> about :)  But if you want to make the folding three dots "..." be
> displayed differently, that's hard -- and I don't think it's worth
> the time.
>
> --
>  Bastien
>


Re: [O] Problem with org-clock-display

2014-04-17 Thread Noah Slater
Huh, this is *very* cool. Thank you.

Now I need to solve the problem of being able to tie the node to the
clock-display. (If there's a big list, then it's hard to visually match
them.)

I think I recall a minor mode that highlighted the current line your point
is on. That would fix it. But then, it would be nice if that worked with my
mouse too.

Any ideas?

I think unless there's an obvious way to solve this, that it might actually
make sense to have the "..." bit visible by default, and provide an
option to turn it off for people who don't mind the way it looks.

Thoughts?


On 17 April 2014 13:12, Bastien  wrote:

> Hi,
>
> Noah Slater  writes:
>
> > I was wondering if the "" bit
> > can be hidden. Is there a font face to customise for this? I find it
> > distracting, especially with a big list of folded nodes.
>
> Check latest master: I removed the dots.
>
> > The only problem then is: how do I match the times up with the nodes.
> > I guess this is the problem I was trying to solve with the clock
> > cookies.
> >
> > One option would be to highlight the time with a new face when the
> > point is on a node. Not sure about this though.
> >
> > If the above is possible, then would it be possible to move that
> > "..." (after the clock total) to the left-hand side, so that it looks
> > like this:
> >
> > * Node...  02:10
>
> This cannot be easily achieved, if at all.
>
> > The only other thing I'd want to change is the alignment of the
> > times.
> >
> > So right now, we have:
> >
> > 2d 18:10
> > 7:30
> > 11:32
>
> From master, this should be aligned correctly now.
>
> > (For instance.)
> >
> > It would be great if these could be aligned so that:
> >
> > - The ":" ran down the middle (single column)
> > - The hours were zero padded, so it was "07" and not "7"
>
> Well, not possible.
>
> > - There was some padding for days
> >
> > i.e. If there are no days, you add the space necessary so that the
> > clock time aligns with other nodes that have days.
>
> Done.
>
> > As I say: I am more than happy to actually work on the patches
> > necessary to make these changes
>
> Yep -- please submit a patch for other changes you would like to
> make.  Read http://orgmode.org/worg/org-contribute.html twice to
> format the patches correctly :)
>
> --
>  Bastien
>


Re: [O] Sorting nodes by clocked time

2014-04-17 Thread Noah Slater
Okay, that seem to work.

But I'm not able to get this work:

(add-hook 'org-after-sorting-entries-or-items-hook
  (lambda() (org-cycle-hide-drawers 'children)))

After running the sort, all the LOGBOOK draws are still open.

I'm also thinking: even if this closes the logbook draws, all the nodes
will be unfolded. But my node tree is quite large. Is it be possible to
refold all the nodes after n-levels?

So let's say I have:

* Level 1
** Level 2
*** Level 3

If I move the point to Level 1 and sort, I'd like it fold all Level 2
items, but leave Level 1 unfolded.


On 17 April 2014 13:20, Bastien  wrote:

> Noah Slater  writes:
>
> > I'm still getting this error! :/
>
> Should be fixed in master.
>
> Otherwise use (setq debug-on-error t) and send the backtrace.
> Better to debug from an uncompiled version if that's possible.
>
> > Happy to provide any sort of debug/version/setup info you need.
> >
> > I'm on IRC as nslater in #org-mode, if that is more convenient for
> > you.
>
> I'm never on IRC :)
>
> > Thank you so much for the help!
>
> You're welcome,
>
> --
>  Bastien
>


Re: [O] Sorting nodes by clocked time

2014-04-17 Thread Noah Slater
I'm still getting this error! :/

Happy to provide any sort of debug/version/setup info you need.

I'm on IRC as nslater in #org-mode, if that is more convenient for you.

Thank you so much for the help!


On 17 April 2014 13:00, Bastien  wrote:

> Noah Slater  writes:
>
> > I guess not. How does one do that?
>
> M-x org-reload RET
>
> --
>  Bastien
>


Re: [O] Problem with org-clock-display

2014-04-17 Thread Noah Slater
Thanks for this!

I've seen your comments on the time cookie thread. But I will pull the
org-clock-display comments here.

So, I have your changes locally, and I have a few comments.

A folded node looks like this:

* Node 02:10 ...

I was wondering if the "" bit can
be hidden. Is there a font face to customise for this? I find it
distracting, especially with a big list of folded nodes.

The only problem then is: how do I match the times up with the nodes. I
guess this is the problem I was trying to solve with the clock cookies.

One option would be to highlight the time with a new face when the point is
on a node. Not sure about this though.

If the above is possible, then would it be possible to move that "..."
(after the clock total) to the left-hand side, so that it looks like this:

* Node...  02:10

i.e. What it normally looks like. Only with a "02:10" on the right hand
side.

The only other thing I'd want to change is the alignment of the times.

So right now, we have:

2d 18:10
7:30
11:32

(For instance.)

It would be great if these could be aligned so that:

- The ":" ran down the middle (single column)
- The hours were zero padded, so it was "07" and not "7"
- There was some padding for days

i.e. If there are no days, you add the space necessary so that the clock
time aligns with other nodes that have days.

Not sure how to calculate this. Perhaps it's possible to calculate the max
clock value before display, and pad everything to the width of that.

One radical alternative to all of the above:

Remove the "..." stuff. Don't align the times. Just stick
them right after the node text, like a cookie.

As I say: I am more than happy to actually work on the patches necessary to
make these changes


On 17 April 2014 10:22, Bastien  wrote:

> Hi Noah,
>
> Noah Slater  writes:
>
> > Note:
> >
> > - Times are indented like the nodes, meaning they don't line up. (I
> > presume this is intentional, but I find it annoying. Is there a way
> > to turn it off?)
>
> Fixed.
>
> > - Everything is highlighted with yellow. Is this intentional? Can I
> > turn it off?
>
> M-x customize-face RET org-clock-display RET
>
> I changed from yellow to gray.
>
> > - Why are some of the times blue and some white. Can I turn this off?
>
> Because the face inherited from the headline face.
> I changed it by specified a foreground.
>
> > - Why are some of the "..." bits visible (in blue) and invisible (in
> > white for the subnodes) and can I turn these off, or hide them
> > consistently?
> >
> > - Would there be any way to move the black "..." bit meaning "this
> > node can be expanded" to the very left, where it usually is, and then
> > hide the rest?
>
> The "..." folding indicator is always on the right, not sure what you
> mean.
>
> > - Why can't I edit node names when this is active?
>
> Because the display is temporary and uses overlays.
>
> --
>  Bastien
>


Re: [O] Sorting nodes by clocked time

2014-04-17 Thread Noah Slater
Also, something I was hoping to look at was that when I sort, it expand all
the nodes, including all of the :LOGBOOK: draws.

I find this very inconvenient, and probably will not use this feature
unless I can get it sorted.

It appears that the code is expanding the nodes and the draws to read the
clock times. But I'm wondering if this is possible without expanding
everything, or if it is possible to restore the state after the
calculations are done.

Is this an easy change? Would you be interested in a patch?


On 17 April 2014 12:39, Noah Slater  wrote:

> Oh, funny. I had already patched this locally. I picked "e" for "tim[e]".
>
> Using your version, I get an error:
>
> "sort: Wrong type argument: number-or-marker-p, (10426 . 10437)"
>
> Any clue?
>
> I tried to recompile everything under my .emacs.d (including org-mode),
> but I still get the error.
>
>
> On 17 April 2014 10:33, Bastien  wrote:
>
>> Hi Noah,
>>
>> Noah Slater  writes:
>>
>> > Is there any way to sort a collection of siblings by the total
>> > clocked time?
>>
>> Now there is in master: C-c ^ k on a headline.
>>
>> Thanks for this idea,
>>
>> --
>>  Bastien
>>
>
>


Re: [O] Sorting nodes by clocked time

2014-04-17 Thread Noah Slater
I guess not. How does one do that?


On 17 April 2014 12:55, Bastien  wrote:

> Noah Slater  writes:
>
> > Oh, funny. I had already patched this locally. I picked "e" for "tim
> > [e]".
> >
> > Using your version, I get an error:
> >
> > "sort: Wrong type argument: number-or-marker-p, (10426 . 10437)"
>
> I don't have this error.  Did you reload Org correctly?
>
> --
>  Bastien
>


Re: [O] Org clock cookies

2014-04-17 Thread Noah Slater
I should add: I'm doing this because I don't like the org-clock-display.

I have detailed this in another post, but in summary:

- It doesn't work very well with indent turned on (I have a sort of patch
for this)
- Alignment of the the numbers seems wrong
- It messes up the "..." when you fold a node
- Headlines are not editable

(I customised the font face after sending my previous email on this topic.)

Even if we manage to fix org-clock-display (and I am willing to help) I
think cookies feel very natural here also.

Not sure what to do about estimates.


On 17 April 2014 12:17, Noah Slater  wrote:

> I don't use estimates, so I hadn't thought about that.
>
> "[01:10]" would mean I had spent 1hr 10m on this node, and all subnodes.
> Similarly, "[2d 01:10]" would mean I had spent 2d, 1hr, and 10m on this
> node, and all subnodes.
>
> I've already started hacking on this, and can share the patch if it's
> something you're interested in reviewing/integrating.
>
>
> On 17 April 2014 10:35, Bastien  wrote:
>
>> Hi Noah,
>>
>> Noah Slater  writes:
>>
>> > Would it be possible to code a similar cookie ("[:]" to be expanded
>> > into "01:10" for example) that you could update with C-c C-c, or
>> > better yet, automatically!
>>
>> Would this [01:10] cookie mean that you spent one minute on ten
>> minutes of efforts?
>>
>> The question is more to give you a chance to convince me,
>> because while I find the idea quite appealing, I think we're
>> growing a bit too fat cookie-wise.
>>
>> --
>>  Bastien
>>
>
>


Re: [O] Org clock cookies

2014-04-17 Thread Noah Slater
I don't use estimates, so I hadn't thought about that.

"[01:10]" would mean I had spent 1hr 10m on this node, and all subnodes.
Similarly, "[2d 01:10]" would mean I had spent 2d, 1hr, and 10m on this
node, and all subnodes.

I've already started hacking on this, and can share the patch if it's
something you're interested in reviewing/integrating.


On 17 April 2014 10:35, Bastien  wrote:

> Hi Noah,
>
> Noah Slater  writes:
>
> > Would it be possible to code a similar cookie ("[:]" to be expanded
> > into "01:10" for example) that you could update with C-c C-c, or
> > better yet, automatically!
>
> Would this [01:10] cookie mean that you spent one minute on ten
> minutes of efforts?
>
> The question is more to give you a chance to convince me,
> because while I find the idea quite appealing, I think we're
> growing a bit too fat cookie-wise.
>
> --
>  Bastien
>


Re: [O] How can you sort an Org clock table?

2014-04-16 Thread Noah Slater
Thanks Bastien! I'll look into this and report back.


On 16 April 2014 18:26, Bastien  wrote:

> Hi Noah,
>
> from master, you can now use a :sort parameter in clocktable
> to sort a column.  For example:
>
> #+BEGIN: clocktable :maxlevel 2 :scope file :sort (2 . ?t)
> #+CAPTION: Clock summary at [2014-04-16 mer. 18:12]
> | Headline |   Time |
> |--+|
> | *Total time* | *0:34* |
> |--+|
> | STRT abc |   0:15 |
> | STRT def |   0:19 |
> #+END:
>
> The (2 . ?t) means: "sort the second column by time."
>
> Let me know if it works for you,
>
> --
>  Bastien
>


[O] Possible to always show items in clocktable?

2014-04-07 Thread Noah Slater
Hello,

I would like to my clocktable include a line for every node, regardless of
whether there is any time clocked, or whether the time clocked is 0:00.

I found :stepskip0 in the manual, but this does the opposite of what I want
to do. Which implies that what I want to do is the default. But it doesn't
seem that way.

My intention here is to highlight notes that have received no attention. I
want them to show up on my report so that I can see that I need to work on
them.

Thanks,

Noah


[O] Org clock cookies

2014-04-07 Thread Noah Slater
Hello,

I discovered you can use "[/]" and "[%]" as cookies and have them updated
as you complete subnodes. "[3/7]", or "[20%]" and so on.

Would it be possible to code a similar cookie ("[:]" to be expanded into
"01:10" for example) that you could update with C-c C-c, or better yet,
automatically!

Thanks,

Noah


[O] Sorting nodes by clocked time

2014-04-07 Thread Noah Slater
Hello,

Is there any way to sort a collection of siblings by the total clocked
time? If not, approximately how hard would this be for me to write?

Ideally, I could specify the scope of the clocked time, just like you can
do in a clocktable. Perhaps "last30" (days) would be my preferred default.

This feature would allow me to keep my node list sorted by how much time
has been spent on each area. Which would be a great feedback mechanism.

Thanks,

Noah


[O] Problem with org-clock-display

2014-04-07 Thread Noah Slater
I'm having some issues with org-clock-dosplay.

Screenshot here:

https://gist.github.com/nslater/10022848

Note:

- Times are indented like the nodes, meaning they don't line up. (I presume
this is intentional, but I find it annoying. Is there a way to turn it off?)

- Everything is highlighted with yellow. Is this intentional? Can I turn it
off?

- Why are some of the times blue and some white. Can I turn this off?

- Why are some of the "..." bits visible (in blue) and invisible (in white
for the subnodes) and can I turn these off, or hide them consistently?

- Would there be any way to move the black "..." bit meaning "this node can
be expanded" to the very left, where it usually is, and then hide the rest?

- Why can't I edit node names when this is active?

Thanks!

Noah


Re: [O] How can you sort an Org clock table?

2014-03-31 Thread Noah Slater
Okay thanks. If anyone else does know, I'd really appreciate it. Thanks! :)


On 31 March 2014 14:45, Nick Dokos  wrote:

> Noah Slater  writes:
>
> > Ah yes, I see that I have to move the point into the table cell. I was
> > trying with the table header. Slightly odd that. Means that it only
> > works on tables that aggregate clock times across multiple files,
> > where the times are put in the same cell. Can you replicate? If you do
> > a clocktable with the scope set to that file, then there's no way to
> > order the cells.
> >
> > How hard would it be to modify org-dblock-write do you think? In hours
> > work for someone familiar with elisp, but not the org codebase.
> >
>
> No idea - I have never used clocktables.
>
> > On 31 March 2014 03:06, Nick Dokos  wrote:
> >
> > Noah Slater  writes:
> >
> > > Yeah, tried that. Doesn't work! :(
> > >
> >
> > AFAICT, it works fine on your first stackoverflow example.
> >
> > There is probably no hope of getting this method to work the way you
> > want on your second example though: org-sort does not know anything
> > about the substructure of the table.  The only way I can think of is
> to
> > make the dynblock function that produces the table
> > (org-dblock-write:clocktable) do the sorting.
> >
> > > On 30 March 2014 23:24, Nick Dokos  wrote:
> > >
> > > Noah Slater  writes:
> > >
> > > > I posted a question on StackOverflow:
> > > >
> > > >
> http://stackoverflow.com/questions/22749704/how-can-you-sort-an-org-clock-table
> > > >
> > > > Summary is: how do I sort an clock table by the % column?
> > > >
> > > > Is there anything "out there" I can use to get this working?
> If not,
> > > > how complex a job would it be to write something that did
> this?
> > > >
> > > > If you point me in the right direction, I'll see what I can
> come up with.
> > > >
> > >
> > > Never tried on a clock table, but the following works on a
> generic
> > > table, so I assume that it will work on a clock table too: put
> point
> > > in the column by which you want to sort the table (in the body
> of the
> > > table, not in the header) and say M-x org-sort RET n (I assume
> you
> > > want numeric sorting, but org-sort provides several kinds).
> org-sort
> > > is normally bound to C-c ^ too, so
> > >
> > > C-c ^ n
> > >
> > > should be all that's needed.
> > > --
> > > Nick
> > >
> >
> > --
> > Nick
> >
>
> --
> Nick
>
>
>


Re: [O] How can you sort an Org clock table?

2014-03-31 Thread Noah Slater
Ah yes, I see that I have to move the point into the table cell. I was
trying with the table header. Slightly odd that. Means that it only works
on tables that aggregate clock times across multiple files, where the times
are put in the same cell. Can you replicate? If you do a clocktable with
the scope set to that file, then there's no way to order the cells.

How hard would it be to modify org-dblock-write do you think? In hours work
for someone familiar with elisp, but not the org codebase.


On 31 March 2014 03:06, Nick Dokos  wrote:

> Noah Slater  writes:
>
> > Yeah, tried that. Doesn't work! :(
> >
>
> AFAICT, it works fine on your first stackoverflow example.
>
> There is probably no hope of getting this method to work the way you
> want on your second example though: org-sort does not know anything
> about the substructure of the table.  The only way I can think of is to
> make the dynblock function that produces the table
> (org-dblock-write:clocktable) do the sorting.
>
>
> > On 30 March 2014 23:24, Nick Dokos  wrote:
> >
> > Noah Slater  writes:
> >
> > > I posted a question on StackOverflow:
> > >
> > >
> http://stackoverflow.com/questions/22749704/how-can-you-sort-an-org-clock-table
> > >
> > > Summary is: how do I sort an clock table by the % column?
> > >
> > > Is there anything "out there" I can use to get this working? If
> not,
> > > how complex a job would it be to write something that did this?
> > >
> > > If you point me in the right direction, I'll see what I can come
> up with.
> > >
> >
> > Never tried on a clock table, but the following works on a generic
> > table, so I assume that it will work on a clock table too: put point
> > in the column by which you want to sort the table (in the body of the
> > table, not in the header) and say M-x org-sort RET n (I assume you
> > want numeric sorting, but org-sort provides several kinds). org-sort
> > is normally bound to C-c ^ too, so
> >
> > C-c ^ n
> >
> > should be all that's needed.
> > --
> > Nick
> >
>
> --
> Nick
>
>
>


Re: [O] How can you sort an Org clock table?

2014-03-30 Thread Noah Slater
Yeah, tried that. Doesn't work! :(


On 30 March 2014 23:24, Nick Dokos  wrote:

> Noah Slater  writes:
>
> > I posted a question on StackOverflow:
> >
> >
> http://stackoverflow.com/questions/22749704/how-can-you-sort-an-org-clock-table
> >
> > Summary is: how do I sort an clock table by the % column?
> >
> > Is there anything "out there" I can use to get this working? If not,
> > how complex a job would it be to write something that did this?
> >
> > If you point me in the right direction, I'll see what I can come up with.
> >
>
> Never tried on a clock table, but the following works on a generic
> table, so I assume that it will work on a clock table too: put point
> in the column by which you want to sort the table (in the body of the
> table, not in the header) and say M-x org-sort RET n (I assume you
> want numeric sorting, but org-sort provides several kinds). org-sort
> is normally bound to C-c ^ too, so
>
> C-c ^ n
>
> should be all that's needed.
> --
> Nick
>
>
>


[O] How can you sort an Org clock table?

2014-03-30 Thread Noah Slater
I posted a question on StackOverflow:

http://stackoverflow.com/questions/22749704/how-can-you-sort-an-org-clock-table

Summary is: how do I sort an clock table by the % column?

Is there anything "out there" I can use to get this working? If not, how
complex a job would it be to write something that did this?

If you point me in the right direction, I'll see what I can come up with.

Thanks!

N


Re: [O] Radio targets with mixed capitalisation do not work in HTML export

2014-03-21 Thread Noah Slater
Or perhaps to survey what is already out there. What are people already
doing/trying to do?


On 21 March 2014 18:28, Bastien  wrote:

> Hi Nicolas,
>
> Nicolas Goaziou  writes:
>
> > It would probably make my life less miserable. But do radio target users
> > need entities within?
>
> IMHO the best way to know is to open a new thread with [POLL]
> and a very clear subject like
>
>   "[POLL] Do you need special entities in radio target?"
>
> 2 cents,
>
> --
>  Bastien
>


[O] Radio targets with mixed capitalisation do not work in HTML export

2014-03-03 Thread Noah Slater
Experiencing a bug with radio targets and html export.

IF set a radio target like <<> then the text foo in the body will be
linked to #foo, but the radio target has an anchor id of Foo, so the link
doesn't work.

I expected the foo text to be linked to #Foo instead.