From unknown Sat Jun 21 10:43:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27610: iimage mode patch Resent-From: =?UTF-8?Q?D=C3=B6ring,?= Arne Frederic Maria Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Jul 2017 18:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27610 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 27610@debbugs.gnu.org X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.1499450644438 (code B ref -1); Fri, 07 Jul 2017 18:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jul 2017 18:04:04 +0000 Received: from localhost ([127.0.0.1]:57049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTXbo-00006z-E7 for submit@debbugs.gnu.org; Fri, 07 Jul 2017 14:04:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dTXWy-0008Ps-EL for submit@debbugs.gnu.org; Fri, 07 Jul 2017 13:59:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTXWs-0003kR-8L for submit@debbugs.gnu.org; Fri, 07 Jul 2017 13:58:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49089) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dTXWs-0003kH-4m for submit@debbugs.gnu.org; Fri, 07 Jul 2017 13:58:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTXWq-0007UW-U0 for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2017 13:58:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTXWm-0003g3-0M for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2017 13:58:56 -0400 Received: from mail-out-2.itc.rwth-aachen.de ([134.130.5.47]:28676) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dTXWl-0003e2-Kc for bug-gnu-emacs@gnu.org; Fri, 07 Jul 2017 13:58:51 -0400 X-IronPort-AV: E=Sophos;i="5.40,324,1496095200"; d="scan'208,217,223";a="2624731" Received: from rwthex-w2-a.rwth-ad.de ([134.130.26.158]) by mail-in-2.itc.rwth-aachen.de with ESMTP; 07 Jul 2017 19:58:48 +0200 Received: from rwthex-s1-b.rwth-ad.de (2002:8682:1a99::8682:1a99) by rwthex-w2-a.rwth-ad.de (2002:8682:1a9e::8682:1a9e) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Fri, 7 Jul 2017 19:58:48 +0200 Received: from rwthex-s1-b.rwth-ad.de ([fe80::e419:cf67:c2a0:2351]) by rwthex-s1-b.rwth-ad.de ([fe80::e419:cf67:c2a0:2351%21]) with mapi id 15.00.1293.002; Fri, 7 Jul 2017 19:58:48 +0200 From: =?UTF-8?Q?D=C3=B6ring,?= Arne Frederic Maria Thread-Topic: iimage mode patch Thread-Index: AQHS90m8mFt7wdrfAUaRNzc/Yzp5Pw== Date: Fri, 7 Jul 2017 17:58:48 +0000 Message-ID: <1499450328447.12324@rwth-aachen.de> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [137.226.67.9] Content-Type: multipart/mixed; boundary="_004_149945032844712324rwthaachende_" MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Fri, 07 Jul 2017 14:04:02 -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: -5.0 (-----) --_004_149945032844712324rwthaachende_ Content-Type: multipart/alternative; boundary="_000_149945032844712324rwthaachende_" --_000_149945032844712324rwthaachende_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable `iimage-mode' binds C-l to `iimage-recenter' and this forwards to `recenter= '. But the default function on C-l is `recenter-top-bottom', not `recenter'= . I made iimage mode call `recenter-top-bottom' instead. --_000_149945032844712324rwthaachende_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

`iimage-mode' binds C-l to `iimage-recenter' and this forwards to `recen= ter'. But the default function on C-l is `recenter-top-bottom', not `recent= er'. I made iimage mode call `recenter-top-bottom' instead.

--_000_149945032844712324rwthaachende_-- --_004_149945032844712324rwthaachende_ Content-Type: text/x-patch; name="0001-made-iimage-mode-not-break-default-binding-of-C-l.patch" Content-Description: 0001-made-iimage-mode-not-break-default-binding-of-C-l.patch Content-Disposition: attachment; filename="0001-made-iimage-mode-not-break-default-binding-of-C-l.patch"; size=1157; creation-date="Fri, 07 Jul 2017 17:56:11 GMT"; modification-date="Fri, 07 Jul 2017 17:56:11 GMT" Content-Transfer-Encoding: base64 RnJvbSBiNGQ1MTQ5MWM2NDk4ODUxZjE2NjRkM2U1YWM3MDk0MzIwZjMxMDkzIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/QXJuZT0yMEQ9QzM9QjZyaW5nPz0gPGF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YHJlY2VudGVyLXRvcC1ib3R0b20nIHdpdGggQVJHLiIKKyAgKGludGVyYWN0aXZlICJQIikKKyAg KGlpbWFnZS1tb2RlLWJ1ZmZlciBuaWwpCisgIChpaW1hZ2UtbW9kZS1idWZmZXIgdCkKKyAgKHJl Y2VudGVyLXRvcC1ib3R0b20gYXJnKSkKKwogOzs7IyMjYXV0b2xvYWQKIChkZWZpbmUtb2Jzb2xl dGUtZnVuY3Rpb24tYWxpYXMgJ3R1cm4tb24taWltYWdlLW1vZGUgJ2lpbWFnZS1tb2RlICIyNC4x IikKIAotLSAKMi4xMy4yCgo= --_004_149945032844712324rwthaachende_-- From unknown Sat Jun 21 10:43:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#27610: iimage mode patch Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jun 2019 16:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27610 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: =?UTF-8?Q?D=C3=B6ring,?= Arne Frederic Maria Cc: 27610@debbugs.gnu.org Received: via spool by 27610-submit@debbugs.gnu.org id=B27610.156139352425483 (code B ref 27610); Mon, 24 Jun 2019 16:26:01 +0000 Received: (at 27610) by debbugs.gnu.org; 24 Jun 2019 16:25:24 +0000 Received: from localhost ([127.0.0.1]:57774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfRmW-0006cx-39 for submit@debbugs.gnu.org; Mon, 24 Jun 2019 12:25:24 -0400 Received: from quimby.gnus.org ([80.91.231.51]:33042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfRmT-0006ck-CB for 27610@debbugs.gnu.org; Mon, 24 Jun 2019 12:25:23 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfRmP-0005H2-Nx; Mon, 24 Jun 2019 18:25:20 +0200 From: Lars Ingebrigtsen References: <1499450328447.12324@rwth-aachen.de> Date: Mon, 24 Jun 2019 18:25:17 +0200 In-Reply-To: <1499450328447.12324@rwth-aachen.de> ("=?UTF-8?Q?D=C3=B6ring,?="'s message of "Fri, 7 Jul 2017 17:58:48 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: "=?UTF-8?Q?D=C3=B6ring,?=" Arne Frederic Maria writes: > `iimage-mode' binds C-l to `iimage-recenter' and this forwards to `recenter'. > But the default function on C-l is `recenter-top-bottom', not `recenter'. I > made iimage mode call `recenter-top-bott [...] 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: 0.0 (/) 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: -1.0 (-) "D=C3=B6ring," Arne Frederic Maria writes: > `iimage-mode' binds C-l to `iimage-recenter' and this forwards to `recent= er'. > But the default function on C-l is `recenter-top-bottom', not `recenter'.= I > made iimage mode call `recenter-top-bottom' instead. Makes sense to call that function instead, yes. But: > (defvar iimage-mode-map > (let ((map (make-sparse-keymap))) > - (define-key map "\C-l" 'iimage-recenter) > + (define-key map "\C-l" 'iimage-recenter-top-bottom) > map) > "Keymap used in `iimage-mode'.") [...] > +(defun iimage-recenter-top-bottom (&optional arg) > + "Re-draw images and call `recenter-top-bottom' with ARG." > + (interactive "P") > + (iimage-mode-buffer nil) > + (iimage-mode-buffer t) > + (recenter-top-bottom arg)) I don't think this is necessary -- instead iimage-recenter should just call recenter-top-bottom. I've now made this change on the Emacs trunk. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 24 12:25:29 2019 Received: (at control) by debbugs.gnu.org; 24 Jun 2019 16:25:29 +0000 Received: from localhost ([127.0.0.1]:57777 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfRma-0006dE-EH for submit@debbugs.gnu.org; Mon, 24 Jun 2019 12:25:29 -0400 Received: from quimby.gnus.org ([80.91.231.51]:33056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfRmY-0006d6-P9 for control@debbugs.gnu.org; Mon, 24 Jun 2019 12:25:27 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfRmW-0005H9-9Z for control@debbugs.gnu.org; Mon, 24 Jun 2019 18:25:26 +0200 Date: Mon, 24 Jun 2019 18:25:24 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #27610 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: tags 27610 fixed close 27610 27.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: 0.0 (/) 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: -1.0 (-) tags 27610 fixed close 27610 27.1 quit