From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: Refactoring flymake.el Date: Fri, 18 Aug 2017 10:51:23 -0400 Organization: disorganization Message-ID: References: <87378q2r62.fsf@lolita> Reply-To: sds@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1503067969 7320 195.159.176.226 (18 Aug 2017 14:52:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 Aug 2017 14:52:49 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (darwin) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 18 16:52:37 2017 Return-path: Envelope-to: ged-emacs-devel@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 1diidY-000179-Hu for ged-emacs-devel@m.gmane.org; Fri, 18 Aug 2017 16:52:36 +0200 Original-Received: from localhost ([::1]:59860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diidd-0004uf-Fy for ged-emacs-devel@m.gmane.org; Fri, 18 Aug 2017 10:52:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diicf-0004u5-OU for emacs-devel@gnu.org; Fri, 18 Aug 2017 10:51:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diicc-0008Ga-LN for emacs-devel@gnu.org; Fri, 18 Aug 2017 10:51:41 -0400 Original-Received: from [195.159.176.226] (port=48600 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1diicc-0008G0-Ea for emacs-devel@gnu.org; Fri, 18 Aug 2017 10:51:38 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1diicR-00064W-6k for emacs-devel@gnu.org; Fri, 18 Aug 2017 16:51:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@blaine.gmane.org X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Cancel-Lock: sha1:img3NQx1wJkgYYGpXrdO28526dQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217609 Archived-At: > * Stefan Monnier [2017-08-17 18:32:48 -0400]: > >> One thing about flymake that inconveniences me is that I cannot disable >> it for some specific files. >> I have a bunch of "scratch.py" files that I use as poor man's notebooks. > > Can you add some file-local settings in them? elpy (https://github.com/jorgenschaefer/elpy) ignores them. I just tried --8<---------------cut here---------------start------------->8--- # Local Variables: # flymake-mode: nil # End: --8<---------------cut here---------------end--------------->8--- and flymake is still enabled in scratch. So -- no, file-local settings do not solve my problem. >> +(defcustom flymake-disallowed-file-name-regexp nil >> + "File names matching this regexp will not be checked. >> +This overrides `flymake-allowed-file-name-masks'." >> + :group 'flymake >> + :type 'string >> + :version "26.1") > > Using file-local or dir-local variables settings is often more convenient. Nope, because I have to deal with the "safe local variable dialogue" every time I visit such a file. And again when I restart emacs and all those scratch files are reloaded by desktop. I understand the security implications, so I am reluctant to disable the check, but this is a major inconvenience, so would use this approach only as a last resort. So, are you really _that_ opposed to `flymake-disallowed-file-name-regexp'? Thanks. -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1504 http://steingoldpsychology.com http://www.childpsy.net http://honestreporting.com http://thereligionofpeace.com http://islamexposedonline.com http://no2bds.org Beauty is only a light switch away.