From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yDhMCF6mGV/VdQAA0tVLHw (envelope-from ) for ; Thu, 23 Jul 2020 15:01:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +KD+A16mGV+kHgAAbx9fmQ (envelope-from ) for ; Thu, 23 Jul 2020 15:01:50 +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 7BE7B9408FC for ; Thu, 23 Jul 2020 15:01:49 +0000 (UTC) Received: from localhost ([::1]:45842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jycjD-0004MP-N7 for larch@yhetil.org; Thu, 23 Jul 2020 11:01:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyciX-0004Ll-F3 for emacs-orgmode@gnu.org; Thu, 23 Jul 2020 11:01:05 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:40326) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jyciV-0003nY-Kn for emacs-orgmode@gnu.org; Thu, 23 Jul 2020 11:01:05 -0400 Received: by mail-wm1-x334.google.com with SMTP id f139so5486107wmf.5 for ; Thu, 23 Jul 2020 08:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=feK1ormRYSBeqgJqkHV9c6ivcRm/EvMXpNwdxD4Z1u4=; b=KgdxxB6AKLidKyEq8SDT23bPg55NnT8fhCPVgZCEvZJB7E0sflvNrgMVguLBf0W49u go46W2XC+iiG94sKGvkLua7/nmUhwq4rIev8bALVHt5HVBUY3LZxuwNQ91jyChQxpWhg zYrYmOvcri0gXuSWkEX/nO+uYMcUBV+VlQThBSLv2SW96bNpATKC0MzZ1X520cqWueDF DuTA6LiUznXsLM0FKaPnqLt32scZTrMKKwLg92BiyRFvMj1BcJZ+Dkd3kPiBFTbV/Kuh PknSOri7Kb6kKp/dnU00F0zUFe4FXUuYe/i1NjIoMvCYf2B+mi9cIzIwHTWSEUymrg03 v05Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=feK1ormRYSBeqgJqkHV9c6ivcRm/EvMXpNwdxD4Z1u4=; b=pA66/YR0TA5f3vMeC4Kg5tlFeSbkBX4fvDrc2zuh5235iljOXdsPUyzulfszxp83SK wX83LTGOOiR++5PMvan4+9zaENScDRwEizzpajaLv7hcI+oc4P2IXp26KM5ScxE1ld6+ SFS5giYnBdntLJYaG0VFUsXgGqZGYgZb1jtsaYAs6nPmqCiX897GycqYX+1WUe8pdk7o h306KDKdAZNUrF3rOKLqtLe1bvoKsOzWnb6h19LFv/7Mg7sMMcxqBrgOc+dPHi62SiHh yLIkMdk5CryQ8XAC9N7uNjWCDVi/DyHiLiZr1D5JzA0mefX3yuW35mSMpsBmK66WoMcn CYBQ== X-Gm-Message-State: AOAM5326U762bVEaKuZZ5OkZwN1d9OqUw/zPoRdYGiRyw2Co/LQGxupm a6FW7D3cjO2mqrSyYSCCgmiWArxY X-Google-Smtp-Source: ABdhPJy1uTi3YsyAaRDHeyuihLyEGKaOybNt3VTMhAnYhKeqBo0IfC2A42PDXmmIt98qEiZ+V6AO8A== X-Received: by 2002:a1c:5f41:: with SMTP id t62mr4715923wmb.134.1595516459507; Thu, 23 Jul 2020 08:00:59 -0700 (PDT) Received: from hirondell (183.114.141.77.rev.sfr.net. [77.141.114.183]) by smtp.gmail.com with ESMTPSA id x11sm3996998wrl.28.2020.07.23.08.00.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 08:00:58 -0700 (PDT) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: Jarmo Hurri Subject: Re: Binding RET to org-return-and-maybe-indent References: <878sfbycip.fsf@iki.fi> <87sgdjhad8.fsf@gmail.com> <871rl2y2wa.fsf@iki.fi> Date: Thu, 23 Jul 2020 17:00:57 +0200 In-Reply-To: <871rl2y2wa.fsf@iki.fi> (Jarmo Hurri's message of "Thu, 23 Jul 2020 12:52:21 +0300") Message-ID: <878sfaxoly.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=kevin.legouguec@gmail.com; helo=mail-wm1-x334.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=KgdxxB6A; 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-Spam-Score: -1.71 X-TUID: 5gzoO4fQ1ecX Jarmo Hurri writes: >> #+begin_src emacs-lisp >> (add-hook 'org-mode-hook (lambda () (electric-indent-mode -1))) >> #+end_src > > Unfortunately this has side effects: it changes at least the way > parentheses and indentation interact when opening a Babel source code > block. It might be a good idea to mention this in ORG-NEWS. Could you give us a precise recipe? (Starting from emacs -Q and an empty Org buffer) I've fiddled a bit with source blocks just now and I'm noticing some weirdness that I suspect might be due to electric-indent-mode re-indenting the previous line when hitting RET (or C-j when disabling electric-indent-mode), but nothing specific to parentheses. Since I'm a bit pressed for time ATM it would help if you could give a step-by-step explanation of what goes wrong.