From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: package.el strings Date: Sat, 22 Jul 2017 12:23:21 +0300 Message-ID: <83vamk965y.fsf@gnu.org> References: <83y3rpeubc.fsf@gnu.org> <07C02D08-66BB-4454-AA25-B512BFC39A2A@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1500715452 24471 195.159.176.226 (22 Jul 2017 09:24:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Jul 2017 09:24:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 22 11:24:08 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 1dYqdp-0005yp-33 for ged-emacs-devel@m.gmane.org; Sat, 22 Jul 2017 11:24:05 +0200 Original-Received: from localhost ([::1]:46238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYqdu-0005tf-HD for ged-emacs-devel@m.gmane.org; Sat, 22 Jul 2017 05:24:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYqdJ-0005pT-M6 for emacs-devel@gnu.org; Sat, 22 Jul 2017 05:23:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYqdG-0001zc-H7 for emacs-devel@gnu.org; Sat, 22 Jul 2017 05:23:33 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYqdG-0001zP-Dh; Sat, 22 Jul 2017 05:23:30 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3415 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dYqdC-0004qE-JU; Sat, 22 Jul 2017 05:23:27 -0400 In-reply-to: <07C02D08-66BB-4454-AA25-B512BFC39A2A@gmail.com> (message from Jean-Christophe Helary on Tue, 18 Jul 2017 00:28:59 +0900) 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-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:216933 Archived-At: > From: Jean-Christophe Helary > Date: Tue, 18 Jul 2017 00:28:59 +0900 > > >>> - (concat > >>> - (when delete "Delete ") > >>> - (package-menu--list-to-prompt delete) > >>> - (when (and delete install) > >>> - (if upgrade "; " "; and ")) > >>> - (when install "Install ") > >>> - (package-menu--list-to-prompt install) > >>> - (when (and upgrade (or install delete)) "; and ") > >>> - (when upgrade "Upgrade ") > >>> - (package-menu--list-to-prompt upgrade) > >>> - "? "))) > >>> + (format "Number of packages to delete: %s / install: %s / upgrade: %s, proceed? " > >>> + (package-menu--list-to-prompt delete) > >>> + (package-menu--list-to-prompt install) > >>> + (package-menu--list-to-prompt upgrade)))) > >> > >> This loses the feature of saying just what's needed, instead of > >> showing zero. Can we do better? > > > > If you ask, there probably is a way... I'll try to find something better. > > Ok, I found something for this part that I also adapted to 2 other parts that I had overly simplified. I also made a few modifications here and there compared to my original file. Thanks, this looks OK. Could someone who uses/makes changes in package.el please review these and, if OK, push to master?