From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#39901: Emacs needs to update window-width when the user updates the text size Date: Wed, 4 Mar 2020 06:38:03 -0800 (PST) Message-ID: <8c863836-1236-49ea-b185-996f55ee18c7@default> References: <878skhphb5.8.fsf@jidanni.org> <877e00nqx8.5.fsf_-_@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="94599"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 953033@bugs.debian.org, Katsumi Yamaoka To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson , 39901@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 04 15:39:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j9VB2-000OUP-Nf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Mar 2020 15:39:12 +0100 Original-Received: from localhost ([::1]:35134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9VB1-0001Yx-FY for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Mar 2020 09:39:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60011) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9VAt-0001Yc-Fn for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 09:39:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9VAs-0004GT-CK for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 09:39:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34560) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9VAs-0004G9-7a for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 09:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j9VAs-0000fk-5U for bug-gnu-emacs@gnu.org; Wed, 04 Mar 2020 09:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Mar 2020 14:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39901 X-GNU-PR-Package: emacs Original-Received: via spool by 39901-submit@debbugs.gnu.org id=B39901.15833327002524 (code B ref 39901); Wed, 04 Mar 2020 14:39:02 +0000 Original-Received: (at 39901) by debbugs.gnu.org; 4 Mar 2020 14:38:20 +0000 Original-Received: from localhost ([127.0.0.1]:40533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9VAB-0000ee-V2 for submit@debbugs.gnu.org; Wed, 04 Mar 2020 09:38:20 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:42446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9VAA-0000eO-9K for 39901@debbugs.gnu.org; Wed, 04 Mar 2020 09:38:18 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 024EXtMk134517; Wed, 4 Mar 2020 14:38:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=BG4qVVqSV4oZR8fVnzTmLuDSzmVIkRFnZxqAxEnU50Q=; b=eNMB1Cq1VDvyjhalR++hq4kg6P7a02RL1v03H3gI7kE/eUfEaG+T9iuxOtLrpFtvsox6 iVTl7RqTk8KDAh1Sam6A1A2yw+eawUn8zf67Y/6Tc/4QYhBEJrJBq6Nyz/kZBWcIDe3l ynxy/egOW5Bnbu+hr+rj+d6/xt21wYSxQJytFPCtA1qfQLZsskgURzv15DWgX3GdfLsm iNVUirgke9YO5AyE+dKdR+WSx0PN43DzE65XOpHmtj3wRK5eCoVE3k+p9RBDPcFy1r/j SFQZQ9i2+DyHqtWvdl9AQp8T5takFsWDyglIdFf92kuEM4H0W1YCSt6suB+M07E5/Ufg Tg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 2yffcupqqe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 04 Mar 2020 14:38:06 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 024EXAnl078187; Wed, 4 Mar 2020 14:38:06 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 2yg1h1010r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 04 Mar 2020 14:38:06 +0000 Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 024Ec4oV017610; Wed, 4 Mar 2020 14:38:04 GMT In-Reply-To: <877e00nqx8.5.fsf_-_@jidanni.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4966.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9549 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 suspectscore=0 malwarescore=0 mlxlogscore=999 mlxscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2003040110 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9549 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxscore=0 bulkscore=0 adultscore=0 suspectscore=0 spamscore=0 malwarescore=0 impostorscore=0 priorityscore=1501 mlxlogscore=999 lowpriorityscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2003040110 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176837 Archived-At: > Emacs needs to update window-width when > the user updates the text size. Apologies for not following this thread, and if this reply is off-topic. I stumbled on this message by chance. FWIW, letting users automatically resize the window to accommodate a change in text scale is the purpose of library `face-remap+.el'. This enhancement was proposed to Emacs dev from the outset (2009), but there was no interest. `face-remap+.el' lets buffer font resizing also zoom the window size accordingly (horizontally, vertically, or both). That way, you can take advantage of the space freed up by resizing (text-scaling) to a smaller font. The code has just a small change to `text-scale-increase'. https://www.emacswiki.org/emacs/download/face-remap%2b.el Option `text-scale-resize-window' lets you control the behavior: nil: Don't resize window `horizontally': Resize window only horizontally `vertically': Resize window only vertically t: Resize window both directions [If the window is alone in its frame, and if you also use library `fit-frame.el', then the frame is resized (horizontally & vertically).]