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: Fri, 17 Apr 2020 11:07:15 +0100 Message-ID: References: <835ze4lsr1.fsf@gnu.org> <831roslq62.fsf@gnu.org> <87sgh89r78.fsf@mail.linkov.net> <83lfn0j92e.fsf@gnu.org> <87imi39e8w.fsf@mail.linkov.net> <83h7xmipi7.fsf@gnu.org> <878sivdsjn.fsf@mail.linkov.net> <83r1wmd2u0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000069e7b105a379b7a3" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="52243"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40573@debbugs.gnu.org, Juri Linkov , Stefan Monnier , Dmitry Gutov To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 17 12:08:58 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 1jPNvd-000DTI-CC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Apr 2020 12:08:57 +0200 Original-Received: from localhost ([::1]:44944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPNvc-0005vP-EP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Apr 2020 06:08:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35798) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPNul-0005Cv-MF for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 06:08:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPNuk-00080q-Hu for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 06:08:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56643) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jPNuk-00080a-FM for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 06:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jPNuk-0001Iy-Aw for bug-gnu-emacs@gnu.org; Fri, 17 Apr 2020 06:08:02 -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: Fri, 17 Apr 2020 10:08:02 +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.15871180554981 (code B ref 40573); Fri, 17 Apr 2020 10:08:02 +0000 Original-Received: (at 40573) by debbugs.gnu.org; 17 Apr 2020 10:07:35 +0000 Original-Received: from localhost ([127.0.0.1]:39956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPNuI-0001IH-Ra for submit@debbugs.gnu.org; Fri, 17 Apr 2020 06:07:35 -0400 Original-Received: from mail-io1-f43.google.com ([209.85.166.43]:46901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPNuG-0001I4-M1 for 40573@debbugs.gnu.org; Fri, 17 Apr 2020 06:07:33 -0400 Original-Received: by mail-io1-f43.google.com with SMTP id i3so1670055ioo.13 for <40573@debbugs.gnu.org>; Fri, 17 Apr 2020 03:07:32 -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=0o/bV5HFSltYOPHBb2MTiWYAeW8qaz+GJs150GMPzkw=; b=ChytM1filnslCwTUtDcFQOg8QGlAnWpXcSini/XEkYvlyo0ulTFjUfBWh+AjyWpJoo +mhtXD5CfiV2ZyRf9wdtXLQ5fyxPtWddg5GDIZnnQxr5CgkqSx7lUgfCFn4HvDqW1PtA J41qGjkAYPNt9wQ3Bs/C7mt6tnFRG5kMyZf2COuX8IJHBs44djkLv1RKVaB7oqxUBF/P kbdLJY9jbyDBkzJ0kW2XczvhBbkRSe3NKMAiCLEPk95H2LHFrlLRdJ1rzyvTyiVScggA oz5pxUdoF2hsDi55A1yakQkEbApSv5cCaQ4UErtcKdKXOrPn8VWLNj6E7T5YkJG/W5/d LNxA== 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=0o/bV5HFSltYOPHBb2MTiWYAeW8qaz+GJs150GMPzkw=; b=PCic5JGvmggm5N73HzhO4GXfT0rnp2jtDDFAqcjIPsEIKI2AAr3OA+j/VHx/t2ARgD UIRg06MOYWnlJ6AWvRAZENPoSFEneA3ZPML/cP/8hkF2GEs9cQ9avewFXm3LssWCE5r5 oWqB+0Rejw+tilC880uY4A+lNXjZJczahmiXZubSaXoCArA4dUnusimcap9HNlxqCPuj AX+Xkcp5qpW78Yz6g78GuJ4MEHB03Ev3H9Btzzvl8GTwi8JOQaTi50GDRai7TaYUIy6H 2aHzLYIl7cx6D/l94a+3wAnouV/roZ9bRubjXcy7FHZ1HuzqTJHPnuF19urvzU7reaN3 kJrg== X-Gm-Message-State: AGi0Pubahqe0xsCpK4ENydY419DCVCyT3rEw0ffOApyf3n9bRM2D4YDj E8MUV8HQaJeJj9pKydZapjGaMX5z2R4Fws3l1+Q= X-Google-Smtp-Source: APiQypKpE78IFdSMBm4jYlrK4skKu0UqhZ9AfpPjxC2mH5q8XhWPzh9DKeo2U4ITdE2HIQLqfR3+AXK7Lxcdcb+pZQQ= X-Received: by 2002:a02:969a:: with SMTP id w26mr2477348jai.71.1587118047092; Fri, 17 Apr 2020 03:07:27 -0700 (PDT) In-Reply-To: <83r1wmd2u0.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:178494 Archived-At: --00000000000069e7b105a379b7a3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Apr 17, 2020 at 7:49 AM Eli Zaretskii wrote: > > From: Stefan Monnier > > Cc: Eli Zaretskii , joaotavora@gmail.com, > > 40573@debbugs.gnu.org, dgutov@yandex.ru > > Date: Thu, 16 Apr 2020 19:06:51 -0400 > > > > > Each package could add its data file name to auto-mode-alist. > > > For example, bookmark.el could do something like: > > > > > > (add-to-list 'auto-mode-alist (cons bookmark-default-file > 'emacs-lisp-data-mode)) > > > > For generated files, it's probably better to add a -*- cookie in > > the file. > > Right. But some modes define an init file that users need to create > and maintain. > Right. But: 1. do we have a starting idea of which of those are mode-generated and which of those are user-generated? And which can be either? 2. do we need to decide on this, admittedly nice-to-have behaviour, before introducing the new major mode? Shouldn't we just take a "best-effort" approach here? Jo=C3=A3o --=20 Jo=C3=A3o T=C3=A1vora --00000000000069e7b105a379b7a3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Apr 17, 2020 at 7:49 AM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Stefan Monnier <monnier@iro.umontreal.ca>=
> Cc: Eli Zaretskii <eliz@gnu.org>,=C2=A0 joaotavora@gmail.com,
>=C2=A0 =C2=A040573@debbugs.gnu.org,=C2=A0 dgutov@yandex.ru
> Date: Thu, 16 Apr 2020 19:06:51 -0400
>
> > Each package could add its data file name to auto-mode-alist.
> > For example, bookmark.el could do something like:
> >
> >=C2=A0 =C2=A0(add-to-list 'auto-mode-alist (cons bookmark-defa= ult-file 'emacs-lisp-data-mode))
>
> For generated files, it's probably better to add a -*- cookie in > the file.

Right.=C2=A0 But some modes define an init file that users need to create and maintain.

Right.=C2=A0 But:

1. do we have a starting idea of which of those are m= ode-generated
and which of those are user-generated? And which c= an be either?

2. do we need to decide on this,= admittedly nice-to-have behaviour,
before introducing the new ma= jor mode?=C2=A0 Shouldn't we just take a
"best-effo= rt" approach here?

Jo=C3=A3o


--
= Jo=C3=A3o T=C3=A1vora
--00000000000069e7b105a379b7a3--