From unknown Fri Aug 15 16:24:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36654: Docview: show current zoom % in the modeline bar Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jul 2019 20:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36654 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 36654@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156313537026248 (code B ref -1); Sun, 14 Jul 2019 20:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Jul 2019 20:16:10 +0000 Received: from localhost ([127.0.0.1]:46050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmkun-0006pG-1n for submit@debbugs.gnu.org; Sun, 14 Jul 2019 16:16:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:43254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmkuk-0006p2-Li for submit@debbugs.gnu.org; Sun, 14 Jul 2019 16:16:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49721) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmkuj-0005Te-SW for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 16:16:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=5.0 tests=BAYES_50,DATE_IN_PAST_06_12, FROM_EXCESS_BASE64,RCVD_IN_DNSWL_NONE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmkui-0004Wr-N1 for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 16:16:05 -0400 Received: from bumble.birch.relay.mailchannels.net ([23.83.209.25]:28656) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hmkui-0004Vg-EY for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 16:16:04 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1F207340D2A for ; Sun, 14 Jul 2019 20:16:03 +0000 (UTC) Received: from pdx1-sub0-mail-a88.g.dreamhost.com (100-96-14-124.trex.outbound.svc.cluster.local [100.96.14.124]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A916B3402DC for ; Sun, 14 Jul 2019 20:16:02 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a88.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Sun, 14 Jul 2019 20:16:03 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Harbor-Imminent: 6a087493222e9d36_1563135362944_2988996656 X-MC-Loop-Signature: 1563135362944:424450771 X-MC-Ingress-Time: 1563135362944 Received: from pdx1-sub0-mail-a88.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a88.g.dreamhost.com (Postfix) with ESMTP id 6F57380566 for ; Sun, 14 Jul 2019 13:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=MtjPXS2Mbs5N03ZQTG lcuPOhup8=; b=GgFvb9wt/Pyp4dgJM94lzEOiJXgROgWEpYE63lhGzMY2ipz+cl 6xSes7fR/Po5dRlZbSMrP0/afirk6kGlkaw9f2rBEgbKGnfgd4UODGYweoLUbdKv n5eldXuNvWhRQqGn7NM4V7zeBQvMui99Jt06Dp7qCq43nUamfR2VWcKCc= Received: from jidanni.org (114-41-13-208.dynamic-ip.hinet.net [114.41.13.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a88.g.dreamhost.com (Postfix) with ESMTPSA id 0744E80555 for ; Sun, 14 Jul 2019 13:15:56 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a88 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Date: Sun, 14 Jul 2019 19:50:39 +0800 Message-ID: <87wogkzvg0.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrheehgdduheduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtgfesthekredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeduudegrdeguddrudefrddvtdeknecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddugedrgedurddufedrvddtkedprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgepud Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.209.25 X-Spam-Score: -0.3 (/) 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.3 (-) + runs the command doc-view-enlarge (found in doc-view-mode-map), which is an interactive compiled Lisp function in =E2=80=98doc-vie= w.el=E2=80=99. OK good, but those plus and minuses should put the current zoom scale (200%, etc.) into the mode line. (Plenty of room there.) In fact perhaps start by showing "100%" there even before we start zoomin= g. (Please do something to make it look different to the user than the "what percent of the file am I looking at" item in the modeline (even if not ever present at the same time.) Maybe say: "Zoom 55%".) From unknown Fri Aug 15 16:24:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36654: Docview: show current zoom % in the modeline bar Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Jul 2019 18:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36654 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 36654@debbugs.gnu.org Received: via spool by 36654-submit@debbugs.gnu.org id=B36654.156347488417976 (code B ref 36654); Thu, 18 Jul 2019 18:35:01 +0000 Received: (at 36654) by debbugs.gnu.org; 18 Jul 2019 18:34:44 +0000 Received: from localhost ([127.0.0.1]:54681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hoBEp-0004fr-U7 for submit@debbugs.gnu.org; Thu, 18 Jul 2019 14:34:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hoBEo-0004fe-0l for 36654@debbugs.gnu.org; Thu, 18 Jul 2019 14:34:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hoBEi-0001Du-KT; Thu, 18 Jul 2019 14:34:36 -0400 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:49897) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1hoBEg-00041i-PU; Thu, 18 Jul 2019 14:34:36 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 5A1102224C; Thu, 18 Jul 2019 14:34:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Thu, 18 Jul 2019 14:34:34 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrieehgddufedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufhffjgfkfgggtgfgsehtqh ertddtreejnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdr ohhrgheqnecukfhppeegiedrkedtrdejtddrvdehnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeek jeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfh hmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from thinkpad-t440p (p2e504619.dip0.t-ipconnect.de [46.80.70.25]) by mail.messagingengine.com (Postfix) with ESMTPA id 2A3CC8005C; Thu, 18 Jul 2019 14:34:32 -0400 (EDT) From: Tassilo Horn References: <87wogkzvg0.5.fsf@jidanni.org> Date: Thu, 18 Jul 2019 20:34:27 +0200 In-Reply-To: <87wogkzvg0.5.fsf@jidanni.org> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Sun, 14 Jul 2019 19:50:39 +0800") Message-ID: <87h87jqjik.fsf@gnu.org> 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) 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 (---) =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: Hi Dan, > + runs the command doc-view-enlarge (found in doc-view-mode-map), > which is an interactive compiled Lisp function in =E2=80=98doc-vie= w.el=E2=80=99. > > OK good, but those plus and minuses should put the current zoom scale > (200%, etc.) into the mode line. (Plenty of room there.) In fact > perhaps start by showing "100%" there even before we start zooming. > > (Please do something to make it look different to the user than the > "what percent of the file am I looking at" item in the modeline (even > if not ever present at the same time.) Maybe say: "Zoom 55%".) I'd argue that the percentage is not interesting at all. I mean, what you want is a level of scaling that makes the text good to read for your eyes, no matter if that's 55% or 200%. Who cares? And I actually don't know what a zoom level of 100% should be. The initial size when opening a document for the first time? That depends on `doc-view-resolution'... Bye, Tassilo From unknown Fri Aug 15 16:24:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36654: Docview: show current zoom % in the modeline bar In-Reply-To: <87wogkzvg0.5.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Jul 2019 02:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36654 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn Cc: 36654@debbugs.gnu.org Received: via spool by 36654-submit@debbugs.gnu.org id=B36654.156350334810436 (code B ref 36654); Fri, 19 Jul 2019 02:30:02 +0000 Received: (at 36654) by debbugs.gnu.org; 19 Jul 2019 02:29:08 +0000 Received: from localhost ([127.0.0.1]:54943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hoIdv-0002iF-V4 for submit@debbugs.gnu.org; Thu, 18 Jul 2019 22:29:08 -0400 Received: from azure.elm.relay.mailchannels.net ([23.83.212.7]:13199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hoIdt-0002i6-LP for 36654@debbugs.gnu.org; Thu, 18 Jul 2019 22:29:06 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6C42C50059F; Fri, 19 Jul 2019 02:29:04 +0000 (UTC) Received: from pdx1-sub0-mail-a81.g.dreamhost.com (100-96-38-36.trex.outbound.svc.cluster.local [100.96.38.36]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E84CC500DD9; Fri, 19 Jul 2019 02:29:03 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a81.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Fri, 19 Jul 2019 02:29:04 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Eyes-Ski: 3722b824799ff051_1563503344230_2717495777 X-MC-Loop-Signature: 1563503344230:3769615537 X-MC-Ingress-Time: 1563503344229 Received: from pdx1-sub0-mail-a81.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a81.g.dreamhost.com (Postfix) with ESMTP id 9B79281017; Thu, 18 Jul 2019 19:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=/3Sgt7RhPh5JvbkDolq0+3QefOg=; b=P1jSIkSqVuhga xl+V5Y0Ims30i3DqX8+9V0tv0VWrdDGFYE5M4Bigl8ekAwHK2YKl0TUvq/e+05os tzu/ps5gJLHaMGDPoTIcLFCR3vEShQvVrIlU6GbNRCU1JeD7Hlvfg+cmlxkkZ7f5 fPiI+goe3TXPtduCnH3PugCi31uh2U= Received: from jidanni.org (110-28-104-43.adsl.fetnet.net [110.28.104.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a81.g.dreamhost.com (Postfix) with ESMTPSA id E950181012; Thu, 18 Jul 2019 19:28:57 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a81 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87wogkzvg0.5.fsf@jidanni.org> <87h87jqjik.fsf@gnu.org> Date: Fri, 19 Jul 2019 10:28:50 +0800 Message-ID: <871rymlpul.7.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrieeigdeitdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufhffffkgggtsehttdertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepuddutddrvdekrddutdegrdegfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpeduuddtrddvkedruddtgedrgeefpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepfeeiieehgeesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt 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 (-) Well all I know is gv(1), firefox(1), chromium(1) all show the new "xx%" every time one zooms or unzooms, if not permanently shown on their panels, then at least on a brief popup. From unknown Fri Aug 15 16:24:38 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Subject: bug#36654: closed (Re: bug#36654: Docview: show current zoom % in the modeline bar) Message-ID: References: <87pnm61oe3.fsf@gnu.org> <87wogkzvg0.5.fsf@jidanni.org> X-Gnu-PR-Message: they-closed 36654 X-Gnu-PR-Package: emacs Reply-To: 36654@debbugs.gnu.org Date: Fri, 19 Jul 2019 07:21:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1563520862-5320-1" This is a multi-part message in MIME format... ------------=_1563520862-5320-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36654: Docview: show current zoom % in the modeline bar which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 36654@debbugs.gnu.org. --=20 36654: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36654 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1563520862-5320-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 36654-done) by debbugs.gnu.org; 19 Jul 2019 07:20:50 +0000 Received: from localhost ([127.0.0.1]:55043 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hoNCE-0001N9-HT for submit@debbugs.gnu.org; Fri, 19 Jul 2019 03:20:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47201) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hoNCC-0001Mx-DR for 36654-done@debbugs.gnu.org; Fri, 19 Jul 2019 03:20:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hoNC4-0004Fa-Q3; Fri, 19 Jul 2019 03:20:41 -0400 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:56487) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1hoNC4-0003WL-JS; Fri, 19 Jul 2019 03:20:40 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 6D33A2234A; Fri, 19 Jul 2019 03:20:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Fri, 19 Jul 2019 03:20:39 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrieeigdduvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufhffjgfkfgggtgfgsehtqh ertddtreejnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdr ohhrgheqnecukfhppeegiedrkedtrdejtddrvdehnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeek jeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfh hmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from thinkpad-t440p (p2e504619.dip0.t-ipconnect.de [46.80.70.25]) by mail.messagingengine.com (Postfix) with ESMTPA id 47E978005C; Fri, 19 Jul 2019 03:20:38 -0400 (EDT) From: Tassilo Horn To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#36654: Docview: show current zoom % in the modeline bar References: <87wogkzvg0.5.fsf@jidanni.org> <87h87jqjik.fsf@gnu.org> <871rymlpul.7.fsf@jidanni.org> Date: Fri, 19 Jul 2019 09:20:36 +0200 In-Reply-To: <871rymlpul.7.fsf@jidanni.org> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan Jacobson"'s message of "Fri, 19 Jul 2019 10:28:50 +0800") Message-ID: <87pnm61oe3.fsf@gnu.org> 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 36654-done Cc: 36654-done@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 (---) Tags: wontfix =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > Well all I know is gv(1), firefox(1), chromium(1) all show the new > "xx%" every time one zooms or unzooms, if not permanently shown on > their panels, then at least on a brief popup. Yes, right. However, DocView just shows just images converted from the document. It has no clue about the original document's paper size, e.g., US Letter, DIN A4, etc. So it's not really feasilble to show a meaningful percentage without using external tools to query that information. I'm assuming that with usual document readers a zoom level of 100% means "Assuming you configured the correct DPI for you monitor [which, I guess, almost nobody has], the document is displayed in the same size as if it were printed out on a sheet of paper of the right dimensions". Of course, we could simply say the initial size of the images when opening a document is 100% and then change that when zooming. That would match my above assumption if `doc-view-resolution' is set to your monitor's DPI. However, DocView has two ways of zooming: if emacs is built with ImageMagick support and `doc-view-scale-internally' is t, the images are scaled dynamically, otherwise the document is reconverted with a changed setting of `doc-view-resolution'. So if you use emacs with ImageMagick support, you'd usually configure a higher `doc-view-resolution' value in order to improve the image quality when scaling dynamically. But then the "same size as printout" assumption is moot. And without ImageMagick support, the recipe 1) Open doc, zoom level indicator shows 100% 2) Zoom in, zoom level indicator shows, e.g., 110% 3) Kill buffer 4) Find doc again, zoom level indicator shows 100% would show a larger doc in step 4 than in step 1 although the zoom level is 100% in both cases. This is because DocView caches the images and the corresponding resolution in a temporary directory. Well, of course it could also save more information on the initial conversion run so that step 4 would result in 110%, but I think such a feature wouldn't be worth the effort. Therefore, I'm closing this issue as wontfix. Bye, Tassilo ------------=_1563520862-5320-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 Jul 2019 20:16:10 +0000 Received: from localhost ([127.0.0.1]:46050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmkun-0006pG-1n for submit@debbugs.gnu.org; Sun, 14 Jul 2019 16:16:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:43254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmkuk-0006p2-Li for submit@debbugs.gnu.org; Sun, 14 Jul 2019 16:16:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49721) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmkuj-0005Te-SW for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 16:16:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=5.0 tests=BAYES_50,DATE_IN_PAST_06_12, FROM_EXCESS_BASE64,RCVD_IN_DNSWL_NONE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmkui-0004Wr-N1 for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 16:16:05 -0400 Received: from bumble.birch.relay.mailchannels.net ([23.83.209.25]:28656) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hmkui-0004Vg-EY for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 16:16:04 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1F207340D2A for ; Sun, 14 Jul 2019 20:16:03 +0000 (UTC) Received: from pdx1-sub0-mail-a88.g.dreamhost.com (100-96-14-124.trex.outbound.svc.cluster.local [100.96.14.124]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A916B3402DC for ; Sun, 14 Jul 2019 20:16:02 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a88.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Sun, 14 Jul 2019 20:16:03 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Harbor-Imminent: 6a087493222e9d36_1563135362944_2988996656 X-MC-Loop-Signature: 1563135362944:424450771 X-MC-Ingress-Time: 1563135362944 Received: from pdx1-sub0-mail-a88.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a88.g.dreamhost.com (Postfix) with ESMTP id 6F57380566 for ; Sun, 14 Jul 2019 13:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=MtjPXS2Mbs5N03ZQTG lcuPOhup8=; b=GgFvb9wt/Pyp4dgJM94lzEOiJXgROgWEpYE63lhGzMY2ipz+cl 6xSes7fR/Po5dRlZbSMrP0/afirk6kGlkaw9f2rBEgbKGnfgd4UODGYweoLUbdKv n5eldXuNvWhRQqGn7NM4V7zeBQvMui99Jt06Dp7qCq43nUamfR2VWcKCc= Received: from jidanni.org (114-41-13-208.dynamic-ip.hinet.net [114.41.13.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a88.g.dreamhost.com (Postfix) with ESMTPSA id 0744E80555 for ; Sun, 14 Jul 2019 13:15:56 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a88 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: Docview: show current zoom % in the modeline bar Date: Sun, 14 Jul 2019 19:50:39 +0800 Message-ID: <87wogkzvg0.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrheehgdduheduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtgfesthekredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppeduudegrdeguddrudefrddvtdeknecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddugedrgedurddufedrvddtkedprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgepud Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.209.25 X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: submit 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.3 (-) + runs the command doc-view-enlarge (found in doc-view-mode-map), which is an interactive compiled Lisp function in =E2=80=98doc-vie= w.el=E2=80=99. OK good, but those plus and minuses should put the current zoom scale (200%, etc.) into the mode line. (Plenty of room there.) In fact perhaps start by showing "100%" there even before we start zoomin= g. (Please do something to make it look different to the user than the "what percent of the file am I looking at" item in the modeline (even if not ever present at the same time.) Maybe say: "Zoom 55%".) ------------=_1563520862-5320-1--