From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iN6BEkd90mCvWwAAgWs5BA (envelope-from ) for ; Wed, 23 Jun 2021 02:16:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OHM3Dkd90mAuRwAAB5/wlQ (envelope-from ) for ; Wed, 23 Jun 2021 00:16:07 +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 CA4E388D1 for ; Wed, 23 Jun 2021 02:16:05 +0200 (CEST) Received: from localhost ([::1]:45466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvqYm-0002pT-5K for larch@yhetil.org; Tue, 22 Jun 2021 20:16:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvqY4-0002pB-5Y for emacs-orgmode@gnu.org; Tue, 22 Jun 2021 20:15:20 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:37827) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvqY2-00046k-AU for emacs-orgmode@gnu.org; Tue, 22 Jun 2021 20:15:19 -0400 Received: by mail-pg1-x532.google.com with SMTP id t9so201004pgn.4 for ; Tue, 22 Jun 2021 17:15:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=KmgEglEO577jyN8wWOWIJk51TInTLdqMxHGl+uqw3ws=; b=kvP2Zkl0GeKto2yT1sGyXje5DBXRg4Pl94QWmOH02Bro1sl0SdKgbKZm699v+SqOmZ u7CgY3q3Uux+IZBR2B7NpkZYK5HhMwfjCdhrJvI9T5yy83nN/UjwB7YJfpkrRG22yel4 ZxN6FByk/U4rnjkRb3vAJ7ikq4umklEBm3bl8exvC+fl5r5laT3QW3XACPA4rmxNzcYi akxZzL0gCqJm8EivOnceOKk2jdtCIIzCy4YDLJOoW0xLTmU7xokVQvFKcFPc0N0DPK9y h9Cfha0hGDWdTrr7wO/QY/K5V4f0nY6Dnp5TOgFQsnUquCx1OgAItV3eHhndTcbnUQT7 Meuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=KmgEglEO577jyN8wWOWIJk51TInTLdqMxHGl+uqw3ws=; b=Sf6zxAkAYxLlqTxFitUMK6baDk3QXlFL9jy6mLHhqCZpHDmbfAOxyW2BPCqt79zEuz 3B+uN5EYDQDZusaALIBEmjoxEwEhBZgkfHWwjwlW2sYm/bnMUDQ2YMipcRnIdmNNG+pm kP4Y3MlMQd6PUqc4eVO1P0PBfLdKtorr7HTaBbw7VnzzJkndw8dW7QFy3Je1Nqo2rZA6 DH3huQ0TDidairV0jckC+BamKlFzTL37N1H7Cgcm2cIN+dHk42fbRBOimETheBCFnPZT GKRnyCnSrejM2EIYPvcjdWMSqoEgKFt59PYK1wFCGFgwaVNzDsMQdQsOYKUmBcYZYCPo Y+5Q== X-Gm-Message-State: AOAM532NO24XLp6qdCgulcx2S16bli8/veRrMZREKs3fSpV/MD2OAZX8 YriKDhTD++pZZ1ACNgMWHl1y2nth1Sc= X-Google-Smtp-Source: ABdhPJxqXD/d6dCf7RyNNt1dUefn1vkgE6ypDdK51ChysL/pkR7a0TFPH9M2AAr4SSPXJmswCNdnwA== X-Received: by 2002:a63:d053:: with SMTP id s19mr1167560pgi.326.1624407315621; Tue, 22 Jun 2021 17:15:15 -0700 (PDT) Received: from tim-desktop (220-235-31-196.dyn.iinet.net.au. [220.235.31.196]) by smtp.gmail.com with ESMTPSA id h9sm14574662pgn.57.2021.06.22.17.15.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 17:15:15 -0700 (PDT) References: <17a7020b-d665-57da-4622-cfb978cb698e@posteo.eu> <2681710.1624389697@apollo2.minshall.org> User-agent: mu4e 1.5.13; emacs 28.0.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: extra space at the end of lines in source Date: Wed, 23 Jun 2021 09:56:39 +1000 In-reply-to: <2681710.1624389697@apollo2.minshall.org> Message-ID: <87im25l9m8.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x532.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , 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=1624407365; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KmgEglEO577jyN8wWOWIJk51TInTLdqMxHGl+uqw3ws=; b=bPYxB8hiKaX5hf+RU48mU/caSGscMPTP+ZQYzH8MJUP0UP5P2Ok33X6TNAc2HS9ORuD9dS OApFadVhrcNhkW7lo3mGDqCiMAE2pCkNiEi+aKXzqQjfor5yvpum6JZtthLGMYXWIjMcOL bK/oDBDslatt0yZeCihlVpQlmjgTQ9z+wwR+qKwtt2DMwp/2eDQJWAicu1CG34muOBU4DR /CwrE5B2RIUK9ymhw6/JBxQTh2yze/MC7GVb0crvcX2QAC06uZQrgQn5hpIUYWuM54OWfE DpJSoWdDKGUet/+zbxbpvDoa6aN9gDXLiEcxtDbWMd6m2vr5P969gcIhmb+x+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624407365; a=rsa-sha256; cv=none; b=tBCVb9XOuH0djF8nr26+KgOUEVmagOp/IEIGHo3E3v6M7bhIp/nkpTFlWmAE1LEbbqJCmQ qBmIp6xi8hM9cm5UVWd39Xld03wOK/Vl94eESnEmGEHiXXX08B80VzswZGxysZaI0bGo9t lKZAaenOY3sJdhGmPKDcKROfNWRIlU2HKlz6PPtNw6FjkzPRi+dfF43jNhURqFa0Na8EYA uM9PB8+BSshdktb2pxd+aLXn5fXxPImgZ/40JFuhH/t+W4YX3OTwSLWl9jkzmiVv4ktNsv eShXSxq5VqZ63Be2TFK4ev3uJRlBYbWfGnrCW9X0ZRo7o40Lq1w5smIbSqCIQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=kvP2Zkl0; dmarc=pass (policy=none) header.from=gmail.com; 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=gmail.com header.s=20161025 header.b=kvP2Zkl0; dmarc=pass (policy=none) header.from=gmail.com; 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: CA4E388D1 X-Spam-Score: -1.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: uFjH8IETLyIl Greg Minshall writes: > hi, Sebastien, > > thanks for the reply. i remember that thread, but obviously i wasn't > paying enough attention. > >> The downside is that, unless ~org-src--preserve-indentation~ is `t`, >> when editing a src block, every empty line will be indented with >> spaces (according to ~org-edit-src-content-indentation~ + the >> indentation of the #+begin_src line). I think this is reasonable, but >> perhaps some might disagree. > > indeed. i disagree. it's long-term emacs behavior to eliminate spaces > at the end of lines, at least in programming modes. i don't know what > would be involved to keep the fix for the original problem (which i was > also seeing), without adding these extra spaces. but, i suspect it > would be worth it, if feasible. > I'm not sure that is correct. Elimination of spaces at the end of lines has always been something you could enable (either directly as a setting in the mode, which might be enabled by default, or via a package like whitespace.el. I think it would be going against Emacs philosophy to have a mode automatically remove end of line spaces - this should be something the user controls. Of course, the converse is also true. It would be a mistake to have an Emacs mode add additional whitespace at the end of lines which is not requested by the user as well. This could also cause issues/conflicts with packages like whitespace.el or diffs and VCS etc. It may also make source blocks 'ugly' if you have your Emacs configured to show additional whitespace at eol. -- Tim Cross