From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Peter =?UTF-8?Q?M=C3=BCnster?= Newsgroups: gmane.emacs.bugs Subject: bug#50920: 28.0.50; patch for image-dired.el (master or emacs-28?) Date: Fri, 01 Oct 2021 08:29:52 +0200 Message-ID: <87lf3dz28v.fsf@a16n.net> References: <87tui16d4c.fsf@a16n.net> <83fstlfggz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4893"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 50920@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 01 08:30:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1mWC3f-00013j-KF for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Oct 2021 08:30:11 +0200 Original-Received: from localhost ([::1]:39472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWC3d-0001Kr-MU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Oct 2021 02:30:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWC3W-0001KZ-Rt for bug-gnu-emacs@gnu.org; Fri, 01 Oct 2021 02:30:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42990) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWC3W-0002hF-Jj for bug-gnu-emacs@gnu.org; Fri, 01 Oct 2021 02:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mWC3W-0003Mc-Fk for bug-gnu-emacs@gnu.org; Fri, 01 Oct 2021 02:30:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87tui16d4c.fsf@a16n.net> Resent-From: Peter =?UTF-8?Q?M=C3=BCnster?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Oct 2021 06:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50920 X-GNU-PR-Package: emacs Original-Received: via spool by 50920-submit@debbugs.gnu.org id=B50920.163306980112899 (code B ref 50920); Fri, 01 Oct 2021 06:30:02 +0000 Original-Received: (at 50920) by debbugs.gnu.org; 1 Oct 2021 06:30:01 +0000 Original-Received: from localhost ([127.0.0.1]:54536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWC3V-0003Lz-3v for submit@debbugs.gnu.org; Fri, 01 Oct 2021 02:30:01 -0400 Original-Received: from server.a16n.net ([178.33.238.77]:57518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWC3T-0003Lk-5a for 50920@debbugs.gnu.org; Fri, 01 Oct 2021 02:29:59 -0400 Original-Received: from ws.localdomain (arennes-662-1-67-94.w2-14.abo.wanadoo.fr [2.14.177.94]) by server.a16n.net (Postfix) with ESMTPSA id 1E7D043E0519; Fri, 1 Oct 2021 08:29:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=a16n.net; s=a16n; t=1633069793; bh=quzU3cYmhEhmoLnQ/21MfJN2c/JJLkJhWKMojb28NOY=; h=From:To:Cc:Subject:References:Date; b=gj9nHdQ1cSc13OQQJ8HP42/NXsjdLqcX6S83StNc/vJdwI1BumflCpwg4Il0CNQDV Uc8IkAwLzjbxkPZIL6LhqkFup7YYld269Nr0Is7qpt0A323dAkind0bKAxIaUOOSnT Fc0FFfEIIsEiPtepVaKqKzpSyY9m21KPKR5uBhfWM4FW9PByZM97Lh4YpKjRu/DDl2 IIhYSfZ8KqsxoJaoOvFdcG0EX7PQtK1gjc9S33USXa6uxpO/ADz+nGnRebxk46r0AF 5BxkSHCe30WL2ZYYXSJMfr8R98wno2rGqP+qKi6OTSYT9xVRWM7hj8QB1aqNtvpV6Z Gy9JfFcKi4jSw== Original-Received: by ws.localdomain (Postfix, from userid 1000) id 5F04220520; Fri, 1 Oct 2021 08:29:52 +0200 (CEST) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216006 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, Oct 01 2021, Eli Zaretskii wrote: > Please prepare a patch for master. Please find it here attached. =2D-=20 Peter --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-New-command-for-unmarking-all-images.patch Content-Transfer-Encoding: quoted-printable From=2045a823990bc8e1917b4cfa107b9e8697a094b067 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Peter=3D20M=3DC3=3DBCnster?=3D Date: Fri, 1 Oct 2021 08:28:53 +0200 Subject: [PATCH] New command for unmarking all images * lisp/image-dired.el (image-dired-unmark-all-marks): Remove marks from Dired buffer and update the view of the thumbnails. =2D-- etc/NEWS | 7 +++++++ lisp/image-dired.el | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index d0e41baaeb..9e9c90c7e5 100644 =2D-- a/etc/NEWS +++ b/etc/NEWS @@ -36,6 +36,13 @@ applies, and please also update docstrings as needed. * Changes in Specialized Modes and Packages in Emacs 29.1 =20 +** image-dired + +--- +*** New command for the thumbnail buffer. +The new command 'image-dired-unmark-all-marks' has been added with a +binding in the menu. + * New Modes and Packages in Emacs 29.1 =20 diff --git a/lisp/image-dired.el b/lisp/image-dired.el index 3ca47300a9..ec3f988bfb 100644 =2D-- a/lisp/image-dired.el +++ b/lisp/image-dired.el @@ -1433,6 +1433,14 @@ image-dired-toggle-mark-thumb-original-file (interactive) (image-dired-modify-mark-on-thumb-original-file 'toggle)) =20 +(defun image-dired-unmark-all-marks () + "Remove all marks from all files. +Do this in the Dired buffer and update this thumbnail buffer." + (interactive) + (with-current-buffer (image-dired-associated-dired-buffer) + (dired-unmark-all-marks)) + (image-dired-thumb-update-marks)) + (defun image-dired-jump-original-dired-buffer () "Jump to the dired buffer associated with the current image file. You probably want to use this together with @@ -1536,6 +1544,7 @@ image-dired-thumbnail-mode-map ["Quit" quit-window] ["Delete thumbnail from buffer" image-dired-delete-char] ["Delete marked images" image-dired-delete-marked] + ["Unmark all marks" image-dired-unmark-all-marks] ["Remove tag from current or marked thumbnails" image-dired-tag-thumbnail-remove] ["Tag current or marked thumbnails" image-dired-tag-thumbnail] =2D-=20 2.31.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iGoEARECACoWIQS/5hHRBUjla4uZVXU6jitvQ7HLaAUCYVaq4AwccG1AYTE2bi5u ZXQACgkQOo4rb0Oxy2j35QCgyf233/k803xlnJPhpup4tVMnonkAn3IKnsgdui3f wmDgevjMFs2j+BNw =TwDj -----END PGP SIGNATURE----- --==-=-=--