From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: Making windows have same number of columns Date: Thu, 26 Nov 2020 20:41:46 +0100 Message-ID: <87czzzucqt.fsf@gmx.net> References: <87wny8t89u.fsf@gmx.net> <87o8jkt0c0.fsf@gmx.net> <87k0u7udo1.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23351"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Help Gnu Emacs To: daniela-spit@gmx.it Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 26 20:42:37 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 1kiNA3-0005yZ-Va for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 20:42:35 +0100 Original-Received: from localhost ([::1]:39614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiNA3-0007bz-0S for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 14:42:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiN9O-0007Yf-MH for help-gnu-emacs@gnu.org; Thu, 26 Nov 2020 14:41:54 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:47545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiN9M-0001is-O7 for help-gnu-emacs@gnu.org; Thu, 26 Nov 2020 14:41:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606419710; bh=1LT4ZnzlpPjK21vYm1PBMhaHxQ1Akfh3gCl2n6BYyus=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=dtl0tX49zd9yvBh/xbqOqgF/NCzK9z916qJNwlhzo6Y74ZfIDgNrruZ5mwPjouNaT GhplVafBVPwcpqEhPMuKF+8GdiXYiiOwJLDINlEA9fYKUjnD4T74+SoOF9GYwpHEtZ d9A6HmNCi9YOsr9lN9dwkabyjz9pBT3pnl19BzRM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobe-jhalfs ([188.109.147.66]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MJVHU-1kT3Be1b7A-00Jt6z; Thu, 26 Nov 2020 20:41:50 +0100 In-Reply-To: (daniela-spit@gmx.it's message of "Thu, 26 Nov 2020 20:30:46 +0100") X-Provags-ID: V03:K1:uoa+DFFjVZwasVDuJFf/pSBk2yhFyRsC+5XGJgTGgsZQVn8ZtRw eWsfORtmFQ7SxMDX2UtTgAmB2FqY6192UjBLxF6WUHOhAGb9r5YjVFV0uv+Ll1rWP9126y1 ue6yrvQNX1Lvv9H6UQUJ0UWzf7FiBpVez6qBFHhIoD+x81wYxOqVWrffmPVOOSD7Oz0px2q U3diqGE2KqBvdCAuldEmQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:Kkerc18ipnQ=:m3vvguTrBiY3ZaC+ANwR89 5IrX7fJZxDh9J4qp9pG2PktOxeZTPw45LSRpj1GZ7tSqzqKstRJ7gdIoucSVebVxESc3zuXwb x9Wn/hG3l/1auu/pyLxLH5uXVWomLXZ0jNQ8aYzeN1/NaRv/w7KTIUP9SfhaHMBxjcmmuoPb3 QamYDOQWPoMKR6G14wnKIvwZJgUm60O+TP6di8k0RUAa6wxBXo5DnWI4g5BjxFes4v1keeauY C49K73tWlpCDkQvYBbe5XVsWP/4KQ3+ESmxQoD/f+nnwsFCQlKFNBtfM5bfWUqLz3mEfxn4Sk XdC0Coqa0tYmOPKI0ICsjchOFMWf1Qsf3TkCK62KIE68s3ZxnUFDcew7Dg37KPNYllx4Q1BiA 9dHfAU5szUPsQnXUvwLXOmUoSnQ56YIbuuwm0dWDYJu/AtURZK7jU3Zt9J/Zb6dbJLzQHOOsh Y4tb+xVYhdZq2AZynElmxOwdL2oN8AThT649qTSDg/qial5Bl7tpmlr+7AyL3n/p/nVgajJwG mioQxxPEk9/y7C+vquLAKIzad9E5pzy+/DnhXlI/Ik4EgFPC/RKmKz9H/Wso91JEYClFtM3S6 D3lkDwkMtJXo4rCbIMHzJvtbC7DRzh13UgscgIdFDw5fMYVa/veSV/zVM7WVabZte+Ix0QCmx SRgPdNBy/danl7qiZoz1gt9S+sXEJXerDfl6Bf//VcLSif73a1ytrRqaLNVIqFiYp1XSJj3LP F9l+BjqOd61sIE1p2KaGYHqVlz6QBVl4ws/rz0UF3QB095nmg370MY14aIzev8Q11JPySZl5 Received-SPF: pass client-ip=212.227.17.22; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:125582 Archived-At: On Thu, 26 Nov 2020 20:30:46 +0100 daniela-spit@gmx.it wrote: >> Sent: Thursday, November 26, 2020 at 8:21 PM >> From: "Stephen Berman" >> To: daniela-spit@gmx.it >> Cc: "Help Gnu Emacs" >> Subject: Re: Making windows have same number of columns >> >> On Thu, 26 Nov 2020 20:01:24 +0100 daniela-spit@gmx.it wrote: >> >> >> Sent: Thursday, November 26, 2020 at 7:55 PM >> >> From: "Stephen Berman" >> >> To: daniela-spit@gmx.it >> >> Cc: "Help Gnu Emacs" >> >> Subject: Re: Making windows have same number of columns >> >> >> >> On Thu, 26 Nov 2020 19:26:39 +0100 daniela-spit@gmx.it wrote: >> >> >> >> > Is there a command to make zoom in and out a window to a specific >> >> > number of columns? >> >> >> >> If you mean widen or narrow the selected window, there's >> >> enlarge-window-horizontally and shrink-window-horizontally, bound >> >> respectively to `C-x }' and `C-x {'. They both take a numeric prefix >> >> argument, so e.g. `C-u 10 C-x }' widens the selected window by 10 >> >> columns. >> > >> > I would like that the window stays the same size, but with the size >> > of the text in the window to be such that the window displays a specific >> > number of columns. >> >> I'm not aware of any command or function in Emacs that adjusts text size >> according to number of columns. You've mentioned zooming in and out, by >> which I assume you mean either `C-x C-+' and `C-x C-' or the >> corresponding mouse binding (i.e., holding down the Control >> key while scrolling the mouse wheel). But that command is >> text-scale-adjust, which actually changes the height of the font, and >> correspondingly the width, but AFAIK you cannot make it adjust the font >> size by a specific number of columns. > > Yes, but when you use the scroll wheel you have no real control, one wheel > scroll down could get the text too small. I would like a way that stops > me fidgeting with the controls and lets me do what I want with simply > pressing a key sequence. As noted, you can use the key sequences `C-x C-+' and `C-x C-' instead of the mouse scroll wheel. On Thu, 26 Nov 2020 20:33:32 +0100 daniela-spit@gmx.it wrote: > No, you can't. But that not what I am after. What I need is text-scale-adjust > that gets as close as possible to fitting n characters, 55 say. You can try customizing text-scale-mode-step to a smaller value, though there's not a great deal of leeway, since its default value is 1.2 and it has to be >1.0 to have an effect. You might try 1.1 or even a bit less and see if that gives you more control. Steve Berman