From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Karthik Chikmagalur Newsgroups: gmane.emacs.devel Subject: Re: Sv: Suggestion: two new commands: beginning-of-list and end-of-list Date: Tue, 10 Sep 2024 20:17:50 -0700 Message-ID: <87jzfiyj35.fsf@gmail.com> References: <86le00ve01.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16620"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: arthur miller , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 11 05:18:45 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 1soDsT-0004GR-92 for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Sep 2024 05:18:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1soDrh-0003Vc-Sh; Tue, 10 Sep 2024 23:17:58 -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 1soDrf-0003OI-Ni for emacs-devel@gnu.org; Tue, 10 Sep 2024 23:17:55 -0400 Original-Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1soDre-00009s-48; Tue, 10 Sep 2024 23:17:55 -0400 Original-Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-2059112f0a7so57625885ad.3; Tue, 10 Sep 2024 20:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726024672; x=1726629472; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=O+NnFiMmkHQGPgPGJnwde63jRGR6wu4p5KGLmQ3IzDM=; b=lud55h2ZrtnHm5nX4EXQKh6UvFNm6haiGB8Y9Mz8BNCZooqlIUzh1y+FiV5HM125b8 bsZwENvnM6dJR3ysXj4UQD2u3RNLZPnC8aq7YLA6qpjmtPqyH/oVY16S/fCVIoOtIxWN mLs7OtJo6uJ2/81HbdKGaouNu6xrcNVP2RYJs2u8QgoX0kURUNetf6OtBp2yx2IehiQ6 anRtP9QW1hq48zimKid94RZeRzWYg6ivOG1bGiH3g4eNX40904WxxEiwRGM6kCrVgv7W ca0SfeGV/pFpglSg1qObfCZV4rU0R8QRdiC4uPqNyrADXEQB9twqxWlYPkRZEibsMO2U 5kag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726024672; x=1726629472; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=O+NnFiMmkHQGPgPGJnwde63jRGR6wu4p5KGLmQ3IzDM=; b=K4d5XNknyObLobZGiqZItQXn/HvH+YgorVL7eBH6eaNBd6YK66ymjGW3czO5fZ27p2 jxrDGNFjn795dRgb/9OdcH0a6wsQF5PGjsl9P/uv6cFL+iHjGCYjf8N/G8XOi/APtKEI h2WKrFQXzyXQOg0tcCjH3wbHfeDNtmuH18UlRfH3HIaduFKZ02AbX0ws1SMs1JDqPkSR yv4mh3bzmIivRokrJYbEoCIG/ABRrw55ehuOn1jb3I6SRapf2U6PV6cOlV6RhY9ews8R rJT7ZJRWgC9q18zX1xEsQEXiozwof7DH4zMx9892IZm730bCm2F6eOGquEMdAhS2F5Qp /dvQ== X-Forwarded-Encrypted: i=1; AJvYcCVDvshlEB9iqf43Ah1cAxM7x+MDE9v5LWh+RsZYCILv1E4q+iKUwL+G+kWOt53827wPEo6L@gnu.org X-Gm-Message-State: AOJu0YyUIROM0uaBrwuAW+MA8YrVPX8g94wfUgKrUG7bHgIIImzBKYx7 09yKIOmVSnYbM+JYBVuSXAJ446bEACM76YTL2opgqX08zEtpdnxn3nO2dIEF X-Google-Smtp-Source: AGHT+IGnyFaJIxbz5p0PEGMxbl5rdde9dRHa9AyUZuRYnsqFkAHCmUXtpxR7OwPvfOPkGPbS2n6xvw== X-Received: by 2002:a17:902:cecb:b0:205:9112:efc7 with SMTP id d9443c01a7336-2074c5f8a54mr43319975ad.30.1726024671783; Tue, 10 Sep 2024 20:17:51 -0700 (PDT) Original-Received: from localhost ([2600:8802:5726:2500:3a75:3691:ddde:4c10]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20710f4bf9bsm54941955ad.298.2024.09.10.20.17.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2024 20:17:51 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pl1-x630.google.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:323538 Archived-At: > 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.