From: Eli Zaretskii <eliz@gnu.org>
To: arthur miller <arthur.miller@live.com>
Cc: emacs-devel@gnu.org
Subject: Re: Suggestion: two new commands: beginning-of-list and end-of-list
Date: Tue, 10 Sep 2024 14:30:11 +0300 [thread overview]
Message-ID: <86jzfjvj98.fsf@gnu.org> (raw)
In-Reply-To: <AS8PR02MB101076E367DD68F21D80499EE96992@AS8PR02MB10107.eurprd02.prod.outlook.com> (message from arthur miller on Mon, 9 Sep 2024 19:41:12 +0000)
> From: arthur miller <arthur.miller@live.com>
> CC: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
> Date: Mon, 9 Sep 2024 19:41:12 +0000
> msip_labels:
>
> >I think we do have it: C-M-u, backward-up-list. What's more, it works
> >not only in Lisp. I use it all the time.
>
> Yes you have. It works slightly differently when you are in a string, and it
> places cursor before the opening parenthesis, not after.
Right. But I think what it does is very useful, since it can be
invoked repeatedly, each time moving up one level.
> >So I wonder why we need another function that does basically the same.
>
> I think it makes sense to keep backward-up-list as it is, since it handles
> literal strings as it does. But the behaviour is controlled via special vars
> esape-strings and no-syntax-crossing. If we want similar command as
> beginning-of-string, we have to wrap it and let-bind those variables to
> change how it works.
Yes, but is that a problem?
> I am not sure, what is a symmetric function to move cursor to the end of list?
The converse of C-M-u is C-M-d, but it doesn't move to the end of a
list, it moves _inside_ one level.
> But as said in the previous mail: this function is *already* in Emacs, so it is
> already taking the memory in the process. It is just not used more than
> once, and have *potential* to be used more. In other words, I suggest these
> two functions as a convenience, not because it is impossible to do something
> similar via some combination of other commands and variables.
It is IME confusing to have two similar functions that do _almost_ the
same job.
What do others think about this?
> By the way, why did all occasions of the word "expression" ended up surroneded
> with underscores in the online archive?
No idea.
next prev parent reply other threads:[~2024-09-10 11:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-09 18:32 Suggestion: two new commands: beginning-of-list and end-of-list arthur miller
2024-09-09 19:11 ` Eli Zaretskii
2024-09-09 19:41 ` Sv: " arthur miller
2024-09-09 19:41 ` arthur miller
2024-09-10 11:30 ` Eli Zaretskii [this message]
2024-09-10 15:10 ` arthur miller
2024-09-10 15:48 ` Eli Zaretskii
2024-09-11 5:39 ` Sv: " arthur miller
2024-09-12 4:24 ` Emanuel Berg
2024-09-11 3:17 ` Sv: " Karthik Chikmagalur
2024-09-11 5:48 ` Sv: " arthur miller
2024-09-10 12:05 ` Yuri Khan
-- strict thread matches above, loose matches on Subject: below --
2024-09-13 13:30 arthur miller
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=86jzfjvj98.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=arthur.miller@live.com \
--cc=emacs-devel@gnu.org \
/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).