From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: Interactive window resize feedback? Date: Fri, 26 May 2017 19:12:15 +0200 Message-ID: <87lgpjpmog.fsf@rosalinde> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1495818771 28355 195.159.176.226 (26 May 2017 17:12:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 26 May 2017 17:12:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Skip Montanaro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 26 19:12:43 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEIn4-00079P-QA for geh-help-gnu-emacs@m.gmane.org; Fri, 26 May 2017 19:12:42 +0200 Original-Received: from localhost ([::1]:37695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEInA-0000Oj-CW for geh-help-gnu-emacs@m.gmane.org; Fri, 26 May 2017 13:12:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEIml-0000OO-Gt for help-gnu-emacs@gnu.org; Fri, 26 May 2017 13:12:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEImg-0000sw-IF for help-gnu-emacs@gnu.org; Fri, 26 May 2017 13:12:23 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:54228) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dEImg-0000sb-7t for help-gnu-emacs@gnu.org; Fri, 26 May 2017 13:12:18 -0400 Original-Received: from rosalinde ([83.135.3.240]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M54L0-1e934L3iso-00zIDk; Fri, 26 May 2017 19:12:16 +0200 In-Reply-To: (Skip Montanaro's message of "Fri, 26 May 2017 11:22:01 -0500") X-Provags-ID: V03:K0:4uEbppT3y+VdkZ0x8yJ6voE8njVpYP3jlMXmtallYzI+Kw2Tfig QQ44S6dopdn1iJDcc1OSXccSkxKoqgLNxjIcQcDf9XKj25QG3iwAAIP6/biak9ZxIsBq1Q9 +MVdUupB7t7BHCapPI0pecjV52bnhpm7fBJmzpOyS12musYHv0pe23CbATK3xz9cw24c2+3 VjQbCeh7rw3um/S4nWT2A== X-UI-Out-Filterresults: notjunk:1;V01:K0:0q4RialpeSo=:sMceahxb1gVrA1kOXMQjlS LQrlA5e8C8bge0IrJvx2KJTwBlDCrwDPsqfDtWCcPAHJtPaSxwwvxu+Xkovv42AiyKflH+8yf sl4c4iEV/hz8KMYBDwWd1cg+T0I+swgbrCgiOw8txWo1HB6L389ATcQnr6I18I2vDKqoUwHOl Lkvh56wekgoGeyhhiwOBCSEtWkE/SWR5UBq7KFKDagMfVNbY9Vox2mXBtC1nFKyk/prS1nsQr Pv9qm6812Qc9uDk24n46v8saJONGemD9S6D6d5vPg1WV7AzItq4CMo9RrBuIqDOV8mGJNhr2y MHu7mmfL0KWxDhR812EGnpeVYZV3wmcMHHRtlSWygo6wTjZ4/Hxc5dbrM3JRrsHqdbD2paWbr 5fr4MjDiF4/e/VV/+gUCKinT0DLPj7Ejbp26ov1gM758mDU9oVUdHWu1bBNPCJn7FLmG31l0M 5lVVKNv8YFA5hsLqDahkf6Hc/8TSSh6VUsOZ2CxI7Dc2D0H5swu5xKEVgW/6GIn/IfSFXn9Ro c4QoGe0MJPPJH4zKbCvtA8G1HIBANJAExvDUdSPmO05R0S8VPU+DOdHJxsfaU88XZ8JTzFZsk aBEit09uC4/p8oyr+cBFnpzdEw+98V5RkaQC+MbS1dFI2x5GAhGTXiiDA0j4v1FDGJoOo4gbL K99XiLNIA3tQ11AUfhBEQsMYk6FyozQHjYWOgACVo3MPNbCpducV+nrGY0/yO4CxRHc5TZXf+ 3XbiCGcSHQINf55Cfcs8LHuG2vEu1FmZl8WWKpkTIQtWbYBYtgJuQEqZ9205l0RK6H8WMFDX X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.18 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113183 Archived-At: On Fri, 26 May 2017 11:22:01 -0500 Skip Montanaro wrote: > I'm an old 80-column guy. Sometimes I need to widen a frame to view > more text without truncation or line wrappage, though. Is it possible > to get Emacs to provide a little interactive feedback as I resize the > frame? Alternatively, can I display frame or window dimensions in the > mode line? (I poked around some of the mode-line-format docs, but > honestly didn't understand what I was looking at.) > > A bit of Googling and poking around in the customization didn't turn > anything up. I'm stuck on Windows with Emacs running on a Linux > server, so I can't go poking around window manager docs. This will put frame-width and frame-height in the mode line: (defvar my-frame-size-mode t) (defun my-frame-size-mode (arg) "Toggle Frame Size mode. With arg, turn Frame Size mode on iff arg is positive. When Frame Size mode is enabled, the frame's width and height appear in the mode line." (interactive "P") (setq my-frame-size-mode (if (null arg) (not my-frame-size-mode) (> (prefix-numeric-value arg) 0))) (force-mode-line-update)) (setq mode-line-position (append mode-line-position '((my-frame-size-mode (:eval (concat " W" (number-to-string (frame-parameter nil 'width)) " H" (number-to-string (frame-parameter nil 'height)))))))) Steve Berman