From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qCo0Jubr3WG3DQAAgWs5BA (envelope-from ) for ; Tue, 11 Jan 2022 21:43:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IOSMI+br3WE2DgEA9RJhRA (envelope-from ) for ; Tue, 11 Jan 2022 21:43:18 +0100 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 587D42D156 for ; Tue, 11 Jan 2022 21:43:18 +0100 (CET) Received: from localhost ([::1]:40476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7NzB-0007nd-Ey for larch@yhetil.org; Tue, 11 Jan 2022 15:43:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7NT1-0003vH-98 for emacs-orgmode@gnu.org; Tue, 11 Jan 2022 15:10:03 -0500 Received: from mout01.posteo.de ([185.67.36.65]:35151) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7NSz-00024r-BT for emacs-orgmode@gnu.org; Tue, 11 Jan 2022 15:10:02 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 2A66724002C for ; Tue, 11 Jan 2022 21:09:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1641931795; bh=oraAO20kvMTPrgrynS8fS9sWmwVqEojVrqGZLK6zcAw=; h=Date:Subject:To:From:From; b=mZxIOly67DBE+TUTvwBu3QMc9u1pdAN/jDrBCX+JobPVtddZZD8/u9FjRBSrfQt5A NMJ5JFppabBOZ4+pMHppg/cxNS8R6nbvNNRjjU+i6pZds7ZcyK1bk3TcjQmRsd/Ykk o9jApnqEmXw36kvvibveKyc33NhdQgI6fGZ3aiFiAbIXAkJZbkFkASMhD8BYcKRelM bzTu539zSQaOAC4GU6Ga4JcC758R6td8H1L4ux5/FBuDTiDB0PugOL0rBYH64ivmpN 1IwgbuoqEco4t0LcXTDz7H7TMaEjYUBtpUYg6hoh5XX7BrQVaXEtwaWuRN736L4ShP DlKaRdbd+Bq4g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JYMHP0GPVz9rxR; Tue, 11 Jan 2022 21:09:52 +0100 (CET) Message-ID: Date: Tue, 11 Jan 2022 20:09:52 +0000 MIME-Version: 1.0 Subject: Re: `org-fill-paragraph' (`M-q') in Org Mode source blocks Content-Language: fr To: Fabio Natali , emacs-orgmode References: From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= X-Woof-Bug: confirmed In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=sebastien.miquel@posteo.eu; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sebastien.miquel@posteo.eu Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641933798; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=QbE3khfeA6UIGvjRuRNk08vbHbNYx8W9uSY1Y/nOcN0=; b=JLzkOiF9Gl9hHJ8jyfM3sZm+wi4UxQII4ptAi5RCAiYdbGFFkLZrmv7U0C+7lpUZx0qDrq DwnNs6eWE+JZprQyeC9GR/MKwl168BAiOYlfzv3Vc6ReVsIl59U8WpNDEPm6EKRTdqbz0K QpbdHXrvX63+7N7cE4DEAwBZ6dC4ECRPbpLgxeZh9FW6DVU/f2VuQeRvTupfDVTAX4L7px +kz8nMK64JaP/9cGQF5xZRphREWfSfL0Fd78HQ5sBvJaujD8rsy/rtFQW3kcFcUTOWDQfb VhhtrmmnXZcQQFzUUzjKrO+//DQOS8weK++ZQ2VPSm94FL0G31+Bjbt+SYU7+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641933798; a=rsa-sha256; cv=none; b=cePhgXdWJIGfiZEXmbJUIxrHwrHVrDA6sJtL9Vyg4JBtcqUKYKD/UStEainlE5Fcpx0a4W LK9uFaCIVvL3uQpoAq8NBKhRcLIzhX3sMKqVBbzMff8whpVLVCbl5xc+nPNtfGcNmrndZ5 XI7GgTsbt2UN3KwQQFoWUKcSXe6VHMyZ/RWTTBgD2uXWxIPsMG4pD+Duj33dBXDMKqeeCm 0laqaYfJ6Mq2n/IETryqOIT9VowQGQyrUDzjucfUOr5ht8EFK6f/Lt5BdC6iLKlt1MUDMD uNcK8lcwF7LpNwV973MYPyQR8q5hr+6q6+f1FuveZBNBgVyQ4yoXNuM279xwTQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=mZxIOly6; dmarc=pass (policy=none) header.from=posteo.eu; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.32 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=mZxIOly6; dmarc=pass (policy=none) header.from=posteo.eu; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 587D42D156 X-Spam-Score: -9.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: p+G2ij4tSE3y Fabio Natali writes: > Thanks for getting back to me and thank you very much for the code > snippet, which I think I'm going to integrate in my configuration. Thank you for the report. With regard to the snippet, It seems the advice function needs ~(&optional justify region)~ as arguments rather than (). > I'd be curious to hear from other fellow Org Moders. If this is a > relatively common problem and there's interest around it, maybe we could > think of a fix directly in the code base. The best way to get it done is to post a patch to the list. If it doesn't break a legitimate existing behaviour, It should get applied. I'll probably do so eventually, or you could, if you feel so inclined. Perhaps one difficulty is to deal with the case where the org-babel call errors out, say if there's no mode to edit the src code in. -- Sébastien Miquel