From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: How to make Emacs popular again: Use monospaced fonts less Date: Tue, 13 Oct 2020 02:38:03 +0200 Message-ID: <87lfgbarkk.fsf@gnus.org> References: <835z7vjrg3.fsf@gnu.org> <83tuvegkmo.fsf@gnu.org> <83v9ftf6n9.fsf@gnu.org> <835z7qfp6h.fsf@gnu.org> <87ft6lgw5y.fsf_-_@gnus.org> <1F8F3522-1E6C-40A3-B61A-B9B84FC0AD18@gnu.org> <87blh9gthg.fsf@gnus.org> <87tuv1f2y9.fsf@gnus.org> <87o8l9f1dl.fsf@gnus.org> <83lfgc50gb.fsf@gnu.org> <875z7gflpl.fsf@gnus.org> <83imbf2xux.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="17192"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 13 02:40:07 2020 Return-path: 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 ) id 1kS8MI-0004OG-5H for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Oct 2020 02:40:06 +0200 Original-Received: from localhost ([::1]:60614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kS8MH-0008Vm-6h for ged-emacs-devel@m.gmane-mx.org; Mon, 12 Oct 2020 20:40:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kS8KS-0007o4-6X for emacs-devel@gnu.org; Mon, 12 Oct 2020 20:38:12 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:57250) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kS8KP-0005uY-JW; Mon, 12 Oct 2020 20:38:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=s26ftwDjEflddOgWe3otaC51I8juQEDBT26MX6omJZ0=; b=Tj7b3YT2Oqiy+5Ax+lPM7L/ciy CO+HBW7Y+ojnq74jH2wHxUeyv9KynIKU7wHruXk7gzgAuWpO5LTone6YzCPMqqK+O+lRW7ey+W+gZ Caw1oLQNFur6ZSO7ZFDHkAEqkzErNLEp3a+WYiUvVztB9ofydQ2OMg2dsnFXWYEdKhx0=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kS8KK-0008Jx-D7; Tue, 13 Oct 2020 02:38:07 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJ1BMVEX72xn+4hvvyx/N shmrlBZpWRARDAVLMxSWbB/hoC/HY0jhikH////izVLSAAAAAWJLR0QMgbNRYwAAAAd0SU1FB+QK DQAjB9kW0YoAAAGrSURBVDjLnZO7TzJBEMBnrzF2sxALYwO3EqOV7m6IsVJ2QUKlES7ae/tRmvjA 2hyKHb6iF0tsjJ0WxvjPuRzPA/miTnKPnd+8dmYXYExoW8bVJNJT7Fhgd0m79hHo6eLyJ0D/CvqF jYBR194acbDpOIDvAcb7MQCjnRoH/WCREbGlRloczkESKSTJHLW24A4JJD2zgSfmDFaD2ZboChcC PGOqGd9U74y57AMrYCx4T+f97JEotZTsaJnQ4Au1W2ySzcIBzrW6YQR3BfiAFZkm9cIZn3sKtNa9 HL5e+MeCzH6hflzfPKnVarK8o1WjAlUuPabyR5mAuwuNRuNiWZcru0EFPJSecyXVzAFLTYVheL8i ilLnFWRzdbPczG47p/Nccxfm7eaWPl9CKBx6Zuv6/JrcSb4nhSukEqWPNwVFLh5yV2K6yXLJS+vC bFGl19sy0ISijzfrdPFVujui3SUm1l6eQwCHQ4JxpCmWSmNnIOi6i9Ff+4HO4Mmg7dHXvklsUE78 hGJ/+TNgJzsBkEkek5LDrwH+Ggwfd2f4uvwPkG8BTgLxcn8IBqG+ANNJgmZPJSMbAAAAJXRFWHRk YXRlOmNyZWF0ZQAyMDIwLTEwLTEzVDAwOjM1OjA3KzAwOjAwffmxzgAAACV0RVh0ZGF0ZTptb2Rp ZnkAMjAyMC0xMC0xM1QwMDozNTowNyswMDowMAykCXIAAAAASUVORK5CYII= X-Now-Playing: Figurine's _Transportation + Communication = Love_: "I Wait for You (By the Telephone)" In-Reply-To: <83imbf2xux.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 12 Oct 2020 19:49:26 +0300") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:257508 Archived-At: Eli Zaretskii writes: >> OK, here's another random idea for padding variable-pitch elements in >> the mode lines in particular: >> >> (setq mode-line-thing >> `(:propertize >> "some-string" >> :min-width 15)) >> >> which could have well-defined semantics, like "this element should have >> the width of at least 15 typical characters", and be pretty easy to use? > > This stuff is basically unworkable without having a window in whose > context the string will be shown. That's because we need metrics of > each character glyph, and that presumes fonts, and that presumes faces > and other stuff. > > This is why we use 'display' property: when the text is displayed, we > have this data by definition. But not when we just have a string. I'm not sure I understand you. The mode line elements are only used when we display them, so we know all that stuff, and can apply some padding after the element if we have a :min-width thing here. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no