From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.bugs Subject: bug#25340: Save-some-buffers gets called when installing packages. Date: Sat, 04 Mar 2017 12:25:12 +0100 Message-ID: <87shmtb7xj.fsf@luca> References: <0467624a-368b-6b61-e08d-97a34c8c25fa@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488626779 3518 195.159.176.226 (4 Mar 2017 11:26:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Mar 2017 11:26:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 25340@debbugs.gnu.org, Nikolay Kudryavtsev To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 04 12:26:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ck7p9-0008L7-JP for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Mar 2017 12:26:07 +0100 Original-Received: from localhost ([::1]:34822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ck7pF-0007JL-QW for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Mar 2017 06:26:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ck7p9-0007Ip-Tp for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 06:26:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ck7p5-0001JK-1n for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 06:26:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40992) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ck7p4-0001JA-JI for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 06:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ck7p4-0002yD-AM for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 06:26:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <0467624a-368b-6b61-e08d-97a34c8c25fa@gmail.com> Resent-From: Andreas Politz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Mar 2017 11:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25340 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 25340-submit@debbugs.gnu.org id=B25340.148862673411324 (code B ref 25340); Sat, 04 Mar 2017 11:26:02 +0000 Original-Received: (at 25340) by debbugs.gnu.org; 4 Mar 2017 11:25:34 +0000 Original-Received: from localhost ([127.0.0.1]:39191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ck7oc-0002wa-8n for submit@debbugs.gnu.org; Sat, 04 Mar 2017 06:25:34 -0500 Original-Received: from gateway-a.fh-trier.de ([143.93.54.181]:51921) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ck7oa-0002wA-8f for 25340@debbugs.gnu.org; Sat, 04 Mar 2017 06:25:32 -0500 X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum Hochschule Trier (RZ/HT)] Original-Received: from localhost (ip5f5bdeea.dynamic.kabel-deutschland.de [95.91.222.234]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: politza) by gateway-a.fh-trier.de (Postfix) with ESMTPSA id 91520179AE6A; Sat, 4 Mar 2017 12:25:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=hochschule-trier.de; s=default; t=1488626713; bh=9YE/gW3smoEJdLuUvY8KAmymJ7g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=b1IAHiOGNUynMVSllGdhnAf+vfjuYASQZ4ZMPA2p/oj7SV3AdFslr1UHW41ptRp/F /E1hLuNkHF5uVZkCWKG233+McDJ59HQtx09HjUdnQi2jgAUi7NYixEqedXnrqCVZFg usGhhN0nQMPTIW5lxz1+GCbstAD+9bzcDTDcQoc8= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:130170 Archived-At: Also, what about excluding non-Lisp files. #+BEGIN_SRC emacs-lisp (lambda () ;; Assuming (buffer-file-name) is always non-nil. (string-match-p emacs-lisp-file-regexp (buffer-file-name)) (file-in-directory-p (buffer-file-name) directory)) #+END_SRC I thing, the string-match-p part could also be used unconditionally. -ap