From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: First attempt at package-update-all for package.el Date: Wed, 14 Sep 2011 22:14:12 -0400 Message-ID: <87fwjyo8ln.fsf@stupidchicken.com> References: <05B187BC-4A22-4259-BC90-3CA39A3E402E@gmail.com> <87aaa6sxbj.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1316052866 14861 80.91.229.12 (15 Sep 2011 02:14:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2011 02:14:26 +0000 (UTC) Cc: Donald Curtis , emacs-devel@gnu.org To: Phil Hagelberg Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 15 04:14:21 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R41T2-0002Zw-Tu for ged-emacs-devel@m.gmane.org; Thu, 15 Sep 2011 04:14:21 +0200 Original-Received: from localhost ([::1]:44723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R41T2-0004GN-Cp for ged-emacs-devel@m.gmane.org; Wed, 14 Sep 2011 22:14:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R41Sz-0004G5-CN for emacs-devel@gnu.org; Wed, 14 Sep 2011 22:14:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R41Sy-0007x0-19 for emacs-devel@gnu.org; Wed, 14 Sep 2011 22:14:17 -0400 Original-Received: from vm-emlprdomr-03.its.yale.edu ([130.132.50.144]:40349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R41Sx-0007wn-UP for emacs-devel@gnu.org; Wed, 14 Sep 2011 22:14:15 -0400 Original-Received: from furball ([128.36.14.25]) (authenticated bits=0) by vm-emlprdomr-03.its.yale.edu (8.14.4/8.14.4) with ESMTP id p8F2EDTr001524 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 14 Sep 2011 22:14:13 -0400 In-Reply-To: <87aaa6sxbj.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 14 Sep 2011 16:06:40 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.144 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.132.50.144 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144048 Archived-At: Chong Yidong writes: > Phil Hagelberg writes: > >> For the record, this is a commonly-requested feature where people ask >> "why doesn't it do this?" and the response is generally "I dunno, but >> it shouldn't be hard to implement; why don't you try?" =) >> >> Would be great to get this in once the feature freeze has melted. >> What's the procedure for handling patches in this situation? Just ask >> the author to re-submit after the release? > > I've discussed with Stefan, and we agree that it's important to have > something like this in 24.1. I'll take care of it shortly. OK, I've committed a package-menu-mark-upgrades command to the Package Menu, bound to U. This places the appropriate flags for upgrading packages that can be upgraded. M-x list-packages also issues a message if any packages can be upgraded. As for a M-x package-upgrade-all command, I'm not sure yet. The code written by OP is on the right track, but it also needs some additional machinery for displaying what packages are going to be upgraded (possibly using a Package Menu buffer?) and prompting the user.