From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: package.el, a bug ? and a UX issue ? Date: Fri, 20 Aug 2021 23:29:28 +0900 Message-ID: <5A4457DF-91A4-4BBA-941C-3D53907C6729@traduction-libre.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11713"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 20 16:30:51 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mH5Xm-0002qE-SV for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 16:30:50 +0200 Original-Received: from localhost ([::1]:34102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mH5Xl-0008Sc-Oe for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 10:30:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mH5We-0006Nn-UG for emacs-devel@gnu.org; Fri, 20 Aug 2021 10:29:40 -0400 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:57727) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mH5Wc-00047O-80 for emacs-devel@gnu.org; Fri, 20 Aug 2021 10:29:40 -0400 Original-Received: (Authenticated sender: lists@traduction-libre.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id F088C100003 for ; Fri, 20 Aug 2021 14:29:32 +0000 (UTC) X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=217.70.178.231; envelope-from=lists@traduction-libre.org; helo=relay11.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272724 Archived-At: 1) after filtering on marked packages, clearing the filter removes the = marks After packages-list is updated, using U marks the packages that can be = upgraded and a message that looks like this is displayed: Packages marked for upgrading: 5 When I filter the list with package-menu-filter-marked (/ m) I get the = marked list of packages to upgrade. When I clear the filter with package-menu-clear-filter (/ /) I go back = to the original list *but* all the marks for upgrading are gone: when I = hit x expecting to be able to install the marked packages, I get "No = operations specified"... package-menu-clear-filter is defined as follows: (defun package-menu-clear-filter () "Clear any filter currently applied to the \"*Packages*\" buffer." (interactive nil package-menu-mode) (package--ensure-package-menu-mode) (package-menu--generate t t)) Even when I check package-menu--generate I don't see that it is supposed = to clear the marks, am I missing something ? 2) The upgrade messages are not very useful So, the number of packages to upgrade is displayed. This comes from package-menu--mark-upgrades-1 which has: (message "Packages marked for upgrading: %d" (length upgrades)) "upgrades" contains a list of new packages including their new version = number, but we only have the length of it. If I hit X now, I have the list of old packages with their old version = number and a "upgrade y or n" message that does not leave much room for = details. The old version number=20 So, I'm wondering if it would not be a better user experience to have = the U command above directly display the list of packages with = package-menu-filter-marked instead ? That way, the user can still directly use X to proceed, or eventually go = back to the package list and add packages (that's, if the issue 1 above = did not exist). Are the two points above reasonable issues to work on ? --=20 Jean-Christophe Helary @brandelune https://mac4translators.blogspot.com https://sr.ht/~brandelune/omegat-as-a-book/