From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eFt/Bz6NOmNs7QAAbAwnHQ (envelope-from ) for ; Mon, 03 Oct 2022 09:20:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kFyZBj6NOmMwGAEAG6o9tA (envelope-from ) for ; Mon, 03 Oct 2022 09:20:30 +0200 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 99A4616474 for ; Mon, 3 Oct 2022 09:20:29 +0200 (CEST) Received: from localhost ([::1]:51832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofFka-0002cq-C8 for larch@yhetil.org; Mon, 03 Oct 2022 03:20:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofFiV-0002cN-Od for emacs-orgmode@gnu.org; Mon, 03 Oct 2022 03:18:22 -0400 Received: from mout01.posteo.de ([185.67.36.65]:49419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofFiT-00069r-Qr for emacs-orgmode@gnu.org; Mon, 03 Oct 2022 03:18:19 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 31042240039 for ; Mon, 3 Oct 2022 09:18:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1664781494; bh=RXb4AdA6XM5S4RZxlm3fjudmXRuo6PfB0KrtAcBbLVA=; h=Date:Subject:To:Cc:From:From; b=iw7XbSDH3pveQ0xQNtiVzrcMVZEZQTEiAZGS9ZTXHAwRLO/EGfxaNETM4Ey78XY27 opF0o1IZwlroc4Y5ol6t4igJeoTfkMREUXzROVHPoLQn13mxVadk5sw1O4p4HFCDcK ZcP34HcWDVn2JOy5D7ZcpVO9tCPvtb1fv7wIE9IagkHooC5LCbHyNGDlDGcE7/ZnRf 7y3+ffSAtnKZGpwgzV79LRXAPvIMZmZ1cfJhQKrYwMO0bQ+mtAS6anTwN3Me9BoLbF e7k6t4BNzLRwNyDlsI+nxo5nwSqld+CSBG/R7DHltWPJNVKGkFo2iYXKY0SQBqhdV4 shawOFvga8bqw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mgsch2Jn2z6tnC; Mon, 3 Oct 2022 09:18:12 +0200 (CEST) Message-ID: <201b44de-1f97-1b23-1767-970ee00f259c@posteo.eu> Date: Mon, 3 Oct 2022 07:18:11 +0000 MIME-Version: 1.0 Subject: Re: `org-fill-paragraph' (`M-q') in Org Mode source blocks Content-Language: fr To: Ihor Radchenko Cc: Fabio Natali , emacs-orgmode References: <87y1txwgat.fsf@localhost> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= In-Reply-To: <87y1txwgat.fsf@localhost> 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, 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=1664781629; h=from:from:sender:sender:reply-to: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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=XoNsmNn7A8WaNQSNhd9XssFJGDMvaXmZWAKLaPv+b6M=; b=bXyV1oX38fzbA0NrjL02wCt4s/Dr+O2P0R00KBPd2leH6qFAVoawF8uVDialkdRQysXTpz zdF4XlYg8GFarbSidTUS4EngBVtqaq2LxwclmdpFwb4s20uYTx0yivjpE+H2Oek9nS8bHi cmB104NkBMiM/yaF2M/2W0ClSP3YyAAS+11q6se1+6/s67Sw8lEJosFGEmiLqwbYkSBTJW Jyz7lSL1lvY22JC5RrU/F4Ws/hmzf+SnDpgBUQfgzWKQSwTG6OThcIvUtG62RKlEXlJifJ kbCOREG+gz3Cklqlb9JNv4AreMLsr1nK/xb1LNK0UfsxJu0Bfj+42vlQ6T0scg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664781629; a=rsa-sha256; cv=none; b=TAP8auSPEibYfAzzz+9gM+nSXEkLWlsNsAYLXCwQn1HwQ/RJG8H6owGUhfsSd8iu7yvg3T M7OzrlCkLyR1IbqaXrgG/TgkhTKNpZyc6UvvYFy6qi0Fm0vgac/Ifv+xJCc3cllInu3RYq 0mqvy69VLtcTvPZKpRwOMveO93Fo+ISVSnkL5e6mN9TKBFewHUrKDCX8f8lY2kysX0fSVN 4kVWjssOTqIm9p84FA4c4Pvh8z6nIMvjtfknkNLRkUdraj8Q6FKy5hIMhujXEIPZFhGE+j e0WzhHue11HSrWqi175eHT6UCmx/wPIDCBO+S5/GycrPrC1jXdrPHFWT7IB+7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=iw7XbSDH; 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: -5.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=iw7XbSDH; 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: 99A4616474 X-Spam-Score: -5.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: RUzyNNDyZAuN Hi, Ihor Radchenko writes: > I am still getting the described behaviour. > However, it does not happen in Org mode itself. > `fill-paragraph' in emacs-lisp-mode does exactly the observed behaviour. > > Try > 1. emacs -Q > 2. insert > ;; A comment > (+ 2 2) > 3. M-h M-q > > Is it emacs-lisp-mode bug? Or is it illegal to fill-region in source > code buffers? I think the original report is about M-q, not M-h M-q. M-q behaves as expected in emacs-lisp-mode. Currently, org-fill-paragraph will not work properly when called inside src blocks. This can be easily fixed, but probably requires yet another org-fill-paragraph-act-natively variable. -- Sébastien Miquel