unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Illia Ostapyshyn <ilya.ostapyshyn@gmail.com>
To: 49687@debbugs.gnu.org
Subject: bug#49687: [PATCH] Add mode-line-compact variable to Customize
Date: Thu, 22 Jul 2021 00:45:56 +0300	[thread overview]
Message-ID: <F9A007DC-3463-469B-9430-55EF44EEF22A@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 141 bytes --]

This patch adds mode-line-compact to customize group mode-line so it can be
easily discovered and set through easy customization interface.


[-- Attachment #2: 0001-lisp-cus-start.el-Add-mode-line-compact-to-Customize.patch --]
[-- Type: application/octet-stream, Size: 1084 bytes --]

From 6e08cd3e533bb4fe09c91b5215aecb69e6abd971 Mon Sep 17 00:00:00 2001
From: Illia Ostapyshyn <ilya.ostapyshyn@gmail.com>
Date: Thu, 22 Jul 2021 00:30:09 +0300
Subject: [PATCH] * lisp/cus-start.el: Add mode-line-compact to Customize

---
 lisp/cus-start.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index 3c2625a8c3..4a6d58b638 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -631,6 +631,12 @@ minibuffer-prompt-properties--setter
 	     ;; The whitespace group is for whitespace.el.
 	     (show-trailing-whitespace editing-basics boolean nil
 				       :safe booleanp)
+             (mode-line-compact
+              mode-line
+              (choice (const :tag "Never (nil)" :value nil)
+                      (const :tag "Only if wider than window (long)" :value long)
+                      (const :tag "Always (t)" :value t))
+              "28.1")
 	     (scroll-step windows integer)
 	     (scroll-conservatively windows integer)
 	     (scroll-margin windows integer)
-- 
2.32.0


             reply	other threads:[~2021-07-21 21:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-21 21:45 Illia Ostapyshyn [this message]
2021-07-21 21:54 ` bug#49687: [PATCH] Add mode-line-compact variable to Customize Lars Ingebrigtsen
2021-07-22  7:26   ` Eli Zaretskii
2021-07-22 12:15     ` Lars Ingebrigtsen
2021-07-22 12:18       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F9A007DC-3463-469B-9430-55EF44EEF22A@gmail.com \
    --to=ilya.ostapyshyn@gmail.com \
    --cc=49687@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).