Stefan Kangas <stefan@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Eli Zaretskii <eliz@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Eli Zaretskii <eliz@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 44315) by debbugs.gnu.org; 30 Oct 2020 07:31:44 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 30 03:31:44 2020 Received: from localhost ([127.0.0.1]:55939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1kYOsy-0006zj-97 for submit <at> 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 <eliz@HIDDEN>) 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 <eliz@HIDDEN>) 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 <eliz@HIDDEN>) 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@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Stefan Kangas <stefan@HIDDEN> In-Reply-To: <CADwFkmkTpJg+fptY3WRB8dcwyT5kwu=k=QzA8anHrCYdThnJmQ@HIDDEN> (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: <CADwFkmkTpJg+fptY3WRB8dcwyT5kwu=k=QzA8anHrCYdThnJmQ@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44315 Cc: 44315 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) tags 44315 notabug severity 44315 wishlist thanks > From: Stefan Kangas <stefan@HIDDEN> > 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.
bug-gnu-emacs@HIDDEN
:bug#44315
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 29 Oct 2020 20:36:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 29 16:36:36 2020 Received: from localhost ([127.0.0.1]:55083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1kYEex-0006yu-V0 for submit <at> 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 <stefankangas@HIDDEN>) id 1kYEew-0006yn-K1 for submit <at> 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 <stefankangas@HIDDEN>) id 1kYEew-0007Pz-DX for bug-gnu-emacs@HIDDEN; 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 <stefankangas@HIDDEN>) id 1kYEeu-0004Lq-P3 for bug-gnu-emacs@HIDDEN; Thu, 29 Oct 2020 16:36:34 -0400 Received: by mail-ej1-f44.google.com with SMTP id bn26so5635267ejb.6 for <bug-gnu-emacs@HIDDEN>; 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 <stefan@HIDDEN> MIME-Version: 1.0 Date: Thu, 29 Oct 2020 13:36:30 -0700 Message-ID: <CADwFkmkTpJg+fptY3WRB8dcwyT5kwu=k=QzA8anHrCYdThnJmQ@HIDDEN> Subject: display property :align-to doesn't update with text-scale-mode To: bug-gnu-emacs@HIDDEN Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=209.85.218.44; envelope-from=stefankangas@HIDDEN; 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 <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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.
Stefan Kangas <stefan@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#44315
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.