From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Making windows have same number of columns Date: Thu, 26 Nov 2020 15:01:19 -0800 (PST) Message-ID: <4b1636f4-a576-4b3e-ab2e-c54744ead9c4@default> References: <87wny8t89u.fsf@gmx.net> <87o8jkt0c0.fsf@gmx.net> <87k0u7udo1.fsf@gmx.net> <87czzzucqt.fsf@gmx.net> <878sanuafx.fsf@gmx.net> <871rgfu63v.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36330"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Stephen Berman , daniela-spit@gmx.it Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 27 00:04:32 2020 Return-path: Envelope-to: geh-help-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 1kiQJT-0009IC-PR for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 00:04:31 +0100 Original-Received: from localhost ([::1]:60312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiQJR-0008V9-Ri for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 18:04:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiQIW-0008V1-LL for help-gnu-emacs@gnu.org; Thu, 26 Nov 2020 18:03:32 -0500 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:40350) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiQIU-0005ir-Cm for help-gnu-emacs@gnu.org; Thu, 26 Nov 2020 18:03:32 -0500 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AQMxOsF032771; Thu, 26 Nov 2020 23:03:21 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=2A4eunxwwVtPzR+14VJQWEiKf8sYWjdcH+P8+gWY9Jo=; b=mXHZSJ+v/bY1hi8C8bL8Drn6aP62yEGCmISkqIEdFmD5TxN0kab4WomnDRXfgW3wmgF9 GUCV0LWG1mx0xr/tqzaRAV/YfNr6yxlXf9s8RjrydFgXm+EBZrA9f2BYp8QtJF4Hkknk sXwTHF/wkdfo54vMMGmgeOLucu7tEbo5VZeIpbf0E1QZnFKC0sbfwgRfSx0hlNfcsP9P zok+06VJmNhC7zVKtto8s9GFEDq2QLlfBOKHXW2hiiTAU65BlOhWBiEE8i5IjgsUn+Dc nwz1mgbT8K/WQLQ1unvPZm8Oc5d6PWgP4GXIJvX5nAKxZDgJ6T3gShEw8jmpHoHWfsPK wg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2130.oracle.com with ESMTP id 351kwhfcaf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 Nov 2020 23:03:21 +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 0AQN08OL138318; Thu, 26 Nov 2020 23:01:21 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 351n2kp5as-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 26 Nov 2020 23:01:21 +0000 Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0AQN1Jw8025799; Thu, 26 Nov 2020 23:01:20 GMT In-Reply-To: <871rgfu63v.fsf@gmx.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9815 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 mlxlogscore=999 spamscore=0 phishscore=0 malwarescore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011260146 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9817 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxscore=0 impostorscore=0 suspectscore=0 adultscore=0 bulkscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1011 priorityscore=1501 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011260146 Received-SPF: pass client-ip=141.146.126.79; envelope-from=drew.adams@oracle.com; helo=aserp2130.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125596 Archived-At: > Changing the font size with text-scale-adjust has no affect on > window-body-width; you can only change that by using > shrink-window-horizontally or enlarge-window-horizontally if your frame > has two or more side-by-side windows, or else if you change the width > of the frame. This doesn't directly address the original question, but FWIW: Library `face-remap+.el' makes the `text-scale-*' functions respect this new user option: ,---- | text-scale-resize-window is a variable defined in `face-remap+.el'. | Its value is t |=20 | Documentation: | Non-nil means text scaling resizes the window or frame accordingly. | For example, if you use `C-x C--' (`text-scale-decrease')' to make the | text smaller, then the window or frame is made smaller by a similar | factor. |=20 | If the window is not alone in its frame, then the window is resized. | Otherwise, the frame is resized (provided you also use library | `fit-frame.el'). The frame is always resized both horizontally and | vertically. |=20 | You can customize this variable.=20 `---- One aim behind this is to not waste horizontal whitespace in the window when you reduce the displayed text size. You can likely use similar code to get the requested effect. https://www.emacswiki.org/emacs/download/face-remap%2b.el