all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: arthur miller <arthur.miller@live.com>
To: Karthik Chikmagalur <karthikchikmagalur@gmail.com>,
	Eli Zaretskii <eliz@gnu.org>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Sv: Sv: Suggestion: two new commands: beginning-of-list and end-of-list
Date: Wed, 11 Sep 2024 05:48:26 +0000	[thread overview]
Message-ID: <AS8PR02MB10107574E734ACD8600D548E2969B2@AS8PR02MB10107.eurprd02.prod.outlook.com> (raw)
In-Reply-To: <87jzfiyj35.fsf@gmail.com>

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

>> 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.
>>
>> I am not sure, what is a symmetric function to move cursor to the end of list?
>
>If I'm understanding your question correctly: `up-list'  moves the
>cursor to the end of the list and out of it, the same way
>`backward-up-list' moves it to the beginning and up.

Indeed, I don't know where my brain was :). I don't use myself
functions, I am typically moving my cursor by other means.

up-list also treats literal strings the same as backward-up-list, places
cursor after the closing parenthesis, so both up-list/end-of-list are
useful in different contexts.
________________________________
Från: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Skickat: den 11 september 2024 05:17
Till: arthur miller <arthur.miller@live.com>; Eli Zaretskii <eliz@gnu.org>
Kopia: emacs-devel@gnu.org <emacs-devel@gnu.org>
Ämne: Re: Sv: Suggestion: two new commands: beginning-of-list and end-of-list

> 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.
>
> I am not sure, what is a symmetric function to move cursor to the end of list?

If I'm understanding your question correctly: `up-list'  moves the
cursor to the end of the list and out of it, the same way
`backward-up-list' moves it to the beginning and up.

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

  reply	other threads:[~2024-09-11  5:48 UTC|newest]

Thread overview: 12+ 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
2024-09-10 15:10       ` Sv: " 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       ` arthur miller [this message]
2024-09-10 12:05 ` Yuri Khan

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AS8PR02MB10107574E734ACD8600D548E2969B2@AS8PR02MB10107.eurprd02.prod.outlook.com \
    --to=arthur.miller@live.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=karthikchikmagalur@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.