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: Wed, 04 Jan 2017 23:35:08 -0500 Message-ID: <87zij63z0j.fsf@users.sourceforge.net> 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 1483590917 17208 195.159.176.226 (5 Jan 2017 04:35:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 5 Jan 2017 04:35:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 25340@debbugs.gnu.org To: Nikolay Kudryavtsev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 05 05:35:11 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 1cOzle-0003cl-NS for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Jan 2017 05:35:11 +0100 Original-Received: from localhost ([::1]:43616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOzlh-0001Gc-2G for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Jan 2017 23:35:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOzlZ-0001Ep-CM for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 23:35:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOzlW-00010U-7z for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 23:35:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54501) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOzlW-00010C-4v for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 23:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cOzlV-0005e6-SY for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2017 23:35: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: Thu, 05 Jan 2017 04:35: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.148359085421641 (code B ref 25340); Thu, 05 Jan 2017 04:35:01 +0000 Original-Received: (at 25340) by debbugs.gnu.org; 5 Jan 2017 04:34:14 +0000 Original-Received: from localhost ([127.0.0.1]:41667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOzkj-0005cy-CI for submit@debbugs.gnu.org; Wed, 04 Jan 2017 23:34:14 -0500 Original-Received: from mail-io0-f179.google.com ([209.85.223.179]:33219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOzki-0005ck-1a for 25340@debbugs.gnu.org; Wed, 04 Jan 2017 23:34:12 -0500 Original-Received: by mail-io0-f179.google.com with SMTP id v96so676120ioi.0 for <25340@debbugs.gnu.org>; Wed, 04 Jan 2017 20:34:11 -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=y6WYlKF1tPwNe2NZA1ClnHIetjm6BkLJhQzSW6KUnLw=; b=ERj9LbuqfJqQImLUhuR3Sg3okiwPJ+11Qu3Tzgb9pzEU+rLJDw3HoKc+TJj2J/mhbB 6SZaXMoBmwp9XRgOslofp+/6ZVMBjJiQv+kYbBRqGcq+Nvtr9/dVFEolgB/S/W7lTQ/y MVz0NbOB+oyTo53OcdASsQz6j9x7hWD+3GSVauryix7PI7XFnlZLzgNS1OFDee07prib 6Et0QhkFSRBe9r+g5uA1zwA4BQruui6YM0kLkqwfxnHaujVYklulWedaABJIUNfh1C3m qV2hhe6gW0W4Vm9vKo29ekF3S6NRh7yz6rs/2is8cWUpzv+GebeS0GdEFIGNPC27OhHQ q63Q== 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=y6WYlKF1tPwNe2NZA1ClnHIetjm6BkLJhQzSW6KUnLw=; b=gAPvwl4Zuf3BX7wmahDDXiX/upHBfsBsrINaFHSdlqTIwYU0N5YV5qRC2D9TpnfbbE jf8CqSCpGvQOYuyk//fGpZlkCfGZ2vZzdSFPV9UT4JuXEyHHgPAPrXDm83iqdb4vaa3m jl70ph5BByvHLSVqWdkJ3buhG9me501YdPzJmsEswOq4gtrhpU3Xq0rdLrVNvF5xtjYm JsvAJos3L2iv5R0OfF9MlcyXdjupsJka+hxvjH0gxe/wNM4zEag+wAr9XDyb0WEFEH8/ BiFEnfP3J0lKmolOWHzGF4IxtNz/AALqsK06WC9jE8w7c5bX52wB7tps5kUJ0YVvE62r cOTw== X-Gm-Message-State: AIkVDXI3n70fxEG7U8KL9an2cpzk2BEG6vvZYnKMipqLOjMh3xwKQ9pzf8jM08fzfoJIzw== X-Received: by 10.107.191.134 with SMTP id p128mr55577432iof.131.1483590846572; Wed, 04 Jan 2017 20:34:06 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id g127sm6656842iog.3.2017.01.04.20.34.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Jan 2017 20:34:06 -0800 (PST) In-Reply-To: <0467624a-368b-6b61-e08d-97a34c8c25fa@gmail.com> (Nikolay Kudryavtsev's message of "Tue, 3 Jan 2017 01:42:13 +0300") 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:127775 Archived-At: Nikolay Kudryavtsev writes: > Every time you install a new package you get called to save your > modified buffers one by one. So, whenever I update my packages I can > get like 30 packages and I have to press q at least 30 times. This > behavior is pointless and somewhat annoying. > > I've attached the laziest possible patch for this. > * lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): New argument > `ignore-modified-buffers' that prevents `save-some-buffers' from getting > called. Instead of a boolean, what do you think about passing a directory, such that only buffers visiting files in that directory or below would get prompted for saving?