From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73623: sort-lines fails Date: Fri, 04 Oct 2024 10:03:07 +0300 Message-ID: <86setcxsd0.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24747"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73623@debbugs.gnu.org To: Worik Stanton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 04 09:04:27 2024 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 1swcMU-0006HD-Nb for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Oct 2024 09:04:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swcMB-00048d-0g; Fri, 04 Oct 2024 03:04:07 -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 1swcM4-0003zK-Ed for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2024 03:04:01 -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 1swcM4-0006bq-5o for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2024 03:04:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=wyH/xGCNJvibmHKw6OSUSEwIaKqWWT4ucM2hbtq9rqE=; b=uAFx3fdLJreAJQIsQ/Q6cibR5WT1J+/jRM05U+Q6Mw+TUCpjFTO1be1exnbkvZwcrilbAlU7VhXyvJPGrPEtw6Sg4xxB1X1B7UP/tS142v9Da5hkbPd1tamEmiZGnURbQGuESpZxIKbxVawooetGaZfHi+B54+IZifWTCo0z/83eGVDKHqo0gi1qVvKytzsy5NwPUbCgMQj4Kr06xr6bovzjfyefAC5nuNeMRWTQHUjJJjHTMmwtaOYj0WOH0vDDTjOWYcA87B2DA428Ri3mNbmMvCN2soMn4lStyVL6JINEgjYWQw6NHUblNNm29Y2kf5P7io/ipZUThPsASEZU4w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1swcM6-00022S-Jg for bug-gnu-emacs@gnu.org; Fri, 04 Oct 2024 03:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Oct 2024 07:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73623 X-GNU-PR-Package: emacs Original-Received: via spool by 73623-submit@debbugs.gnu.org id=B73623.17280254167797 (code B ref 73623); Fri, 04 Oct 2024 07:04:02 +0000 Original-Received: (at 73623) by debbugs.gnu.org; 4 Oct 2024 07:03:36 +0000 Original-Received: from localhost ([127.0.0.1]:34292 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swcLf-00021g-ES for submit@debbugs.gnu.org; Fri, 04 Oct 2024 03:03:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swcLd-00021R-Gi for 73623@debbugs.gnu.org; Fri, 04 Oct 2024 03:03:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1swcLU-0006W2-9K; Fri, 04 Oct 2024 03:03:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=wyH/xGCNJvibmHKw6OSUSEwIaKqWWT4ucM2hbtq9rqE=; b=FSupwuSjLvmg AmvhW2mSBRLhr9k4si7S0L9OR56i2X1czUlxiRkWx/IN0gCaPKWsiWxaip4GSkZzXG8PrbtaJbkNK xHYDlnRnLGG9Zm5muNx+bl1fhmPoUhhITcAGwxdh6LZv+rViwBGTjeS6k5vN80HdAMiB2JIVD6H/n kqU9qoCAJeXhZNy5TsHs6M7QnfAstKFx93aONZ/0nazszohLRvAqI6u8eREo8pBghCoJ18m6nyWSU +oywZXEIJcNdZnLIOcsfr+f7BGE1F0QaoIXZh+yjJ/IXytS777XednDiDaM2dPvgz5yuApakLPTwM 8zAHuK8ndrlvW6+3+FwivA==; In-Reply-To: (message from Worik Stanton on Fri, 4 Oct 2024 10:47:37 +1300) 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:292948 Archived-At: > From: Worik Stanton > Date: Fri, 4 Oct 2024 10:47:37 +1300 > > Emacs 29.4.50 > Debian 12.7 > > Given the following text in the selection: > > path_assets:assets.getAssetDir(), > path_images:get_image_path(), > product: job_info.product ?? "\\textless Not Specified \\textgreater ", > user: get_poa_user(), > pop_rates: converted_pop_map, > > The command `sort-lines` does not change the order I cannot reproduce this, and least not if I paste the above text into a new buffer under Fundamental mode. Did you mark the text to make the region include all of it, before invoking sort-lines? When invoked interactively, that command sorts lines inside the region, so you must mark all of those lines first. You say "text in the selection", but I don't understand whether this means the region or something else. So please show a reproducible recipe starting from "emacs -Q" to exhibit this problematic behavior. If you need to enable some non-default modes to produce the problem, please state those modes explicitly in the recipe. Thanks.