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: Thu, 30 Sep 2021 22:07:47 +0200 Message-ID: <87tui16d4c.fsf@a16n.net> 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="13243"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: 50920@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 30 22:08: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 1mW2Lj-0003Ew-Cb for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Sep 2021 22:08:11 +0200 Original-Received: from localhost ([::1]:39480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mW2Lh-0007Jh-77 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Sep 2021 16:08:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mW2La-0007JT-Rk for bug-gnu-emacs@gnu.org; Thu, 30 Sep 2021 16:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42547) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mW2La-0000Jq-Iu for bug-gnu-emacs@gnu.org; Thu, 30 Sep 2021 16:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mW2La-0004hG-Df for bug-gnu-emacs@gnu.org; Thu, 30 Sep 2021 16:08:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Peter =?UTF-8?Q?M=C3=BCnster?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Sep 2021 20:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50920 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163303247918042 (code B ref -1); Thu, 30 Sep 2021 20:08:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Sep 2021 20:07:59 +0000 Original-Received: from localhost ([127.0.0.1]:54093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mW2LX-0004gw-FV for submit@debbugs.gnu.org; Thu, 30 Sep 2021 16:07:59 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:42888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mW2LV-0004gn-HE for submit@debbugs.gnu.org; Thu, 30 Sep 2021 16:07:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mW2LV-0007JH-Cs for bug-gnu-emacs@gnu.org; Thu, 30 Sep 2021 16:07:57 -0400 Original-Received: from server.a16n.net ([178.33.238.77]:52608) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mW2LQ-00008H-DI for bug-gnu-emacs@gnu.org; Thu, 30 Sep 2021 16:07:56 -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 5A18843E0755 for ; Thu, 30 Sep 2021 22:07:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=a16n.net; s=a16n; t=1633032468; bh=r3p91psrBxeZZuIpB+paiIkxvKQJTMQSOXHA7i5+LSU=; h=From:To:Subject:Date; b=iJaB7pWAcwdOYF94wXrFzZOVfLQ9r53GTBDNgiESaFBEWeL+Z8ESBVI1calEVAGRo RT5lu2zvpGFVtoo09QrGmnlL54sHD+LSMQnUlEWvXElQw3ef83n3qGuFK3xCgVER+A jTfY491ndDyios3h9rbZdkAYe+/azCCBxjX9jOm2PZ1fIyNjqPOtejM6ituVUZYcHu mf+ooaolLBEKsD6nOZjVt91KQpBTycLslSmY/zKINGclLxcDzpWwhAFl64TDSX/Ntt /FoX6gaomTdlJW8ASVBG5S0OgCdMH01/+MhxFMxRUQCeEiZGVCgCt0Tri/znYfmd54 YVzK54DXyyvkA== Original-Received: by ws.localdomain (Postfix, from userid 1000) id B8DDF2051C; Thu, 30 Sep 2021 22:07:47 +0200 (CEST) Received-SPF: pass client-ip=178.33.238.77; envelope-from=pm@a16n.net; helo=server.a16n.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:215991 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I've created the attached patch already 2 weeks ago, unfortunately it doesn't apply any more to the master branch. Could you please integrate it into the emacs-28 branch? Or do you prefer, that I create a new patch for master? Kind regards, =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=20b613bb7ae39cfaf0a0078ae731d550f98d8d08cb Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Peter=3D20M=3DC3=3DBCnster?=3D Date: Thu, 16 Sep 2021 08:49:43 +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 | 5 ++++- lisp/image-dired.el | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/etc/NEWS b/etc/NEWS index f22801cfbe..85d332306b 100644 =2D-- a/etc/NEWS +++ b/etc/NEWS @@ -2523,7 +2523,10 @@ If non-nil (the default), use 'image-dired-thumb-mar= k' to say what images are marked. =20 --- =2D*** New command 'image-dired-delete-marked'. +*** New commands for the thumbnail buffer. +The new commands 'image-dired-delete-marked' and +'image-dired-unmark-all-marks' have been added with bindings in the +menu. =20 ** Flymake mode =20 diff --git a/lisp/image-dired.el b/lisp/image-dired.el index b92a9371ec..0b4263ca17 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/5hHRBUjla4uZVXU6jitvQ7HLaAUCYVYZEwwccG1AYTE2bi5u ZXQACgkQOo4rb0Oxy2iIFwCgo1qNN8s3MA5RCBLa1R7QCJ3UYu8AoMZEUywh30fZ YHzGvIbdI2E2fpAH =taLw -----END PGP SIGNATURE----- --==-=-=--