From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62892: proposal to extend mark-sexp to go forward and backward on command Date: Fri, 21 Apr 2023 09:10:43 -0400 Message-ID: References: Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="695"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Zachary Kanfer , 62892@debbugs.gnu.org To: Ruijie Yu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 21 15:11:21 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 1ppqXn-000ARY-0s for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Apr 2023 15:11:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppqXd-0006QE-4w; Fri, 21 Apr 2023 09:11:09 -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 1ppqXX-0006P9-7d for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 09:11:07 -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 1ppqXW-0008OJ-Vt for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 09:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ppqXW-0005aw-Fu for bug-gnu-emacs@gnu.org; Fri, 21 Apr 2023 09:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Apr 2023 13:11:02 +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.168208265421492 (code B ref 62892); Fri, 21 Apr 2023 13:11:02 +0000 Original-Received: (at 62892) by debbugs.gnu.org; 21 Apr 2023 13:10:54 +0000 Original-Received: from localhost ([127.0.0.1]:39602 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppqXO-0005aZ-4L for submit@debbugs.gnu.org; Fri, 21 Apr 2023 09:10:54 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:32728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppqXM-0005aM-Ux for 62892@debbugs.gnu.org; Fri, 21 Apr 2023 09:10:53 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6A44C1000DD; Fri, 21 Apr 2023 09:10:47 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id DEB16100054; Fri, 21 Apr 2023 09:10:45 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1682082645; bh=xiZccsT+Emum4EtIlJrtIMCfziV0xk6Kw86Z7JDNQ5w=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=UkwvAAWoSweHMOMUuvcaYoXCxLbYx/GqNH4tSZLbuit5zg0WaZZrZ4j/S8SzZ2i0N 50bGKnXxPfInsl6NJgQEsYcssioJK+sWzwEHYBBs+9Qj4GcJhwVHbyEcbvVI66+Cka wK+T58+M6Of+6mthTsfDu9GiogYK016KDEUHEYmnNiAr6YffvggwGwWBss1teXfSmd 4nVCTSVqiuWfNMSM3S/flWEVjzSk8g+yMXgBNephOCzcRRHnvQfuMjNUTLvZS6DJEX vM3lelnpVsp7SR+fTZSvNsqJ6j8oz9rOKrse4dxB8dewmGIZTdMCEkEwwpgg6OtRUT EMC0k7vMsh1Ow== Original-Received: from pastel (unknown [45.72.217.176]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 35B0F1201A7; Fri, 21 Apr 2023 09:10:45 -0400 (EDT) In-Reply-To: (Ruijie Yu's message of "Mon, 17 Apr 2023 11:06:03 +0800") 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:260384 Archived-At: > If this is to be accepted, why not extend it to all like mark functions, > listed below? Implementing them should be pretty similar, and you might > even be able to reuse the same helper for all these variants. Also, the > helper function might need to contain a double-dash in its name because > this is inherently a private function. > > - `mark-defun' > - `mark-page' > - `mark-paragraph' > - `mark-word' Agreed: we should move towards a more orthogonal/composable design, where the granularity of the operation (char, word, line, sexp, paragraph, page, defun, ...) and the operation itself (move, mark) and the direction and all independent such that we can use any combination of them. Both at the ELisp level and at the key-binding level. Stefan