From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] Proposing to add express to ELPA Date: Tue, 1 Aug 2023 12:09:43 -0700 Message-ID: <87E8B2CD-CE95-4C9F-8764-C996FBDC91C5@gmail.com> References: <0C0218D1-6C00-4E5A-9E6E-6282F170126A@gmail.com> <87r0onjido.fsf@posteo.net> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) 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="32797"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 01 21:10:58 2023 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 1qQulk-0008JW-GT for ged-emacs-devel@m.gmane-mx.org; Tue, 01 Aug 2023 21:10:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQukx-0002BU-3D; Tue, 01 Aug 2023 15:10:07 -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 1qQukv-00026A-CF for emacs-devel@gnu.org; Tue, 01 Aug 2023 15:10:05 -0400 Original-Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qQukt-0001ph-P4 for emacs-devel@gnu.org; Tue, 01 Aug 2023 15:10:05 -0400 Original-Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-686e29b058cso4384829b3a.1 for ; Tue, 01 Aug 2023 12:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690916998; x=1691521798; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=V/jAz1LJeBwKms+8ZikYQdrFdlH+qskTMQYA/Mcr+H4=; b=PRrlB0VQvMA6yHAe8vsJb4eLn1UAp3U1Xsty0kcHz+UAWRFKIhgx0u2o7gGqDJbJfJ npUt3+5wUE7dVwBgWY/ST8XOW0xVEbtEqTGTDulP6HYYgfihZ1vWYFkol1ah+Al+444V 3iFHosaRklMPMeYjxrfhTfNdpva8MLiK+awyGysgpFKhK3s4duC9g+7SAMByqhhnfyhx xLKjnNfmmGM+N/aO1DOoW+mRXtHIoEOm2k1Qz77bf99GobWrMBegQIOt/Cdss73w9wIq zr0XwqKqlqBitZaqZnkLibdePjo4V3Hvb9f2K5QN3BgZHO5YsyiMDVKdeGOuoz0SVeQj DXsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690916998; x=1691521798; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V/jAz1LJeBwKms+8ZikYQdrFdlH+qskTMQYA/Mcr+H4=; b=V6FI9UBqk/2xYoS+REyOmAc0SfGh8Xno/gnEAX+FTU6mUDJ5SXaeAROEQuDL03A6h+ vUTb7aJXcS/mNJdvEej09PefdGKuLKd/7bK7N+976XrTTvuR76mlSKgHmemWDmfaGKNj dtaUEpzzFBLXomLRt9zo69CcI2xoicjvJbbeWv55M95SY6XZ//O5BJFsR0c/uQRdbzPj gEonq23haVZpMa5wywvXXHmv6oP0nW41mG8RPRl2t/1eSY6aoY/VGMmAkh+pbe59AxdR xojzVNtPC9oSISJqXuvGMEOhicnpcOCUrugm6os2GK+hdBOsbiQOQ2dFvORQlq+UzoiB EKvw== X-Gm-Message-State: ABy/qLY6FF3YLw0oFTqeIufqddqwB/TLkM4+82Yw3ylyQ6Gd5Dphpnvf EHwF5ju6bbMFEGMGL9I7QNA= X-Google-Smtp-Source: APBJJlFM1ZEluJA9PGgLSAt4kiGKEkqkpPQXXzdBzz54Qi7q60hhIbrZRzfHX1k/eJuB4pNFO/Jztw== X-Received: by 2002:a05:6a21:4849:b0:117:a2f3:3c93 with SMTP id au9-20020a056a21484900b00117a2f33c93mr12171066pzc.2.1690916997729; Tue, 01 Aug 2023 12:09:57 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id k22-20020aa792d6000000b00686bef8e55csm9677125pfa.39.2023.08.01.12.09.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Aug 2023 12:09:57 -0700 (PDT) In-Reply-To: <87r0onjido.fsf@posteo.net> X-Mailer: Apple Mail (2.3731.600.7) Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=casouri@gmail.com; helo=mail-pf1-x432.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, T_SCC_BODY_TEXT_LINE=-0.01 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:308239 Archived-At: > On Aug 1, 2023, at 1:07 AM, Philip Kaludercic = wrote: >=20 > Yuan Fu writes: >=20 >> Hi all, >=20 > Hi, >=20 >> Since Emacs 29 is now released, I=E2=80=99d like to propose adding = expreg to >> ELPA. Expreg can be considered a lite version of expand-region. The >> notable difference is its use of tree-sitter for language-specific >> expansions. I also took the liberty to do things differently than >> expand-region, eg, expreg uses a smaller number of expanders [1]; it >> is easier to debug when the expansion isn=E2=80=99t what you = expected; and it >> only provides two functions for expansion and contraction, and one >> variable for adding/removing expanders=E2=80=94no transient maps and = other >> =E2=80=9Csmart=E2=80=9D features, nor different variables to set for = each major mode. >>=20 >> The obvious downsides is that, of course, it=E2=80=99s pretty useless = on >> anything other than lisp if you don=E2=80=99t have tree-sitter = grammars and >> major mode installed. You can use it in a non-tree-sitter major mode, >> as long the tree-sitter grammar exists. You only need to create a >> parser and expreg will automatically use the parser [2]. >>=20 >> I=E2=80=99ve been using it for months and ironed out all sorts of = edge-cases, and can recommend it for daily usage. >=20 > this looks nice! I have a few comments that might be interesting: Thanks for going over it. I incorporated your suggestions. Yuan=