From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#58839: [Patch] Re: bug#58839: 29.0.50; project-kill-buffer fails when Eglot is running Date: Wed, 02 Nov 2022 11:31:11 +0000 Message-ID: <871qqltwxs.fsf@posteo.net> References: <87sfj8umwb.fsf@posteo.net> <87v8o0uxn5.fsf@gmail.com> <787a4362-7ff5-7dbb-9118-16e4bee5f328@yandex.ru> <87edunvhf2.fsf@gmail.com> <6d4d9e72-1bae-4d64-b7c1-c2b9c11e396f@yandex.ru> <87tu3jgdbv.fsf@posteo.net> <87h6zihq3q.fsf@posteo.net> <877d0ehlnb.fsf@posteo.net> <87edumg4fd.fsf@posteo.net> <874jvig2rp.fsf@posteo.net> <87edulu8ly.fsf@gmail.com> <87wn8dbyq1.fsf@posteo.net> <871qqlu79b.fsf@gmail.com> <877d0dbwbu.fsf@posteo.net> <87r0ylsq7o.fsf@gmail.com> <87v8nxafoz.fsf@posteo.net> <87iljxsmx9.fsf@gmail.com> 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="14166"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 58839@debbugs.gnu.org, Dmitry Gutov To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 02 12:32:35 2022 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 1oqBz0-0003Td-TY for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Nov 2022 12:32:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqByi-0001AI-Oa; Wed, 02 Nov 2022 07:32:16 -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 1oqByb-00017P-RP for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 07:32:13 -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 1oqByU-0000Ag-EN for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 07:32:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqByT-0001G0-Vt for bug-gnu-emacs@gnu.org; Wed, 02 Nov 2022 07:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Nov 2022 11:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58839 X-GNU-PR-Package: emacs Original-Received: via spool by 58839-submit@debbugs.gnu.org id=B58839.16673886884786 (code B ref 58839); Wed, 02 Nov 2022 11:32:01 +0000 Original-Received: (at 58839) by debbugs.gnu.org; 2 Nov 2022 11:31:28 +0000 Original-Received: from localhost ([127.0.0.1]:45038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqBxw-0001F8-6O for submit@debbugs.gnu.org; Wed, 02 Nov 2022 07:31:28 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:52937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqBxu-0001Et-Ub for 58839@debbugs.gnu.org; Wed, 02 Nov 2022 07:31:27 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 29DE6240028 for <58839@debbugs.gnu.org>; Wed, 2 Nov 2022 12:31:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667388681; bh=5/Ac3PgPkgBFNQ25ePngB+QFUx3mdYx09nb3tUzp/E4=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=D2pq4ewm43qJhfmhshhVeiLRhtzoAPot6mPht1mgpswURcsV5RNBmp22fbjSmwKHb oBJ+iyNEXGSu5e3oD3C8MMECWoGzVjAwn1GlnWrXRXJSWhrA2iy7VhXrNkO4wpJfgX pJjDb9DRdbas+7nfrvVvxRQV5Q1oH5txqKc/D7/4kuJm/5212A30UG1/diiS6mYTk1 YxkqmSLkDJ5OnJ0HdraGZBlFM/ahoQGDQYD/yReHGsJ408kYAsk3o2hvlV3XbW7Egs aExo4gTocy/rTuKQqMGxvLye1h2wYs2xM/jtj4zXF23NJ38fEkZFZMfNSm3mW67CRC xVrMgg0IkKI4w== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N2Pps73CPz6tn7; Wed, 2 Nov 2022 12:31:17 +0100 (CET) In-Reply-To: <87iljxsmx9.fsf@gmail.com> ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Wed, 02 Nov 2022 09:52:50 +0000") Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246858 Archived-At: Jo=C3=A3o T=C3=A1vora writes: >>> That way you still get your mini-language, you get a much faster version >>> of it, and you don't force your mini-language to other people who prefer >>> just typing plain old Elisp. >> >> That is not the case to begin with, as the "mini-language" is just a >> super-set of Emacs Lisp, seeing as any function is a legal word of the >> language. As I have said before, it just makes it easier to write >> common operations like matching buffer names or major modes. > > That's not what a super-set is. A super-set language is C++ to C, > because C++ can compile (almost any) C program. The mini-language is a > DSL. In my opinion, one that brings very few advantages, but there's no > accounting for taste. So the common way to do DSL's in Elisp is use the > approach I provided. You make them more useful, and you don't force > people to use them. Let B be the set of S-Expressions that `buffer-match-p' handles, and F be the set of S-Expressions that satisfy `functionp'. We see that B =E2=88=96 F =E2=89=A0 =E2=88=85 as for any foo, (major-mode . foo) =E2=88=88 B, but (major-mode . foo) =E2= =88=89 F. We see that F =E2=88=96 B =3D =E2=88=85 as every function (per `functionp') is a valid `buffer-match-p' predicate. Hence we conclude that B =E2=8A=8B F (strict superset). = =E2=88=8E >> be a special symbol, so I would like to avoid the possibility of this >> leading to issues that hack to be back-hacked at some point in the >> future. >> >> But this is just a matter of personal style. I have seen you write >> documentations strings like "[...] This docstring appeases checkdoc, >> that's all." > > Ahaha, that was just a joke. Keep documenting all your functions, > you're very right to do so. Trust me, don't make defvar's for > (make-symbol). Noone does this: it's just cruft. Again, see the other bug report, the code I pasted in this thread was just a sketch.