GNU bug report logs - #50929
Add slurp-sexp and barf-sexp

Previous Next

Package: emacs;

Reported by: Philip Kaludercic <philipk <at> posteo.net>

Date: Fri, 1 Oct 2021 07:45:02 UTC

Severity: wishlist

Tags: patch, wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50929 in the body.
You can then email your comments to 50929 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Fri, 01 Oct 2021 07:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Philip Kaludercic <philipk <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 01 Oct 2021 07:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: bug-gnu-emacs <at> gnu.org
Subject: Add slurp-sexp and barf-sexp
Date: Fri, 01 Oct 2021 07:43:49 +0000
[Message part 1 (text/plain, inline)]
Tags: patch


Hi,

I'd like to suggest adding the command slurp-sexp and barf-sexp to
lisp.el (perhaps after changing the names). These commands were
popularized by structural editing packages like Paredit, and allow the
user to quickly pull or push s-expressions into the current list.

In GNU Emacs 28.0.50 (build 5, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars)
 of 2021-09-30 built on icterid
Repository revision: a1789fd67b2dd67d891b6c7181aee885a9ab9447
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12011000
System Description: Debian GNU/Linux 11 (bullseye)

Configured using:
 'configure --with-native-compilation --with-x-toolkit=athena
 'CFLAGS=-Os -march=native -pipe' LDFLAGS=-flto'

[0001-Add-slurp-sexp-and-barf-sexp.patch (text/patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
	Philip K.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Fri, 01 Oct 2021 08:13:02 GMT) Full text and rfc822 format available.

Message #8 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: 50929 <at> debbugs.gnu.org
Subject: Re: bug#50929: Add slurp-sexp and barf-sexp
Date: Fri, 01 Oct 2021 10:12:11 +0200
Philip Kaludercic <philipk <at> posteo.net> writes:

> I'd like to suggest adding the command slurp-sexp and barf-sexp to
> lisp.el (perhaps after changing the names). These commands were
> popularized by structural editing packages like Paredit, and allow the
> user to quickly pull or push s-expressions into the current list.

There's already paredit-forward-slurp-sexp (etc) -- do we need them in
lisp.el, too?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Fri, 01 Oct 2021 08:32:01 GMT) Full text and rfc822 format available.

Message #11 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 50929 <at> debbugs.gnu.org
Subject: Re: bug#50929: Add slurp-sexp and barf-sexp
Date: Fri, 01 Oct 2021 08:31:03 +0000
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Philip Kaludercic <philipk <at> posteo.net> writes:
>
>> I'd like to suggest adding the command slurp-sexp and barf-sexp to
>> lisp.el (perhaps after changing the names). These commands were
>> popularized by structural editing packages like Paredit, and allow the
>> user to quickly pull or push s-expressions into the current list.
>
> There's already paredit-forward-slurp-sexp (etc) -- do we need them in
> lisp.el, too?

Need is a difficult concept: Paredit also has a raise-sexp analogue, so
lisp.el doesn't need that either (hence why I added slurp-sexp and
barf-sexp right under raise-sexp), beyond the fact that it has already
been added to the file.

-- 
	Philip Kaludercic




Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Tue, 05 Oct 2021 23:27:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Fri, 05 Nov 2021 03:05:02 GMT) Full text and rfc822 format available.

Message #16 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: 50929 <at> debbugs.gnu.org
Subject: Re: bug#50929: Add slurp-sexp and barf-sexp
Date: Fri, 05 Nov 2021 04:04:10 +0100
Philip Kaludercic <philipk <at> posteo.net> writes:

>>> I'd like to suggest adding the command slurp-sexp and barf-sexp to
>>> lisp.el (perhaps after changing the names). These commands were
>>> popularized by structural editing packages like Paredit, and allow the
>>> user to quickly pull or push s-expressions into the current list.
>>
>> There's already paredit-forward-slurp-sexp (etc) -- do we need them in
>> lisp.el, too?
>
> Need is a difficult concept: Paredit also has a raise-sexp analogue, so
> lisp.el doesn't need that either (hence why I added slurp-sexp and
> barf-sexp right under raise-sexp), beyond the fact that it has already
> been added to the file.

I rather think that raise-sexp is an indication that these commands do
not belong in Emacs core -- it seems like raise-sexp was added in 2004,
but nobody seems to have clamoured for getting a key binding for it,
which would be unusual if it was a popular command.  (And nobody has
documented it either, apparently.)

My feeling is that these commands are vital for people who do structural
editing a lot -- but those people use paredit or similar.  People who
don't really don't think in those terms, so they don't miss the commands.

So my conclusion is that we don't want to add these commands, so I'm
closing this bug report (but if everybody else feels strongly that Emacs
should grow a more substantial support for structural Lisp editing, I
won't protest, but it should be just that -- more substantial, with a
fuller set of commands (with better names) and an Emacs manual section
explaining how it all ties together).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 05 Nov 2021 03:05:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 50929 <at> debbugs.gnu.org and Philip Kaludercic <philipk <at> posteo.net> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 05 Nov 2021 03:05:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Sat, 06 Nov 2021 19:11:03 GMT) Full text and rfc822 format available.

Message #23 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Philip Kaludercic <philipk <at> posteo.net>, 50929 <at> debbugs.gnu.org
Subject: Re: bug#50929: Add slurp-sexp and barf-sexp
Date: Sat, 06 Nov 2021 20:53:49 +0200
>>>> I'd like to suggest adding the command slurp-sexp and barf-sexp to
>>>> lisp.el (perhaps after changing the names). These commands were
>>>> popularized by structural editing packages like Paredit, and allow the
>>>> user to quickly pull or push s-expressions into the current list.
>>>
>>> There's already paredit-forward-slurp-sexp (etc) -- do we need them in
>>> lisp.el, too?
>>
>> Need is a difficult concept: Paredit also has a raise-sexp analogue, so
>> lisp.el doesn't need that either (hence why I added slurp-sexp and
>> barf-sexp right under raise-sexp), beyond the fact that it has already
>> been added to the file.
>
> I rather think that raise-sexp is an indication that these commands do
> not belong in Emacs core -- it seems like raise-sexp was added in 2004,
> but nobody seems to have clamoured for getting a key binding for it,
> which would be unusual if it was a popular command.  (And nobody has
> documented it either, apparently.)

I use raise-sexp all the time bound to 'C-x C-M-u'
with mnemonics of "delete everything except sexp raised by C-M-u".
(I don't know if this will make sense for ‘lisp.el’.)

> My feeling is that these commands are vital for people who do structural
> editing a lot -- but those people use paredit or similar.  People who
> don't really don't think in those terms, so they don't miss the commands.
>
> So my conclusion is that we don't want to add these commands, so I'm
> closing this bug report (but if everybody else feels strongly that Emacs
> should grow a more substantial support for structural Lisp editing, I
> won't protest, but it should be just that -- more substantial, with a
> fuller set of commands (with better names) and an Emacs manual section
> explaining how it all ties together).

Sorry, I don't have an opinion about the proposed new commands:
it seems easier to use mark-sexp/copy/paste for complex structural editing
than to remember all possible list transformation commands with their keybindings.
But more commands could be added if more people will ask for them.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Mon, 08 Nov 2021 03:09:02 GMT) Full text and rfc822 format available.

Message #26 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: philipk <at> posteo.net, 50929 <at> debbugs.gnu.org
Subject: Re: bug#50929: Add slurp-sexp and barf-sexp
Date: Sun, 07 Nov 2021 22:08:01 -0500
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

What does slurp-sexp do?
What does barf-sexp do?

If we want to have those operations, let's find less gross names for
them.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Mon, 08 Nov 2021 15:24:02 GMT) Full text and rfc822 format available.

Message #29 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Richard Stallman <rms <at> gnu.org>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 50929 <at> debbugs.gnu.org
Subject: Re: bug#50929: Add slurp-sexp and barf-sexp
Date: Mon, 08 Nov 2021 15:23:14 +0000
Richard Stallman <rms <at> gnu.org> writes:

> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
> What does slurp-sexp do?
> What does barf-sexp do?

Given two expressions like

(save-excursion
  |(foo))
(bar)

where "|" is the position of the point, slurp-sexp would transform this
into

(save-excursion
  |(foo)
  (bar))

and barf-sexp would reverse this change. 

> If we want to have those operations, let's find less gross names for
> them.

I reused the names that other structural editing packages use, but they
could be renamed into somthing like pull-sexp/ and push-sexp just as
well.

-- 
	Philip Kaludercic




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Tue, 09 Nov 2021 11:39:02 GMT) Full text and rfc822 format available.

Message #32 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: larsi <at> gnus.org, 50929 <at> debbugs.gnu.org
Subject: Re: bug#50929: Add slurp-sexp and barf-sexp
Date: Tue, 09 Nov 2021 06:38:45 -0500
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

Thanks for explaining.  I think these commands will be useful if they
have short enough key sequences -- can we find short enough ones to
give them?

I think `swallow-sexp' and `disgorge-sexp' are better names.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Tue, 09 Nov 2021 12:14:02 GMT) Full text and rfc822 format available.

Message #35 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Richard Stallman <rms <at> gnu.org>
Cc: larsi <at> gnus.org, 50929 <at> debbugs.gnu.org
Subject: Re: bug#50929: Add slurp-sexp and barf-sexp
Date: Tue, 09 Nov 2021 12:13:29 +0000
Richard Stallman <rms <at> gnu.org> writes:

> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
> Thanks for explaining.  I think these commands will be useful if they
> have short enough key sequences -- can we find short enough ones to
> give them?

I use C-<left> and C-<right>, but alternatives I can think of are
M-<left> and M-<right>, C-< and C-> or M-[ and M-].  The former two
combinations are both bound to left- and right-word, and the latter two
combination is unbound in emacs-lisp-mode.

> I think `swallow-sexp' and `disgorge-sexp' are better names.

I like these too.

-- 
	Philip Kaludercic




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Tue, 09 Nov 2021 16:27:01 GMT) Full text and rfc822 format available.

Message #38 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Philip Kaludercic <philipk <at> posteo.net>, Richard Stallman <rms <at> gnu.org>
Cc: "larsi <at> gnus.org" <larsi <at> gnus.org>,
 "50929 <at> debbugs.gnu.org" <50929 <at> debbugs.gnu.org>
Subject: RE: [External] : bug#50929: Add slurp-sexp and barf-sexp
Date: Tue, 9 Nov 2021 16:26:36 +0000
> I use C-<left> and C-<right>, but alternatives I can think of are
> M-<left> and M-<right>, C-< and C-> or M-[ and M-].  The former two
> combinations are both bound to left- and right-word, and the latter two
> combination is unbound in emacs-lisp-mode.

FWIW -

I'd prefer that no default key bindings be sacrificed
for this.  This kind of editing is mostly appropriate
for use with "structured editing" modes that
automatically and always pair delimiters.  I think it
makes most sense for only such modes to bind keys for
such commands.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Tue, 09 Nov 2021 18:45:02 GMT) Full text and rfc822 format available.

Message #41 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: "larsi <at> gnus.org" <larsi <at> gnus.org>,
 "50929 <at> debbugs.gnu.org" <50929 <at> debbugs.gnu.org>,
 Richard Stallman <rms <at> gnu.org>
Subject: Re: [External] : bug#50929: Add slurp-sexp and barf-sexp
Date: Tue, 09 Nov 2021 18:44:16 +0000
Drew Adams <drew.adams <at> oracle.com> writes:

>> I use C-<left> and C-<right>, but alternatives I can think of are
>> M-<left> and M-<right>, C-< and C-> or M-[ and M-].  The former two
>> combinations are both bound to left- and right-word, and the latter two
>> combination is unbound in emacs-lisp-mode.
>
> FWIW -
>
> I'd prefer that no default key bindings be sacrificed
> for this.

I think you and I already discussed this a few months ago, but binding
anything to these keys wouldn't sacrifice anything besides an unbound
slot, that the user can still override.

> This kind of editing is mostly appropriate for use with "structured
> editing" modes that automatically and always pair delimiters.  I think
> it makes most sense for only such modes to bind keys for such
> commands.

The reason I suggested adding the commands in the first place is because
I think some kind of structural editing can be done without the need for
any special modes or the need to bundle commands together.

-- 
	Philip Kaludercic




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Tue, 09 Nov 2021 19:16:02 GMT) Full text and rfc822 format available.

Message #44 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: "larsi <at> gnus.org" <larsi <at> gnus.org>,
 "50929 <at> debbugs.gnu.org" <50929 <at> debbugs.gnu.org>,
 Richard Stallman <rms <at> gnu.org>
Subject: RE: [External] : bug#50929: Add slurp-sexp and barf-sexp
Date: Tue, 9 Nov 2021 19:15:46 +0000
> > FWIW -
> >
> > I'd prefer that no default key bindings be sacrificed
> > for this.
> 
> I think you and I already discussed this a few months ago, but binding
> anything to these keys wouldn't sacrifice anything besides an unbound
> slot, that the user can still override.

Users can always override _any_ key bindings.
That's not a reason to proliferate default
key bindings.

> > This kind of editing is mostly appropriate for use with "structured
> > editing" modes that automatically and always pair delimiters.  I think
> > it makes most sense for only such modes to bind keys for such
> > commands.
> 
> The reason I suggested adding the commands in the first place is because
> I think some kind of structural editing can be done without the need for
> any special modes or the need to bundle commands together.

Most use will be with such modes, I think.

These commands make sense when paired delimiters
are present.  Of course it's true that paired
delimiters are often present even without such
modes.

It's fine that someone might find it useful to
slurp or barf content, regardless of whether
they're using such a mode - granted.

That's not a reason to sacrifice _default_ key
bindings for these particular commands.

Users are free to bind these commands to keys.
If lots of users do so, and ask for default
bindings for them, then default bindings can
be considered.

Just because a command might be useful, that's
not a reason to give it a default binding.
How useful, for how many users?  Evidence?

Gauge/guess/measure the demand a bit first -
don't just sacrifice a default key willy
nilly because someone finds a command useful.

Finally, those proposed keys are repeatable
(= just hold down to repeat).  Sure, such a
command _can_ be repeated.  But repeating it
often, many times in a row, isn't common.
Better to reserve such (now rare) keys for
commands that really deserve (take advantage)
of such repetition.

So: (1) not needed by default, (2) certainly
not such special keys.

Let user practice guide the creation of
default key bindings (aka loss of unbound
keys).

(Just one opinion.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Tue, 09 Nov 2021 22:15:02 GMT) Full text and rfc822 format available.

Message #47 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Rudolf Adamkovič <salutis <at> me.com>
To: 50929 <at> debbugs.gnu.org
Subject: Re: bug#50929: Add slurp-sexp and barf-sexp
Date: Tue, 09 Nov 2021 23:14:03 +0100
Philip Kaludercic <philipk <at> posteo.net> writes:

> Richard Stallman <rms <at> gnu.org> writes:
>
>> […] can we find short enough ones to give them?
>
> I use C-<left> and C-<right>, but alternatives I can think of are
> M-<left> and M-<right>, C-< and C-> or M-[ and M-].  The former two
> combinations are both bound to left- and right-word, and the latter two
> combination is unbound in emacs-lisp-mode.

How about us, people without the arrow keys? :) BTW, I find C-() and C-{} used by Paredit fairly usable.

>> I think `swallow-sexp' and `disgorge-sexp' are better names.
>
> I like these too.

Another option: "pull in" and "push out" sexp.

Rudy
-- 
"Programming reliably --- must be an activity of an undeniably mathematical nature […] You see, mathematics is about thinking, and doing mathematics is always trying to think as well as possible." -- Edsger W. Dijkstra (1981)

Rudolf Adamkovič <salutis <at> me.com>
Studenohorská 25
84103 Bratislava
Slovakia

[he/him]




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Tue, 09 Nov 2021 22:18:01 GMT) Full text and rfc822 format available.

Message #50 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Drew Adams <drew.adams <at> oracle.com>, Philip Kaludercic <philipk <at> posteo.net>
Cc: "larsi <at> gnus.org" <larsi <at> gnus.org>,
 "50929 <at> debbugs.gnu.org" <50929 <at> debbugs.gnu.org>,
 Richard Stallman <rms <at> gnu.org>
Subject: RE: [External] : bug#50929: Add slurp-sexp and barf-sexp
Date: Tue, 9 Nov 2021 22:17:27 +0000
BTW, I'd point out, at least for Richard's benefit,
that slurp and barf have been around for years (and
with those names).  They were even around in the
mid 80s, for some "structured editors" (I don't
recall the command names used for them).  Some Emacs
packages have had them for a decade or so.

And if you search for those operation names you'll
likely see hits for auto-pairing packages, such as
smartparens and paredit.  Not an accident.

[Though I don't really care, and I'm no special fan
of the names "slurp" and "barf", I'd suggest that
using those same names might aid discoverability -
users from other editors (or even from GNU Emacs
packages) may look for those names.  Not a strong
reason to go with those names, but maybe something
to keep in mind.]




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Thu, 11 Nov 2021 03:40:01 GMT) Full text and rfc822 format available.

Message #53 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: philipk <at> posteo.net, 50929 <at> debbugs.gnu.org, larsi <at> gnus.org,
 drew.adams <at> oracle.com
Subject: Re: bug#50929: [External] : bug#50929: Add slurp-sexp and barf-sexp
Date: Wed, 10 Nov 2021 22:39:38 -0500
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > [Though I don't really care, and I'm no special fan
  > of the names "slurp" and "barf", I'd suggest that
  > using those same names might aid discoverability -

We could define them as aliases for the sake of those who know
those names.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Thu, 11 Nov 2021 03:40:02 GMT) Full text and rfc822 format available.

Message #56 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Richard Stallman <rms <at> gnu.org>
To: Rudolf Adamkovič <salutis <at> me.com>
Cc: 50929 <at> debbugs.gnu.org
Subject: Re: bug#50929: Add slurp-sexp and barf-sexp
Date: Wed, 10 Nov 2021 22:39:38 -0500
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > > I use C-<left> and C-<right>, but alternatives I can think of are
  > > M-<left> and M-<right>, C-< and C-> or M-[ and M-].

You can bind these keys yourself if they work ok on your terminal, but
they can't be the standard bindings.  C-< and C-> are not ASCII.
M-<left> moves by words; M-[ not possible on ttys.  C-<left> seems to be the
same as <left> on this tty.

                                                           The former two
  > > combinations are both bound to left- and right-word, and the latter two
  > > combination is unbound in emacs-lisp-mode.

  > How about us, people without the arrow keys? :) BTW, I find C-()
  > and C-{} used by Paredit fairly usable.

If `C-()' means C-( and C-), they are not in ASCII.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Sun, 14 Nov 2021 00:06:02 GMT) Full text and rfc822 format available.

Message #59 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: "larsi <at> gnus.org" <larsi <at> gnus.org>,
 "50929 <at> debbugs.gnu.org" <50929 <at> debbugs.gnu.org>,
 Richard Stallman <rms <at> gnu.org>
Subject: Re: [External] : bug#50929: Add slurp-sexp and barf-sexp
Date: Sun, 14 Nov 2021 00:05:27 +0000
Drew Adams <drew.adams <at> oracle.com> writes:

>> > FWIW -
>> >
>> > I'd prefer that no default key bindings be sacrificed
>> > for this.
>> 
>> I think you and I already discussed this a few months ago, but binding
>> anything to these keys wouldn't sacrifice anything besides an unbound
>> slot, that the user can still override.
>
> Users can always override _any_ key bindings.
> That's not a reason to proliferate default
> key bindings.

Why?

-- 
	Philip Kaludercic




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50929; Package emacs. (Sun, 14 Nov 2021 17:33:01 GMT) Full text and rfc822 format available.

Message #62 received at 50929 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: "larsi <at> gnus.org" <larsi <at> gnus.org>,
 "50929 <at> debbugs.gnu.org" <50929 <at> debbugs.gnu.org>,
 Richard Stallman <rms <at> gnu.org>
Subject: RE: [External] : bug#50929: Add slurp-sexp and barf-sexp
Date: Sun, 14 Nov 2021 17:32:33 +0000
> >> > FWIW -
> >> >
> >> > I'd prefer that no default key bindings be sacrificed
> >> > for this.
> >>
> >> I think you and I already discussed this a few months ago, but binding
> >> anything to these keys wouldn't sacrifice anything besides an unbound
> >> slot, that the user can still override.
> >
> > Users can always override _any_ key bindings.
> > That's not a reason to proliferate default
> > key bindings.
> 
> Why?

It's up to someone arguing for a change to Emacs
to make an argument in support of that proposal.

Please make an argument for Emacs to sacrifice
those specific keys to default bindings.

Users have always been able to bind any keys.
That in itself is obviously not an argument for
binding any particular key by default.  And if
you were to suppose it were, then it would be an
argument for binding _any_ and _all_ keys by
default.

You need to present arguments in favor of binding
these keys by default to those specific commands.
The burden of argument/proof/convincing is on
whoever is proposing a change.  Just "Why not?"
doesn't cut the mustard.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 13 Dec 2021 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 133 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.