From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Restricting GNU Emacs to have only one modeline Date: Thu, 23 Feb 2017 10:06:57 +0100 Message-ID: <58AEA631.6010908@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1487840872 23279 195.159.176.226 (23 Feb 2017 09:07:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2017 09:07:52 +0000 (UTC) To: sadiq@sadiqpk.org, help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 23 10:07:48 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 1cgpNL-0005jK-Su for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Feb 2017 10:07:48 +0100 Original-Received: from localhost ([::1]:57331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgpNR-0002Yj-Mb for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Feb 2017 04:07:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgpMv-0002Yd-4X for help-gnu-emacs@gnu.org; Thu, 23 Feb 2017 04:07:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgpMr-00009H-5i for help-gnu-emacs@gnu.org; Thu, 23 Feb 2017 04:07:21 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:55914) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgpMq-00008e-Qz for help-gnu-emacs@gnu.org; Thu, 23 Feb 2017 04:07:17 -0500 Original-Received: from [192.168.1.100] ([213.162.68.87]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LuxG5-1cGbQz2sjp-0104sM; Thu, 23 Feb 2017 10:07:08 +0100 Original-References: 170482200.13555.1487820889261@webmail.mailhostbox.com X-Provags-ID: V03:K0:nxqzmKLcjzE17xZOiMvaHmyD+B6ttAoLYF4HZNMNijGqbgsdoHP ERR1yFIqFkCpCIhD2kMa8rcOH6NTnRpOoVVs0OXvaSs5bTaDiUp6MI9fk9U/bcgJ4wxOvTD vONXiyYsFtn4+/6e81cXJEMz+Rj0h20Z29Flx4tAtttf9FoVa8xX3Gax1MI6S4BFv1wPUQJ 4at/5wUcfO4urixclffFw== X-UI-Out-Filterresults: notjunk:1;V01:K0:oUzeeUUNQdg=:lY+PFnQ25cKN3Z00Q5Jnij RobFv0M2JI0oPsM+VlOh/dPhkwYvvg366tU6FD929khuyqqM0ugNiJWtK1Twj0w5OnFFmwzyD m7GHEGSrecTr+wMT7zI/RtaAxnbRVtrPOOXpFTF3qcno8LX855ALs/jersHYTYEdgHSOKx4Oq c5hgaTvld3GwnIynpVkpzVEpYHMGz1a8MJQiYf6sME0Lak03YWZjQLfNQ5NgXPszLd/0LUUXj tR7sh8I8LmtdQcp3fTxLhpsimHENOmC4WNvGc1sgyi5LpDQy7PlmE2bG9CkvCPB3b4DC4ar7B CEAM7bnSQ/ph6MFMTCERysKRWrBP83YuvvNBx8PVe2vwtnGN5AAwTHaOs9sqJ26ltAySHUinH q9EyJWtsAbs9g2BWIwDaxsteyFoOwl2ODYLMrfx/QE+gXPPLY3tuENxcPEJe4zGQIdp0etfXi cGkFyRBSm2+Jj69IDeEaSSBzOwsHx4QOnAN4cbh5rB1B2iuApkPD1lmyelXEMSg5ZXvEt9Dmj Wp7ATr8qrQbboSOmnSH1D6Tk6KOpvjClZMPwF12gW6vnMLTOjc3reDIqyM440lBDTVZrNvldO 5oumKp7zLh1Q1Xcc0YPxJXPr8eGPr6NZt7+qHoKNRE2Ec0FssAaRD29t8Fv5IXtGe9Gwx/+zu DHQLYJzH+n0qM8CUTozCPJzWTiZRGmpIFwqB9kKJhmLrTNNtq9Js3hCwRnN1wr6z+RWEos2BQ fZ8Ik1l0pjfGcyeQUKqlDriBPgdCHMUOgE6KVjiZQXC+uj7WllRNGKwEeCEeNuRWqm+7BEmK X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.15 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:112371 Archived-At: > Can I restrict GNU Emacs to have only one modeline. That is, configure > GNU Emacs such that only the bottom modeline shall be shown. It won't be > split even if the window is split. The details of the focused window > (enabled modes, buffer-name, etc.) shall be shown in the only available > full width modeline at the bottom of the frame. Also, each new window > shall be split horizontally by a narrow line (as it is done vertically). > > I wish to have this so that I can save some lines when splitting window, > especially in gdb-many-windows on my small screen. Also, I can include > more details in modeline (like time, battery %), etc, that won't go > hidden when I split-window-right. > > If it is possible, Please let me know how to implement this. It's not generally possible since the presence/absence of the modeline is buffer-specific. Suppose you have a "normal" frame with one "normal" window such as the one you get via emacs -Q: (1) If the window has no modeline, then your frame has no modeline and your one modeline per frame invariant is violated. (2) If the window has a modeline, then C-x 2 and C-x 3 will show a modeline in the new window too and again your invariant breaks. So you cannot show the same buffer twice on the same frame and have only one modeline on that frame. To show a "narrow line" between two windows split by C-x 2 customize window dividers. martin