From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#40573: 27.0.90; flymake-mode broken in scratch buffer Date: Sun, 19 Apr 2020 10:25:41 +0100 Message-ID: References: <83a73acted.fsf@gnu.org> <837dyecoyb.fsf@gnu.org> <835zdyclfa.fsf@gnu.org> <83zhbab07u.fsf@gnu.org> <83v9lyazdo.fsf@gnu.org> <83r1wmav3h.fsf@gnu.org> <83a739b0sd.fsf@gnu.org> <835zdxaw60.fsf@gnu.org> <83zhb99dkg.fsf@gnu.org> <4c62fce9-3b9e-ec63-198c-953e3e9b5d09@yandex.ru> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000645c5b05a3a15e6a" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="32759"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Basil L. Contovounesios" , 40573@debbugs.gnu.org, Stefan Monnier , Juri Linkov To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 19 11:26:08 2020 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 1jQ6DI-0008R7-9a for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 11:26:08 +0200 Original-Received: from localhost ([::1]:39540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQ6DH-0003yw-9r for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Apr 2020 05:26:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52964) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQ6DC-0003yo-IE for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 05:26:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQ6DC-0004kX-6K for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 05:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60729) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQ6DB-0004k2-QO for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 05:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jQ6DB-0006Qk-Kk for bug-gnu-emacs@gnu.org; Sun, 19 Apr 2020 05:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Apr 2020 09:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40573 X-GNU-PR-Package: emacs Original-Received: via spool by 40573-submit@debbugs.gnu.org id=B40573.158728835924707 (code B ref 40573); Sun, 19 Apr 2020 09:26:01 +0000 Original-Received: (at 40573) by debbugs.gnu.org; 19 Apr 2020 09:25:59 +0000 Original-Received: from localhost ([127.0.0.1]:44042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQ6D8-0006QR-Sk for submit@debbugs.gnu.org; Sun, 19 Apr 2020 05:25:59 -0400 Original-Received: from mail-il1-f177.google.com ([209.85.166.177]:46966) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jQ6D7-0006QF-PL for 40573@debbugs.gnu.org; Sun, 19 Apr 2020 05:25:58 -0400 Original-Received: by mail-il1-f177.google.com with SMTP id x2so5301993ilp.13 for <40573@debbugs.gnu.org>; Sun, 19 Apr 2020 02:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VDL1rYv+KdU0y7NxTRZ+ehY7MNUeE58ZWOhTsxLWHyw=; b=XChVjAB6/qfPxq8bAQ24BlEqrU6QCQ6K5jRJK6JMaAvJS5fXu1djmV3z3d0OmT21cg xJi4OnxMvWnvu4bihB8LYGCi+UBarK+ptgSuA657v2jNV1hp+2jQWbNpKlypwE09weIT yadIAyIRrh1jNeppKMqDI8s7q43Imt8l4Ih51mqCzSbzt0d/ujNyRQs/zMQWTIQW23wd gLj4PBq7Z3TUsvAV5XRINhfqLUQ+xjhbaOGoImnLSK5nP+xyT1zwjhmmfKl5bYAs0c4T brfuPgHfXLGurUQxzPTg4a+36IstcYuR6kZCVGciorl9miVz+AYwI4tuNNHSJ39K+5Iv EJ8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VDL1rYv+KdU0y7NxTRZ+ehY7MNUeE58ZWOhTsxLWHyw=; b=Buh0RZdM4Vguh8xDaPagF9hoBh7QkewlInIruVlsvGqm7adhBOiEr52fgRGGn8wdZc VP08+fGCWbwHXjXdj2bvVhYNiFlSXTGHZe64ot3aSaq4Z3tN5L0fxFcbutt9NpPMsvo1 MXSlhljAJncTub1gSFfiPGoZ4uRLB/PjfkKzg4ls51/sTN6iOgUOevS3nTthEW2GXyv7 1kJsoDxbWy65TKEq7mQu/vD6aIG9v0gsrQc7DzxH5hxf3o5q5A03u5nWhbRYp4PYPfl4 FWVWvFpEbSfKCqn3jjsJ/DdcJ4pzBSefaHE/9NKtzMr9Lkd2aLam5eQUEyFgN/OxyVKI wJGg== X-Gm-Message-State: AGi0PubZAwO9y7tJ1vqaPbBeigiFDyMksGG+ZFDS+NG6bM125lksqU59 2c7CmjOvsYRPafZu3WAyU8PGp17I8+fLBJLxtMU= X-Google-Smtp-Source: APiQypLqPfWFhKqyU8orp+Wf0W7/Q6dTO0jK7vp1miHUELcEtJ2tVvzabh5hBseu14Bmi4YZG/AvT/brztSvOwoGayo= X-Received: by 2002:a05:6e02:6c1:: with SMTP id p1mr11278975ils.137.1587288352249; Sun, 19 Apr 2020 02:25:52 -0700 (PDT) In-Reply-To: <4c62fce9-3b9e-ec63-198c-953e3e9b5d09@yandex.ru> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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" Xref: news.gmane.io gmane.emacs.bugs:178624 Archived-At: --000000000000645c5b05a3a15e6a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Apr 19, 2020 at 1:05 AM Dmitry Gutov wrote: > On 19.04.2020 02:36, Jo=C3=A3o T=C3=A1vora wrote: > > -(define-derived-mode lisp-mode prog-mode "Lisp" > > +(define-derived-mode lisp-mode lisp-data-mode "Lisp" > > Speaking of. Is lisp-mode a special case of lisp-data-mode? > > I would say maybe not: you usually can't (read) a whole Lisp buffer, > right? What do you mean? In what conditions? If anything it's more so than in Emacs, because you can program CL's read-table and make Lisp files look like JS, if you really want (but noone does that). In that case lisp-data-mode would maybe break down a bit, but so would lisp-mode itself since the syntax table wouldn't track those changes (though It can take quite a beating, especially with SLY/SLIME's enhancements). In that situation, you'd have to use something like LSP, where the server constanty tell the editor of the syntax of things. In all my years of CL, I've not seen this a problem in practice. So I would make lisp-data-mode inherit from prog-mode (and have > them share a helper initializer). > If there is indeed a problem like this, then that's a solution yes. Basically amounts to using composition instead of inheritance. But I don't see it. Jo=C3=A3o --000000000000645c5b05a3a15e6a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Apr 19, 2020 at 1:05 AM Dmitry Gu= tov <dgutov@yandex.ru> wrote:=
On 19.04.2020 02:36, Jo=C3=A3o T=C3=A1vora wrote:
> -(define-derived-mode lisp-mode prog-mode "Lisp"
> +(define-derived-mode lisp-mode lisp-data-mode "Lisp"

Speaking of. Is lisp-mode a special case of lisp-data-mode?

I would say maybe not: you usually can't (read) a whole Lisp buffer, right?

What do you mean? In what condition= s? If anything it's more so
than in Emacs, because you can pr= ogram CL's read-table and
make Lisp files look like JS, = if you really want (but noone does that).
In that case lisp-data-= mode would maybe break down a bit, but
so would lisp-mode itself = since the syntax table wouldn't track those
changes (tho= ugh It can take quite a beating, especially with
SLY/SLIME's= enhancements).=C2=A0 In that situation, you'd have to
u= se something like LSP, where the server constanty tell the
editor= of the syntax of things.=C2=A0 In all my years of CL, I've not
seen this a problem in practice.

So I would make lisp-data-mode inherit f= rom prog-mode (and have
them share a helper initializer).

If th= ere is indeed a problem like this, then that's a solution yes.
Basically amounts to using composition instead of inheritance.
<= /div>
But I don't see it.

Jo=C3=A3o
--000000000000645c5b05a3a15e6a--