From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups: gmane.emacs.devel
Subject: Re: How to make Emacs popular again: Use monospaced fonts less
Date: Wed, 14 Oct 2020 13:07:42 -0400
Message-ID: <jwvv9fc3fmn.fsf-monnier+emacs@gnu.org>
References: <CANQHGB1052fKdSq0=F-PG8hLMC3WX-R3UaMmrHrntG8J3J2pVw@mail.gmail.com>
 <E1kNpy4-0004bS-JF@fencepost.gnu.org> <83tuvegkmo.fsf@gnu.org>
 <E1kOC7h-0003N9-8B@fencepost.gnu.org> <83v9ftf6n9.fsf@gnu.org>
 <E1kOurL-0004al-2O@fencepost.gnu.org> <835z7qfp6h.fsf@gnu.org>
 <E1kR5wn-0002lL-FN@fencepost.gnu.org> <87ft6lgw5y.fsf_-_@gnus.org>
 <1F8F3522-1E6C-40A3-B61A-B9B84FC0AD18@gnu.org>
 <87blh9gthg.fsf@gnus.org>
 <C3DC2673-64A1-4FE0-9303-EB6C113DA044@gnu.org>
 <87tuv1f2y9.fsf@gnus.org> <87o8l9f1dl.fsf@gnus.org>
 <83lfgc50gb.fsf@gnu.org> <875z7gflpl.fsf@gnus.org>
 <83imbf2xux.fsf@gnu.org> <87lfgbarkk.fsf@gnus.org>
 <83zh4q195b.fsf@gnu.org> <87sgah1mjz.fsf@gnus.org>
 <83r1q0zwlp.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="39908"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Cc: Lars Ingebrigtsen <larsi@gnus.org>, emacs-devel@gnu.org
To: Eli Zaretskii <eliz@gnu.org>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 14 19:14:40 2020
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Envelope-to: ged-emacs-devel@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 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1kSkMJ-000AF2-D6
	for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Oct 2020 19:14:39 +0200
Original-Received: from localhost ([::1]:38826 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1kSkMI-00075n-CR
	for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Oct 2020 13:14:38 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43988)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <monnier@iro.umontreal.ca>)
 id 1kSkFh-0000Gq-5v
 for emacs-devel@gnu.org; Wed, 14 Oct 2020 13:07:49 -0400
Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:65467)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <monnier@iro.umontreal.ca>)
 id 1kSkFe-0001QI-QD; Wed, 14 Oct 2020 13:07:48 -0400
Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id EA1724410C1;
 Wed, 14 Oct 2020 13:07:44 -0400 (EDT)
Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C82354410BE;
 Wed, 14 Oct 2020 13:07:43 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1602695263;
 bh=YV3h+HCY0JSBsnCpgOL3I+Pjuw2CSjKaEKirTk0aacg=;
 h=From:To:Cc:Subject:References:Date:In-Reply-To:From;
 b=MY/G1+u8MQT3WvG7JRyU0i5jI+t7qhAXuM4+rersvv2Pq22vRi0FlgAJvZ2l/c+4s
 s08qYtd096Z6o3J+2yXFl3vbO9vNr9IeKIbnrs7dLBn71Ck6YhAUm+heTarxglZCF/
 3yPXqYl6dh2NilMRAvP911gemjVxGUBDEuOaQUaAF0XMGfGpVhMPbOpRie5bF2gJ6z
 VaoMD1g2Rxy3UtkN7g0zQg5/PkTEEd88X1zgPaRFnr9PdHaIG0+79fLOXH7S049bmZ
 +4Su+PbMn5VhzKYfQvX1G8WQpqnkWOSj4p++acM/eiUVCNoZdTKarIFDz/N8+MTGqB
 iOkHTSzcyNRFg==
Original-Received: from alfajor (unknown [157.52.9.240])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 89EF3120124;
 Wed, 14 Oct 2020 13:07:43 -0400 (EDT)
In-Reply-To: <83r1q0zwlp.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 14 Oct
 2020 17:54:42 +0300")
Received-SPF: pass client-ip=132.204.25.50;
 envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/14 12:53:19
X-ACL-Warn: Detected OS   = Linux 2.2.x-3.x [generic]
X-Spam_score_int: -42
X-Spam_score: -4.3
X-Spam_bar: ----
X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.devel:257664
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/257664>

> Yes, this can be done.  But we'd need fort to decide what is the
> semantics of this:
>
>   (setq mode-line-thing `(:propertize "%12b" :min-width 10))

One solution is to not use text-properties, e.g.

    (setq mode-line-format
          '(...
            (:control-width mode-line-buffer-identification
                            :min-width 10 :max-width 30)
            ...
            (:control-width mode-line-position
                            :min-width 10
                            :align 'center)
            ...))

The downside is that this will only work for <foo>-line-format, whereas
this kind of functionality would also be handy within buffer text for
tabular modes like `proced`.


        Stefan