From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: daniela-spit@gmx.it Newsgroups: gmane.emacs.help Subject: Re: Making windows have same number of columns Date: Thu, 26 Nov 2020 21:22:28 +0100 Message-ID: References: <87wny8t89u.fsf@gmx.net> <87o8jkt0c0.fsf@gmx.net> <87k0u7udo1.fsf@gmx.net> <87czzzucqt.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37532"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Stephen Berman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 26 21:23:19 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 1kiNnT-0009fc-98 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 21:23:19 +0100 Original-Received: from localhost ([::1]:52442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiNnS-0007rp-9y for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 15:23:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiNml-0007rT-3b for help-gnu-emacs@gnu.org; Thu, 26 Nov 2020 15:22:35 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:39783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiNmh-0007kh-Jd for help-gnu-emacs@gnu.org; Thu, 26 Nov 2020 15:22:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606422149; bh=BpOrVcQQQFY7xR+qyhHNVOOE/9rdRaUB0svZgNObesg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=PzaygKIM2ly9phm7myq7Iu3VMRRFC8Xl/4LjMriLMZBXdoAFeTGCMKgBewuOf/Qvp I/bJufh9FX1smysn8tZ3gRhVyQqQwkx40J8EyGgHqZo09EM/Dzz/ZgO45QmbFfKNKH oTeCnA5ljmWP9PLEzSqokhDL0mz/hdtJsfiseMG8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs06.server.lan [172.19.170.174]) (via HTTP); Thu, 26 Nov 2020 21:22:28 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87czzzucqt.fsf@gmx.net> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:7GgieRPfQbKINjOOSqpnar5yid4HG8ZIgbaaJAu99+W6AymrAXaz68M4tpKsdCu30H79i M4KGdYlL5umU4H+P13mP/NIqVmP72a36PpTgKIhdP7C9rcKKgP2mXxcxSUh2OEPvP+3VtbyZfKyH s3RuKugXGc3DC9adKKFhgPGEO2gf0AIighkV6IaEcc+zLOUXJEeIYsoOrFjx+FuG0RCKu6jVasON F1fEdJp3WoYEhz+5ljUmfFbuwtOqkGCXfMA8wjQGqFxQTM8jc1G90uvprlAiiABiX9VGgnVtpBqj ak= X-UI-Out-Filterresults: notjunk:1;V03:K0:mWPFj4eWUcU=:uAYrw6qcf8jR9P9V/eLVzN V3K8TACE2OMxCOT0IfaczOgqzrqmIeG6he+S2adNi1NR6MsxPZYftRmSvEZ5B2TDnOdlBwV+m LY7SCd5jfJQFlkO2j3TBUluJwUHb2ORoMA1/BK+5gfWlaxvjYELEwmbIG+j7muiKSfJn8fKQB BQbcH/aViXJNDyegqzAfF6Xeqrv/QxHsJqMyNW9nNrj0PFpX7b57f8NfIKr/YXlyjcn2gPhFC SxsTH5D7Laqe1nC1V7u+9DiC7xBVjzO7tKbXbpWe5Sr56JrNTr6q4JLpqQYXs/tJC4+6xzdZb mygYieMbufT3pPDBCT+L/0VrZm35INmEY/3BXxakM58IN2u8aoN7VYWCxoEhHqEVUGQ6Sh2w3 6BIgb8TWnYBCriSrTglEnzKTWTHGfdEbIiB/Ri3hDgax68GceRUGxeYW6pV7+rxn29pbB81dh pvI4fIsE7S8ucx71C2ybzF+/Az7yblItSJuHPwmTy4R0ZY2VHuXZEJg90ZInSTUv42OsJrrub B1X7axFqDtRPG3x5wuoJJ4VTyVFRuDHi74f2+5rafmqq7FdSVoabhhT+tMRYUG8dAFbWl6kot Tl47vaGhFbLeY= Received-SPF: pass client-ip=212.227.15.19; envelope-from=daniela-spit@gmx.it; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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:125585 Archived-At: > Sent: Thursday, November 26, 2020 at 8:41 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: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 specifi= c > >> >> > 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 pre= fix > >> >> 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 spe= cific > >> > number of columns. > >> > >> I'm not aware of any command or function in Emacs that adjusts text s= ize > >> 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 Contr= ol > >> 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 fo= nt > >> size by a specific number of columns. > > > > Yes, but when you use the scroll wheel you have no real control, one w= heel > > scroll down could get the text too small. I would like a way that sto= ps > > 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-sca= le-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. Have tried it out and things are a bit better as it does not scale too muc= h. Once I do the scaling, is there a way to determine now many columns are vi= sible in a buffer? > Steve Berman > > >