From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#37880: 27.0.50; Changing font size in Info-mode messes up formatting Date: Sat, 07 May 2022 10:29:54 -0400 Message-ID: References: <87o809pmv7.fsf@gnus.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9002"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 37880@debbugs.gnu.org, 37858@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 07 16:31:17 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nnLSn-00029z-Fp for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 May 2022 16:31:17 +0200 Original-Received: from localhost ([::1]:50370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnLSm-0008Nx-AJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 May 2022 10:31:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnLSZ-00087f-66 for bug-gnu-emacs@gnu.org; Sat, 07 May 2022 10:31:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnLSY-0006GF-Qi for bug-gnu-emacs@gnu.org; Sat, 07 May 2022 10:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnLSY-0007ly-Ol for bug-gnu-emacs@gnu.org; Sat, 07 May 2022 10:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 May 2022 14:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37880 X-GNU-PR-Package: emacs Original-Received: via spool by 37880-submit@debbugs.gnu.org id=B37880.165193381529805 (code B ref 37880); Sat, 07 May 2022 14:31:02 +0000 Original-Received: (at 37880) by debbugs.gnu.org; 7 May 2022 14:30:15 +0000 Original-Received: from localhost ([127.0.0.1]:52661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnLRh-0007kO-U9 for submit@debbugs.gnu.org; Sat, 07 May 2022 10:30:15 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:34204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnLRa-0007i9-K2; Sat, 07 May 2022 10:30:03 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 27AD9100280; Sat, 7 May 2022 10:29:57 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 877B6100138; Sat, 7 May 2022 10:29:55 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1651933795; bh=JArbycOeo6+rxif5bCw9yLzop1flCaV2A4ZGcsYY0KI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=S+FYSFrsC/e5+0M4Zli3atQFljucaOsxxiHMW9r+VWx5p/T8/AHnRSCp8kbg8ipoc jkE8nEeJcDLxT+x/kVBIV0dp4JmI21BHAmLyXrptZ9QNGvqkp3cb55UEOJf4dtiEqy GdpZRQ9LOoo2A6F+q8GNN6LniHfaMPqImz++8CRAq+xHuImP/DeI1sIgIqhHar2z2L jzasy2ZUi2pHatSuE8d/bRq9kRjbVFY6jdetFSH30quTfbGztpBQZzyEW/Ys1tfGto sfPHYhMPhkwAuEgMMasO2I0F1T0msisNbbmwSylRiMHh1grfRHEc+dtOwUwRE1LPC/ RDf0kC3NY7Pqw== Original-Received: from alfajor (modemcable034.207-20-96.mc.videotron.ca [96.20.207.34]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5F0D512082C; Sat, 7 May 2022 10:29:55 -0400 (EDT) In-Reply-To: <87o809pmv7.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 07 May 2022 14:07:24 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231592 Archived-At: Lars Ingebrigtsen [2022-05-07 14:07:24] wrote: > Stefan Monnier writes: >> So, I'd like to extend our `space` specifications so as to be able to >> specify a minimum width. I came up with the patch below which lets you >> write: >> >> (space :align-to FOO :min-width BAR) >> >> which seems to work fine, but while trying to update the Elisp doc for >> it I realized that maybe a better option is to extend the acceptable >> forms for FOO so it can be of the form: >> >> (space :align-to (max FOO (+ BAR current-x))) > > I think I'd actually prefer the first form -- it's easy to reason about, > and does what most usage cases want (i.e., align if possible, but if > not, then at least leave some space so that things don't run into each > other). The patch I came up with back then doesn't work right. IIRC it's because we need to change both the redisplay code and the `current-column` code and it only changed one of the two. IIRC, I decided then that the right fix is to rewrite the `current-column` code to use the redisplay code (instead of trying to mimic it), but I didn't get around to that (and IIRC it's not completely straightforward because `current-column` currently behaves differently *on purpose* in some cases (most importantly w.r.t treating ellipsis-erased text) so fixing it right will imply changes in behavior and figuring out how to do it without breaking existing uses). Stefan