From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#36654: Docview: show current zoom % in the modeline bar Date: Thu, 18 Jul 2019 20:34:27 +0200 Message-ID: <87h87jqjik.fsf@gnu.org> References: <87wogkzvg0.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="106805"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 36654@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 18 20:35:07 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hoBFC-000Rf2-Vs for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jul 2019 20:35:07 +0200 Original-Received: from localhost ([::1]:40350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoBFB-00069T-Vv for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jul 2019 14:35:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47252) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoBF9-00069L-7y for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 14:35:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hoBF8-0001YM-85 for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 14:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45860) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hoBF8-0001YC-4D for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 14:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hoBF7-0004gU-Uv for bug-gnu-emacs@gnu.org; Thu, 18 Jul 2019 14:35:01 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 36654-submit@debbugs.gnu.org id=B36654.156347488417976 (code B ref 36654); Thu, 18 Jul 2019 18:35:01 +0000 Original-Received: (at 36654) by debbugs.gnu.org; 18 Jul 2019 18:34:44 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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: Original-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) 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") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163328 Archived-At: =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