unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: Juanma Barranquero <lekktu@gmail.com>, emacs-devel@gnu.org
Subject: Re: Can't interrupt directory_files_internal run fromtimer-event-handler
Date: Sun, 07 Aug 2005 01:39:13 +0200	[thread overview]
Message-ID: <m3mznuvdni.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <E1E1I9d-0005pr-9q@fencepost.gnu.org> (Richard M. Stallman's message of "Sat, 06 Aug 2005 02:27:33 -0400")

"Richard M. Stallman" <rms@gnu.org> writes:

>     BTW, `while-no-input' and `throw-on-input' are not documented on the
>     Emacs Lisp Reference; and the docstring for `throw-on-input' is
>     suboptimal:
>
> while-no-input is in the Lisp manual.  throw-on-input is not for users
> to use; perhaps we should rename it to while-no-input-throw-internal.

In its current form, a caller of while-no-input cannot differentiate
between BODY returning nil as a normal return value or BODY being
interrupted.

Furthermore, caller cannot know if BODY was interrupted by input or C-g.

As I need to differentiate between all three cases in ido, I had to
use throw-on-input directly.

For that reason, I think we should either document throw-on-input (and
keep its name), or [better] change while-no-input to return 'quit for
C-g, 'input-pending-p for input, and value of BODY otherwise.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  parent reply	other threads:[~2005-08-06 23:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-05 12:01 Can't interrupt directory_files_internal run fromtimer-event-handler klaus.berndl
2005-08-05 12:53 ` Juanma Barranquero
2005-08-06  6:27   ` Richard M. Stallman
2005-08-06 11:58     ` Juanma Barranquero
2005-08-06 23:39     ` Kim F. Storm [this message]
2005-08-08 12:09       ` Richard M. Stallman
2005-08-09 23:29 ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2005-08-10  9:35 AW: " klaus.berndl
2005-08-12  6:59 ` Stefan Monnier
2005-08-12  8:00 AW: " klaus.berndl
2005-08-12 11:59 ` Stefan Monnier

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=m3mznuvdni.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@gnu.org \
    --cc=lekktu@gmail.com \
    /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).