From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Axel Forsman Newsgroups: gmane.emacs.bugs Subject: bug#65019: 29.1; :align-to on wrapped line regression Date: Wed, 02 Aug 2023 12:04:20 +0000 (UTC) Message-ID: <87ttthodkt.fsf@axelf.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23873"; mail-complaints-to="usenet@ciao.gmane.io" To: 65019@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 02 15:34:24 2023 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 1qRBzc-0005xe-9x for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Aug 2023 15:34:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRBzJ-00068E-Dc; Wed, 02 Aug 2023 09:34:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRBzI-00067o-7U for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 09:34:04 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qRBzH-0008Te-Vr for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 09:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qRBzH-0005rf-Rz for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 09:34:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Axel Forsman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Aug 2023 13:34:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65019 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169098319522431 (code B ref -1); Wed, 02 Aug 2023 13:34:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Aug 2023 13:33:15 +0000 Original-Received: from localhost ([127.0.0.1]:49248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRByU-0005pc-At for submit@debbugs.gnu.org; Wed, 02 Aug 2023 09:33:15 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:37412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRAab-0003Hp-27 for submit@debbugs.gnu.org; Wed, 02 Aug 2023 08:04:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRAaV-0001oX-JQ for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 08:04:23 -0400 Original-Received: from wrqvqsbb.outbound-mail.sendgrid.net ([149.72.70.187]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qRAaT-0000JH-PD for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 08:04:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axelf.se; h=from:cc:subject:mime-version:to:content-type: content-transfer-encoding:cc:content-type:from:subject:to; s=s1; bh=tjUjdlnV2OMbfh5/QIZVOMS+lo/FbTfk2skFFJDzDew=; b=Vre6rz4R5k9j72wh2OBPgF4uoAVN7rccUo9E2rfZBnRlX8I+ZUcKlJIzgoW5ua5aJzm4 1LZU4zEKKsFNzlnwRzxEljw/RNUmY8zQgbLNJc82BRiVfuD8iMlWoKdQ8sP5CvSx0E0/K6 X4zPyVQkJW/dKHP//1mAQQND3MXpLsulJStQ+UpopNp0LqykhmCsbhaXJl50ybLoUXLQzH 4v0jUZiWWAhkoUPF0VVXVCpqDB5vsaI/7eJxD+FuTxI66Vl+RXkfpqzSWkp7DgqlGp3e5G Th1+rCguCIW6HsRe6/E+d8QyDyRp0DiZqWIefl/CJYlTP980PyGHh6ictv+8uUEQ== Original-Received: by filterdrecv-d7bbbc8bf-nfw7w with SMTP id filterdrecv-d7bbbc8bf-nfw7w-1-64CA4644-23 2023-08-02 12:04:20.259954641 +0000 UTC m=+136173.945091675 Original-Received: from localhost (unknown) by geopod-ismtpd-10 (SG) with ESMTP id F0x_c_wNQfaygoXfzyCZXw for ; Wed, 02 Aug 2023 12:04:19.938 +0000 (UTC) X-SG-EID: a9jmprsm98cnqgHsU2O6rQhtHh4uQUltDI0sfxLQLLW0ScObgxI6amEU2a6U78W+t5hfgO9e/sU+NO3Izot/dEABa5VqThBXytiPnQM3fQghx7+tlRkkBrlOJdNs0avccJ24jqeIE5Vr/k5wQo/ozk1YMsPVQH5huRS7ZjGga0Mme15Qqo8eoAPc3XGIoF1erQg7DDJZ5bvf8Oa0vydXqrKYuHU0mIcKJuVfyFuq5LIFQVSqOeh4+ndLSpyvaVp0 X-Entity-ID: kO1dOy+IUnMwDrvHlPpg/w== Received-SPF: pass client-ip=149.72.70.187; envelope-from=bounces+28258838-1cce-bug-gnu-emacs=gnu.org@em3403.axelf.se; helo=wrqvqsbb.outbound-mail.sendgrid.net 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 02 Aug 2023 09:33:11 -0400 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266509 Archived-At: I noticed that the interpretation of the hpos given to the :align-to space specification property changed in Emacs 29.1 compared to 28.2, without it being documented anywhere. In version 28 it counts relative to the visual start of the line, whereas in version 29 it starts at the logical start of the line. That is, the following MWE exhibits different visual behavior in Emacs 28 contra 29: (insert (concat "\n" (make-string (round (* 1.25 (window-text-width))) ?x) (propertize " " 'display `(space :align-to ,(round (window-text-width) 2))) "foo\n\n")) (In 28 the text "foo" is centered by the space. In 29 the space has zero-width.) The previous behavior makes more sense in the context of section 41.16.3 Pixel Specification for Spaces in the Emacs manual, and it would be quite the breaking change so I am hoping it was unintentional. Kind regards Axel Forsman In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu) Repository revision: emacs-29.1 Repository branch: master System Description: NixOS 23.05 (Stoat) Configured using: 'configure --prefix=/nix/store/whazydpl0yj8i03aapsd2cyry70mng55-emacs-unstable-29.1-nox --disable-build-details --with-modules --with-gif=no --with-jpeg=no --with-png=no --with-tiff=no --with-x=no --with-xpm=no --with-native-compilation --with-tree-sitter' Configured features: DBUS GMP GNUTLS GPM JSON LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER SECCOMP SOUND SQLITE3 THREADS TREE_SITTER ZLIB Important settings: value of $LC_MESSAGES: en_US.UTF-8 value of $LANG: sv_SE.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: undo-tree-mode: t yas-global-mode: t yas-minor-mode: t hotfuzz-vertico-mode: t vertico-mode: t xclip-mode: t evil-mode: t evil-local-mode: t electric-pair-mode: t delete-selection-mode: t global-auto-revert-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /run/current-system/sw/share/emacs/site-lisp/site-start hides /nix/store/whazydpl0yj8i03aapsd2cyry70mng55-emacs-unstable-29.1-nox/share/emacs/site-lisp/site-start Features: (shadow sort mail-extr emacsbug mule-util hotfuzz-module notmuch notmuch-tree notmuch-jump notmuch-hello image wid-edit notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser notmuch-wash diff-mode easy-mmode coolj goto-addr icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs notmuch-tag crm notmuch-lib notmuch-version notmuch-compat hl-line message sendmail yank-media dired dnd dired-loaddefs rfc822 mml mailabbrev mail-utils gmm-utils mailheader mm-view mml-smime mml-sec epa derived epg rfc6068 epg-config gnus-util text-property-search time-date smime password-cache gnutls puny dig mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr term/tmux term/xterm xterm lua-mode-autoloads nix-mode-autoloads julia-mode-autoloads cmake-mode-autoloads yaml-mode-autoloads haskell-mode-autoloads typescript-mode-autoloads markdown-mode-autoloads rust-mode-autoloads mytheme-theme ws-butler-autoloads rmsbolt-autoloads corfu-autoloads yasnippet undo-tree diff queue yasnippet-autoloads transient format-spec eieio eieio-core magit-autoloads magit-section-autoloads git-commit-autoloads with-editor-autoloads dash-autoloads xterm-color-autoloads devdocs-autoloads hotfuzz vertico compat hotfuzz-autoloads vertico-autoloads compat-autoloads xclip xclip-autoloads evil evil-keybindings evil-integration evil-maps evil-commands reveal evil-jumps evil-command-window evil-search evil-ex evil-types evil-macros evil-repeat evil-states evil-core byte-opt comp regexp-opt comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode tool-bar advice evil-common thingatpt rect evil-vars ring edmacro kmacro undo-tree-autoloads queue-autoloads evil-autoloads goto-chg-autoloads pcase elec-pair delsel autorevert filenotify cl-loaddefs cl-lib ekipage bytecomp byte-compile rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 623896 226463) (symbols 48 15703 10) (strings 32 85936 57749) (string-bytes 1 4096111) (vectors 16 33101) (vector-slots 8 543541 137525) (floats 8 64 333) (intervals 56 62415 18186) (buffers 984 13))