From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Re: ctl-x-map key binding conventions for new major/minor modes Date: Sat, 13 May 2017 14:48:21 +0000 Message-ID: References: <83vap58c4t.fsf@gnu.org> <83k25k967s.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113cc734768609054f68eaae" X-Trace: blaine.gmane.org 1494686955 27605 195.159.176.226 (13 May 2017 14:49:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 May 2017 14:49:15 +0000 (UTC) Cc: emacs-devel@gnu.org, drew.adams@oracle.com, tino.calancha@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 13 16:49:10 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9YM1-00073G-OJ for ged-emacs-devel@m.gmane.org; Sat, 13 May 2017 16:49:09 +0200 Original-Received: from localhost ([::1]:57846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9YM6-0006Vw-W7 for ged-emacs-devel@m.gmane.org; Sat, 13 May 2017 10:49:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9YLU-0006Vm-7t for emacs-devel@gnu.org; Sat, 13 May 2017 10:48:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9YLT-0004pS-F0 for emacs-devel@gnu.org; Sat, 13 May 2017 10:48:36 -0400 Original-Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:34753) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9YLR-0004mz-NJ; Sat, 13 May 2017 10:48:33 -0400 Original-Received: by mail-lf0-x234.google.com with SMTP id 99so13454107lfu.1; Sat, 13 May 2017 07:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LQLqCfhssjHgxdqWFRLHfTEk0g2lSk2snA8M0ka2VNo=; b=GjznKh5+W/JRf+KUVEljWobWkOadspLvRsyP9GgY5h0DeJ5CGVCAGWh3vY+UUcNcCj gjaD0IKKDwQu7WuD1c/I8aVEUwjL5jOXgtkqvjvVLER6adieA3HId0CKbBqTsAQb2D78 SdqWxMKLGEdEzeQi3cBqJwIFASkBrs9VH22r8ZneKurzJDkeJa0Kzhue1ncHKUxBN4FN 4eSCRWI1uLQccyD4xLTD9yVHNaQ0V8JND8OHmiDOg80zQncv5lJ88wgEu78ZroOG8gqz +tHHSK9hVkP5Ok4G0sQu5c+l1vTAK6ySUSP6/9nTVK6gnIguGXkAB4K2VvJjzu957P1U 4l8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LQLqCfhssjHgxdqWFRLHfTEk0g2lSk2snA8M0ka2VNo=; b=kFYrht/em34Xd33yzWViJ4mPXXC3tB0shJwE+l78V+oMrVXZw6Y50dld1IgzBZ2Tx4 FKVIMtmlbf+abfrCNG6ROtdVTQCHRRxTibtLHQbEiZ29La1aIQRffk6zI8VUevGiuYQq 3H7e2RgkmgqfZ6kujHWYBG4o+/ca909VZpTVxLTVsisPP9AkSaB4FNXAKp3R0Z1PIzMf 8OlsghtNowiMScJjpucVLQ4U3icDnk7yH18vZvSTlR13JOVjrpGVOVhrmIu6NoiSv2m1 MNtVftklioAMXStrD5hLjX9HHOZkAy0WJ4Nx910zunfgewQ/E/I2wQkB3huHNlVBjolt P+Jw== X-Gm-Message-State: AODbwcB8xnIUIndGMubytxqXlzjizg/q35rZiuj2bDzqHkVhLucax9tH UDFJ7hiOFzVsD8qQiraK7NOw2F5ZWw== X-Received: by 10.46.82.144 with SMTP id n16mr3610058lje.0.1494686912380; Sat, 13 May 2017 07:48:32 -0700 (PDT) In-Reply-To: <83k25k967s.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214820 Archived-At: --001a113cc734768609054f68eaae Content-Type: text/plain; charset="UTF-8" On Sat, May 13, 2017 at 10:34 AM Eli Zaretskii 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 --001a113cc734768609054f68eaae Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, May 13= , 2017 at 10:34 AM Eli Zaretskii <eliz@g= nu.org> wrote:
>=C2=A0 an= d ask
>=C2=A0 the user what she would like to do about, with 3 possible answer= s
>=C2=A0 being "rebind", "don't rebind", and &quo= t;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 proces= s. It can get very irritating.=C2=A0

> 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.

<= div>So the preference would be saved via Customize interface.
=C2= =A0
> 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.
=C2=A0
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.=C2=A0

I think this should be an interactive feature, not a no= n-interactive
one.

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

Kaushal Modi

--001a113cc734768609054f68eaae--