unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org, drew.adams@oracle.com, tino.calancha@gmail.com
Subject: Re: ctl-x-map key binding conventions for new major/minor modes
Date: Sat, 13 May 2017 14:48:21 +0000	[thread overview]
Message-ID: <CAFyQvY2fr2QzdP_2nWTeJimr5+v9+YazJngndjawrYi6=pZEfQ@mail.gmail.com> (raw)
In-Reply-To: <83k25k967s.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1451 bytes --]

On Sat, May 13, 2017 at 10:34 AM Eli Zaretskii <eliz@gnu.org> wrote:

> >  and ask
> >  the user what she would like to do about, with 3 possible answers
> >  being "rebind", "don't rebind", and "error out of 'load'"?
> >
> > Would that halt emacs startup with that prompt?
>
> It would stop the load of the features which redefines the keys.
>

What I meant is that what if the user is starting emacs using emacsclient
and that prompt interferes with the startup process. It can get very
irritating.

> If so, I believe that would cause an annoyance for a lot of
> > users who might have already shadowed bindings.
>
> That's why I proposed to do that only once, the first time this
> ever happens for a key or a group of keys.
>

So the preference would be saved via Customize interface.


> > What if define-key is instead made to throw a message or a warning?
>
> What's the difference between a message and a warning?
>

I meant just a message.


> Anyway, this could also be good, but its disadvantage is that it
> doesn't let the user an opportunity to reject the rebinding.
>

That right.

I think this should be an interactive feature, not a non-interactive
> one.
>

I thought of above so that the people don't shadow the bindings unknowingly
in their config. I personally never set bindings interactively; may be many
others do the same. So I cannot tell how much impact this will have if this
happens just interactively.
-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 2537 bytes --]

  reply	other threads:[~2017-05-13 14:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-13  3:49 ctl-x-map key binding conventions for new major/minor modes Tino Calancha
2017-05-13  5:10 ` Drew Adams
2017-05-13  5:33   ` Tino Calancha
2017-05-13  7:11     ` Eli Zaretskii
2017-05-13 14:16       ` Kaushal Modi
2017-05-13 14:33         ` Eli Zaretskii
2017-05-13 14:48           ` Kaushal Modi [this message]
2017-05-17  6:18       ` Tino Calancha

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='CAFyQvY2fr2QzdP_2nWTeJimr5+v9+YazJngndjawrYi6=pZEfQ@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=tino.calancha@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).