From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#32350: 26.1; Disabling flymake from file-local eval is buggy Date: Thu, 04 Oct 2018 16:04:16 +0100 Message-ID: References: <878t5oa3e5.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1538665427 763 195.159.176.226 (4 Oct 2018 15:03:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 4 Oct 2018 15:03:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) Cc: 32350@debbugs.gnu.org To: Carlos Pita Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 04 17:03:42 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g85AB-0008Tq-9A for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Oct 2018 17:03:39 +0200 Original-Received: from localhost ([::1]:56207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g85CH-00004x-NR for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Oct 2018 11:05:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g85C7-00004q-GQ for bug-gnu-emacs@gnu.org; Thu, 04 Oct 2018 11:05:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g85Bs-0004OU-Rn for bug-gnu-emacs@gnu.org; Thu, 04 Oct 2018 11:05:32 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60792) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g85BY-00040P-HI for bug-gnu-emacs@gnu.org; Thu, 04 Oct 2018 11:05:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g85BV-0006ET-Tp for bug-gnu-emacs@gnu.org; Thu, 04 Oct 2018 11:05:03 -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: Thu, 04 Oct 2018 15:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32350 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32350-submit@debbugs.gnu.org id=B32350.153866547023915 (code B ref 32350); Thu, 04 Oct 2018 15:05:01 +0000 Original-Received: (at 32350) by debbugs.gnu.org; 4 Oct 2018 15:04:30 +0000 Original-Received: from localhost ([127.0.0.1]:36817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g85B0-0006Df-Ji for submit@debbugs.gnu.org; Thu, 04 Oct 2018 11:04:30 -0400 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:44391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g85Ax-0006DM-6W for 32350@debbugs.gnu.org; Thu, 04 Oct 2018 11:04:29 -0400 Original-Received: by mail-wr1-f41.google.com with SMTP id 63-v6so10292015wra.11 for <32350@debbugs.gnu.org>; Thu, 04 Oct 2018 08:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=fdWKkfJrgXZLsp7+QzS5cR0om2uSAqvMLKtUChk9aok=; b=f/7RouprUIFFCDpRM7W450+tSBVuc/CoSm/fstqPJNP67VmJQYW0ZZqQq7WOq5Qyf5 vzKlGpkhfKsoKjCSHcuNtHGLYNkxGWIBAb38SU7TUh/rxRLfsgtBC14LOlSzH4P/CVLT Ep5vABDhiCt9ydA56IN3TUQ6FuDXDTl8qLFzZa0nk8PEfiRQEdvrgwwK6b7Ls9kFu8bj +ADZhT+veVMgvFXYtntdp5xxCzq+56sHab2yh0Kf0moifUUqjrlJTYUpZliVrtgWgTKA /LPimJ4Jzc/wa2CR0m76CsLhbwDLfZ8ZWt6KFo7TOaF2bg6MzC0/1pOnH6dyjYC74ZrZ k1Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=fdWKkfJrgXZLsp7+QzS5cR0om2uSAqvMLKtUChk9aok=; b=GC45yHY5PyTtgA8047dZCGg5fDTFA6jyqKwGvhTKwb33qRhIP2xgEuV45w17KVwRlG PX374Mi2B7pKCQCn6lZIT3j0ow8klZ5j0QCIeth3RkF3HFm6T/bESrIkcEhkasbAy7Hy mkmSeG78LIuj8AG/mM0usNU+sCPiqU6aPDPqygr1fPRlMLq7vP4vqCqYA0udB7J5JSCu 3dAUsMKPtW+m8WLyicqRUcFTQ1F7FY7zpVjQgZzen7LHoxbb6wtF8fxp+hAw6PXXEyQb ylRjoNqQ0ERdQSP74Bu1c1OiMtyxhjSjm7eJX/JyXzsd+wAzzM/Rf3D7Bk7VkB/3FeGP oXQA== X-Gm-Message-State: ABuFfoisJ5tNMNR2pwZdS0TQmQGEkRo7awCtkNHTE8bt7hv7CMhdZemZ cN6Rizd5SRln9/GQtq6VjEflvWFB X-Google-Smtp-Source: ACcGV61CI04WjEtcqPcY3oZBLAHWkFMgHnyQLbW6pR7O1XPuX12A2FpFxS+QqZ/E19HPNy4JbeZmIg== X-Received: by 2002:adf:80c7:: with SMTP id 65-v6mr5132835wrl.57.1538665461091; Thu, 04 Oct 2018 08:04:21 -0700 (PDT) Original-Received: from GONDOMAR.yourcompany.com (mail3.siscog.pt. [195.23.29.18]) by smtp.gmail.com with ESMTPSA id v16-v6sm4357788wru.31.2018.10.04.08.04.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Oct 2018 08:04:19 -0700 (PDT) In-Reply-To: <878t5oa3e5.fsf@gmail.com> (Carlos Pita's message of "Thu, 02 Aug 2018 18:02:10 -0300") X-Antivirus: AVG (VPS 181004-2, 04-10-2018), Outbound message X-Antivirus-Status: Clean 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: 208.118.235.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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:150934 Archived-At: Carlos Pita writes: > Just try putting this in test.el and reopening it: > > ;; -*- eval: (flymake-mode -1) -*- > > (1 1) > > Flymake will be off, it won't write anything to the modeline but the > fringe and in-buffer underline indicators will still be there. > > If you eval the same expression using M-: after the buffer is loaded > flymake mode is fully turned off as expected. Hi Carlos, Perhaps the best way to turn off flymake on a file-by-file basis is to use the flymake-diagnostic-functions local variable instead, with the added benefit that it won't be risky if you set it to a null value. flymake-diagnostic-functions is a variable defined in `flymake.el'. Its value is nil =20=20=20=20=20 This variable may be risky if used as a file-local variable. This variable is safe as a file local variable if its value satisfies the predicate `null'. I don't know how hard it is to make mode-specific eval's work properly from file-local-variables but I would suspect flymake-mode isn't the only mode affected by this. Jo=E3o