From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: arthur miller Newsgroups: gmane.emacs.devel Subject: Sv: Sv: Suggestion: two new commands: beginning-of-list and end-of-list Date: Wed, 11 Sep 2024 05:48:26 +0000 Message-ID: References: <86le00ve01.fsf@gnu.org> <87jzfiyj35.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_AS8PR02MB10107574E734ACD8600D548E2969B2AS8PR02MB10107eu_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30034"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Karthik Chikmagalur , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 11 13:06:42 2024 Return-path: Envelope-to: ged-emacs-devel@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 1soLBJ-0007fo-WE for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Sep 2024 13:06:42 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1soLAS-0002rT-HP; Wed, 11 Sep 2024 07:05:48 -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 1soGDP-0001GZ-Px for emacs-devel@gnu.org; Wed, 11 Sep 2024 01:48:31 -0400 Original-Received: from mail-vi1eur03olkn20817.outbound.protection.outlook.com ([2a01:111:f403:2e0c::817] helo=EUR03-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1soGDN-00062w-8r; Wed, 11 Sep 2024 01:48:30 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=drTW6aN7xHCxxVYVeMsjngvDvIULx8e/3MUDa9gaQ5t3zzDuDhZCmPGXTaXNIqGIs5SwH7elE7RzkzKsU4BhYnjKwYLkm/umUuAL5hhrdEMg9RqvLuauhKCtC0otqLlB4SR8hOcHoqLF6Y/3F4btAkliXdj2uuine/EhFwMY6DhenNWR9CecCcdITtNQjON/VztJPamSRbgyaAiDK2RGVNQz7MBntl/ZhyGb9h/TS59L78iHjTO+p+8sR4Mz9k43KrVbRy4Hl3LPsKQxfWXblJZ3vN0TMZsJxMNXPrZLHMVe6FCiYVatwx3beTX9BWOXIUnNpStSV78iwkOA04izrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rtZnijfT6PjvfanfGXImht1qy/W/4tYsC+YEb4vVRB0=; b=nhD5+3nXals3A6JBiF1dWvnf2wtgPzI/G8pAg4W0LDFxfC8bl88x+vEtjHjJkG3MktkVfgvIJExW+c81jKPKS/nKlZZrF6uWT4/i95Rt+xBpFYF8+VQ3xWseCxDnErXBADqh63vK2lRSUVBlf2feDuBUhRETF1PNrtHwdP2+CdZaqD3M4BYOEZ0YY/mPc2bneZHwIlx02X7J5LSkELlFpAzUbRzULd9+/2PVPuQGIaOP1MQN0K6xgN0dSu/vsoQSaR5kl0pPcMO5uKcXB8250xx9mOdFi9P3fVFNhURdDwmzrrHgSwkSZ2G6sKn5YUP6cQLU9ktuhH6cWZCOnyr/iw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rtZnijfT6PjvfanfGXImht1qy/W/4tYsC+YEb4vVRB0=; b=a1X9zmv0DjjFqeRxJac6em+qNTvocwM4hJuBiTHotC3/p0z1XY4C1HDL0uo+4T+vm+951ukn/1ao/KFQNb4XTkvW5ddtjQyJekLRdaxq8vNOkuvxwCF3wE3gCnfv9//N1uJY0k+pzuSrbcAp+Wiu3jDfdBfypz4jlv5j+5VK68hwsL/bFFt15wYbkrXhKk7dxhxUO5qmfRwYJRenl9UFbVx7NMDlzvnyZDXshwOVb0X4an3owMcT1uCc87QlXPo7HoVncucL4gWe8Szuy4H6MBf3p86ei36twnf/wBofUVKzitgvf9c0qXKjEQI+COzj2gasks34CSsFLA06+rLfqg== Original-Received: from AS8PR02MB10107.eurprd02.prod.outlook.com (2603:10a6:20b:633::7) by PAXPR02MB7784.eurprd02.prod.outlook.com (2603:10a6:102:223::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.25; Wed, 11 Sep 2024 05:48:26 +0000 Original-Received: from AS8PR02MB10107.eurprd02.prod.outlook.com ([fe80::80fe:77a2:35b:dfc]) by AS8PR02MB10107.eurprd02.prod.outlook.com ([fe80::80fe:77a2:35b:dfc%6]) with mapi id 15.20.7918.024; Wed, 11 Sep 2024 05:48:26 +0000 Thread-Topic: Sv: Suggestion: two new commands: beginning-of-list and end-of-list Thread-Index: AQHbAuVbbKZnfmVNp0+ByPzyKH0mArJP0m93gAAHORSAAhLqAIAAKgQ2 In-Reply-To: <87jzfiyj35.fsf@gmail.com> Accept-Language: sv-SE, en-US Content-Language: sv-SE x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [GIMtXAaJ4KKpfKUyqYr9MCLiLkTF3CTf] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AS8PR02MB10107:EE_|PAXPR02MB7784:EE_ x-ms-office365-filtering-correlation-id: 90238afc-0184-4964-9553-08dcd2255af9 x-microsoft-antispam: BCL:0; ARA:14566002|15030799003|19110799003|8060799006|461199028|15080799006|7092599003|3412199025|440099028|102099032; x-microsoft-antispam-message-info: NeVy11uPi2Lwhyv6xVi3dskkdWhyp55vrSsf5hWng5nouuzJAWdukbgwdZHzgZzHEOOwgs38nKAqp5nHaAV8YASAhmBWCOgORNTIODQZA+GyS0mYCGoHck7C1RFax4pBmMS+paeQHII9MI+ZpCGEfvPx8DBIn0LlYJ+Zd6xfxaU3yoaNjLcC9aCHMzMgFKF4yIpi3+wiB2jLXzbsnm3W1+UOG9EIRbKuqV/RwR6pot5PgyTBnQbRKmLpMvMpjfzX2SbDX5LljKsT9Awf3NCiYANHYSgLxziu0Ggcit+3PDdJVe9C2hNu9BKbd6I7aGDNOQBAEdgqzXdsLpHQpeYFgpPh0S9/ishenBxYv2oVSckqotMcrRQA2YRjnizFwnq1RDZC5jBP2asln15sjI2cPpfhZE2I7SrbtpLxUD4OHT8CdabEn4WEae6OB1836QJ37ib4HsYqWye0bDJ9HYBPSUk8OBRgYfYGm2IWc3K+R2z7LIYYZiCTzXntEOaWH0UIP5mQHIfeDI5PEdG2lZw5css0IyLrAV8oupknAu2ZxONwnD4IDcxRQ9Ygo7CKrxjEHfqrCYkEeg+jZ9Jx/KzS4CG4HjfLs80OMo8Dn0yWZWqXGYRIPUJLMJCwv/zRwTiCxOVjlnCCOMjaN3U2yo9WriemYrnWSxz3qD20fpXJbQ09QMbV61dJNW9gc4RpMQmW2Z4iaCIIFxsfwCnI6GQOqCnSFsdU8wEBZxVQhKwVu1s= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?riqJ5IVxnOG0TOiVxqXFGG9feCS82Oq7amD/VPm40nLqnXEhR5UJWPlqXs?= =?iso-8859-1?Q?cERKxVITS3AZVwWeP3/+0JlUII8/t1CstVNvpea0ew1BuqDTlXNtKx0UrE?= =?iso-8859-1?Q?0C6Eu3aRqsbhwUWcp872W9gPirKlNg5wAphGAYTlMZ4nb+MHX2IYyXvXuj?= =?iso-8859-1?Q?MLr9wvwMZxEhIHA/eIo69R8rxCn3WxG5CvLC38NMl6dxpJSrwaqXVBC+3q?= =?iso-8859-1?Q?PWYbkokuS9kqVzgkcey1vO0y16dM3Jib3jGUNRhmrQyfCzZvLPG2attuOu?= =?iso-8859-1?Q?2Qr90Zbu00WD39BR5ZW/omv7y3Nkh6XGFWfGZ8FRbCaOoJLBpESG7qILWH?= =?iso-8859-1?Q?bxyBzS/E2Xj3pndJsrEDY8jj85SQUHLmF8qxqvv8Nt43Z1kjA1uMCvtwQ7?= =?iso-8859-1?Q?02674W/IfgmAKNfT8oaHqlKuQKTe5p3xnWvRwy50QuQE82K8mfTU01/NVy?= =?iso-8859-1?Q?80GqJlJl9/8/6lt3oImaM+k8fXA2d4UZpFztDwaTK2Tu37RLoxFpVegSrV?= =?iso-8859-1?Q?X+Eay+fw6DSEvzxmD4+vTVWtpULAqKlTXnVDIfjCVi9Avb0e4cP06CZCt3?= =?iso-8859-1?Q?9Lv4IEXbe3NL/4D787oLSwF7mq7ZxyFHmgge02i+tP3z7Hxx8y19FtCIqG?= =?iso-8859-1?Q? X-OriginatorOrg: sct-15-20-7828-19-msonline-outlook-12d23.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AS8PR02MB10107.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 90238afc-0184-4964-9553-08dcd2255af9 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Sep 2024 05:48:26.1084 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR02MB7784 Received-SPF: pass client-ip=2a01:111:f403:2e0c::817; envelope-from=arthur.miller@live.com; helo=EUR03-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 11 Sep 2024 07:05:45 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323541 Archived-At: --_000_AS8PR02MB10107574E734ACD8600D548E2969B2AS8PR02MB10107eu_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable >> I think it makes sense to keep backward-up-list as it is, since it handl= es >> 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=E5n: Karthik Chikmagalur Skickat: den 11 september 2024 05:17 Till: arthur miller ; Eli Zaretskii Kopia: emacs-devel@gnu.org =C4mne: 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 handle= s > literal strings as it does. But the behaviour is controlled via special v= ars > 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. --_000_AS8PR02MB10107574E734ACD8600D548E2969B2AS8PR02MB10107eu_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
>> 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 sp= ecial vars
>> esape-strings and no-syntax-crossing. If we want similar command a= s
>> beginning-of-string, we have to wrap it and let-bind those variabl= es 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=E5n: Karthik Chikmagalur= <karthikchikmagalur@gmail.com>
Skickat: den 11 september 2024 05:17
Till: arthur miller <arthur.miller@live.com>; Eli Zaretskii &l= t;eliz@gnu.org>
Kopia: emacs-devel@gnu.org <emacs-devel@gnu.org>
=C4mne: Re: Sv: Suggestion: two new commands: beginning-of-list and = end-of-list
 
> I think it makes sense to keep backward-up-li= st as it is, since it handles
> literal strings as it does. But the behaviour is controlled via specia= l 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 t= o
> 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.
--_000_AS8PR02MB10107574E734ACD8600D548E2969B2AS8PR02MB10107eu_--