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 kBvVJKuu6WBUWAEAgWs5BA (envelope-from ) for ; Sat, 10 Jul 2021 16:28:59 +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 0C9JIKuu6WCdXQAAbx9fmQ (envelope-from ) for ; Sat, 10 Jul 2021 14:28:59 +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 BAA241DC43 for ; Sat, 10 Jul 2021 16:28:58 +0200 (CEST) Received: from localhost ([::1]:58578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m2DyT-0001NT-SV for larch@yhetil.org; Sat, 10 Jul 2021 10:28:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m2DxP-0001MK-AD for emacs-orgmode@gnu.org; Sat, 10 Jul 2021 10:27:51 -0400 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.217.159.240]:43088 helo=visionary-gwydion.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 1m2DxL-0003Ip-BB for emacs-orgmode@gnu.org; Sat, 10 Jul 2021 10:27:50 -0400 Received: from pretty-kasha.authn-relay.a.mail.umich.edu (ip-10-0-73-230.us-east-2.compute.internal [10.0.73.230]) by visionary-gwydion.relay-egress.a.mail.umich.edu with ESMTPS id 60E9AE5F.88C44.1DDBB510.283603; Sat, 10 Jul 2021 10:27:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1625927263; bh=DbywTzmEPHOWJiVE920WQjnwpVCfAI2GA/BeqMRSxNw=; h=From:To:cc:Subject:In-reply-to:Date; b=F0T9gGDFHcG3CRyePJikwF9NS7IzCBjrExvTpu8OqWCRJ3LmA9Lj4pPfshwqoldho tmmgQgasJaO1CeQIlfuM/K0gDXDG6z9PjYzM8HXRiJB++trcNKvBTZYr0LnWx1qqLw OfXbH0oGw+rTQRrEKHn7LyW3Ash8ujkANE8hbG8DanBj8yBro/18w+eDTpkCClntoM XFBD7bHismQ2Zl1Lob6z218gna7SgUNN6nUAPnjB3/KlYf71bDEDyZQO6Is7QjzqWy rmru4RSq36epfIxwZaTfu/xKYfW/K1l6HADeZzpXLmUFL9Z0sM/vtkiq2JDP1gftl8 EWznILP1tsZSA== Received: from localhost (Mismatch [95.14.94.108]) by pretty-kasha.authn-relay.a.mail.umich.edu with ESMTPSA id 60E9AE5E.1E548.294548E2.2447129; Sat, 10 Jul 2021 10:27:42 -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, 10 Jul 2021 17:27:38 +0300 Message-ID: <132378.1625927258@apollo2.minshall.org> Received-SPF: pass client-ip=18.217.159.240; envelope-from=minshall@umich.edu; helo=visionary-gwydion.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=1625927339; 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=DbywTzmEPHOWJiVE920WQjnwpVCfAI2GA/BeqMRSxNw=; b=Z+UG0qSK80T12dpmhZ5CkCNyWAnGphdv4o9iIP65iwmHpcWj+avvbGjm5s5+ZAg2k7L6r+ HxCL8Fwk5cQ/tG5ifgYk9lQUiR5gAbMQIlCHCOf2a2S7j+wwU5yLInAN71IQBe6fd43weM GYPee0k4I6h7Vq8dfc0ChsFaxWjC3kU3LoDWTQBVfWOTfcaou1WOSdvuQul4Z+/mSljnTp MGFx5jQR3LEoKQNsycp+4Uz76JTa4sbnQiC9DdR0X7ufpUUzgLdOFiBy7hWF8QvbL0I+bx yC7G5uGRrm8Dt9pdM06vMD/b40rKUWy7hrTTNfXBSGk4hAyxdnzwfy9+CXBwWw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625927339; a=rsa-sha256; cv=none; b=n+Bd+AnrBpFrcYaRFp5EFabGy0aD0uQQ8hR+f+NAVIiO+7bkTeUTW1GpBoKX9YdNl/QBFi Fg3R/xaCuiEjBCYDDuCh3hqAhxXJWqUdvdDXJrbCYzYenPW8YKRnPGZ+MvvdkbhIbfAoz4 3Vmay2YwlM3AUhxTf26yGgsoe/ksEqZR8eIyscbdgv2ndrx8JIpIrQk+Tqcr2UE065VXWH W5WcfBxxQZkzm/QIjNmrcen9GoFYhrpS+rcrEtMRl/V37Tu7M8HeriZkgEp3uqwwMUi+jl M2OaTQZ5piCB8G5Y6J2S5+cApGc27WFVbg5UomTrTGsq+ejdSmCoFhIdr553pA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=F0T9gGDF; 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: -3.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=F0T9gGDF; 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: BAA241DC43 X-Spam-Score: -3.10 X-Migadu-Scanner: scn1.migadu.com X-TUID: KUr7ukoTQIQS hi. i don't know who might merge S=C3=A9bastien Miquel's fix into the sour= ce code, but i'd be a promoter of this happening whenever it's convenient. cheers, Greg S=C3=A9bastien Miquel wrote: > Greg Minshall writes: > > 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. >=20 > Regards, >=20 > --=20 > S=C3=A9bastien Miquel >=20