all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Drew Adams <drew.adams@oracle.com>
Cc: 19551-done@debbugs.gnu.org, Stephen Berman <stephen.berman@gmx.net>
Subject: bug#19551: 25.0.50; No lighter shown for `text-scale-mode' when it should be `+0'
Date: Fri, 09 Jan 2015 18:48:46 -0500	[thread overview]
Message-ID: <jwvr3v35xdk.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <5a7e10ff-e3b4-4770-80e3-bf8c6e914443@default> (Drew Adams's message of "Fri, 9 Jan 2015 14:53:42 -0800 (PST)")

tags 19551 notabug
thanks

It's a feature.


        Stefan


>>>>> "Drew" == Drew Adams <drew.adams@oracle.com> writes:

>> > I don't know how or why this happens, but when buffer text is zoomed out
>> > and back in, so that the resulting text scale is neutral (100%, zero
>> > increase/decrease), the mode-line lighter should say `+0', as specified
>> > in the code (`face-remap.el').  For some reason, the lighter just
>> > disappears, as if the value of `text-scale-mode-lighter' were nil.
>> 
>> I don't think this is a bug.  If I understand the code correctly, the
>> lighter disappears because the minor mode is turned off when the text
>> scale is 0; see this line in `text-scale-increase':
>> 
>> (text-scale-mode (if (zerop text-scale-mode-amount) -1 1))

> Ah, right you are.  I didn't notice that.  I should have guessed this.

>> I also don't see anywhere in face-remap.el that specifies the lighter is
>> "+0" when the text scale is 0 (the default value of
>> `text-scale-mode-lighter' is "+0", but changes as soon as
>> text-scale-mode is enabled).

> It's done in `text-scale-mode':
> (setq text-scale-mode-lighter
> 	(format (if (>= text-scale-mode-amount 0) "+%d" "%d")
> 		text-scale-mode-amount))

> That sets `text-scale-mode-lighter' to "+0" when `text-scale-mode-amount' is 0.

> I'm OK with the bug being closed.







      reply	other threads:[~2015-01-09 23:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-09 22:18 bug#19551: 25.0.50; No lighter shown for `text-scale-mode' when it should be `+0' Drew Adams
2015-01-09 22:41 ` Stephen Berman
2015-01-09 22:53   ` Drew Adams
2015-01-09 23:48     ` Stefan Monnier [this message]

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

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

  git send-email \
    --in-reply-to=jwvr3v35xdk.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=19551-done@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=stephen.berman@gmx.net \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.