From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Discrepancy between documentation and implementation regarding comments Date: Sun, 27 Oct 2019 14:02:07 -0700 Message-ID: References: <87eeyyy013.fsf@thb.lt> <877e4qq7aq.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56083) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOpfw-0005t8-Uz for emacs-orgmode@gnu.org; Sun, 27 Oct 2019 17:02:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iOpfv-0002xt-Pj for emacs-orgmode@gnu.org; Sun, 27 Oct 2019 17:02:12 -0400 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:43506) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iOpfu-0002wd-TD for emacs-orgmode@gnu.org; Sun, 27 Oct 2019 17:02:11 -0400 Received: by mail-lf1-x132.google.com with SMTP id v24so6207046lfe.10 for ; Sun, 27 Oct 2019 14:02:10 -0700 (PDT) In-Reply-To: <877e4qq7aq.fsf@alphapapa.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Adam Porter Cc: emacs-orgmode@gnu.org beware # at eob with no newline. On 10/27/19, Adam Porter wrote: > I agree with Robert that "whitespace" includes newlines in "Emacsland." > For example, with this document (the second "#" has a newline > immediately after, no spaces or tabs): > > #+BEGIN_SRC org > foo > > # comment > > bar > > # > > buzz > #+END_SRC > > This code matches both lines that begin with "#": > > (re-search-forward (rx bol "#" (1+ space))) > > But this code only matches the first one, because "blank" only matches > "horizontal whitespace": > > (re-search-forward (rx bol "#" (1+ blank))) > > So I think Pandoc is technically at fault here. However, outside of > Emacs's own context, I can see how the the documentation could be > misinterpreted in this case, so it's hard to fault them too much. :) > > > -- The Kafka Pandemic What is misopathy? https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html The disease DOES progress. MANY people have died from it. And ANYBODY can get it at any time.