From unknown Fri Sep 19 21:46:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#44315 <44315@debbugs.gnu.org> To: bug#44315 <44315@debbugs.gnu.org> Subject: Status: display property :align-to doesn't update with text-scale-mode Reply-To: bug#44315 <44315@debbugs.gnu.org> Date: Sat, 20 Sep 2025 04:46:13 +0000 retitle 44315 display property :align-to doesn't update with text-scale-mode reassign 44315 emacs submitter 44315 Stefan Kangas severity 44315 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 29 16:36:36 2020 Received: (at submit) by debbugs.gnu.org; 29 Oct 2020 20:36:36 +0000 Received: from localhost ([127.0.0.1]:55083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYEex-0006yu-V0 for submit@debbugs.gnu.org; Thu, 29 Oct 2020 16:36:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:58896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYEew-0006yn-K1 for submit@debbugs.gnu.org; Thu, 29 Oct 2020 16:36:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYEew-0007Pz-DX for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 16:36:34 -0400 Received: from mail-ej1-f44.google.com ([209.85.218.44]:39526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYEeu-0004Lq-P3 for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 16:36:34 -0400 Received: by mail-ej1-f44.google.com with SMTP id bn26so5635267ejb.6 for ; Thu, 29 Oct 2020 13:36:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=40PIF5V6vi/5NiyVKRCjQbmWfChXLngrPBn+Alh6v4s=; b=ILJLoHyjWraXLofR1XnD2XKowj7kPLIo5GruBZnCPhpwvS9Wo2HCMeJZkhpLfHt2Zx suxpTrxUJii2SvX2c2sVX6Ejz/FOcwrmnkuB07B3xgxTZVxpu8Bt7SB1Rvd72NjvbZEJ BJFv2svjYrIsdfS6jHO9ebXHoAPx3EMc2G0WaOU3gSVsUaSdqpuAMZt+ieG6/uC0MOUy KY6U3Y+A5wQhuABjFjsJNs0C7D/mrn9mym4+9gWAiWfEWpS9oGsBe1eGRotZoX99KHen Qx8VkphDw/QWV0DdfUUx3bc7MNUX4l5z5Ik/RdKuz6lnmKW+p8uCd3isHQuMRZuBPul8 tHvg== X-Gm-Message-State: AOAM530IwMdS/Lyihrj2JfLwdqeuY6ygPMzQ9cXPwEfNiCWeVOPkQOKd apQsbTUWQikA0pSQDSqOjueA/HwZvE43UPaptdZKsDGR X-Google-Smtp-Source: ABdhPJyNWoEWS52gCv2wptz3C0acptp+ZnSgf3C0/VZXXLIp5dI6CAMtk+ewHVi1RQBg31mKNZHn5XlfuM6LhQNWKnM= X-Received: by 2002:a17:906:804:: with SMTP id e4mr4630808ejd.420.1604003790769; Thu, 29 Oct 2020 13:36:30 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 29 Oct 2020 13:36:30 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Thu, 29 Oct 2020 13:36:30 -0700 Message-ID: Subject: display property :align-to doesn't update with text-scale-mode To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=209.85.218.44; envelope-from=stefankangas@gmail.com; helo=mail-ej1-f44.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/29 16:36:31 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The display property :align-to space doesn't update when I change the text-scale using `text-scale-increase', `text-scale-decrease' or `text-scale-adjust', as can be seen here: 0. emacs -Q 1. Evaluate: (progn (insert (make-string 60 ?*) "\n") (insert (propertize " " 'display '(space :align-to 60))) (insert "*\n") (text-scale-increase 1)) Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [209.51.188.17 listed in wl.mailspike.net] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 2.0 SPOOFED_FREEMAIL No description available. X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) The display property :align-to space doesn't update when I change the text-scale using `text-scale-increase', `text-scale-decrease' or `text-scale-adjust', as can be seen here: 0. emacs -Q 1. Evaluate: (progn (insert (make-string 60 ?*) "\n") (insert (propertize " " 'display '(space :align-to 60))) (insert "*\n") (text-scale-increase 1)) The result is that the first line extends beyond the position of the "*" character on the second line. I expect them to line up. From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 30 03:31:44 2020 Received: (at 44315) by debbugs.gnu.org; 30 Oct 2020 07:31:44 +0000 Received: from localhost ([127.0.0.1]:55939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYOsy-0006zj-97 for submit@debbugs.gnu.org; Fri, 30 Oct 2020 03:31:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYOsw-0006zR-PT; Fri, 30 Oct 2020 03:31:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55967) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYOsp-0004YI-Tk; Fri, 30 Oct 2020 03:31:37 -0400 Received: from [176.228.60.248] (port=3370 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kYOsn-0006iC-GB; Fri, 30 Oct 2020 03:31:34 -0400 Date: Fri, 30 Oct 2020 09:31:14 +0200 Message-Id: <83mu04b265.fsf@gnu.org> From: Eli Zaretskii To: Stefan Kangas In-Reply-To: (message from Stefan Kangas on Thu, 29 Oct 2020 13:36:30 -0700) Subject: Re: bug#44315: display property :align-to doesn't update with text-scale-mode References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44315 Cc: 44315@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 44315 notabug severity 44315 wishlist thanks > From: Stefan Kangas > Date: Thu, 29 Oct 2020 13:36:30 -0700 > > 0. emacs -Q > 1. Evaluate: > (progn (insert (make-string 60 ?*) "\n") > (insert (propertize " " 'display '(space :align-to 60))) > (insert "*\n") > (text-scale-increase 1)) > > The result is that the first line extends beyond the position of the > "*" character on the second line. As it should be. :align-to interprets the number 60 in terms of the frame's default font width, see the ELisp manual. And that doesn't change with text-scale-increase, whose effect is buffer-local. > I expect them to line up. You expected a feature that doesn't exists. To update the alignment in these cases, we could: 1) modify the application which uses :align-to to update the property values when the scale changes (e.g., by tracking these changes in a pre-redisplay-functions hook); or 2) invent a new form of value for :align-to that would scale with the buffer's text scale, for example '(scale . 123)' Patches welcome. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 09 12:59:22 2021 Received: (at control) by debbugs.gnu.org; 9 Apr 2021 16:59:22 +0000 Received: from localhost ([127.0.0.1]:50771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUuTa-0001S6-IK for submit@debbugs.gnu.org; Fri, 09 Apr 2021 12:59:22 -0400 Received: from mail-pl1-f181.google.com ([209.85.214.181]:42585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUuTY-0001Rm-HL for control@debbugs.gnu.org; Fri, 09 Apr 2021 12:59:20 -0400 Received: by mail-pl1-f181.google.com with SMTP id w8so711710plg.9 for ; Fri, 09 Apr 2021 09:59:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=jURVhZ2hy+JWabUW5O8Aex5KV7V6jFY35s4YixOxk5Y=; b=Z8cXdTn81OrDBTWwZdzJsNPgziUkhdP1NN2+BKKnb6/AELhtUAkcz5LuNVQ/a5gp8B g8SRnOpo1Y/3H6p+FByWyi5RVhj9Oalqpdi4CkP1RyCdqmB57+wzJmelCs4VtdqztHnu Y8Z/FDEfpwlmf8+qfKNfbMUJoQedXqBg9roCUYki3yOgkvgMXtHLTOCX85LvVa1xo+tl XEn07dri1G7ve0tUPXAYgCRa+4xnMgh0dzWMlVa4O765+1CSc4K+M+AIv2zm9WxgxCc8 lTnUZhIZ/YKUgI3GkoeUXP/Vt0YohpsWz9Lea0vbJUWkAe3O6rss9CLDEVzzQolXw279 Hu9w== X-Gm-Message-State: AOAM5301FZX2gYCrSiOnj3iFw+m9Ptdf/0p20iP0DM4ImwatiAPGmuSd YHN77P61apWRmWBMKitJEsETBrstpKPdiJwhkmGm1NQW X-Google-Smtp-Source: ABdhPJwzlZmQLB3lvrfXfhODz1uBncaRk6YC5ryXTwzZFRQun6tBTGNAYYwXd/u1ISEVLORa+tuLu9GIwcNWAgcEUoQ= X-Received: by 2002:a17:90b:f0b:: with SMTP id br11mr2606272pjb.179.1617987554490; Fri, 09 Apr 2021 09:59:14 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 9 Apr 2021 11:59:13 -0500 From: Stefan Kangas MIME-Version: 1.0 Date: Fri, 9 Apr 2021 11:59:13 -0500 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 44315 - notabug thanks Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.214.181 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.214.181 listed in wl.mailspike.net] 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 2.0 BLANK_SUBJECT Subject is present but empty 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 44315 - notabug thanks Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.214.181 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.214.181 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 2.0 BLANK_SUBJECT Subject is present but empty 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different tags 44315 - notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 02 16:02:41 2022 Received: (at 44315) by debbugs.gnu.org; 2 Jan 2022 21:02:41 +0000 Received: from localhost ([127.0.0.1]:33805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4801-0005VA-26 for submit@debbugs.gnu.org; Sun, 02 Jan 2022 16:02:41 -0500 Received: from mail.ims.co.at ([82.218.133.45]:21595) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n47zz-0005Uw-3l for 44315@debbugs.gnu.org; Sun, 02 Jan 2022 16:02:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ims.co.at; s=ims; h=message-id:date:mime-version:to:from: content-transfer-encoding; bh=C/wTt5/xtG3TjYhi04FQ5rmqVLjodXvrOZA2G6aP69Y=; b=ChMhiTCRFue5unniBwom6JI1D6veRDxP2/B/XDoh2plhGydQ8fybUdoU mkKecQfrHJDdeah3VyXNSel3QEoNqXoBwT/wrwa1EZK9DuvARlaEENFMT pyD0Gn8ERk3YWJ6UuteuSlCwKzU3hC/YBhwYxnFZDYetNCXSlvffWgN3f g=; IronPort-SDR: zB0nC9q8+MMUnxbHmUaqnqdy3RegsVjRBI8AUQFuh+EoAuiCfQtCdhnU7Ii37wrgVk+eCS65X1 Wz3FrcrITxlA== X-IronPort-AV: E=Sophos;i="5.88,256,1635199200"; d="scan'208";a="1379916" Message-ID: Date: Sun, 2 Jan 2022 22:02:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Content-Language: en-US To: <44315@debbugs.gnu.org> From: Thomas Hisch Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-IP: [194.166.181.18] X-ClientProxiedBy: srv-xchg-02.ims.co.at (10.120.20.62) To srv-xchg-02.ims.co.at (10.120.20.62) X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Eli Zaretskii gnu.org> > You expected a feature that doesn't exists. To update the alignment > in these cases, we could: > 1) modify the application which uses :align-to to update the > property values when the scale changes (e.g., by tracking these > changes in a pre-redisplay-functions hook); or Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: 44315 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Eli Zaretskii gnu.org> > You expected a feature that doesn't exists. To update the alignment > in these cases, we could: > 1) modify the application which uses :align-to to update the > property values when the scale changes (e.g., by tracking these > changes in a pre-redisplay-functions hook); or I think this should be easy to do (at least for tabulated-list-mode). What we need for this is a scale value, which we could use for scaling the :align-to value. I tried using the `text-scale-mode-step' (defaults to 1.2) value but the text is still not aligned when using Stefan's example (let ((scale-value 1) (scale-step 1.2)) (text-scale-set scale-value) (insert "\n" (make-string 60 ?*) "\n") (insert (propertize " " 'display `(space :align-to ,(* 60 (expt scale-step scale-value))))) (insert "*\n") ) I run the above code with various scale-values (1, 2, 3, 4) and an empirically determined best scaling factor (scale-step), but this value doesn't lead to good results for all scale-values. Do you have a better idea what we could do to map the text-scale to an :align-to value for the scaled default font? > 2) invent a new form of value for :align-to that would scale with > the buffer's text scale, for example '(scale . 123)' I don't have enough knowledge to comment on whether this would be better than your first suggestion. Best regards Thomas Diese E-Mail enth=C3=A4lt vertrauliche und/oder rechtlich gesch=C3=BCtzte I= nformationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail i= rrt=C3=BCmlich erhalten haben, informieren Sie bitte sofort den Absender un= d vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte We= itergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you = are not the intended recipient (or have received this e-mail in error) plea= se notify the sender immediately and destroy this e-mail. Any unauthorized = copying, disclosure or distribution of the material in this e-mail is stric= tly prohibited. IMS Nanofabrication GmbH FN: 208021 p, FB-Gericht: Wiener Neustadt; Sitz: W= olfholzgasse 20-24, 2345, Brunn am Gebirge (Austria),Tel. +43 1 214 48 94; = E-Mail: imsoffice@ims.co.at; DVR-Nr: 0374369; www.ims.co.at