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 OmklEahI1GDKsQAAgWs5BA (envelope-from ) for ; Thu, 24 Jun 2021 10:56:08 +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 6OwjDKhI1GCBKAAAbx9fmQ (envelope-from ) for ; Thu, 24 Jun 2021 08:56:08 +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 3A79A2C609 for ; Thu, 24 Jun 2021 10:56:07 +0200 (CEST) Received: from localhost ([::1]:60294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwL9Y-0004JZ-Nv for larch@yhetil.org; Thu, 24 Jun 2021 04:56:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwL9B-0004J8-Vz for emacs-orgmode@gnu.org; Thu, 24 Jun 2021 04:55:42 -0400 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.217.159.240]:53690 helo=knowing-cyhyraeth.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 1lwL9A-0003Od-3C for emacs-orgmode@gnu.org; Thu, 24 Jun 2021 04:55:41 -0400 Received: from hollow-jackalope.authn-relay.a.mail.umich.edu (ip-10-0-72-121.us-east-2.compute.internal [10.0.72.121]) by knowing-cyhyraeth.relay-egress.a.mail.umich.edu with ESMTPS id 60D44888.E2423.17501EAF.2657090; Thu, 24 Jun 2021 04:55:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1624524936; bh=1l7ihnmm9KgIA1cffpHbCH6W5xjsSYb+CAXt9b2vJes=; h=From:To:cc:Subject:In-reply-to:Date; b=NCxkiLizXXcnaeGZK4ALYTL5Zrh5KDKyfrJAE+oYJhRBEqPJ3HJOzUEP424sJrv73 +ZVAbdsmhPzwBbtAe/CFTBuzFQZMe00oRPB39LujZ5RDJKC6wVIAXGca3f9ME2zZSm 9jE6UOt5a0ceRUEc7gOLFRL5QY1ue4OCqEEjDBVCjnit2X1SjuH2cPQUmr49tE/SpE CYX2aJjbEPsOE4CQl++jGb3UeHNqr0FwqQskkXVBltIKgopvCKN3KvN8gd2jgWUDO3 RQEoQLNjblH0v7ZKz+jxIoCY/g/hmNrebLnaEPa5VmXSCRuuwLzDM4AkuVd81nkgNq hZ+4kIj8lngfw== Received: from localhost (Mismatch [95.14.94.79]) by hollow-jackalope.authn-relay.a.mail.umich.edu with ESMTPSA id 60D44887.9962E.33BD6762.2089439; Thu, 24 Jun 2021 04:55:36 -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 "Wed, 23 Jun 2021 17:29:42 +0000." 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: Thu, 24 Jun 2021 11:55:31 +0300 Message-ID: <2913163.1624524931@apollo2.minshall.org> Received-SPF: pass client-ip=18.217.159.240; envelope-from=minshall@umich.edu; helo=knowing-cyhyraeth.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=1624524967; 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=1l7ihnmm9KgIA1cffpHbCH6W5xjsSYb+CAXt9b2vJes=; b=o8puEm/XFND3WcnNWEtE2eKEIAbsPqmqzBgPU2Mdm6UUdN5WqPBWveEBymwKBRj3alv9TO NqGhHy6sn73VwkWN0XX4KLrvTSsqwHXimBxYQmMkJTrceweKiiaHjJvjJmS4GBSPUthY/0 l6JZltD2tZ3E8XHq4dEePyn/GuonxvYQSO5T6R6QPkVtVZUsXozkZ4OJjtnrISy5XLO7/p leRrbFvONTFSlREJndtS+QbK1NbD99IC41qY6xmVSFpbUF0PUIRjm+eKpnoxJAeMLpiu7B YKc1WHUYnp2af7VqWld1aODtVLX5OPxRxYII7gIvAx1pQrJAhGfQjuyjaF75EQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624524967; a=rsa-sha256; cv=none; b=WvE6rv2btjoVmScNSC2MjtVeaeJwMDgH9+tXWJuFFcoVqdLNvm7CkHSQi20yyA7stBDUxS f0xLVUtw/7qxt1ykQW3vccqQzVC9Ccu+fFrBpVA1c3IehRfFYdyaDt9/62Ej0y84RL/xAS SI9oGDTAQVxD6blni7iH3sDIHludKSdx7fIDAAYei0tjr5f1IDbSlc4ksN11nExJXQSAwy MU1D1mIAZNF6PCSHE3bCK6QQ2HarkGef8fPn+KJ7SEWnK4Swsx8OfNVXMNtNDVMuW81nMc 3DJMOBwTUy1h5XMVtTtSAObtUm/r3lHuEzaRFVTULTh2uIh7ltH5hqvfyApU/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=NCxkiLiz; 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=NCxkiLiz; 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: 3A79A2C609 X-Spam-Score: -1.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: kar05OHeR6t1 S=C3=A9bastien Miquel, > If I try your original examples with `emacs -q' I do not get extra > whitespace in the org src buffer. Those two spaces in the original org > buffer -- that are due to `org-edit-src-content-indentation' -- are > removed in the org src buffer. If you do not find it to be the case, > then I'm missing something. i apologize, i think i described the problem badly. the problem i saw is not extra spaces in the Org Src buffer; it is the appearance of the extra spaces in the original .org file after closing (C-c ') the Org Src buffer that i see as problematic. > Anyway, here's a patch that cleans up blank lines, except the current > one. It preserves the fix for the original issue. 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. if i try my test with : Org mode version 9.4.4 (release_9.4.4 @ /usr/share/emacs/27.2/lisp/org/) i do not see the extra spaces in the .org file. the test src block is ---- #+BEGIN_SRC bash echo hello, world echo 23 #+END_SRC ---- (modulo any e-mail mangling). again, thanks. Greg