From unknown Mon Aug 18 11:11:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25083: 26.0.50; poor interaction between flymake and desktop-save-mode Resent-From: Sam Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Dec 2016 19:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25083 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 25083@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: sds@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.148061963031766 (code B ref -1); Thu, 01 Dec 2016 19:14:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Dec 2016 19:13:50 +0000 Received: from localhost ([127.0.0.1]:49062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCWnf-0008G9-ET for submit@debbugs.gnu.org; Thu, 01 Dec 2016 14:13:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCWna-0008Fr-6z for submit@debbugs.gnu.org; Thu, 01 Dec 2016 14:13:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCWnT-0005Ka-GP for submit@debbugs.gnu.org; Thu, 01 Dec 2016 14:13:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43102) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cCWnT-0005KK-EH for submit@debbugs.gnu.org; Thu, 01 Dec 2016 14:13:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCWnR-0000K2-EV for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2016 14:13:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCWnP-0005Il-PS for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2016 14:13:29 -0500 Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]:35206) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cCWnL-0005Fk-1Z; Thu, 01 Dec 2016 14:13:23 -0500 Received: by mail-qt0-x229.google.com with SMTP id c47so230512152qtc.2; Thu, 01 Dec 2016 11:13:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:return-receipt-to:reply-to:date:message-id :mime-version; bh=P0+x6AmeIRQTL2T30wGkPSbt26sjYVS90hnzHXRfYZw=; b=QJX++a5VkzhJjt40db2CsX0rEstSVbu4KC8r2bqkkhv7uFt+uwWixOJzbvxGVcN5cb HuyirX2qUq4urtRpl2wMK6wRj37famXAcHvfqfcxY8kHjN+sL9vTtsYCzofgMsM5/wQ3 sdDW9lvJYxBMpODp2ElaIp6fUOIpSTmANgWznm+GbfHigU7/Ot4AY2gekunwVsiI45pj IHB8+52MPUZOy/iA8/bRew99s+99JcWKhwDPCmjmBg5Q5choCeSm3jDDcyowFNczVYwF 81IAaByT4PfHIPwBH4WPDJe9Lnr7hozEuWR1v8mqkZ5GX63AxHyTJFpAZ8raB7rZG9gW axdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:return-receipt-to :reply-to:date:message-id:mime-version; bh=P0+x6AmeIRQTL2T30wGkPSbt26sjYVS90hnzHXRfYZw=; b=YQBt/HY7t11Uuoz/x+9bIPqToU/yKukXrfn8smVoCENIpLxMiPoplx91iMXHf4/998 0ITFBenUHy30i82BxN60MmxBMvSL8sjwaRc/HzT81/u8XUDfHthDdBUM4cksmbyFyqPz M/f6UQC8c7RlaoECwr8oHhu3250RgL5dfITgs1QY7qTOWoUhY8ZKNyoA5UvglqtkDygU gjaPVVxgCeOaVNeruTZHBCImPMTUBepJgg1RKHBAURIhTE6easwyLQswVrxTGO9NRzEP O2diHxtgrxO1bcRyHeeFEPkuFullHC7ZgsYUdu7AXtAFT980JTnOgFOdhY6wISpxBsCH bsmQ== X-Gm-Message-State: AKaTC03URwOPuRRuF056iY50P+5nlwnxZ6BPWKogzRxO7zQfAMSJBpfidAWOdrEzM97czg== X-Received: by 10.200.58.199 with SMTP id x65mr34288238qte.152.1480619601694; Thu, 01 Dec 2016 11:13:21 -0800 (PST) Received: from clr-sds ([38.101.106.18]) by smtp.gmail.com with ESMTPSA id 5sm778775qts.47.2016.12.01.11.13.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Dec 2016 11:13:20 -0800 (PST) From: Sam Steingold X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Date: Thu, 01 Dec 2016 14:13:20 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) When I start Emacs after editing a bunch of Python files, desktop-save-mode restores them and flymake starts syntax checking processes in each of them. However, there is a snag: python virtual environments. Basically, each python projects uses a separate virtual environments which includes its own python packages, and, moreover, its own python and pylint executables(!) This means that flymake fails to find the epylint executable and displays a GUI popup(!) for each(!) python file that I edited in the previous session. Note that this failure should _not_ be fatal (see PS below). You can imagine, I am sure, how frustrating it is to have to click on "OK" (or even hit "esc") 30 times before Emacs actually starts. The workaround is to customize `flymake-gui-warnings-enabled' to nil, but this is only one part of the problem. The necessary fixes would entail: * flymake should only display GUI warnings in response to a manual action, not when desktop-save-mode restores a buffer. * the initial failure in desktop-save-mode should "defer" flymake rather than "disable" it permanently. PS. Fixing the following will probably require pyvenv-specific work and is outside the core Emacs issues, but maybe you have suggestions: This initial failure, apparently, makes flymake _disable_ itself in all restored buffers, so I have to re-enable it manually (if & when I notice that it is not running there). When I select the Python virtual environment using the pyvenv-workon command (I might also disable virtual environment altogether or switch between them &c), the location of the epylint executable should change. In GNU Emacs 26.0.50.2 (x86_64-apple-darwin16.1.0, NS appkit-1504.60 Version 10.12.1 (Build 16B2555)) of 2016-12-01 built on clr-sds Repository revision: bb8e38273e701ad5c65e747e8eda3bd8f3aa4adb Windowing system distributor 'Apple', version 10.3.1504 Recent messages: Running hg log -r . -l1 --template {i... ....OK = 0 Compiling /Users/sds/.emacs.el...done Wrote /Users/sds/.emacs.elc Mark set Quit Mark saved where search started nil [2 times] t nil Scanning for dabbrevs...done Configured using: 'configure --with-ns PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig/' Configured features: IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS Important settings: value of $LANG: C locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: pyvenv-mode: t diff-auto-refine-mode: t rcirc-track-minor-mode: t which-function-mode: t url-handler-mode: t show-paren-mode: t desktop-save-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t abbrev-mode: t Load-path shadows: /Users/sds/.emacs.d/elpa/scala-mode-20160902.525/ob-scala hides /Users/sds/src/emacs/trunk/lisp/org/ob-scala Features: (shadow sort bbdb-message mailalias cookie1 mail-extr gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range gnus-win dabbrev emacsbug sendmail skeleton cl-indent misearch multi-isearch find-func apropos log-edit message puny rfc822 mml mml-sec epa epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 gmm-utils mailheader pcvs-util time-stamp smerge-mode pp vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs add-log view dired-aux dired dired-loaddefs company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-cmake company-xcode company-clang company-eclim company-template company-css company-nxml company-bbdb yasnippet flymake company help-fns radix-tree elpy find-file-in-project ivy delsel ivy-overlay ffap pyvenv elpy-refactor derived edmacro kmacro grep files-x etags xref project cus-edit python tramp-sh json vc-dir ewoc vc vc-git diff-mode map vc-dispatcher vc-hg flyspell ispell finder-inf info package warnings midnight ein-loaddefs gnus nnheader subr-x gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit bbdb-mua bbdb-com crm mailabbrev bbdb-loaddefs bbdb bbdb-site timezone rcirc server which-func imenu url-handlers url-parse url-vars paren help-at-pt desktop frameset cus-start cus-load ido seq ess-toolbar ess-mouse mouseme thingatpt browse-url ess-menu ess-swv ess-noweb ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a ess-sta-d ess-sta-l cc-vars cc-defs make-regexp ess-sp6-d ess-dde ess-sp3-d ess-julia ess-r-d ess-r-syntax ess-r-completion ess-roxy essddr noutline outline easy-mmode hideshow ess-help ess-r-package ess-s-l ess ess-inf ess-tracebug compile tramp tramp-compat tramp-loaddefs trampver shell pcomplete comint ansi-color ring format-spec advice auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra help-mode cconv eieio-core cl-macs eieio-loaddefs password-cache ess-mode ess-noweb-mode ess-utils ess-generics ess-custom executable easymenu ess-compat ess-site cl gv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 642163 39633) (symbols 48 46093 0) (miscs 40 7223 57) (strings 32 210073 19420) (string-bytes 1 5186064) (vectors 16 81486) (vector-slots 8 1396247 7356) (floats 8 1232 676) (intervals 56 10786 54) (buffers 976 58)) -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1504 http://steingoldpsychology.com http://www.childpsy.net http://memri.org https://ffii.org http://thereligionofpeace.com Those who value Life above Freedom are destined to lose both. From unknown Mon Aug 18 11:11:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25083: 26.0.50; poor interaction between flymake and desktop-save-mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Dec 2016 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25083 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: sds@gnu.org Cc: 25083@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 25083-submit@debbugs.gnu.org id=B25083.14806213001828 (code B ref 25083); Thu, 01 Dec 2016 19:42:02 +0000 Received: (at 25083) by debbugs.gnu.org; 1 Dec 2016 19:41:40 +0000 Received: from localhost ([127.0.0.1]:49086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCXEi-0000TQ-KH for submit@debbugs.gnu.org; Thu, 01 Dec 2016 14:41:40 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34527) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCXEh-0000TE-3I for 25083@debbugs.gnu.org; Thu, 01 Dec 2016 14:41:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCXEb-0001jY-3j for 25083@debbugs.gnu.org; Thu, 01 Dec 2016 14:41:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCXEW-0001hd-Mx; Thu, 01 Dec 2016 14:41:28 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4531 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cCXEU-00074l-2D; Thu, 01 Dec 2016 14:41:28 -0500 Date: Thu, 01 Dec 2016 21:41:17 +0200 Message-Id: <83zikfo2si.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Sam Steingold on Thu, 01 Dec 2016 14:13:20 -0500) References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.9 (-------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.9 (-------) > From: Sam Steingold > Date: Thu, 01 Dec 2016 14:13:20 -0500 > > When I start Emacs after editing a bunch of Python files, > desktop-save-mode restores them and flymake starts syntax checking > processes in each of them. > > However, there is a snag: python virtual environments. > Basically, each python projects uses a separate virtual environments > which includes its own python packages, and, moreover, its own python > and pylint executables(!) > > This means that flymake fails to find the epylint executable and > displays a GUI popup(!) for each(!) python file that I edited in the > previous session. Note that this failure should _not_ be fatal (see PS > below). Isn't there some variable(s) which you could instruct desktop.el to save, in order to avoid these problems? IOW, why doesn't desktop restore whatever setup you had before shutting down Emacs, which avoided the prompts at that time? From unknown Mon Aug 18 11:11:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25083: 26.0.50; poor interaction between flymake and desktop-save-mode Resent-From: Sam Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Dec 2016 20:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25083 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 25083@debbugs.gnu.org Received: via spool by 25083-submit@debbugs.gnu.org id=B25083.148062267010365 (code B ref 25083); Thu, 01 Dec 2016 20:05:02 +0000 Received: (at 25083) by debbugs.gnu.org; 1 Dec 2016 20:04:30 +0000 Received: from localhost ([127.0.0.1]:49109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCXah-0002gy-Br for submit@debbugs.gnu.org; Thu, 01 Dec 2016 15:04:30 -0500 Received: from mail-io0-f181.google.com ([209.85.223.181]:35826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCXaf-0002gj-9R for 25083@debbugs.gnu.org; Thu, 01 Dec 2016 15:04:21 -0500 Received: by mail-io0-f181.google.com with SMTP id a124so443977319ioe.2 for <25083@debbugs.gnu.org>; Thu, 01 Dec 2016 12:04:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=3ms2a/1FCdCRIvrlmEVdKYAPI2jBoIf9NeGw8IHikkg=; b=xu28fQhVkUUDhKz/Yc+QdzlxNsO7DUAvoF0M3gyO/deFsIkeZZVrL6K/1QcHLD24Mb pAvIF2YtzNoLpLUWMF8CUMuXjoIjFslp58M15907sJeL+fnn6ByDzQqjzxrsRndaFOfz crke9tO/7HyPwc7QfA8mBM/62dxGPBl59dUvo/HgRh/tdPB8LMoLndBjjcUqnDiTss5E 361y5beV3U3qlnZ+OIPaz5/RlODYbDvQcLyWpzQCZQ9WYKEvXaD9LFp7N6/FevWvRSbf d/PKRm1NU7CV4j8zRnDh+lB9n4kZkGo4WWDZPOOIw0+65UTAA9HURzrRqARL6lU2FbHf 4EPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=3ms2a/1FCdCRIvrlmEVdKYAPI2jBoIf9NeGw8IHikkg=; b=gDPWcuz85PswLqOumHJcOrEun4fW6arZTj0T5rlczMupfeGBnMZXkqQWMIQ8CZIs24 PsQvXVt/QTawnlKlnKQSoJ+RYiIba4XaGbwdi7wWZzQky4JX4iytrOzoZ5hNXrLlt2ad vj2TJt6rSObU1o3EHkDFrUKHvGYIbWkEw5vg3Pfdh2OfZYOuLACCmEJlEXo24EWzSJOB Jx1njJX1DjPZjQph1D4LyBY+6CyYIiZVx7kVVn6KhNoeNTyj33PMLqcehtpGVPmW9UY5 5PfNfna6omXtsgjjayvYEKBSSopcGGSSdORSjBeMf+eH0Ek5TF5B6t3Skj42eqbgXGHI 9g8Q== X-Gm-Message-State: AKaTC00N/6vnnVWon7+5s07/nXX4XhX7Uln9vLgdgJ9YZW2II+PhMy0YadLdZ3kCWNl8kPFNqraQ5UMmImCZYQ== X-Received: by 10.36.211.137 with SMTP id n131mr35316886itg.28.1480622655579; Thu, 01 Dec 2016 12:04:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.155.135 with HTTP; Thu, 1 Dec 2016 12:04:14 -0800 (PST) In-Reply-To: <83zikfo2si.fsf@gnu.org> References: <83zikfo2si.fsf@gnu.org> From: Sam Steingold Date: Thu, 1 Dec 2016 15:04:14 -0500 X-Google-Sender-Auth: 9Wf3wOTDSaMlvIigc3DecRpy6UI Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) you are making a good point. however, _I_ (the user) should not have to deal with this myself. flymake should know how to work with desktop. however, the problem here is that the check command is merely "epylint" and it is found in the path which is modified by pyvenv. I agree that elpy/pyvenv should, ideally, handle that (see https://github.com/jorgenschaefer/elpy/issues/1035). however, it is not obvious to me that there is nothing flymake can do to alleviate my pain. at the very least, the massive errors on re-start should not be reported via GUI. On Thu, Dec 1, 2016 at 2:41 PM, Eli Zaretskii wrote: >> From: Sam Steingold >> Date: Thu, 01 Dec 2016 14:13:20 -0500 >> >> When I start Emacs after editing a bunch of Python files, >> desktop-save-mode restores them and flymake starts syntax checking >> processes in each of them. >> >> However, there is a snag: python virtual environments. >> Basically, each python projects uses a separate virtual environments >> which includes its own python packages, and, moreover, its own python >> and pylint executables(!) >> >> This means that flymake fails to find the epylint executable and >> displays a GUI popup(!) for each(!) python file that I edited in the >> previous session. Note that this failure should _not_ be fatal (see PS >> below). > > Isn't there some variable(s) which you could instruct desktop.el to > save, in order to avoid these problems? IOW, why doesn't desktop > restore whatever setup you had before shutting down Emacs, which > avoided the prompts at that time? -- Sam Steingold From unknown Mon Aug 18 11:11:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25083: 26.0.50; poor interaction between flymake and desktop-save-mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Dec 2016 07:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25083 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Sam Steingold Cc: 25083@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 25083-submit@debbugs.gnu.org id=B25083.148066249211006 (code B ref 25083); Fri, 02 Dec 2016 07:09:02 +0000 Received: (at 25083) by debbugs.gnu.org; 2 Dec 2016 07:08:12 +0000 Received: from localhost ([127.0.0.1]:49399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cChx6-0002rS-7G for submit@debbugs.gnu.org; Fri, 02 Dec 2016 02:08:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41365) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cChx4-0002rE-0M for 25083@debbugs.gnu.org; Fri, 02 Dec 2016 02:08:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cChwy-0000X0-8o for 25083@debbugs.gnu.org; Fri, 02 Dec 2016 02:08:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cChws-0000VD-Qq; Fri, 02 Dec 2016 02:07:58 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1153 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cChws-00070x-8V; Fri, 02 Dec 2016 02:07:58 -0500 Date: Fri, 02 Dec 2016 09:08:08 +0200 Message-Id: <83twamolk7.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Sam Steingold on Thu, 1 Dec 2016 15:04:14 -0500) References: <83zikfo2si.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.9 (-------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.9 (-------) > From: Sam Steingold > Date: Thu, 1 Dec 2016 15:04:14 -0500 > Cc: 25083@debbugs.gnu.org > > you are making a good point. > however, _I_ (the user) should not have to deal with this myself. > flymake should know how to work with desktop. My intent was to suggest a way in which this could be solved, not to imply that there's no problwm. As seem to be familiar with flymake, I hoped that you might be able to point to that variable, and we could either included it by default, or at least discuss whether setting it (assuming it exists) is a user-level issue. Thanks. From unknown Mon Aug 18 11:11:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25083: 26.0.50; poor interaction between flymake and desktop-save-mode Resent-From: Sam Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Dec 2016 13:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25083 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 25083@debbugs.gnu.org Received: via spool by 25083-submit@debbugs.gnu.org id=B25083.148068706322543 (code B ref 25083); Fri, 02 Dec 2016 13:58:01 +0000 Received: (at 25083) by debbugs.gnu.org; 2 Dec 2016 13:57:43 +0000 Received: from localhost ([127.0.0.1]:49623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCoLK-0005rQ-RR for submit@debbugs.gnu.org; Fri, 02 Dec 2016 08:57:43 -0500 Received: from mail-io0-f177.google.com ([209.85.223.177]:36541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCoLI-0005rC-RJ for 25083@debbugs.gnu.org; Fri, 02 Dec 2016 08:57:37 -0500 Received: by mail-io0-f177.google.com with SMTP id m5so344195087ioe.3 for <25083@debbugs.gnu.org>; Fri, 02 Dec 2016 05:57:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=O/59LCGHge+QRYUEWKtLMMtszb0EWO9gtBUng5h+Rk8=; b=u6Epd7Na8HZzox7/RPjHmwjSvFWDgOKOuMO8Ijmrmir0YdGkpnPxhjitrdd+v1EA8R T5anZqQyWeegGG7yX1KmLMRhRBx3RL8o97s9YeomL9trAzqCiaLrnqP6n8noo/uqrClc sPtW1cOVNklL38saA3iTwrdf7Bu9NhQAFjV6zxNw84BJxWwexvhUDBOw5pZWKwSxbRhB ZFsWYddXuGAJu1T3ikU0yqUwWst7ZxfEz2UUapVQR7sHsHSjyEXr/skbkPbwMcGuIhzD AkjhEQHiU/xTqkKO4QfXpfQVWetFmiudwdBd+0r3zp+7C1KxfZuLODu8xL4WGvnssWRj i1vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=O/59LCGHge+QRYUEWKtLMMtszb0EWO9gtBUng5h+Rk8=; b=blqi+BI+VfIpR6Bs2gwf/XB8k0TyL9xJTFUXySPflUmNlNOn3CpgyyXfbXb5+Z3YuZ uF1aapTcoO0X4/QjeLcozk0F3SpUFWVM46iiNBI6AEwW0wFb5qAllhWYEfqh1kl2toXN RKVMXnvK22E7IPmWvJI3cX8qZQ4O65EPwFOtFZEA/HXNuNRiA9DvUzwheSKQulUxWLvx flIWdD7tOBeUP+sLuEJp0GJvgHOQ/z+iQZvZjduz7EZNspOIdu/0ShWxCSKMAUNtfl58 0kkH4XiMZkbNcO6K/BWuOvf4WDJADGRq4rrh3Wp4mhpF7ctPiERCFKq3dYemvzUhv+YV 4X0g== X-Gm-Message-State: AKaTC00BEvoQ4MsqMMxWVHRztu1ciqEoJwaQFLCpo4b5qTGScnqPctW2/Bcvr6QvEuK822RhVfd8w65/zT0b+Q== X-Received: by 10.107.7.96 with SMTP id 93mr39241743ioh.136.1480687051072; Fri, 02 Dec 2016 05:57:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.10.21 with HTTP; Fri, 2 Dec 2016 05:57:29 -0800 (PST) In-Reply-To: <83zikfo2si.fsf@gnu.org> References: <83zikfo2si.fsf@gnu.org> From: Sam Steingold Date: Fri, 2 Dec 2016 08:57:29 -0500 X-Google-Sender-Auth: kH56GhhoFS_ABIqyTiW_7ISsrs0 Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) the flymake command is "epylint" and it worked because exec-path was modified by pyvenv-workon. I am not sure exec-path should be saved by desktop. thanks! On Thu, Dec 1, 2016 at 2:41 PM, Eli Zaretskii wrote: >> From: Sam Steingold >> Date: Thu, 01 Dec 2016 14:13:20 -0500 >> >> When I start Emacs after editing a bunch of Python files, >> desktop-save-mode restores them and flymake starts syntax checking >> processes in each of them. >> >> However, there is a snag: python virtual environments. >> Basically, each python projects uses a separate virtual environments >> which includes its own python packages, and, moreover, its own python >> and pylint executables(!) >> >> This means that flymake fails to find the epylint executable and >> displays a GUI popup(!) for each(!) python file that I edited in the >> previous session. Note that this failure should _not_ be fatal (see PS >> below). > > Isn't there some variable(s) which you could instruct desktop.el to > save, in order to avoid these problems? IOW, why doesn't desktop > restore whatever setup you had before shutting down Emacs, which > avoided the prompts at that time? -- Sam Steingold From unknown Mon Aug 18 11:11:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25083: 26.0.50; poor interaction between flymake and desktop-save-mode Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Dec 2016 07:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25083 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: sds@gnu.org Cc: 25083@debbugs.gnu.org Received: via spool by 25083-submit@debbugs.gnu.org id=B25083.148118185517445 (code B ref 25083); Thu, 08 Dec 2016 07:25:02 +0000 Received: (at 25083) by debbugs.gnu.org; 8 Dec 2016 07:24:15 +0000 Received: from localhost ([127.0.0.1]:60695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEt3u-0004XJ-ON for submit@debbugs.gnu.org; Thu, 08 Dec 2016 02:24:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEt3t-0004X4-4M for 25083@debbugs.gnu.org; Thu, 08 Dec 2016 02:24:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEt3n-0004Yk-9Q for 25083@debbugs.gnu.org; Thu, 08 Dec 2016 02:24:07 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEt3Q-00049G-KQ; Thu, 08 Dec 2016 02:23:44 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cEt3Q-0002K0-23; Thu, 08 Dec 2016 02:23:44 -0500 From: Glenn Morris References: X-Spook: Electric SRI electronic surveillance keyhole constitution X-Ran: tNwJlqKtE?5)zIw$q.~|uW70T#.%*IVhg,*w"VnalL["eojYMD1Pn7hlMM7%py (Sam Steingold's message of "Thu, 01 Dec 2016 14:13:20 -0500") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.0 (--------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.0 (--------) Sam Steingold wrote: > * flymake should only display GUI warnings in response to a manual > action, not when desktop-save-mode restores a buffer. Fixed in 041afb2. > * the initial failure in desktop-save-mode should "defer" flymake rather > than "disable" it permanently. I don't know what this means. > PS. Fixing the following will probably require pyvenv-specific work and > is outside the core Emacs issues Indeed, pyvenv should add the necessary items to the list of things that desktop saves and restores. From unknown Mon Aug 18 11:11:35 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: sds@gnu.org Subject: bug#25083: closed (Re: bug#25083: 26.0.50; poor interaction between flymake and desktop-save-mode) Message-ID: References: X-Gnu-PR-Message: they-closed 25083 X-Gnu-PR-Package: emacs Reply-To: 25083@debbugs.gnu.org Date: Wed, 12 Aug 2020 00:36:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1597192562-25417-1" This is a multi-part message in MIME format... ------------=_1597192562-25417-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #25083: 26.0.50; poor interaction between flymake and desktop-save-mode which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 25083@debbugs.gnu.org. --=20 25083: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25083 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1597192562-25417-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 25083-done) by debbugs.gnu.org; 12 Aug 2020 00:35:41 +0000 Received: from localhost ([127.0.0.1]:42109 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5ek0-0006bC-Ib for submit@debbugs.gnu.org; Tue, 11 Aug 2020 20:35:40 -0400 Received: from mail-yb1-f181.google.com ([209.85.219.181]:40317) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5ejy-0006al-Jl for 25083-done@debbugs.gnu.org; Tue, 11 Aug 2020 20:35:39 -0400 Received: by mail-yb1-f181.google.com with SMTP id q3so425186ybp.7 for <25083-done@debbugs.gnu.org>; Tue, 11 Aug 2020 17:35:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=iZWuqGQ3GWMwQGAXrLJBP8xs61cx/220fPzEVGROYfs=; b=T4rhlBpzt/yYJDXN6owCGaaXKMvZSUKEni5HbKPKL9kAUb0gCQeUa913hcHUvfk3zO kMmv71rggUV95b74+LTMF5CLIJWCXm+wpKpmJxdKblpLRd5PiPr7R9Ey0Rp2QkEzIbqD S7WmiFsxOrSlQb9Cb0jDgImJVv4Y3yGjaHvbvNNMj5UQTbYvNZpuFGSRF2dCCt/qLwEo HPkYrrQb67mYlzyObIkFqoiJ1p/FbJGCJ65t5tyEJTusfC28KM4UvL+xPtfYs6JNoOT9 +k9jVPXTlZqGhsWETA2CVFGfBRXtVzh7Y1N4LSN3fdiMKmHNr8FIYltDeO42yynCucVv LZEA== X-Gm-Message-State: AOAM53320/nqQy5N8tb2/q5A5ZK7JggFaWlu0hFEGCQ1b/3xdHWRdPPF zOVTL/vXzb+byi7wP5z4kalGc5zwmXvfNmbQs8T1iseFs5s= X-Google-Smtp-Source: ABdhPJwYAMjLls0Xz8HP4xwlUJXy5GQGD76yzX2Y5fP6SPUkHXzAhAmCoNY1SH/4TG7sEKYyp2pms0iCVvGnrmg6wjw= X-Received: by 2002:a25:b290:: with SMTP id k16mr21096907ybj.389.1597192533119; Tue, 11 Aug 2020 17:35:33 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 11 Aug 2020 17:35:32 -0700 From: Stefan Kangas In-Reply-To: (Glenn Morris's message of "Thu, 08 Dec 2016 02:23:43 -0500") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 11 Aug 2020 17:35:32 -0700 Message-ID: Subject: Re: bug#25083: 26.0.50; poor interaction between flymake and desktop-save-mode To: Glenn Morris Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25083-done Cc: sds@gnu.org, 25083-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Glenn Morris writes: > Sam Steingold wrote: > >> * flymake should only display GUI warnings in response to a manual >> action, not when desktop-save-mode restores a buffer. > > Fixed in 041afb2. > >> * the initial failure in desktop-save-mode should "defer" flymake rather >> than "disable" it permanently. > > I don't know what this means. > >> PS. Fixing the following will probably require pyvenv-specific work and >> is outside the core Emacs issues > > Indeed, pyvenv should add the necessary items to the list of things that > desktop saves and restores. Having read the discussion, it seems like this issue was fixed by Glenn in the above commit. The rest is discussing something which we don't know what it means, and something which is outside Emacs development. Since there seems to be nothing more to do here, I'm closing this bug report. If this conclusion is incorrect, please reply to this email (use "Reply to all" in your email client) and we can reopen the bug report. Thanks. Best regards, Stefan Kangas ------------=_1597192562-25417-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Dec 2016 19:13:50 +0000 Received: from localhost ([127.0.0.1]:49062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCWnf-0008G9-ET for submit@debbugs.gnu.org; Thu, 01 Dec 2016 14:13:50 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53991) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCWna-0008Fr-6z for submit@debbugs.gnu.org; Thu, 01 Dec 2016 14:13:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCWnT-0005Ka-GP for submit@debbugs.gnu.org; Thu, 01 Dec 2016 14:13:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43102) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cCWnT-0005KK-EH for submit@debbugs.gnu.org; Thu, 01 Dec 2016 14:13:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCWnR-0000K2-EV for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2016 14:13:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCWnP-0005Il-PS for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2016 14:13:29 -0500 Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]:35206) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cCWnL-0005Fk-1Z; Thu, 01 Dec 2016 14:13:23 -0500 Received: by mail-qt0-x229.google.com with SMTP id c47so230512152qtc.2; Thu, 01 Dec 2016 11:13:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:return-receipt-to:reply-to:date:message-id :mime-version; bh=P0+x6AmeIRQTL2T30wGkPSbt26sjYVS90hnzHXRfYZw=; b=QJX++a5VkzhJjt40db2CsX0rEstSVbu4KC8r2bqkkhv7uFt+uwWixOJzbvxGVcN5cb HuyirX2qUq4urtRpl2wMK6wRj37famXAcHvfqfcxY8kHjN+sL9vTtsYCzofgMsM5/wQ3 sdDW9lvJYxBMpODp2ElaIp6fUOIpSTmANgWznm+GbfHigU7/Ot4AY2gekunwVsiI45pj IHB8+52MPUZOy/iA8/bRew99s+99JcWKhwDPCmjmBg5Q5choCeSm3jDDcyowFNczVYwF 81IAaByT4PfHIPwBH4WPDJe9Lnr7hozEuWR1v8mqkZ5GX63AxHyTJFpAZ8raB7rZG9gW axdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:return-receipt-to :reply-to:date:message-id:mime-version; bh=P0+x6AmeIRQTL2T30wGkPSbt26sjYVS90hnzHXRfYZw=; b=YQBt/HY7t11Uuoz/x+9bIPqToU/yKukXrfn8smVoCENIpLxMiPoplx91iMXHf4/998 0ITFBenUHy30i82BxN60MmxBMvSL8sjwaRc/HzT81/u8XUDfHthDdBUM4cksmbyFyqPz M/f6UQC8c7RlaoECwr8oHhu3250RgL5dfITgs1QY7qTOWoUhY8ZKNyoA5UvglqtkDygU gjaPVVxgCeOaVNeruTZHBCImPMTUBepJgg1RKHBAURIhTE6easwyLQswVrxTGO9NRzEP O2diHxtgrxO1bcRyHeeFEPkuFullHC7ZgsYUdu7AXtAFT980JTnOgFOdhY6wISpxBsCH bsmQ== X-Gm-Message-State: AKaTC03URwOPuRRuF056iY50P+5nlwnxZ6BPWKogzRxO7zQfAMSJBpfidAWOdrEzM97czg== X-Received: by 10.200.58.199 with SMTP id x65mr34288238qte.152.1480619601694; Thu, 01 Dec 2016 11:13:21 -0800 (PST) Received: from clr-sds ([38.101.106.18]) by smtp.gmail.com with ESMTPSA id 5sm778775qts.47.2016.12.01.11.13.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Dec 2016 11:13:20 -0800 (PST) From: Sam Steingold To: bug-gnu-emacs@gnu.org Subject: 26.0.50; poor interaction between flymake and desktop-save-mode X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Date: Thu, 01 Dec 2016 14:13:20 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sds@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) When I start Emacs after editing a bunch of Python files, desktop-save-mode restores them and flymake starts syntax checking processes in each of them. However, there is a snag: python virtual environments. Basically, each python projects uses a separate virtual environments which includes its own python packages, and, moreover, its own python and pylint executables(!) This means that flymake fails to find the epylint executable and displays a GUI popup(!) for each(!) python file that I edited in the previous session. Note that this failure should _not_ be fatal (see PS below). You can imagine, I am sure, how frustrating it is to have to click on "OK" (or even hit "esc") 30 times before Emacs actually starts. The workaround is to customize `flymake-gui-warnings-enabled' to nil, but this is only one part of the problem. The necessary fixes would entail: * flymake should only display GUI warnings in response to a manual action, not when desktop-save-mode restores a buffer. * the initial failure in desktop-save-mode should "defer" flymake rather than "disable" it permanently. PS. Fixing the following will probably require pyvenv-specific work and is outside the core Emacs issues, but maybe you have suggestions: This initial failure, apparently, makes flymake _disable_ itself in all restored buffers, so I have to re-enable it manually (if & when I notice that it is not running there). When I select the Python virtual environment using the pyvenv-workon command (I might also disable virtual environment altogether or switch between them &c), the location of the epylint executable should change. In GNU Emacs 26.0.50.2 (x86_64-apple-darwin16.1.0, NS appkit-1504.60 Version 10.12.1 (Build 16B2555)) of 2016-12-01 built on clr-sds Repository revision: bb8e38273e701ad5c65e747e8eda3bd8f3aa4adb Windowing system distributor 'Apple', version 10.3.1504 Recent messages: Running hg log -r . -l1 --template {i... ....OK = 0 Compiling /Users/sds/.emacs.el...done Wrote /Users/sds/.emacs.elc Mark set Quit Mark saved where search started nil [2 times] t nil Scanning for dabbrevs...done Configured using: 'configure --with-ns PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig/' Configured features: IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS Important settings: value of $LANG: C locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: pyvenv-mode: t diff-auto-refine-mode: t rcirc-track-minor-mode: t which-function-mode: t url-handler-mode: t show-paren-mode: t desktop-save-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t abbrev-mode: t Load-path shadows: /Users/sds/.emacs.d/elpa/scala-mode-20160902.525/ob-scala hides /Users/sds/src/emacs/trunk/lisp/org/ob-scala Features: (shadow sort bbdb-message mailalias cookie1 mail-extr gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range gnus-win dabbrev emacsbug sendmail skeleton cl-indent misearch multi-isearch find-func apropos log-edit message puny rfc822 mml mml-sec epa epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 gmm-utils mailheader pcvs-util time-stamp smerge-mode pp vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs add-log view dired-aux dired dired-loaddefs company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-cmake company-xcode company-clang company-eclim company-template company-css company-nxml company-bbdb yasnippet flymake company help-fns radix-tree elpy find-file-in-project ivy delsel ivy-overlay ffap pyvenv elpy-refactor derived edmacro kmacro grep files-x etags xref project cus-edit python tramp-sh json vc-dir ewoc vc vc-git diff-mode map vc-dispatcher vc-hg flyspell ispell finder-inf info package warnings midnight ein-loaddefs gnus nnheader subr-x gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit bbdb-mua bbdb-com crm mailabbrev bbdb-loaddefs bbdb bbdb-site timezone rcirc server which-func imenu url-handlers url-parse url-vars paren help-at-pt desktop frameset cus-start cus-load ido seq ess-toolbar ess-mouse mouseme thingatpt browse-url ess-menu ess-swv ess-noweb ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a ess-sta-d ess-sta-l cc-vars cc-defs make-regexp ess-sp6-d ess-dde ess-sp3-d ess-julia ess-r-d ess-r-syntax ess-r-completion ess-roxy essddr noutline outline easy-mmode hideshow ess-help ess-r-package ess-s-l ess ess-inf ess-tracebug compile tramp tramp-compat tramp-loaddefs trampver shell pcomplete comint ansi-color ring format-spec advice auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra help-mode cconv eieio-core cl-macs eieio-loaddefs password-cache ess-mode ess-noweb-mode ess-utils ess-generics ess-custom executable easymenu ess-compat ess-site cl gv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 642163 39633) (symbols 48 46093 0) (miscs 40 7223 57) (strings 32 210073 19420) (string-bytes 1 5186064) (vectors 16 81486) (vector-slots 8 1396247 7356) (floats 8 1232 676) (intervals 56 10786 54) (buffers 976 58)) -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1504 http://steingoldpsychology.com http://www.childpsy.net http://memri.org https://ffii.org http://thereligionofpeace.com Those who value Life above Freedom are destined to lose both. ------------=_1597192562-25417-1--