From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josh Newsgroups: gmane.emacs.bugs Subject: bug#9949: 24.0.91; window-width function does not take text-scale-mode-amount into account Date: Thu, 3 Nov 2011 19:29:40 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf300fb0b962886e04b0df7bd7 X-Trace: dough.gmane.org 1320374533 21152 80.91.229.12 (4 Nov 2011 02:42:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Nov 2011 02:42:13 +0000 (UTC) To: 9949@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 04 03:42:07 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RM9jJ-000844-TP for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Nov 2011 03:42:06 +0100 Original-Received: from localhost ([::1]:41977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM9jJ-0001jH-Eg for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Nov 2011 22:42:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM9im-0001gM-8J for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 22:41:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RM9ik-00039t-SP for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 22:41:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM9ik-00039p-Qp for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 22:41:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RM9lC-0002k4-Ex for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 22:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Josh Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Nov 2011 02:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9949 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.132037461910498 (code B ref -1); Fri, 04 Nov 2011 02:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Nov 2011 02:43:39 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM9kp-0002jG-0U for submit@debbugs.gnu.org; Thu, 03 Nov 2011 22:43:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RM9aC-0002Ru-9f for submit@debbugs.gnu.org; Thu, 03 Nov 2011 22:32:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RM9Xi-0001HD-Ta for submit@debbugs.gnu.org; Thu, 03 Nov 2011 22:30:08 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:59950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM9Xi-0001GG-OF for submit@debbugs.gnu.org; Thu, 03 Nov 2011 22:30:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM9Xh-00013Y-32 for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 22:30:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RM9Xf-0001Du-FZ for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 22:30:04 -0400 Original-Received: from mail-gy0-f169.google.com ([209.85.160.169]:48224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RM9Xf-0001D0-Ag for bug-gnu-emacs@gnu.org; Thu, 03 Nov 2011 22:30:03 -0400 Original-Received: by gyg10 with SMTP id 10so2322491gyg.0 for ; Thu, 03 Nov 2011 19:30:02 -0700 (PDT) Original-Received: by 10.236.75.227 with SMTP id z63mr16873757yhd.46.1320373801092; Thu, 03 Nov 2011 19:30:01 -0700 (PDT) Original-Received: by 10.236.108.11 with HTTP; Thu, 3 Nov 2011 19:29:40 -0700 (PDT) X-Google-Sender-Auth: ZZ389nS36s_RQ-HGunsVypxqS38 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Thu, 03 Nov 2011 22:43:38 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 03 Nov 2011 22:44:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Thu, 03 Nov 2011 22:42:03 -0400 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53498 Archived-At: --20cf300fb0b962886e04b0df7bd7 Content-Type: text/plain; charset=ISO-8859-1 The window-width function does not take text scale adjustments into account. This breaks code such as http://www.emacswiki.org/emacs/ErcFilling#toc2 which is meant to insert timestamps aligned to the right edge of the window. To reproduce starting from emacs -Q, 1) M-: (window-width) RET ; returns 80 here 2) C-x C-= ; window is now 70 characters wide 3) M-: (window-width) RET ; still returns 80 In GNU Emacs 24.0.91.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) of 2011-10-30 on virtualmac.porkrind.org Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin' '--with-ns' 'build_alias=i686-apple-darwin' 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.5'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.US-ASCII value of $XMODIFIERS: nil locale-coding-system: us-ascii-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: text-scale-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x e m a c s - v e r C-x 3 M-: ( w i n d o w - w i d t h ) C-x C-= C-x C-= M-: C-x 1 M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. GNU Emacs 24.0.91.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) of 2011-10-30 on virtualmac.porkrind.org 37 (#o45, #x25) 37 (#o45, #x25) Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader emacsbug face-remap time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) --20cf300fb0b962886e04b0df7bd7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The window-width function does not take text scale adjustments into=A0= account. =A0This breaks code such as=A0http://www.emacswiki.org/emacs/ErcFilling#toc2 w= hich is meant to insert=A0timestamps aligned to the right edge of the windo= w.

To reproduce starting from emacs -Q,
1) M-: (= window-width) RET =A0; returns 80 here
2) C-x C-=3D =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 ; window is now 70 characters wide
3) M-: (wi= ndow-width) RET =A0; still returns 80=A0



In GNU Emacs 24.0.91.1 (x= 86_64-apple-darwin, NS apple-appkit-1038.35)
=A0of 2011-10-30 on = virtualmac.porkrind.org
Windowing system distributor `Apple', version 10.3.1038
= configured using `configure =A0'--host=3Dx86_64-apple-darwin' '= --build=3Di686-apple-darwin' '--with-ns' 'build_alias=3Di68= 6-apple-darwin' 'host_alias=3Dx86_64-apple-darwin' 'CC=3Dgc= c -mmacosx-version-min=3D10.5''

Important settings:
=A0 value of $LC_ALL: nil=
=A0 value of $LC_COLLATE: nil
=A0 value of $LC_CTYPE: = nil
=A0 value of $LC_MESSAGES: nil
=A0 value of $LC_MON= ETARY: nil
=A0 value of $LC_NUMERIC: nil
=A0 value of $LC_TIME: nil
=A0 value of $LANG: en_US.US-ASCII
=A0 value of $XMODIFIER= S: nil
=A0 locale-coding-system: us-ascii-unix
=A0 defa= ult enable-multibyte-characters: t

Major mode: Lisp Interaction

M= inor modes in effect:
=A0 text-scale-mode: t
=A0 toolti= p-mode: t
=A0 mouse-wheel-mode: t
=A0 tool-bar-mode: t<= /div>
=A0 menu-bar-mode: t
=A0 file-name-shadow-mode: t
= =A0 global-font-lock-mode: t
=A0 font-lock-mode: t
=A0 = blink-cursor-mode: t
=A0 auto-composition-mode: t
=A0 a= uto-encryption-mode: t
=A0 auto-compression-mode: t
=A0 line-number-mode: t
=A0 transient-mark-mode: t

Recent input:
<= div>M-x e m a c s - v e r <tab> <return> C-x 3 M-: ( w=A0
=
i n d o w - w i d t h ) <return> C-x C-=3D C-x C-=3D M-:=A0
<up> <return> C-x 1 M-x r e p o r t - e m <tab> <r
eturn>

Recent messages:
For i= nformation about GNU Emacs and the GNU system, type C-h C-a.
GNU Emacs 24.0.91.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) of = 2011-10-30 on virtualmac.porkrin= d.org
37 (#o45, #x25)
37 (#o45, #x25)

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr message format-spec = rfc822 mml easymenu
mml-sec mm-decode mm-bodies mm-encode mail-pa= rse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailhead= er
emacsbug face-remap time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel ns-win tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham geor= gian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao ko= rean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abb= rev
minibuffer loaddefs button faces cus-face files text-properti= es overlay
sha1 md5 base64 format env code-pages mule custom widget
has= htable-print-readable backquote make-network-process ns multi-tty
emacs)

--20cf300fb0b962886e04b0df7bd7--