From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zachary Kanfer Newsgroups: gmane.emacs.bugs Subject: bug#62892: proposal to extend mark-sexp to go forward and backward on command Date: Tue, 23 May 2023 10:11:30 -0400 Message-ID: References: <86jzxwuedr.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006476ab05fc5cf764" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40070"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ruijie@netyu.xyz, 62892@debbugs.gnu.org, monnier@iro.umontreal.ca, drew.adams@oracle.com, juri@linkov.net To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 23 16:12:56 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q1Skx-000ACs-PC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 May 2023 16:12:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1SkW-0005fX-Ap; Tue, 23 May 2023 10:12:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1Sk7-0005TE-SY for bug-gnu-emacs@gnu.org; Tue, 23 May 2023 10:12:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1Sk6-0007zW-7J for bug-gnu-emacs@gnu.org; Tue, 23 May 2023 10:12:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1Sk6-0002jW-36 for bug-gnu-emacs@gnu.org; Tue, 23 May 2023 10:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Zachary Kanfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 May 2023 14:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62892 X-GNU-PR-Package: emacs Original-Received: via spool by 62892-submit@debbugs.gnu.org id=B62892.168485111010488 (code B ref 62892); Tue, 23 May 2023 14:12:02 +0000 Original-Received: (at 62892) by debbugs.gnu.org; 23 May 2023 14:11:50 +0000 Original-Received: from localhost ([127.0.0.1]:40062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1Sjt-0002j5-UI for submit@debbugs.gnu.org; Tue, 23 May 2023 10:11:50 -0400 Original-Received: from mail-ot1-f41.google.com ([209.85.210.41]:46228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1Sjr-0002in-4Q for 62892@debbugs.gnu.org; Tue, 23 May 2023 10:11:48 -0400 Original-Received: by mail-ot1-f41.google.com with SMTP id 46e09a7af769-6af70ff2761so1082432a34.0 for <62892@debbugs.gnu.org>; Tue, 23 May 2023 07:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684851101; x=1687443101; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RKvO0UVtOqkz654TLzHtTDM1NnTp2gQTSIfd3tNw6F0=; b=Opsf0zPhXFrC0lPVUTf4CS8vxAGQtuxrTPe17bZL2yKhnWW97ueYGboFMXMxDFqYZA v4IJmDL3hiDw/awDNBexX22D2f+mBqls+uK+rry8lAvSLEwlNRw03HlPYcS2wNWzRQti 4h4qGlE901egzaWoY+27Y4OCHBHxm2hAkbVndIcYFTN6JqpxjYvaZcAyvabTsGfhbGtz 4hfgCwLtfRhlhUSDNT4456pBm8Z7sHYV2TWWoscv4hayZ7NnuHQfpfpV2I1YzwxzaeHp Nw5x9zPeuEsaXkesgsXxrnFpiZOIPUJA6dVgnb7Z40FMRt8JpNWv5q34Jzb6BLl6jY1f Y8ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684851101; x=1687443101; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RKvO0UVtOqkz654TLzHtTDM1NnTp2gQTSIfd3tNw6F0=; b=lwmeV98rODu/orG54Xb/r64EUFcyzi/ZKOE9sod7A2KnxwIGm6RGOeV/IkWxRcDMnU XPzmIFJ2yOBGqs3ueMmT9xVlj11ZFo48zx1JBPGYM2SXUtMra1jiJJrqtBnGkk5Jk4jK TEdXlwut3nXZWcIT5GDmRgseR7yzGOi86fGk3JpG3AHcfyLTFoJkew2n7mGNa3Qv7pWy gUIkJuRY9z5Xatbmde87s2J0oPiHjJUCKWoKBu/BUnjfGL4+nST1YOZM58xX7COO7K7I uHFsQT/BJ47NONRz1XnyEVnm1Mq1zHXAlx672vspXY5CJ7YBCYH5iKL5w8o10TqHftxt 3nNA== X-Gm-Message-State: AC+VfDxJB/twscT74/dw0JsHzMLM8ctXbLX7PX8MVSNz8KJP7ov3ymb7 dUge7PwJUAvAiR2jWXXocOs06oqzPAUcGXBiH1g= X-Google-Smtp-Source: ACHHUZ6ksmMyOpRvaLQjgRD+Z2atq6zGDnHig+RQELHJtKpwXnaOgNr/44tCkEwNZUmv/CmJDBgiyasuIgeCjSbf0do= X-Received: by 2002:aca:2217:0:b0:398:4008:260d with SMTP id b23-20020aca2217000000b003984008260dmr503050oic.39.1684851101298; Tue, 23 May 2023 07:11:41 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262234 Archived-At: --0000000000006476ab05fc5cf764 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > Are you envisioning that we would create standard key bindings > for these functions? I was not suggesting that here. However,I think this would be ideal, especially given that mark-sexp is bound to three different keybindings (C-M-@, C-M-SPC, C-M-S-SPC). What is the process for finding out if a new keybinding would be appropriate? Or for determining whether enough people use a keybinding to keep it, vs changing it? > Are you envisioning that users would bind some of these functions > to keys themselves? Yes. This is the main use-case I envisioned. > Are you envisioning that users would call these functions from their > own Lisp code? This was not my main proposal, but users can do so if they want. On Mon, May 22, 2023 at 6:02=E2=80=AFPM Richard Stallman wrot= e: > [[[ 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. ]]] > > > > Attached is a patch with the following changes: > > > > > > * Uses the helper function to create mark-foo-forward, > mark-foo-backward > > > for word, paragraph, sexp, page, and defun. > > I think these functions would make sense, but I wonder hwo they > would do users any good. > > Are you envisioning that we would create standard key bindings > for these functions? > > Are you envisioning that users would bind some of these functions > to keys themselves? > > Are you envisioning that users would call these functions from their > own Lisp code? > > Any of those would make sense in the abstract, but I doubt that any of > them would be convenient enough to make this change worth installing. > > > > -- > 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) > > > --0000000000006476ab05fc5cf764 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
>=20 Are you envisioning that we would create standard key bindings
>= for these functions?

I was not suggesting that he= re. However,I think this would be ideal, especially given that mark-sexp is= bound to three different keybindings (C-M-@, C-M-SPC, C-M-S-SPC). What is = the process for finding out if a new keybinding would be appropriate? Or fo= r determining whether enough people use a keybinding to keep it, vs changin= g it?

> Are you envisioning that users would bind some of these functions
> t= o keys themselves?

Yes. This is the main use-case = I envisioned.

>=20 Are you envisioning that users would call these functions from their
>= ; own Lisp code?

This was not my main proposal, bu= t users can do so if they want.

On Mon, May 22, 2023 at 6:02=E2=80= =AFPM Richard Stallman <rms@gnu.org&g= t; wrote:
[[[ To= any NSA and FBI agents reading my email: please consider=C2=A0 =C2=A0 ]]]<= br> [[[ whether defending the US Constitution against all enemies,=C2=A0 =C2=A0= =C2=A0]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]<= br>
=C2=A0 > > Attached is a patch with the following changes:
=C2=A0 > >
=C2=A0 > > * Uses the helper function to create mark-foo-forward, mar= k-foo-backward
=C2=A0 > > for word, paragraph, sexp, page, and defun.

I think these functions would make sense, but I wonder hwo they
would do users any good.

Are you envisioning that we would create standard key bindings
for these functions?

Are you envisioning that users would bind some of these functions
to keys themselves?

Are you envisioning that users would call these functions from their
own Lisp code?

Any of those would make sense in the abstract, but I doubt that any of
them would be convenient enough to make this change worth installing.



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


--0000000000006476ab05fc5cf764--