From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 10 16:41:59 2021 Received: (at submit) by debbugs.gnu.org; 10 Aug 2021 20:41:59 +0000 Received: from localhost ([127.0.0.1]:60925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDYZR-0007zO-9X for submit@debbugs.gnu.org; Tue, 10 Aug 2021 16:41:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:45334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDYLl-0007eC-Gg for submit@debbugs.gnu.org; Tue, 10 Aug 2021 16:27:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDYLl-0005qY-6s for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 16:27:49 -0400 Received: from server.a16n.net ([178.33.238.77]:35242) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDYLi-0003ZE-P3 for bug-gnu-emacs@gnu.org; Tue, 10 Aug 2021 16:27:48 -0400 Received: from ws.localdomain (arennes-662-1-84-172.w2-14.abo.wanadoo.fr [2.14.50.172]) by server.a16n.net (Postfix) with ESMTPSA id A0CAE43E06AE for ; Tue, 10 Aug 2021 22:27:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=a16n.net; s=a16n; t=1628627262; bh=EourX7HcIvqBh4GCWSnlbdeS0aDbKAhiuR81fEycpmk=; h=From:To:Subject:Date; b=Cb8wk89qtHAZGQNBlLVuQtky0P5kLkiAVl8eV8QvhjnV+6LANsyH1MOF6JCY28xWz X1FRpukscg/GNU02ryO1xsxt9wHEwLHcXhtZooWhAnZCjnwItiI1cLevnEWcP0nsid ApYCxTeai86wDWLa4zkp9aDRiKxSvsJWa+fDaMGpeqr9JkJCq1EoF+LxY12gE39qre rRDsACRJt+cIWBop9ZBvPpR2Q8VH57FWX67s7UkBWhFPJ29LdVX+EpZDf8APlE/V2e 9fskJGW4xA0NylFUdAl/yhkjG7a9Aq7sdWUc2KnjgRJjq39lfBosxXK3tIoGOFIrRz DLPDKeGHWjSxw== Received: by ws.localdomain (Postfix, from userid 1000) id 60C6D74235E; Tue, 10 Aug 2021 22:27:41 +0200 (CEST) From: =?utf-8?Q?Peter_M=C3=BCnster?= To: bug-gnu-emacs@gnu.org Subject: 27.2; Let image-dired-mouse-toggle-mark act on active region Date: Tue, 10 Aug 2021 22:27:41 +0200 Message-ID: <87pmulkptu.fsf@a16n.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 10 Aug 2021 16:41:56 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, It would be nice, if one can toggle marks of all thumbnails in the active region. Here is a patch: * lisp/image-dired.el (image-dired-mouse-toggle-mark): When region is active, then toggle marks of all images within. diff --git a/lisp/image-dired.el b/lisp/image-dired.el index 2509ecf8f8..8a065f2e6f 100644 =2D-- a/lisp/image-dired.el +++ b/lisp/image-dired.el @@ -2311,17 +2311,32 @@ non-nil." (image-dired-track-original-file)) (image-dired-display-thumb-properties)) =20 =2D(defun image-dired-mouse-toggle-mark (event) =2D "Use mouse EVENT to toggle dired mark for thumbnail. +(defun image-dired-mouse-toggle-mark-1 () + "Toggle dired mark for current thumbnail. Track this in associated dired buffer if `image-dired-track-movement' is non-nil." =2D (interactive "e") =2D (mouse-set-point event) =2D (goto-char (posn-point (event-end event))) (if image-dired-track-movement (image-dired-track-original-file)) (image-dired-toggle-mark-thumb-original-file)) =20 +(defun image-dired-mouse-toggle-mark (event) + "Use mouse EVENT to toggle dired mark for thumbnail. +Toggle marks of all thumbnails in region, if it's active. +Track this in associated dired buffer if `image-dired-track-movement' is +non-nil." + (interactive "e") + (if (use-region-p) + (let ((end (region-end))) + (save-excursion + (goto-char (region-beginning)) + (while (<=3D (point) end) + (when (image-dired-image-at-point-p) + (image-dired-mouse-toggle-mark-1)) + (forward-char)))) + (mouse-set-point event) + (goto-char (posn-point (event-end event))) + (image-dired-mouse-toggle-mark-1))) + (defun image-dired-dired-display-properties () "Display properties for dired file in the echo area." (interactive) What do think about that? =2D-=20 Peter --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iGoEARECACoWIQS/5hHRBUjla4uZVXU6jitvQ7HLaAUCYRLhPQwccG1AYTE2bi5u ZXQACgkQOo4rb0Oxy2icaACfTrt0WKY1fKyHLF7Xkx0oylR8NUwAoKsqwrAbHq0M mw+OWyX9ma3vPCdb =nPTP -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 11 07:40:20 2021 Received: (at 49987) by debbugs.gnu.org; 11 Aug 2021 11:40:20 +0000 Received: from localhost ([127.0.0.1]:33656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDmaq-0005ff-6D for submit@debbugs.gnu.org; Wed, 11 Aug 2021 07:40:20 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDmap-0005fP-2p for 49987@debbugs.gnu.org; Wed, 11 Aug 2021 07:40:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=oYLRWUWq2uCyxf/N0Ny576s9sYO5zIBnoVaa4TjZeF8=; b=PpxXHs30Vsqw0yQ2e5mLOwXzoH Tbn08Et0V0SfFqhrwdzLGolJlshDbGFatMlAt3eZgi5cHR5Tj+i+YukueiwDj4Bd0nUORKrI7EpTF OND3CA87XIOHj5Vwhzz+CFwCh7FSKp+40VR3s6fB71gRa7WmcZcAKzWClK+PZai3KVdI=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDmae-0007Vm-H3; Wed, 11 Aug 2021 13:40:12 +0200 From: Lars Ingebrigtsen To: Peter =?utf-8?Q?M=C3=BCnster?= Subject: Re: bug#49987: 27.2; Let image-dired-mouse-toggle-mark act on active region References: <87pmulkptu.fsf@a16n.net> Date: Wed, 11 Aug 2021 13:40:07 +0200 In-Reply-To: <87pmulkptu.fsf@a16n.net> ("Peter =?utf-8?Q?M=C3=BCnster=22's?= message of "Tue, 10 Aug 2021 22:27:41 +0200") Message-ID: <87bl64tdk8.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Peter Münster writes: > It would be nice, if one can toggle marks of all thumbnails in the > active region. Makes sense to me; applied to Emacs 28. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49987 Cc: 49987@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Peter M=C3=BCnster writes: > It would be nice, if one can toggle marks of all thumbnails in the > active region. Makes sense to me; applied to Emacs 28. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 11 07:40:28 2021 Received: (at control) by debbugs.gnu.org; 11 Aug 2021 11:40:28 +0000 Received: from localhost ([127.0.0.1]:33659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDmay-0005g2-Cm for submit@debbugs.gnu.org; Wed, 11 Aug 2021 07:40:28 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDmaw-0005fo-Ti for control@debbugs.gnu.org; Wed, 11 Aug 2021 07:40:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9IVMT0E7aKrLKasNG5c5SyTIMf0v1HOPAGRwIYdFCFg=; b=CAfD99r3I7BQ+XASP4lZvX4ZAt PCxc7oRK8y6GEvOX5T5npH3ssNRew3ivGEBGXdy6rNqvgReRwBkd65j9+tZUeNy/nrgva28IkM0dX XhdyaxyDzyHEyKbVA6tynR0lBuDEfLTDznFg19AuLJ1k4CzKb6xuR9/T1zedLbiwVOhY=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDmao-0007Vv-So for control@debbugs.gnu.org; Wed, 11 Aug 2021 13:40:21 +0200 Date: Wed, 11 Aug 2021 13:40:15 +0200 Message-Id: <87a6lotdk0.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #49987 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 49987 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 49987 28.1 quit From unknown Tue Jun 17 22:27:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 09 Sep 2021 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator