From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#52265: Wishlist: Behavior of rectangles when last line is short Date: Sat, 4 Dec 2021 21:18:21 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4647"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52265@debbugs.gnu.org To: Tor Kringeland Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 04 22:19:13 2021 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 1mtcR5-0000wI-Oa for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 22:19:12 +0100 Original-Received: from localhost ([::1]:33948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtcR4-0006DU-K9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 16:19:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtcQw-0006Bv-Bb for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 16:19:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43792) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtcQw-0005zI-43 for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 16:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtcQv-0000NO-Vd for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 16:19:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Dec 2021 21:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52265 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 52265-submit@debbugs.gnu.org id=B52265.16386527141388 (code B ref 52265); Sat, 04 Dec 2021 21:19:01 +0000 Original-Received: (at 52265) by debbugs.gnu.org; 4 Dec 2021 21:18:34 +0000 Original-Received: from localhost ([127.0.0.1]:55334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcQT-0000MK-Nv for submit@debbugs.gnu.org; Sat, 04 Dec 2021 16:18:33 -0500 Original-Received: from outbound.soverin.net ([116.202.126.228]:38135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcQR-0000M5-MF for 52265@debbugs.gnu.org; Sat, 04 Dec 2021 16:18:32 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 242A7857; Sat, 4 Dec 2021 21:18:25 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1638652704; bh=ChH3CM8qIy755TO9HN6A8sB//PqmJUJgBUOG60EaX68=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F5CSeREERz7ORqYATV77nRpLS7/mPJp+Co2uYrl6jGFypwykoqj72btYneohPUFQ9 OUV+/Bs1Z6bSJ9BY7dLxmYTnc3kl7wccTKH85u+JNVKZt7x/cv0hx7ninrTxF88iwO BTHPMH3YAKpbePnYwGajKhoDsv9jxTJKzWZUMytMqoUhiEfGJH75ilO0qzAQRFU+gK sXyEYCy/fPTf7Q3NkrJfzsQ/1Ktasd/sPaoGoJiE1BFrrCnfQrCBEV05kUlmjWmU46 shSaYB84Qq+jWD+MZ44JtU1rwyhoqqofPrC6IZfFObKco1vJVII9xGGIkUBWjmNI89 ewSLVL+4K8cQA== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.95-RC2) (envelope-from ) id 1mtcQH-0015t2-NV; Sat, 04 Dec 2021 21:18:21 +0000 Mail-Followup-To: Alan Third , Tor Kringeland , 52265@debbugs.gnu.org Content-Disposition: inline In-Reply-To: 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:221516 Archived-At: On Sat, Dec 04, 2021 at 12:06:52AM +0100, Tor Kringeland wrote: > Suppose we have the following text > > text123 > more text > text > first > second > third > > and want to turn it into > > text123,first > more text,second > text,third > > using rectangles. This is problematic since the last line is shorter > than the two before. A solution to this [1] is to add spaces at the end > of the last line until it becomes the longest, mark the last three lines > with POINT being at the end of the spaces and then kill the rectangle. > Since the first line is shorter than the two following, one has to add > spaces here as well to make it the longest. Try C-x SPC, that should put you into a rectangle mode which lets you specify a rectangle that extends past the end of the line. -- Alan Third