From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Suggestion: two new commands: beginning-of-list and end-of-list Date: Tue, 10 Sep 2024 19:05:26 +0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11751"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: arthur miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 10 14:06:30 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 1snzde-0002sJ-CD for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Sep 2024 14:06:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snzcv-0004ob-Af; Tue, 10 Sep 2024 08:05:45 -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 1snzcs-0004dV-3a for emacs-devel@gnu.org; Tue, 10 Sep 2024 08:05:42 -0400 Original-Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1snzcq-0000MR-3Z for emacs-devel@gnu.org; Tue, 10 Sep 2024 08:05:41 -0400 Original-Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3e0438e81aaso1435500b6e.3 for ; Tue, 10 Sep 2024 05:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725969938; x=1726574738; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MzdyG8dGgduVceRWbJMwluMY36Tu6DJc0/rOPVKbTMk=; b=TquFnaFU2OwJ3VI5N5YtblOeAP+jC5wqYoGcw/YPpJLlXPqe0wljW/pmJTpK8LtVBr 8jXYnOHORYDvlKT9ezBlkIgMN2HcUFGKf7xYAJ5qw1B4dsu7lT+Hm1ZbJ2nyJo+Wa6rP yyqZSdotkYsxfmT9xRMi3qIn6AEJzVRSDv7XCmdnFAJmHlL2W1czu/bkz4Fk3eYhbCZk 55LjoNay+5eHcaEiRRxbxEwnHBizChfKxqY2sPOfz7DWgumnB4MsccAYA7rG3Fyz/aDI k5riZFOWxZcP34wlpreKuf71wb4DJURjM/0zM8kZC7NjEjrrlv7IOgB5RmZaUn5coEYC V1tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725969938; x=1726574738; 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=MzdyG8dGgduVceRWbJMwluMY36Tu6DJc0/rOPVKbTMk=; b=qXZdeOfDPrYfIL+At+gPZ6nAduAFOxe+7mKt7VtbVB71XHM7NNtC64QNBjYLnT5c5p YFlhGf4KzH21KaWnNCdory3p0jbXHnGturz+GbYq28r04F6a3tRtnuocA3vnBjQKKjJm WoxO5+k6EaDzL/iQnaU8s9AttwYw6e+msUPSNUY9VtipMZVsspfQn08FyLIGzgbmAD4d GvZ0XU11Im2MK+xGQGDQO2iFPDhjtgQyXgDAmpTUSoirC6Ox8ofKqvJ6QgD/juV2T3a0 2BCc5Wu4jRKWRFiYFFTIYK7hHShb1wSyONqjZAbwGWsiisxUykfbwClFJeoKlOt9VdYp d6ZQ== X-Gm-Message-State: AOJu0YwI0nZawPb4q7hRx2aBspNzfYtSWmvDeduVS/ZNyP0OuZkI0img NodwSWiTYrEixqhtrmpzUiETW/T70Ggbslvxf2ITHVlSMkco3zr30huXw8U7YJtKknkqvRg0DKW inXNofE780Ih4l0K0UaBeI8vDC2kuG0BS X-Google-Smtp-Source: AGHT+IH2o/RBJddshwp8a/jPU/bY7wcpTNIKeqyCX0n5kceDu7uAhcxV62PMPzn9DmsQ9FryMFtNSRGkAM/WGCHhRYI= X-Received: by 2002:a05:6808:4442:b0:3e0:48b2:3f40 with SMTP id 5614622812f47-3e048b24281mr3144502b6e.45.1725969938306; Tue, 10 Sep 2024 05:05:38 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::234; envelope-from=yurivkhan@gmail.com; helo=mail-oi1-x234.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:323526 Archived-At: On Tue, 10 Sept 2024 at 02:00, arthur miller wrote: > Of course, if there is a beginning-of-list, there should be end-of-list too? I > have prototyped one hastly, which just inverts the condition (works), but the > proper way would be to refactor out the common code and do the argument > handling similar as in forward-sexp, or something like that. You might be interested in sp-beginning-of-sexp, sp-end-of-sexp and other navigation commands defined in smartparens.