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: [Emacs-diffs] master 934a72c: User can specify files never subject to flymake. Date: Fri, 03 Nov 2017 15:48:44 -0400 Organization: disorganization Message-ID: References: <20171101134009.18554.21992@vcs0.savannah.gnu.org> <20171101134010.1A70A209B1@vcs0.savannah.gnu.org> <878tfntcwc.fsf@gmail.com> Reply-To: sds@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1509738546 21547 195.159.176.226 (3 Nov 2017 19:49:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 3 Nov 2017 19:49:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 03 20:49:00 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 1eAhxa-0004sq-Sx for ged-emacs-devel@m.gmane.org; Fri, 03 Nov 2017 20:48:59 +0100 Original-Received: from localhost ([::1]:38226 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAhxi-0008Tz-9O for ged-emacs-devel@m.gmane.org; Fri, 03 Nov 2017 15:49:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAhxc-0008Tu-3c for emacs-devel@gnu.org; Fri, 03 Nov 2017 15:49:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAhxY-0002oK-Vh for emacs-devel@gnu.org; Fri, 03 Nov 2017 15:49:00 -0400 Original-Received: from [195.159.176.226] (port=40826 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eAhxY-0002nY-O5 for emacs-devel@gnu.org; Fri, 03 Nov 2017 15:48:56 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eAhxO-00046r-9v for emacs-devel@gnu.org; Fri, 03 Nov 2017 20:48:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 55 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:8odOilY4PDV9Oz6xfigOwcC27G0= 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:219900 Archived-At: > * João Távora [2017-11-03 18:50:27 +0000]: > > Sam Steingold writes: > >>> * Stefan Monnier [2017-11-02 16:59:23 -0400]: >>> >>>>>> * lisp/progmodes/flymake-proc.el (flymake-proc-ignored-file-name-regexps): >>>>>> Add user customization option. >>>>> Shouldn't this be in flymake.el and apply to all flymake backends >>>>> rather than only those using flymake-proc? >>>> You might be right, but I don't see any place in flymake.el where file >>>> names are processed. >>> >>> Hmm... indeed. I guess the right thing depends on what's the use-case. >>> Could you describe the kind of situation in which you need >>> flymake-proc-ignored-file-name-regexps? >> >> I have files scratch.py which are somewhat like a poor man's notebook, >> with random snippets of code which persist from session to session. >> flymake using pylint will flag most lines in such files. >> >> So I have this in my .emacs: >> >> (eval-when-compile (defvar flymake-proc-ignored-file-name-regexps)) >> (eval-after-load "flymake" >> '(add-to-list 'flymake-proc-ignored-file-name-regexps '"/scratch")) > > [Curious, why do you the defvar? Is the FORM of eval-after-load > byte-compiled?] Yes. > Such a facility to disable flymake could be in flymake.el, but perhaps > it is better if it was already elsewhere in Emacs. I am not prepared to argue over this, especially since it appears that Stefan is not particularly happy about the change either. Basically, elpy enables flymake everywhere and adding --8<---------------cut here---------------start------------->8--- # Local Variables: # flymake-mode: nil # End: --8<---------------cut here---------------end--------------->8--- to every scratch pad is ugly and _does not work_. Thanks. -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1504 http://steingoldpsychology.com http://www.childpsy.net http://no2bds.org https://jihadwatch.org http://honestreporting.com http://think-israel.org (lisp programmers do it better)