From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Herman@debbugs.gnu.org, =?UTF-8?Q?G=C3=A9za?= Newsgroups: gmane.emacs.bugs Subject: bug#64988: 30.0.50; move-to-column can move across lines if there is a text with display property Date: Tue, 1 Aug 2023 12:53:57 +0200 Message-ID: <5fc075c6-c94b-eacf-6bbd-7d337caa2ee7@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26750"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 To: 64988@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 01 12:55:16 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 1qQn23-0006mc-SQ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Aug 2023 12:55:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQn1s-0007VT-Aw; Tue, 01 Aug 2023 06:55:04 -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 1qQn1q-0007VJ-Pv for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 06:55:02 -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 1qQn1q-0001JB-Ez for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 06:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qQn1q-0003qW-91 for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 06:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Herman@debbugs.gnu.org, =?UTF-8?Q?G=C3=A9za?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Aug 2023 10:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64988 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.169088725014718 (code B ref -1); Tue, 01 Aug 2023 10:55:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Aug 2023 10:54:10 +0000 Original-Received: from localhost ([127.0.0.1]:47233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQn10-0003pK-01 for submit@debbugs.gnu.org; Tue, 01 Aug 2023 06:54:10 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:46604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qQn0y-0003p7-Jr for submit@debbugs.gnu.org; Tue, 01 Aug 2023 06:54:08 -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 1qQn0t-0007RR-DS for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 06:54:03 -0400 Original-Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qQn0r-0001D3-Tg for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2023 06:54:03 -0400 Original-Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3fbc244d384so51005055e9.0 for ; Tue, 01 Aug 2023 03:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690887239; x=1691492039; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=+rxyGHOTHDFDVmeiZXORqSv+w9YC5+Wgg9mbq3/UQAU=; b=H9Qp4bm3WfTE+Suy9L1tFCbaHKQtDVqCvLvyrtvfuoTmN7dEO0gxRq6RPIBO1npPUw PG0QKBWSg+Ee2s8yyIfRg6KD2srNMH3EI6M5N9FqhWft3ntWOhORct02NsnRaR6r1vmM +amWHtaZJmN1tw78/F/DnYBSZVbqc7nKsHc4UE5mDyQe9jmV2szIHuUINempAczYPato g5UHP/6B+J0SGnESUUOayorXZw2kIk3kFNH/cMhtWeHDRZLKmC5/+9/bA3ALpiHLyigA Bl4ZcZSE5gMCoHuLg8aX2Q0iKIyaDlanXE+3OgUkuq7pEK18vVZ79l+WeBBEE4IiCez8 t9LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690887239; x=1691492039; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=+rxyGHOTHDFDVmeiZXORqSv+w9YC5+Wgg9mbq3/UQAU=; b=lMpGakXWi+lqB+jnPfErccmCteJ1QrsBbuLjoyT/snFimDiPmEcccH+rkSYv1LemK+ xCMcI8xaOMhmc4D1iqKAFlmeb3Addt04Dqwrth2yDLkP4la95d3D64Sz1xKWKjARNIi2 By6xX8cvT/sEQizInVns89p3I2mB/hAc9cjekbMMK7gXwwFnh5tN0VLidz+T0Yti8hPV TDaAE2W78BJeWnCmw5U8CLakeaLmAHsiJO4bCIwHHUWUUQpnq0svZeMWdXZJ/nIbLrHj rg0MFgWsBbaL7M4OLum9Bcj4g61s3WAWHIW8n9PZzY/SlYTMJSdr/U9hL9HPWdrUc0QB tm7w== X-Gm-Message-State: ABy/qLZyVBVOu1YPQIpOeofN6hEoizoVnYDtv9vCNnxn0ds3gv+VJ1nS GMObewqUbfrQFDx65XUFZJVE0ew8hsU= X-Google-Smtp-Source: APBJJlG7YTUeKX3n6dWDxJcCdpG8t9Ls07CB0+o0KfwY5B2+h1236eqMQinITaSJeRzjBFA9e+S/BQ== X-Received: by 2002:a05:600c:2213:b0:3fe:2102:8083 with SMTP id z19-20020a05600c221300b003fe21028083mr1897710wml.26.1690887238985; Tue, 01 Aug 2023 03:53:58 -0700 (PDT) Original-Received: from [192.168.8.4] (netacc-gpn-104-254-79.pool.yettel.hu. [91.104.254.79]) by smtp.gmail.com with ESMTPSA id f17-20020adffcd1000000b00313f61889ecsm15862847wrs.66.2023.08.01.03.53.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Aug 2023 03:53:58 -0700 (PDT) Content-Language: sv-FI Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=geza.herman@gmail.com; helo=mail-wm1-x32f.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266438 Archived-At: If there is a text with display property in a buffer, then move-to-column can move across lines. Repro: * emacs -Q * in the scratch buffer, move the cursor to the top, and put an empty line at the beginning of the buffer * execute 'M-: (put-text-property 1 2 'display "line\n")' (note: it's likely that the "\n" causes the problem) * notice that the empty line becomes "line" * while the cursor still on the first line, execute 'M-: (move-to-column 20)' The last command will move the cursor to the next line at column 16, instead of staying at the first line. Note: I noticed this problem while using this package: https://github.com/jdtsmith/indent-bars. The problem doesn't happen with emacs 28, this is the commit that introduced the issue: 4243747b1b8c3b7e3463822804b32e83febe2878 Fix 'current-column' in the presence of display strings