From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#28194: text-scale-adjust should show current accumulated scale factor Date: Mon, 07 Oct 2019 21:18:35 +0300 Organization: LINKOV.NET Message-ID: <87h84k1s78.fsf@mail.linkov.net> References: <87wp5vm6sc.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="147972"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 28194@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 07 21:03:02 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 1iHYHd-000cKg-A7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Oct 2019 21:03:01 +0200 Original-Received: from localhost ([::1]:49046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHYHb-0008JY-Cw for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Oct 2019 15:02:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54949) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHYGi-0007tO-HP for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 15:02:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHYGg-0006Fb-3l for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 15:02:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40334) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iHYGg-0006FP-0G for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 15:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iHYGf-00023z-Sr for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2019 15:02:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Oct 2019 19:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28194 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 28194-submit@debbugs.gnu.org id=B28194.15704749117484 (code B ref 28194); Mon, 07 Oct 2019 19:02:01 +0000 Original-Received: (at 28194) by debbugs.gnu.org; 7 Oct 2019 19:01:51 +0000 Original-Received: from localhost ([127.0.0.1]:49153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHYGV-0001wM-9x for submit@debbugs.gnu.org; Mon, 07 Oct 2019 15:01:51 -0400 Original-Received: from antelope.elm.relay.mailchannels.net ([23.83.212.4]:35863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHYGS-0001tb-Ui; Mon, 07 Oct 2019 15:01:49 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 4D65B1409C8; Mon, 7 Oct 2019 19:01:47 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a42.g.dreamhost.com (100-96-87-199.trex.outbound.svc.cluster.local [100.96.87.199]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 9B3781417B2; Mon, 7 Oct 2019 19:01:46 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a42.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.18.3); Mon, 07 Oct 2019 19:01:47 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Reaction-Whispering: 5cf9579d62c94808_1570474907115_2584272220 X-MC-Loop-Signature: 1570474907114:2341898344 X-MC-Ingress-Time: 1570474907114 Original-Received: from pdx1-sub0-mail-a42.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a42.g.dreamhost.com (Postfix) with ESMTP id 6CA0481C63; Mon, 7 Oct 2019 12:01:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=DpeV52PDYfpAUV3HvmbfbG298jA=; b= C1SX476VSJetr2AQ2KXWOh8qzFPg3Y7pNSZ829JNbtvx2CrYZeD6eWeAEhFkaqUV vS/h93pajr1nrElLpOaK/BLZGYuZTIO3FSMs7NXvl2PcZ65SqzauA3nnop2Ol2dQ yoO5LN/FCPoUta7lUVcRgAAW+SheFs+IsLT+7bBHh/w= Original-Received: from mail.jurta.org (m91-129-99-99.cust.tele2.ee [91.129.99.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a42.g.dreamhost.com (Postfix) with ESMTPSA id 4C2C681C62; Mon, 7 Oct 2019 12:01:22 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a42 In-Reply-To: (Stefan Kangas's message of "Sun, 29 Sep 2019 03:49:03 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrheejgdduvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucffohhmrghinhepjhhiuggrnhhnihdrohhrghenucfkphepledurdduvdelrdelledrleelnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleelrdelledprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehsthgvfhgrnhesmhgrrhigihhsthdrshgvnecuvehluhhsthgvrhfuihiivgeptd 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:168580 Archived-At: reopen 28194 quit >> I think it is more likely an emacs bug, that something I set in my >> http://jidanni.org/comp/configuration/.emacs >> wipes out the functionality. > > Could you please provide a minimal recipe for how to reproduce this, > starting from "emacs -Q"? I can reproduce this bug. Running either "emacs -Q" or without "-Q" after loading all customizations from init file it works correctly: 1. C-x C-= 2. there is "+1" in the mode-line 3. and evaluation results: text-scale-mode => t text-scale-mode-lighter => "+1" (assq 'text-scale-mode minor-mode-alist) => (text-scale-mode (" " text-scale-mode-lighter)) But after several hours of active Emacs session this feature breaks and doesn't work anymore even in new buffers: 4. C-x b new-buffer RET 5. C-x C-= 6. there is NO "+1" in the mode-line 7. and evaluation results: text-scale-mode => t text-scale-mode-lighter => "+1" (assq 'text-scale-mode minor-mode-alist) => nil Since this feature is so unreliable, maybe we should duplicate the scale factor information in two places: in the mode-line and in the message in the echo area. Stefan, after you pushed your patch that supports changing font size using mouse wheel, now would it make sense to do also what web browsers do - on pressing C-+ they momentarily display information about new percentage in a small window. In Emacs this information could be added to the message in the echo area, e.g. replace (message "Use +,-,0 for further adjustment") with (message "%s Use +,-,0 for further adjustment" text-scale-mode-lighter)