From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kCv1OrpN12B9QgAAgWs5BA (envelope-from ) for ; Sat, 26 Jun 2021 17:54:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eJOpNrpN12DpXgAAbx9fmQ (envelope-from ) for ; Sat, 26 Jun 2021 15:54:34 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 366341AB44 for ; Sat, 26 Jun 2021 17:54:34 +0200 (CEST) Received: from localhost ([::1]:60554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxAdc-00017l-V3 for larch@yhetil.org; Sat, 26 Jun 2021 11:54:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxAd0-00017d-J5 for emacs-orgmode@gnu.org; Sat, 26 Jun 2021 11:53:54 -0400 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.216.144.57]:50658 helo=arcadian-hafgan.relay-egress.a.mail.umich.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lxAcy-0003cA-8X for emacs-orgmode@gnu.org; Sat, 26 Jun 2021 11:53:54 -0400 Received: from sanguine-hellhound.authn-relay.a.mail.umich.edu (ip-10-0-73-118.us-east-2.compute.internal [10.0.73.118]) by arcadian-hafgan.relay-egress.a.mail.umich.edu with ESMTPS id 60D74D8D.347ED.38692D8E.428166; Sat, 26 Jun 2021 11:53:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1624722828; bh=RZt9yAMGS2nqoJKJ46yXR/wQ3ZQZI7pswFlkM2MQ2wQ=; h=From:To:cc:Subject:In-reply-to:Date; b=WuqY4Gfmd+LXem/5AAzvHeZyMW/8Fs3UlNuapuw7hcaHV7lHOIqndW0A9wK3qIJ+n 6paN32LT7mLCQQM3NdYGgLqLsc2HbASzjuGiMF2RnmHuE5STO1JBcSu2HiA39rvSfh hujCBc2gDg/2MQzHU94YuRmM+Kdggo7ahszd7rcOEhHIseaS6m081SMpjB10Ox3V2f 7yfc0N4/61RXqsgXBqRUqYwXo5oavU38Ph/A1YISmm7/xuPEQW7fqchpx7BwULONl5 9pjsOgPDz4puhy8mCB8jYXI7x34Sk8+plAMuxZMp2eoMoqmsUEDAyeqwqNuoLmbKDS Bbcx8XsEi86CA== Received: from localhost (Mismatch [95.14.94.79]) by sanguine-hellhound.authn-relay.a.mail.umich.edu with ESMTPSA id 60D74D8B.8B414.63318398.2538022; Sat, 26 Jun 2021 11:53:48 -0400 From: Greg Minshall To: sebastien.miquel@posteo.eu Subject: Re: [PATCH] extra space at the end of lines in source In-reply-to: Your message of "Sat, 26 Jun 2021 08:37:28 +0000." <7fee566f-4f9e-82dd-4f1b-a5ff9dca89ab@posteo.eu> X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 26 Jun 2021 18:53:38 +0300 Message-ID: <3223145.1624722818@apollo2.minshall.org> Received-SPF: pass client-ip=18.216.144.57; envelope-from=minshall@umich.edu; helo=arcadian-hafgan.relay-egress.a.mail.umich.edu 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: org-mode-email Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624722874; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=RZt9yAMGS2nqoJKJ46yXR/wQ3ZQZI7pswFlkM2MQ2wQ=; b=DMrCEJsn2bIz8d5V4Zl1wgmNhBYruSxh0VyTeyMG7ChIxGrEc3yyAP25ZOhKRdtLpAltXc bWnHUg5v/vYRkbR2EmI1LIaqdrniekSp6KQP1CDb+/DgA8jdxcJVRlqwJYt0T4ZZIz9kDI Fa1nR6J/rnRsYMRlaKJFPZ97xAOqz2qYojAVZlCw6ZM30PXUL0N7FZKp463K5mfEmT+rro UyuItfSjkYuFPNoAmSJAEco5zpmfoBW3etInbHJiOieCFFzjz7tjRmUFJqVdidyutU019+ Asyb+LU7sXkGzD/atlJGzSuJdNWYtt10Dc0DmPv7L1asuRJPJ6VwJ4JszrDBHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624722874; a=rsa-sha256; cv=none; b=LJYDooNQRK+dNCKR/4nVdyvcB+ya/jKyf7urRbeqdNOmgGrAtFQk4bpOTjMr0fCRi5/i/Z FfEiVxqcZ8R4NXrvVNM4W/+9La6wxAZLbP5c21ej89Jop0zRQw9dagfNFRVQkoItbUcFU0 AmIPvL30YB8lYUYrtwx/oVsh81RD5WCgOpvhzuuQwqEpiaxW5eHcwNnoR5+5xPnBkJ8L0T r9oOSLv4jNbVNBdblYUfO0x6yL1WHBC/wq5o59IZP5lgvj9R1STJjxy7PLZiyS0mGnHgNF Eh68OTEnBmVwupK/B0Xa2tLqYh6Zlkvg7PDSWj55jW8hrzC1ZnaIafD5KjfreQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=WuqY4Gfm; dmarc=pass (policy=none) header.from=umich.edu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=WuqY4Gfm; dmarc=pass (policy=none) header.from=umich.edu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 366341AB44 X-Spam-Score: -1.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: TW/ywrSwmJub S=C3=A9bastien Miquel, > > thanks. my trivial test shows this works*except* in the particular > > case where, when closing the Org Src buffer, `point` is on an empty > > line. in this case, that one empty line is given extra spaces. > Yes, I was aware of this, but didn't think we could do better in this > case. I've > thought about it some more, and came up with a solution. >=20 > Here's a new patch that's smarter about indenting the current line, > and resolves this remaining issue. indeed, this seems to work as advertised. thank you very much for spending time on this issue. Greg