From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#62892: proposal to extend mark-sexp to go forward and backward on command Date: Fri, 21 Apr 2023 15:21:59 +0530 Message-ID: <87wn2536m8.fsf@gmail.com> References: <83a5z36n1t.fsf@gnu.org> <83mt314vlk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13173"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Zachary Kanfer , juri@linkov.net, ruijie@netyu.xyz, Stefan Monnier , Lars Ingebrigtsen , 62892@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 21 11:53:31 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ppnSM-0003Bj-6X for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Apr 2023 11:53:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppnRv-0003Ai-OC; Fri, 21 Apr 2023 05:53:03 -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 1ppnRu-0003AW-A7 for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 05:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ppnRu-0006Vp-1u for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 05:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ppnRt-0003RU-Jn for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 05:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Apr 2023 09:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62892 X-GNU-PR-Package: emacs Original-Received: via spool by 62892-submit@debbugs.gnu.org id=B62892.168207073913175 (code B ref 62892); Fri, 21 Apr 2023 09:53:01 +0000 Original-Received: (at 62892) by debbugs.gnu.org; 21 Apr 2023 09:52:19 +0000 Original-Received: from localhost ([127.0.0.1]:39391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppnRD-0003QQ-0y for submit@debbugs.gnu.org; Fri, 21 Apr 2023 05:52:19 -0400 Original-Received: from mail-pl1-f193.google.com ([209.85.214.193]:53433) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppnR2-0003Pw-Nj for 62892@debbugs.gnu.org; Fri, 21 Apr 2023 05:52:18 -0400 Original-Received: by mail-pl1-f193.google.com with SMTP id d9443c01a7336-1a69f686345so17541685ad.2 for <62892@debbugs.gnu.org>; Fri, 21 Apr 2023 02:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682070722; x=1684662722; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=as40eSpEC9JK4d2oa6aGF+PB8v5vCnNaud2OKoK0Peg=; b=fTSPEfomz28hFK9S5YG5+9hEjZK6LPu/I0225VluczRO41DcVrmwhv98GkTch21eIv VL2x6LiZ0CFTEGzxYsegZQagpIXd81bwgj/L4+cqtbw+Hduz/17KZyMMilT39VsvFR+q RTHeyuyCuIGhrUvND+RaN8J2bOpoCR/ko44kJAyMmzB2nUg0v7PYzg0y6kXw/PGAdNg4 Eo2NL4MOeK7q1ZT5BhmL59yDWxJo0yQmWvC9F2+bu/oBlUq0N1eWD9zgFvbAgiyO+CDv gkUEg5/n0WNjRuEe7vrCUyhVfWXXaqkxDwFcy9MycW+vTuBsaUNDIZwaOh2inTAsqGAA 4pPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682070722; x=1684662722; h=content-transfer-encoding:mime-version:user-agent: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=as40eSpEC9JK4d2oa6aGF+PB8v5vCnNaud2OKoK0Peg=; b=GVz8+vIRJuJysKPHKN1xt5qQu1PnjOiHxWIu+Qcyuv8QX6KTBdVYMv0lluiO9tBQDY drQMMT9vLLPxycva2EhGPKwiGIsunOXJMtTKYeo3au872w9umMi4A7vQzz6dWnlOwBrw xWyW/xZvWLRg65lWqHdFZiWb/WcFRMgdi7XNaOMfRVpSFDZhiaJmWpzYKCXTI+1+Y38A 4GttTVHZnwLb917hpoimM90YnKNg4RGLb1Uud+NB5eHIuhy77XynuSs5aJnrt+Z9DSKz AMAaAm2+7WOKBIC7t7ofGBpNy22U2hu3rpo9VYAL21i62NGybjJ1iF6Cnl7+oo0E+jlQ mrVA== X-Gm-Message-State: AAQBX9elPCdPcnZZpRgb/Kphzdy7Nf83VoIzeJwrNCi0CwDsmdcQd9gi 6aEuGUA1foOrnbPdA8X+zyg= X-Google-Smtp-Source: AKy350adcvl9p0mDEA4UkRAjRpg9krc4/RH2kdc/un/iAe9JSjHTh6tpPVYfyj4m6sSQGHIUJ8N+Yg== X-Received: by 2002:a17:902:c949:b0:1a6:6fe3:df9e with SMTP id i9-20020a170902c94900b001a66fe3df9emr5782252pla.47.1682070722563; Fri, 21 Apr 2023 02:52:02 -0700 (PDT) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id s1-20020a170902988100b001a1fe40a8dasm2396814plp.262.2023.04.21.02.52.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 02:52:02 -0700 (PDT) In-Reply-To: <83mt314vlk.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 21 Apr 2023 09:07:03 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260372 Archived-At: [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=8F=E0=AE=AA= =E0=AF=8D=E0=AE=B0=E0=AE=B2=E0=AF=8D 21, 2023] Eli Zaretskii wrote: >> From: Zachary Kanfer >> Date: Fri, 21 Apr 2023 01:04:30 -0400 >> Cc: ruijie@netyu.xyz, 62892@debbugs.gnu.org, Juri Linkov >>=20 >> It's able to be worked around, yes -- but I think it's easier to have se= parate methods for forward and >> backward, the way we do for so many other commands. For one, having sepa= rate functions makes it >> easier to start moving backward, (rather than giving a -1 prefix argumen= t. > > Adding functions and commands is not free, it does come with a price: > they need to be documented in our two manuals (something your patch > neglected to do, btw), users need to learn them, etc. > > So I wonder whether on balance it is justified to add this. Lars, > Stefan: any comments or opinions? > > Does anyone else have an opinion? In situations like these, I extend the region simply by motion commands after marking the current sexp. If I want to go in the opposite direction, I type C-x C-x. I don't see myself ever using these commands. This mechanism works for every object that has a mark command, not just sexp which I consider a plus.