unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: D. Goel <deego@gnufans.org>
Cc: emacs-devel@gnu.org
Subject: Re: idledo.el v. 0.3
Date: 24 Oct 2002 10:25:39 -0400	[thread overview]
Message-ID: <87elafykv0.fsf@computer.localdomain> (raw)
In-Reply-To: <5xznt3op18.fsf@kfs2.cua.dk>

storm@cua.dk (Kim F. Storm) writes:


> > IMHO, This one is the only "important" case that does not get covered.
> > Though it may seldom be needed in practice, it would seem awkward to
> > leave this out.  
> 
> I honestly fail to see how that is of any practical use.  


I agree about the not-of-much-practical use thingy.. I was more
concerned about "doing the right thing" --- all other "missing"
functionalitites can easily be implemented the user herself by
tweaking their function (and hence of no more concern to me) .  The
above was the only remaining case which i didn't see a way that user
could implement --- i thought that if, for some weird impractical
reason, they want to implement such a timer, they would have to go
back to using either the sit-for (as in timerfunctions.el) or
pre-command-hook (as in blink-cursor-mode), both of which seem kludgy
and "wrong". 



> But it could be handled by overloading the REPEAT argument so that
> if it is a negative number, it means repeat every -REPEAT seconds
> after first being idle, but don't repeat on next emacs idle.

I like this one too! :)


> 
> Yes, that's always a possibility ...  actually, it would seem to be
> useful to also have a "no longer idle" handler for an idle-timer which

Indeed.


> I suppose your primary interest is to be able to know whether a given
> idle-timer is activated for the first time after emacs becoming idle
> , or whether it is a repeated activation in the same idle period;

Exactly. 

> for that purpose, the first element of the timer vector could
> provide the necessary information (as it would be t on first
> invocation).

If this is so, then I am indeed satisfied.  :) ...


BTW, I think there's not documentation for what exactly the idle-timer
vector stores [other than one layout-line], anywhere.  Neither in the
elisp manual, nor in timer.el .  Moreover, it seemed that was not easy
to figure that stuff out from even studying the lisp code of timer.el,
it seems the only way would be to try to study the C code :(

(In particular, it is not clear to me why the triggerred-p (the first
element of the timer-vector) would not be t on subsequent invocations
within a given idle-period, as you mention above.)

So, if the maintainers/experts of timer.el (Kim?) get this mail, we
the users would appreciate some info on the timer-vector in the manual
or elsewhere :)

DG                                 http://deego.gnufans.org/~deego/
--
RMS on Treacherous Computing and Digital Restrictions Management ---
http://newsforge.com/newsforge/02/10/21/1449250.shtml?tid=19

  reply	other threads:[~2002-10-24 14:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87wuobakqz.fsf@computer.localdomain>
     [not found] ` <5xfzuyqbxo.fsf@kfs2.cua.dk>
     [not found]   ` <874rbduxdf.fsf@computer.localdomain>
     [not found]     ` <5xbs5ljj6s.fsf@kfs2.cua.dk>
     [not found]       ` <87u1jcq1ex.fsf@computer.localdomain>
2002-10-23 23:49         ` idledo.el v. 0.3 Kim F. Storm
2002-10-23 23:23           ` D. Goel
2002-10-23 23:51             ` D. Goel
2002-10-24 10:48             ` Kim F. Storm
2002-10-24 12:06               ` D. Goel
2002-10-24 15:05                 ` Kim F. Storm
2002-10-24 14:25                   ` D. Goel [this message]
2002-10-25  5:35                 ` Richard Stallman
2002-10-25  5:34           ` Richard Stallman
2002-10-25  9:11             ` Kim F. Storm
2002-10-26 20:15               ` Richard Stallman
2002-10-26 22:51                 ` Kim F. Storm
2002-10-28 19:19                   ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87elafykv0.fsf@computer.localdomain \
    --to=deego@gnufans.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).