unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Stefan Kangas <stefan@marxist.se>
Cc: 28194@debbugs.gnu.org, "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Subject: bug#28194: text-scale-adjust should show current accumulated scale factor
Date: Mon, 07 Oct 2019 21:18:35 +0300	[thread overview]
Message-ID: <87h84k1s78.fsf@mail.linkov.net> (raw)
In-Reply-To: <CADwFkmnTJisbLr1mvt7nJ6pV-O2CWeb9BO8o1D4-GcN0DfUSaA@mail.gmail.com> (Stefan Kangas's message of "Sun, 29 Sep 2019 03:49:03 +0200")

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)





  reply	other threads:[~2019-10-07 18:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-23  1:06 bug#28194: text-scale-adjust should show current accumulated scale factor 積丹尼 Dan Jacobson
2017-08-23  1:33 ` Drew Adams
2017-08-23 14:49 ` 積丹尼 Dan Jacobson
2017-08-23 15:51   ` Drew Adams
2017-08-23 16:00 ` 積丹尼 Dan Jacobson
2019-09-29  1:49 ` Stefan Kangas
2019-10-07 18:18   ` Juri Linkov [this message]
2019-11-13 20:50     ` Juri Linkov
2019-09-29  4:19 ` 積丹尼 Dan Jacobson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h84k1s78.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=28194@debbugs.gnu.org \
    --cc=jidanni@jidanni.org \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).