emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org bingo
@ 2012-12-20  5:43 Tony Day
  2012-12-20 15:07 ` Myles English
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tony Day @ 2012-12-20  5:43 UTC (permalink / raw)
  To: emacs-orgmode


I have exactly 386 TODO entries and may as well introduce some
randomness to get to them.

org-random-entry: select and goto a random todo entry. Prefix allows you
to select which todo keyword.

https://gist.github.com/4343164

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org bingo
  2012-12-20  5:43 org bingo Tony Day
@ 2012-12-20 15:07 ` Myles English
  2012-12-20 15:12 ` Bastien
  2013-01-07  3:22 ` Yasushi SHOJI
  2 siblings, 0 replies; 7+ messages in thread
From: Myles English @ 2012-12-20 15:07 UTC (permalink / raw)
  To: Tony Day; +Cc: emacs-orgmode


Tony Day writes:

> I have exactly 386 TODO entries and may as well introduce some
> randomness to get to them.
>
> org-random-entry: select and goto a random todo entry. Prefix allows you
> to select which todo keyword.
>
> https://gist.github.com/4343164

Thanks, I'm using this already.  One less decision to make...

Myles

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org bingo
  2012-12-20  5:43 org bingo Tony Day
  2012-12-20 15:07 ` Myles English
@ 2012-12-20 15:12 ` Bastien
  2012-12-20 21:41   ` Tony Day
  2013-01-07  3:22 ` Yasushi SHOJI
  2 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2012-12-20 15:12 UTC (permalink / raw)
  To: Tony Day; +Cc: emacs-orgmode

Hi Tony,

Tony Day <tonyday567@gmail.com> writes:

> I have exactly 386 TODO entries and may as well introduce some
> randomness to get to them.
>
> org-random-entry: select and goto a random todo entry. Prefix allows you
> to select which todo keyword.

I added an entry in org-hacks.org:
http://orgmode.org/worg/org-hacks.html#sec-1-1-1

Thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org bingo
  2012-12-20 15:12 ` Bastien
@ 2012-12-20 21:41   ` Tony Day
  0 siblings, 0 replies; 7+ messages in thread
From: Tony Day @ 2012-12-20 21:41 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode


> 
> I added an entry in org-hacks.org:
> http://orgmode.org/worg/org-hacks.html#sec-1-1-1


I never knew about the org-hacks section.  

*adds a TODO*

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org bingo
  2012-12-20  5:43 org bingo Tony Day
  2012-12-20 15:07 ` Myles English
  2012-12-20 15:12 ` Bastien
@ 2013-01-07  3:22 ` Yasushi SHOJI
  2013-01-07  7:16   ` Achim Gratz
  2 siblings, 1 reply; 7+ messages in thread
From: Yasushi SHOJI @ 2013-01-07  3:22 UTC (permalink / raw)
  To: tonyday567; +Cc: emacs-orgmode

Hi Tony,

At Thu, 20 Dec 2012 16:43:37 +1100,
Tony Day wrote:
> 
> org-random-entry: select and goto a random todo entry. Prefix allows you
> to select which todo keyword.
> 
> https://gist.github.com/4343164

love that idea!

However, I accidentally tried org-random-entry after org-agenda-exit
and got following:

  debug(error (error "Selecting deleted buffer"))
  org-compile-prefix-format(todo)
  (catch (quote exit) (org-compile-prefix-format (quote todo))...
  (let* ((today (org-today)) (date (calendar-....
  org-random-entry(nil)
  call-interactively(org-random-entry record nil)

this is because org-compile-prefix-format assumed to have
org-agenda-buffer set either 'nil' or 'live buffer', but not
'#<killedbuffer>'. I'm not sure it is good idea to fix the
org-compile-prefix-format itself or not. so I came up with the
following fix:

diff --git a/dotemacs.org b/dotemacs.org
index 302ac53..c4042a1 100644
--- a/dotemacs.org
+++ b/dotemacs.org
@@ -9,6 +9,8 @@
            (kwds org-todo-keywords-for-agenda)
            (lucky-entry nil)
            (completion-ignore-case t)
+           (org-agenda-buffer (if (buffer-live-p org-agenda-buffer)
+				  org-agenda-buffer))
            (org-select-this-todo-keyword
             (if (stringp arg) arg
               (and arg (integerp arg) (> arg 0)

What do you think?

regards,
-- 
             yashi

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: org bingo
  2013-01-07  3:22 ` Yasushi SHOJI
@ 2013-01-07  7:16   ` Achim Gratz
  2013-01-12  3:59     ` Tony Day
  0 siblings, 1 reply; 7+ messages in thread
From: Achim Gratz @ 2013-01-07  7:16 UTC (permalink / raw)
  To: emacs-orgmode

Yasushi SHOJI writes:
> +           (org-agenda-buffer (if (buffer-live-p org-agenda-buffer)
> +				  org-agenda-buffer))
----------------------------------^

This should be a "when" form since there's no else clause.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: org bingo
  2013-01-07  7:16   ` Achim Gratz
@ 2013-01-12  3:59     ` Tony Day
  0 siblings, 0 replies; 7+ messages in thread
From: Tony Day @ 2013-01-12  3:59 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org org

updated.  thanks guys and gals :)


https://gist.github.com/4343164

tony day
tonyday567@gmail.com


On 7 Jan 2013, at 18:16, Achim Gratz <Stromeko@nexgo.de> wrote:

> Yasushi SHOJI writes:
>> +           (org-agenda-buffer (if (buffer-live-p org-agenda-buffer)
>> +				  org-agenda-buffer))
> ----------------------------------^
> 
> This should be a "when" form since there's no else clause.
> 
> 
> Regards,
> Achim.
> -- 
> +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
> 
> Wavetables for the Waldorf Blofeld:
> http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables
> 
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-12  4:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-20  5:43 org bingo Tony Day
2012-12-20 15:07 ` Myles English
2012-12-20 15:12 ` Bastien
2012-12-20 21:41   ` Tony Day
2013-01-07  3:22 ` Yasushi SHOJI
2013-01-07  7:16   ` Achim Gratz
2013-01-12  3:59     ` Tony Day

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).