From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shingo Tanaka Newsgroups: gmane.emacs.bugs Subject: bug#53133: 28.0.90; tabulated-list-sort doesn't work as expected Date: Sun, 09 Jan 2022 11:03:27 +0900 Message-ID: <87k0f9is28.wl-shingo.fg8@gmail.com> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31762"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.0.90 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) To: 53133@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 09 03:04:16 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 1n6NZ9-000852-UO for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Jan 2022 03:04:15 +0100 Original-Received: from localhost ([::1]:57594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6NZ8-00047I-2C for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Jan 2022 21:04:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6NYw-00047A-G3 for bug-gnu-emacs@gnu.org; Sat, 08 Jan 2022 21:04:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56092) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n6NYw-0000cZ-7l for bug-gnu-emacs@gnu.org; Sat, 08 Jan 2022 21:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n6NYv-0001ev-TD for bug-gnu-emacs@gnu.org; Sat, 08 Jan 2022 21:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Shingo Tanaka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Jan 2022 02:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53133 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.16416938246348 (code B ref -1); Sun, 09 Jan 2022 02:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Jan 2022 02:03:44 +0000 Original-Received: from localhost ([127.0.0.1]:48995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6NYe-0001eK-3n for submit@debbugs.gnu.org; Sat, 08 Jan 2022 21:03:44 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:59252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6NYY-0001e7-VQ for submit@debbugs.gnu.org; Sat, 08 Jan 2022 21:03:42 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6NYY-00046X-Qb for bug-gnu-emacs@gnu.org; Sat, 08 Jan 2022 21:03:38 -0500 Original-Received: from [2607:f8b0:4864:20::1036] (port=38705 helo=mail-pj1-x1036.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n6NYX-0000bQ-9W for bug-gnu-emacs@gnu.org; Sat, 08 Jan 2022 21:03:38 -0500 Original-Received: by mail-pj1-x1036.google.com with SMTP id l10-20020a17090a384a00b001b22190e075so17873676pjf.3 for ; Sat, 08 Jan 2022 18:03:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:message-id:from:to:subject:user-agent:mime-version; bh=sVzzMY5Cd+z0qC6nWkNFX3jr5qC31Dd/WxkDONyQUFA=; b=fyKPOadGrnfGtuHcEyRyWnu03MQE7+ERDVWN8RMdvZ25L3svEXyguH+Ave9YcIPhkh a76ioLQOzeknxI2ytK25SdpGoUqCdaVhONdPo6AcVu0ikePItNxV/ZVHr0lQNwzNZNna 4XU0nRa6HTRfpG9PVCzvESE8J6GZkXKspQTQumERGTPf5s5jF2xx0W8oMXYPBcQP7gBG 6e/XJudFclcDXpi18/2UwaEJsvloFXGRUcUSmp9+MrZdYPqjjI1Bp0LnrCR0hAbN1+KH JC0FdsUyptoti/VEDXugJ3CWMzpUBExyh6+sRC/KvU6Ls5uGmanEEd6XwKuynnYJkiRR 0QmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:from:to:subject:user-agent :mime-version; bh=sVzzMY5Cd+z0qC6nWkNFX3jr5qC31Dd/WxkDONyQUFA=; b=3jt4QoaHZ9IpeW+503EmmR1Z5cM1CttMqZrHnXfNtXcdzbTrQfbp3SHwuVs0aaol4n uByVs40iXXelRyfp4zkFc2jO18L75pCafSq3AupSxFD21o/Kch4DVZ7usaLZN2GkV+G+ ZZ5n2+gWGFRILoAPJGkxRHrD9uDgwtQFHMNgHWTdXJJ37JBZC788JT0BZ92Nyoga/37J T6Yuv/1hUDCqZDCWHAgOHgszAhhyXgoxMsqkMEbB2Fq4mW4p2Y7DtbHGNQQkAa0CCsu7 Aql3FfuhEoQOyoguNHuH0ctGhTOy1yjU/iDewqpGjpmJ8BO4utCM5PB30/11wWUw+6U7 Hv4w== X-Gm-Message-State: AOAM531O4+0SOBflU65i8143+DwQ0ksKV0zGwD3T6n+ULOIwzuUd0kNl RjxyKIZuKConb2kTt4Xhn8r4uNHnCs9UBQ== X-Google-Smtp-Source: ABdhPJz7A2caN83KBcSiSPD6cgfI+RJ0rBMrJVJHp5pkvh0Fj6VIknK31gT9S2ape3Sj9Fq82MweDQ== X-Received: by 2002:a17:902:b181:b0:149:90e2:896a with SMTP id s1-20020a170902b18100b0014990e2896amr51216178plr.149.1641693812932; Sat, 08 Jan 2022 18:03:32 -0800 (PST) Original-Received: from shingo-NUC11PAHi5.gmail.com ([240d:1a:6f4:6b00:a6c5:8faf:f543:28e1]) by smtp.gmail.com with ESMTPSA id pf6sm2192352pjb.10.2022.01.08.18.03.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jan 2022 18:03:32 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1036 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=shingo.fg8@gmail.com; helo=mail-pj1-x1036.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:223829 Archived-At: Hi, tabulated-list-sort sometimes doesn't work as expected due to the change between 28.0.90 and 28.0.50. Here is how to reproduce: 1. Open Emacs from terminal with `emacs --no-init-file' 2. Type M-x list-buffers 3. Type C-x o (go to Buffer Menu) 4. Type C-M-Right 5 times to move on to "Fundamental" in "Mode" column 5. Type S 2 times or more to toggle sorting order 6. You will be able to see that "Size" column is selected as the sorting column unexpectedly Looks like below change from 28.0.50 is releated to this issue, because it disappears when I just rewind this change. --- tabulated-list.el.org 2022-01-06 22:32:13.936852142 +0900 +++ tabulated-list.el 2022-01-07 15:15:42.000000000 +0900 @@ -574,7 +581,8 @@ (when not-last-col (when (> pad-right 0) (insert (make-string pad-right ?\s))) (insert (propertize - (make-string (- width (min width label-width)) ?\s) + ;; We need at least one space to align correctly. + (make-string (- width (min 1 width label-width)) ?\s) 'display `(space :align-to ,next-x)))) (put-text-property opoint (point) 'tabulated-list-column-name name) next-x))) Hope this will be fixed appropriately in the coming major release. Regards, Shingo