emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master 934a72c: User can specify files never subject t


From: Sam Steingold
Subject: Re: [Emacs-diffs] master 934a72c: User can specify files never subject to flymake.
Date: Fri, 03 Nov 2017 11:50:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin)

> * Stefan Monnier <address@hidden> [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:

--8<---------------cut here---------------start------------->8---
(eval-when-compile (defvar flymake-proc-ignored-file-name-regexps))
(eval-after-load "flymake"
  '(add-to-list 'flymake-proc-ignored-file-name-regexps '"/scratch"))
--8<---------------cut here---------------end--------------->8---

(I know it's ugly, please see
https://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00199.html for
discussion).

Thanks.

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1504
http://steingoldpsychology.com http://www.childpsy.net http://camera.org
http://iris.org.il http://no2bds.org http://memri.org http://mideasttruth.com
My inner voice mostly screams "shut up!"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]