unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mathias Dahl" <mathias.dahl@gmail.com>
To: "Juanma Barranquero" <lekktu@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: More visible mini-buffer prompt face
Date: Tue, 27 Feb 2007 00:53:36 +0100	[thread overview]
Message-ID: <7dbe73ed0702261553o25c11990j56ec1c5c0b6579b2@mail.gmail.com> (raw)
In-Reply-To: <f7ccd24b0702260320h400e0645o7c16c0e4ec225a20@mail.gmail.com>

> Seriously, if a program asks you to type "yes" and press RETURN to
> confirm a possibly dangerous action, and you do look for ways to
> automatize skipping the question... what more could the program do?

I think that part of the problem is that different people have
different opinions
on what a "dangerous" action is (See the previous thread about image auto
detection for a good example... :)), and maybe we sometimes out of laziness take
the easy way out and provide a Yes/No prompt, instead of thinking one
extra time.

(Btw, about the "yes/no" prompt, why do we provide minibuffer history there if
we want to make it harder for the user to dismiss the prompt?)

I would like to recommend trying out having a "kill key" in Emacs. I have bound
a command to F5 that tries to kill the current buffer. If the buffer
has no changes
it will work, if it has unsaved changes, Emacs will beep, with an
error. But, this is
important, I get no prompt, so I cannot by mistake type that "yes" +
RET (bad habit).
Instead I have to stop and think a bit and decide to do a C-x k RET y e s RET
(or, save first and then use F5). Yes, slightly annoying the times where I have
unsaved changes, but most of the time much nicer as I can kill a buffer with a
single keypress.

> Do we start an arms race between prompts and users?

No, oh please no! We try not to get into such a race at all.

> The answer given before ("do not prompt, let him do it and provide
> ways to undo") is good, but not always applicable.

True, unfortunately.  But we should try.

> > However, it does not feel like this is the right thread, or time, to
> > discuss these, sometimes philosophical, matters...
>
> Oops. :)

Oops x 2 :)

  reply	other threads:[~2007-02-26 23:53 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-23 16:24 More visible mini-buffer prompt face Lennart Borgman (gmail)
2007-02-23 16:41 ` Juanma Barranquero
2007-02-23 17:46   ` Lennart Borgman (gmail)
2007-02-23 18:09     ` Stefan Monnier
2007-02-23 19:36 ` Richard Stallman
2007-02-23 19:58   ` Drew Adams
2007-02-23 21:47     ` Lennart Borgman (gmail)
2007-02-24  0:18       ` Drew Adams
2007-02-24  1:01         ` Lennart Borgman (gmail)
2007-02-24  1:08           ` Drew Adams
2007-02-24  1:27             ` Lennart Borgman (gmail)
2007-02-24  8:28     ` Richard Stallman
2007-02-24 22:16       ` Kim F. Storm
2007-02-24  1:35   ` Lennart Borgman (gmail)
2007-02-24  4:30     ` Daniel Brockman
2007-02-24 18:51       ` Lennart Borgman (gmail)
2007-02-24 14:20     ` Miles Bader
2007-02-24 14:36       ` Eli Zaretskii
2007-02-25  4:06     ` Richard Stallman
2007-02-26  3:27     ` Richard Stallman
2007-02-26 10:55       ` Mathias Dahl
2007-02-26 16:48         ` Lennart Borgman (gmail)
2007-02-27  7:38         ` Richard Stallman
2007-02-24 17:58 ` Mathias Dahl
2007-02-25  1:09   ` Lennart Borgman (gmail)
2007-02-25 20:44     ` Lennart Borgman (gmail)
2007-02-25  4:06   ` Richard Stallman
2007-02-25 11:01     ` Mathias Dahl
2007-02-26  3:27       ` Richard Stallman
2007-02-26 10:45         ` Mathias Dahl
2007-02-26 11:20           ` Juanma Barranquero
2007-02-26 23:53             ` Mathias Dahl [this message]
2007-02-27 19:07         ` Stuart D. Herring

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=7dbe73ed0702261553o25c11990j56ec1c5c0b6579b2@mail.gmail.com \
    --to=mathias.dahl@gmail.com \
    --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).