From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lele Gaifax Newsgroups: gmane.emacs.devel Subject: Re: Flymake refactored Date: Thu, 05 Oct 2017 17:12:21 +0200 Organization: Nautilus Entertainments Message-ID: <878tgp39yi.fsf@metapensiero.it> References: <87h8vmj3tr.fsf@lolita> <1507138648.1972.0@smtp.gmail.com> <874lre2von.fsf@gmail.com> <87r2uh3kb5.fsf@metapensiero.it> 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 1507216432 12842 195.159.176.226 (5 Oct 2017 15:13:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2017 15:13:52 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 05 17:13:43 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 1e07qE-0001tk-8Z for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2017 17:13:38 +0200 Original-Received: from localhost ([::1]:40362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e07qL-0005Np-IV for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2017 11:13:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e07pM-0005N8-Gi for emacs-devel@gnu.org; Thu, 05 Oct 2017 11:12:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e07pI-0001lq-EL for emacs-devel@gnu.org; Thu, 05 Oct 2017 11:12:44 -0400 Original-Received: from [195.159.176.226] (port=58218 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e07pI-0001lX-75 for emacs-devel@gnu.org; Thu, 05 Oct 2017 11:12:40 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1e07p6-00038R-GD for emacs-devel@gnu.org; Thu, 05 Oct 2017 17:12:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:gqPDcQjqtu7ZNseb/MBGJIRbfE4= 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:219125 Archived-At: Lele Gaifax writes: > b) I had to omit the "local" flag when hooking esk/python-flymake to > flymake-diagnostic-functions as you did in the example: shouldn't the > latter be a defvar-local variable? FTR, I figured out what I was doing wrong, and thus what João suggested was right: the `local' argument to `add-hook' takes care of buffer-localizing the hook variable. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. lele@metapensiero.it | -- Fortunato Depero, 1929.