From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#52265: Wishlist: Behavior of rectangles when last line is short Date: Sat, 04 Dec 2021 23:12:21 +0100 Message-ID: <87lf10xbne.fsf@gnus.org> References: <87y25040a8.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18802"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) 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 23:13:26 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 1mtdHa-0004lE-1j for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 23:13:26 +0100 Original-Received: from localhost ([::1]:47532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtdHZ-000558-5O for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Dec 2021 17:13:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtdHC-0004bX-Ow for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 17:13:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44047) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtdHC-0006tc-GY for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 17:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mtdHC-0006M4-AP for bug-gnu-emacs@gnu.org; Sat, 04 Dec 2021 17:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Dec 2021 22:13:02 +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.163865595524388 (code B ref 52265); Sat, 04 Dec 2021 22:13:02 +0000 Original-Received: (at 52265) by debbugs.gnu.org; 4 Dec 2021 22:12:35 +0000 Original-Received: from localhost ([127.0.0.1]:55593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtdGk-0006LI-Mn for submit@debbugs.gnu.org; Sat, 04 Dec 2021 17:12:34 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:42294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtdGj-0006L4-D2 for 52265@debbugs.gnu.org; Sat, 04 Dec 2021 17:12:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=PNScLK8w0UhfKzrsS5U9lndSrl2k4XHk9alVnIoktG8=; b=qADlTqILx6KC48/F300QW+mBCU o/FdeescHwALmtiDTWh4yXd8kJV5McSJ3mkWlX4TgRfcwq6qk7XYXj7sV9OaU5sQ97XYGFMNlNnJK 5XeiTl3tQegQ8pOkLiIJulgBU+1LHXZxlZW/kSGfGr0O9b3NtBoBD4bMdA32LeQ7dnnM=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtdGZ-000103-TM; Sat, 04 Dec 2021 23:12:26 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXNqF30y1yZe22+ yb5tiVZWXU////+Xfhi4AAAAAWJLR0QGYWa4fQAAAAd0SU1FB+UMBBU7FhJEYTUAAAG2SURBVDjL ddTBkuIgEAZgQL2TzAskbbhnEuc+YnPfytLv/yr7d0DLlCzRsuSDTkOTGNu1myngcdnDGIOvM8Po Bk+md866wbmhQu8AY0/aOiLnxgodoiCWN2j4wd8K60ezTVge63cTblsbHv+BJbdh4cTtGSyyrfdP oAnw0wDJgNCARQR2b2WVQC24oV/GT/gRCU24TYSrwvS+jIUCxbGUVpiv64rPOrhAFOK1rNwjc8pR 4sRESYFqKOJIQppNpEg0vSBynHTFQYgwCVwrOKWoqyotYv70hKzjRTdpS0yccoVQB2+230Q4p208 wp/vPifJKBUOpbHe1H5ytoDsgOsJ5u85M2NFbL013vpyg41snAGsMzpAtwPRYL7OJ+FQQPfKl35s 1fmROKQXdFGP+WmHi4T0m1kriHxJ4ygs8SZB77KDBeD8azFmXlIugH4kbCqsCpB0R7qasrYvRFrT oAtU0JubeT6VSNeLbjM7uds9q1fB8w37IXyW3+4Il0fSLeT9wL3DLBMCcd4LZY6vA03Tap85ytsY gO6XPcwrsD/2g30OrPGNcRrVemdf/fscM5hDK+8LlPUfuWmwd0aU4E4AAAAldEVYdGRhdGU6Y3Jl YXRlADIwMjEtMTItMDRUMjE6NTk6MjIrMDA6MDC6Vv/2AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIx LTEyLTA0VDIxOjU5OjIyKzAwOjAwywtHSgAAAABJRU5ErkJggg== X-Now-Playing: Jimmy Cliff's _This Is Reggae Music_: "Hey Mr. Yesterday" In-Reply-To: (Tor Kringeland's message of "Sat, 04 Dec 2021 21:33:25 +0100") 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:221533 Archived-At: Tor Kringeland writes: > I should have been more clear. I used `kill-rectangle' to kill the > region so that I can yank it as a column to the right of the three first > lines; this is done using `yank-rectangle' at the end of the first line, > after inserting a number of spaces. Oh, I see. =F0=9F=98=80 Well, that makes more sense, then. > The behavior in the second point is more geared toward this specific > example, but it's also a general one. Basically it's about allowing the > user to optionally specify what column separator to use. The default > one is tabs and spaces for visual alignment. In my CSV example a comma > would be used. And you could /e.g./ use a vertical bar for `org-mode' > tables. I think there's a separate package for doing this... er... something about tabular mode, but I forget what it's called. It mogrifies text into a table, and from that you can export into various formats. Or was it table.el? It's been a long while since I used it last. > As a sidenote, `org-mode' already sidesteps this last issue by having > the command `org-table-create-or-convert-from-region' which can create a > table from the resulting columns after yanking the rectangle. Maybe > something similar could be done in `csv-mode'? It would solve the issue > wrt. my second point, though I still think there is some general use in > being able to specify the column separator. I think selecting prefix characters etc just isn't general enough. When creating a CSV file, for instance, you want to get rid of the spaces, too. So creating a table and then exporting (via various rules) seems more useful. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no