From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Stephen Berman <stephen.berman@gmx.net>
Newsgroups: gmane.emacs.bugs
Subject: bug#19551: 25.0.50;
	No lighter shown for `text-scale-mode' when it should be `+0'
Date: Fri, 09 Jan 2015 23:41:34 +0100
Message-ID: <87sifj8tlt.fsf@gmx.net>
References: <73f694e6-cb65-478a-96a2-05749ac658e0@default>
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: ger.gmane.org 1420843338 12148 80.91.229.3 (9 Jan 2015 22:42:18 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 9 Jan 2015 22:42:18 +0000 (UTC)
Cc: 19551@debbugs.gnu.org
To: Drew Adams <drew.adams@oracle.com>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 09 23:42:11 2015
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1Y9iFv-0003LM-Ir
	for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Jan 2015 23:42:11 +0100
Original-Received: from localhost ([::1]:52513 helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org>)
	id 1Y9iFu-0000QX-Lv
	for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Jan 2015 17:42:10 -0500
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51228)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1Y9iFq-0000QD-8j
	for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2015 17:42:07 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1Y9iFn-0006JY-2t
	for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2015 17:42:06 -0500
Original-Received: from debbugs.gnu.org ([140.186.70.43]:60097)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1Y9iFm-0006JU-WB
	for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2015 17:42:03 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1Y9iFm-0006cC-IV
	for bug-gnu-emacs@gnu.org; Fri, 09 Jan 2015 17:42:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Stephen Berman <stephen.berman@gmx.net>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Fri, 09 Jan 2015 22:42:02 +0000
Resent-Message-ID: <handler.19551.B19551.142084330625401@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 19551
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
Original-Received: via spool by 19551-submit@debbugs.gnu.org id=B19551.142084330625401
	(code B ref 19551); Fri, 09 Jan 2015 22:42:02 +0000
Original-Received: (at 19551) by debbugs.gnu.org; 9 Jan 2015 22:41:46 +0000
Original-Received: from localhost ([127.0.0.1]:41230 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1Y9iFV-0006bd-MC
	for submit@debbugs.gnu.org; Fri, 09 Jan 2015 17:41:45 -0500
Original-Received: from mout.gmx.net ([212.227.17.22]:56550)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <stephen.berman@gmx.net>) id 1Y9iFT-0006bU-FF
	for 19551@debbugs.gnu.org; Fri, 09 Jan 2015 17:41:44 -0500
Original-Received: from rosalinde ([89.245.100.150]) by mail.gmx.com (mrgmx102) with
	ESMTPSA (Nemesis) id 0MQ7sF-1Y67cH27Kl-005L4T; Fri, 09 Jan 2015 23:41:38
	+0100
In-Reply-To: <73f694e6-cb65-478a-96a2-05749ac658e0@default> (Drew Adams's
	message of "Fri, 9 Jan 2015 14:18:53 -0800 (PST)")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
X-Provags-ID: V03:K0:KYtqim+Be0tf4BhlXwKht4nMdVx+6rgHKILj60hhusahI7P9DG4
	PCT++IMvFx2ktiBGKt0YVUnRUuE9OyaIb8UXe/ceG0Vy3hr7CYXP7gpUIVrOM6onUDm3vIi
	wl5S9cKxzDxFnI8BLuH9y7lxqymSg8mLHSphKHZdeEpHnU1a8ztuauL9YZj+Ab44CGlQQSa
	zuBVrkayvI5zxGdqtF+UQ==
X-UI-Out-Filterresults: notjunk:1;
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-Received-From: 140.186.70.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
	the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
	<mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.bugs:98151
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/98151>

On Fri, 9 Jan 2015 14:18:53 -0800 (PST) Drew Adams <drew.adams@oracle.com> wrote:

> 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))

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).

Steve Berman