From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6LdXK1CRMWPm4AAAbAwnHQ (envelope-from ) for ; Mon, 26 Sep 2022 13:47:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6MUrK1CRMWO7zgAAauVa8A (envelope-from ) for ; Mon, 26 Sep 2022 13:47:28 +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 2F5A819963 for ; Mon, 26 Sep 2022 13:47:28 +0200 (CEST) Received: from localhost ([::1]:55672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocma7-0001wa-1L for larch@yhetil.org; Mon, 26 Sep 2022 07:47:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocmRT-0006Du-1a for emacs-orgmode@gnu.org; Mon, 26 Sep 2022 07:38:31 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:37877) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocmRG-00037p-D4 for emacs-orgmode@gnu.org; Mon, 26 Sep 2022 07:38:26 -0400 Received: by mail-pf1-x42e.google.com with SMTP id a80so6416465pfa.4 for ; Mon, 26 Sep 2022 04:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=6DuIw7zIscfxQmDhhWIX3d5eQkczZIfpr0MaqSyQjO8=; b=l4O2AbLevKfhmzyp+mhhJocZzvx7fL/G20vUSK6XCQOt/zv49NIkA4oeSLoTiZ2IU/ +h+U5xxt780jTNIzBlyK4Q5ybfA40UkVxZyp5BH+k9zXtRCmz2CIMj++MQ9UHN66PNzc LVLXVEmZkDaNODkh/RklzOoy0wMtXUVqqiYwqsqBFtHI52InqUdtHAdcf81xOfSHZici 9JmxOnrtKtmZOBZShu+urI95+aJOXplbXrpCHlUrKHrasJYsZBFrXUw8ehu7d/uY/lvZ L9z+VYF11UWIVFuig8HZzgtHH3bfxbOzAiR5C6lzhAmmzglrY0Hh2K/NjQuUzpc/cUzc B5CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=6DuIw7zIscfxQmDhhWIX3d5eQkczZIfpr0MaqSyQjO8=; b=Fr/OD9jKo/sJx7g3URsrymnW4W+UYGBti89NBGGt2B4qU6A745GCWykr8zwWFkxymb dsbSCR5fKW6SRzsaK7/J78g+trrcuiD670E6G16l3EW1OfoJYXDJm8NZ4DIvBNzOqfyX OIFOHxueBe00/RgA1cJoaHZ9DNO7FnPNoYWP0oOWKeuWb3y9J5i/0K5QVK0kEaWy8d26 L2ORW3T+YorwdiI/LMDu3C19YnaRaFDaqq88KnExtXRyYEN1iXGsNpU4RlZPrfOaPL4c nNOJviqBOLrpuoqIvFIf2tNG8phmrPgOM28sE7KT6bD4vjtSp1VUOjwASCvN+i5W6FNx UNfQ== X-Gm-Message-State: ACrzQf2YpBXVXOT3NhBIV/Y/Prbye4CyjbzlDMroJ3OOAfoXvTyg/xFP U1TNWn081wFTgb/onL2Dw6RuO3dk2zqSrg== X-Google-Smtp-Source: AMsMyM4ANsqmaGf8HmBvDxoVY1slv9GRSDgdqs+pVzyxoWr5dAWcDRsxbmaO0KMoD3hEzbgROwIYZA== X-Received: by 2002:a05:6a00:88f:b0:530:dec:81fd with SMTP id q15-20020a056a00088f00b005300dec81fdmr23409687pfj.64.1664192296903; Mon, 26 Sep 2022 04:38:16 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id b3-20020a62a103000000b00540de61c967sm11848324pff.201.2022.09.26.04.38.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 04:38:15 -0700 (PDT) From: Ihor Radchenko To: Matt Beshara Cc: emacs-orgmode@gnu.org Subject: Should page break (^L) work as paragraph element separator and be included into Org syntax? (was: [BUG] org-fill-paragraph doesn't handle ^L correctly [9.5.4 (release_9.5.4-19-g4dff42 @ /home/matt/Code/emacs/lisp/org/)]) In-Reply-To: <87o7v4iawb.fsf@mfa.pw> References: <87o7v4iawb.fsf@mfa.pw> Date: Mon, 26 Sep 2022 19:39:02 +0800 Message-ID: <87mtamjrft.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42e.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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.29 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664192848; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=6DuIw7zIscfxQmDhhWIX3d5eQkczZIfpr0MaqSyQjO8=; b=VU054qKf0vPG3iA6Orh0gQJUmWEKGbv5mwxd6VWCaQVcX26m+bMaLFLpGQjlVYEjhyvqDu 3t3kHlhV55Gowfx8pqL+7cFdsK9b7L2cCnCLpzGVg5i7m2kHkOgJ9jAhI/rYJSHfNJOLE5 Y3mwFg1GjMk89zT49m/dPioNvQNAWez4VcH/VGEXlM+Sib5TC4KiHX4spbq1zGMOnHttNr 6QSY9cmKP+XpcuOrEVwt3KclQZVHDMwKIz986Y/GPsgbZvWdgKl52QrgbEPWCJIj08t48s blNNlzFnj9BcAlhhYNncgshi7hNjhrrnRH+sx5RGgavrOOalQSeAp6TsB6Cx5A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664192848; a=rsa-sha256; cv=none; b=K3x6+eb14d6Ma5CNF8aR6ykSKSojqBdS57bBQ0yw769giJ0yZaieuCAU7MsN2PgSW+f55f l2x/HynyvfuGAYKtYMKfpO5PWiIk1P/o/POJBKEVK0ENQrGenNxsYI1ejK0ZIShqyOQ/SE gNtfeDmWOhX3Kr6CvRTkVOMfhFGb+4B4VtVuI+QuOyyMsBAtAXOM/yVKiNN1E33OIOz1hi 1IQqEpig60D8YdM8GL0gggsj3bK7WcOwtbpkKnMlnm/TldGNpb2Wkj+pjYbfG/ShFSb0P/ zC5BkBSfrqevc3jl/0dpY0aoKqj1RJzQQcJtZT1+6kunQIbkpYlJxnjeiPrQwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=l4O2AbLe; dmarc=pass (policy=none) header.from=gmail.com; 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: -0.19 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=l4O2AbLe; dmarc=pass (policy=none) header.from=gmail.com; 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: 2F5A819963 X-Spam-Score: -0.19 X-Migadu-Scanner: scn1.migadu.com X-TUID: Sx+I0zariDH4 Matt Beshara writes: > =E2=80=98org-fill-paragraph=E2=80=99 does not correctly handle ^L charact= ers=20 > (a.k.a. form feed, C-q C-l). It should treat them as paragraph=20 > separating whitespace, but instead treats them as any other=20 > character which would appear in normal text. Here is an example=20 > to demonstrate the current behaviour: > > abc def > ^L > ghi jkl This may or may not be a correct expectation. Please remember that Org mode is a markup language. ^L is not a part of Org specification for paragraph separators. According to https://orgmode.org/worg/dev/org-syntax.html#Paragraphs, paragraph boundaries should either be empty lines, or beginning of other Org elements. > In org-mode, with point at the beginning or the end of the first=20 > or last line, doing =E2=80=98org-fill-paragraph=E2=80=99 (M-q) should do = nothing,=20 > because the lines are already shorter than the fill-column. What=20 > really happens is that I end up with one line which looks like: > > abc def ^L def ghi Which is correct wrt current Org syntax specification, although I do agree that it is counter-intuitive. Dear all, Should we add page break (^L) to our syntax? It sounds like a reasonable addition for a text-based markup. > In text-mode, =E2=80=98fill-paragraph=E2=80=99 does handle ^L characters= =20 > correctly, and pressing M-q anywhere in the first example results=20 > in no change being made to the buffer. Indeed. That's because text mode syntax is treated ^L specially. --=20 Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92