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#67925: 29.1; delete-rectangle fails on multi-column characters Date: Fri, 22 Dec 2023 13:45:56 +0200 Message-ID: <83il4qfojv.fsf@gnu.org> References: <83il4tge2z.fsf@gnu.org> <831qbggd50.fsf@gnu.org> <83r0jffqql.fsf@gnu.org> <86bkai64a3.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29137"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67925@debbugs.gnu.org, stefankangas@gmail.com, monnier@iro.umontreal.ca, awrhygty@outlook.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 22 12:47:26 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 1rGdzy-0007KT-Ag for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Dec 2023 12:47:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGdzZ-00043V-Gf; Fri, 22 Dec 2023 06:47:01 -0500 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 1rGdzW-00042V-Hq for bug-gnu-emacs@gnu.org; Fri, 22 Dec 2023 06:46:58 -0500 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 1rGdzW-0003dj-8j for bug-gnu-emacs@gnu.org; Fri, 22 Dec 2023 06:46:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rGdza-0001Ah-Nk for bug-gnu-emacs@gnu.org; Fri, 22 Dec 2023 06:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Dec 2023 11:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67925 X-GNU-PR-Package: emacs Original-Received: via spool by 67925-submit@debbugs.gnu.org id=B67925.17032455864438 (code B ref 67925); Fri, 22 Dec 2023 11:47:02 +0000 Original-Received: (at 67925) by debbugs.gnu.org; 22 Dec 2023 11:46:26 +0000 Original-Received: from localhost ([127.0.0.1]:46154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGdz0-00019W-99 for submit@debbugs.gnu.org; Fri, 22 Dec 2023 06:46:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGdyy-000137-5g for 67925@debbugs.gnu.org; Fri, 22 Dec 2023 06:46:25 -0500 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 1rGdyk-0003a9-Sw; Fri, 22 Dec 2023 06:46:11 -0500 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=U2fdTXCYPz6QO4KC9ACXAH7UwXnwp4rsU/xjsarvQk8=; b=EbOhLFlCvMD7 NoZ5ZDwQgCltCBw8XjtbXjeaHnS8LYwMzoCyQqkd23Bu5fCmUZYfQSIoiWpmfJ33nxEc6NO0oHXcB y0BOuDbl0ncN0jNEVP+1eo4msrYw499rfKCQLlntyimeNQa0IXezHsbo4wMxv0x8HQ3ufMvFsJePi lkflnEm8nAzhd4Y1MpIdGD6ARXnw9h27Fdd0F1PVq1pIp7GJUF5f7F5wnkMJgQaBrfgNLsWWGjIIh lszZ7cHA1urqfKK4XDrQXF5YxDfTzNZg29hgnvFuYYn5o1qzp2dotJH2+UliFgNhrR0X3m2ImnRU4 BvNY4XKw3YpJJYgi6FnGzg==; In-Reply-To: <86bkai64a3.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 22 Dec 2023 09:56:20 +0200) 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:276661 Archived-At: > From: Juri Linkov > Cc: awrhygty@outlook.com, Stefan Monnier , > Stefan Kangas , 67925@debbugs.gnu.org > Date: Fri, 22 Dec 2023 09:56:20 +0200 > > >> >> This patch gives similar result of kill-rectangle. > >> >> In the example above, I want all '4' characters moved to same column. > >> > > >> > How can that be done, when the first character takes 2 or more > >> > columns? Deleting the first character is IMO wrong, since the other > >> > lines leave the first character intact. Adding SPC to other lines is > >> > also wrong, since delete-rectangle is not supposed to _add_ columns. > >> > >> I think wide characters may be replaced with SPC like TAB. > > > > I don't think I agree. Let's see what others think Stefan, Juri, > > Stefan, any opinions? Does anyone else have an opinion on this? > > Does the same problem exist for deleting rectangles in texts > with a variable-pitch font? If you draw a vertical line > it will cross a lot of characters in the middle. No, since columns still count correctly, as long as Emacs considers all characters to be of the same single-column width. IOW, the rectangle commands work by columns, not by pixel-coordinates.