From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#24172: 25.1; Doc of parse-sexp-ignore-comments: what does a value of nil mean? Date: Sat, 23 Oct 2021 10:32:38 -0700 Message-ID: References: <874m6xqxy9.fsf@web.de> <874l37fqpl.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31048"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Michael Heerdegen , 24172@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 23 19:33:17 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1meKtR-0007tx-DB for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 19:33:17 +0200 Original-Received: from localhost ([::1]:46310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meKtQ-0002Y3-8b for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 13:33:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meKtE-0002Pl-2L for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 13:33:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1meKtC-00025Z-8Y for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 13:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1meKtC-0002KT-5N for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 13:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Oct 2021 17:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24172 X-GNU-PR-Package: emacs Original-Received: via spool by 24172-submit@debbugs.gnu.org id=B24172.16350103678926 (code B ref 24172); Sat, 23 Oct 2021 17:33:02 +0000 Original-Received: (at 24172) by debbugs.gnu.org; 23 Oct 2021 17:32:47 +0000 Original-Received: from localhost ([127.0.0.1]:37090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meKsx-0002Jt-9n for submit@debbugs.gnu.org; Sat, 23 Oct 2021 13:32:47 -0400 Original-Received: from mail-pj1-f54.google.com ([209.85.216.54]:52107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meKsu-0002JW-Rn for 24172@debbugs.gnu.org; Sat, 23 Oct 2021 13:32:46 -0400 Original-Received: by mail-pj1-f54.google.com with SMTP id u12so1081851pjy.1 for <24172@debbugs.gnu.org>; Sat, 23 Oct 2021 10:32:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=upMHg7dMEQWiOs6iYcZRhEUJeQ/mRZttcqMZwmOclaQ=; b=Z8sxQne71kjOb7GfNjTFCNeTdQyhJm6xZ+jQqjSxvqazcb3BAmV3LMvJ8asmAaSPFI HdQGXSK4zWIZ6YtsY/cDXYnWhaofMH/SXNTIJuyJK/J7GUIjumNCTLAE5swTqSXjYHqe hkS6vuTv54e6LG4CIN4Bm2oYua5g7IPOExgs2VKDXRvm1JME17218bKkJC1rGD7xPpYU nKJpAgF5K1X1Z79Fm178rLnr/Il1EfvMH95aE+EA6NrGKmMSv6QcnZOaqDI8C/C9WQQ8 3b5hJ/JotEWGxNTFcPglquahLFSjOR6LdtRMaHnkpQfZ5n7IqYv1g7P8Eyy0dbZSweeZ x0hQ== X-Gm-Message-State: AOAM533gbmmt0EGgXwL0UW/PRo2IEY866aLxZJN7Uv+AD6lMtr+HNUU6 H6FoS/bOHcoKtT6gqUcIkTTBfxMFxGILtbRUGVg= X-Google-Smtp-Source: ABdhPJyHaSYnehE9u5A60EXGfAliJqbY+O3aCKy0m8bBdxocyijv+r51rO+TO5KyTWys280pwz21WzAiIifVS5WW/P4= X-Received: by 2002:a17:902:c7c3:b0:140:2033:662c with SMTP id r3-20020a170902c7c300b001402033662cmr6567638pla.32.1635010359234; Sat, 23 Oct 2021 10:32:39 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 23 Oct 2021 10:32:38 -0700 In-Reply-To: <874l37fqpl.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Sat, 27 Jul 2019 17:21:42 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:218008 Archived-At: Lars Ingebrigtsen writes: > Michael Heerdegen writes: > >> in the docstring of `parse-sexp-ignore-comments' (or at least in the >> manual), I miss a description about what a value of nil exactly means: >> How are comments treated then? Are they treated as separate units that >> can then be parsed as well, but separately from code, or are they treated >> as indistinguishable from code? >> >> For example, if parsing starts from within a comment, and parsing finds >> the end of the comment and is not yet finished, is parsing just >> continued inside the following code, or does it fail? > > After doing some testing, it seems that if it's nil, the commands > affected by the setting just treat the commented-out text as if it > wasn't commented out. > > So the answer to your last question seems to be "yes". > > ;; (foo > > (bar zot)) > > However, pretty much the same thing happens with a non-nil value, too -- > with point before (foo C-M-f will advance past zot)). > > So it doesn't treat comments as whitespace, really -- it only does that > if point is outside (before, at the end of a line, etc) the comment to > begin with. Seems like you could write an essay about it, but perhaps > it's not worth listing the eccentricities here which I guess could change. So is there anything more to do here, or could this be closed? I can't see anything actionable from reading this thread.