From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25340: Save-some-buffers gets called when installing packages. Date: Sat, 04 Mar 2017 09:47:10 -0500 Message-ID: <87lgsl9k0h.fsf@users.sourceforge.net> References: <0467624a-368b-6b61-e08d-97a34c8c25fa@gmail.com> <87zij63z0j.fsf@users.sourceforge.net> <8a717ff8-c5f7-2b3e-33d0-0a0403dbddf5@gmail.com> <87fukw5381.fsf@users.sourceforge.net> <8760jpcpld.fsf@luca> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1488638841 10507 195.159.176.226 (4 Mar 2017 14:47:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Mar 2017 14:47:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 25340@debbugs.gnu.org, Nikolay Kudryavtsev To: Andreas Politz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 04 15:47:09 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 1ckAxe-000180-R4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Mar 2017 15:47:06 +0100 Original-Received: from localhost ([::1]:35600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckAxk-0007a9-JU for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Mar 2017 09:47:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckAxd-0007ZX-8j for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 09:47:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckAxa-00034j-68 for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 09:47:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41117) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ckAxa-00034d-2H for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 09:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ckAxZ-0006Hm-Rb for bug-gnu-emacs@gnu.org; Sat, 04 Mar 2017 09:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Mar 2017 14:47:01 +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.148863876424068 (code B ref 25340); Sat, 04 Mar 2017 14:47:01 +0000 Original-Received: (at 25340) by debbugs.gnu.org; 4 Mar 2017 14:46:04 +0000 Original-Received: from localhost ([127.0.0.1]:39311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckAwe-0006G8-AO for submit@debbugs.gnu.org; Sat, 04 Mar 2017 09:46:04 -0500 Original-Received: from mail-it0-f67.google.com ([209.85.214.67]:32881) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ckAwb-0006FQ-L5 for 25340@debbugs.gnu.org; Sat, 04 Mar 2017 09:46:02 -0500 Original-Received: by mail-it0-f67.google.com with SMTP id 68so5216977itg.0 for <25340@debbugs.gnu.org>; Sat, 04 Mar 2017 06:46:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=b+KjkrQDfq8JGouNpqQQ2ex2CH2uXlTnCbFLL76yzEI=; b=rfkC729a+p6JvLi2wR1mUvSTaSLG1klU8janbAj7zOM752TEd8oOFOGxhw0mRrd6Im WkVASvX6GYxBaqXhxb7N2f+F1N/PeswvhN+ruQIKN1zGWIUgi0ONbVc6g+GZdhBWYM3p JG+mUz1qIBH+hu22RwF8OH8m2Y2dHqtru2vBiYD9+5bxFGJ+/QQtPGJPzEskbrcVBLmM X989aPwkkJgoim5e63C47vqIzl8uwk34p1Os4cy3x2VM+SUCvJRVIO0HIMfj0xk8wAkq sr0wqN79AJ/sf4sDGe3lfR0Cea8IEyRiG+AfMvkmolkkq7qcmQHRqgk+r8LPvyujiMfr Isyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=b+KjkrQDfq8JGouNpqQQ2ex2CH2uXlTnCbFLL76yzEI=; b=I2KVRpJW7OHS2whFZTlwpwUFWpYFP6R58BpKIPmaFLYxl2cMqFe8O8/aTgHbfRAwd0 p60S6sDJeSTe+x+KbvoDHDN2uIIBJeyUTe/oiGV3eZe3pcR7Kdr6Iz/ZJkx32/IQecp0 Mn1CdPa6lCx+0CUqkKBuVjxusBfdVoEDVpUla0XSMaagSLNx9wT/yknObOabYx74aK2h RjsvuhBxwf8qGGBOpjZ7L0BJ2aC80nj5YTpsJLTudVkCYHfmMjS3FwjmTO3jbman2pcg UX+uDpBBQNHjCiJMGK3yM6qHyvUL04mImdGLho8nLxA3UG2PPzL7phfJ2dCrTNqIde8z RWcg== X-Gm-Message-State: AMke39mAsiXk24AXzFsCdWtO5FNBzYs6pIM7MP2CrBJkaWrMQFeB6kAqFqg7y37UT+hkkw== X-Received: by 10.36.212.129 with SMTP id x123mr520979itg.103.1488638756227; Sat, 04 Mar 2017 06:45:56 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id w133sm2140701itf.2.2017.03.04.06.45.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 04 Mar 2017 06:45:55 -0800 (PST) In-Reply-To: <8760jpcpld.fsf@luca> (Andreas Politz's message of "Sat, 04 Mar 2017 11:18:22 +0100") 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:130183 Archived-At: Andreas Politz writes: > npostavs@users.sourceforge.net writes: > >> I was thinking more along the lines of >> >> (string-prefix-p (expand-file-name directory) >> (expand-file-name buffer-file-name)) >> > > Why not use `file-in-directory-p', which is a function created for this > problem. Yeah, that makes sense, if I had known about that function I would have suggested it.