From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#60034: comment character for org and python includes a space Date: Wed, 14 Dec 2022 02:35:40 +0000 Message-ID: References: Reply-To: Heime Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20065"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60034@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 14 03:36:28 2022 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 1p5HdE-00054Z-GS for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Dec 2022 03:36:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5Hcz-0001hp-TF; Tue, 13 Dec 2022 21:36:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5Hco-0001hH-3z for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2022 21:36:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5Hcn-0006Ez-Rj for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2022 21:36:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5Hcn-0000aN-JF for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2022 21:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Heime Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Dec 2022 02:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 60034-submit@debbugs.gnu.org id=B60034.16709853512245 (code B ref 60034); Wed, 14 Dec 2022 02:36:01 +0000 Original-Received: (at 60034) by debbugs.gnu.org; 14 Dec 2022 02:35:51 +0000 Original-Received: from localhost ([127.0.0.1]:36110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Hcd-0000a9-9t for submit@debbugs.gnu.org; Tue, 13 Dec 2022 21:35:51 -0500 Original-Received: from mail-4319.protonmail.ch ([185.70.43.19]:51835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Hcb-0000a3-6W for 60034@debbugs.gnu.org; Tue, 13 Dec 2022 21:35:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1670985342; x=1671244542; bh=D0bIGMMejQLs5yphLmNvfaRLy++w+lTirl6SJPWKUZQ=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=I8JxGHlWycX8AKlVdrSKDBxlCMffq1MLN5OZMOTgeM2SG93RIoXjXsY+RJA8t4YmZ u82QuZSlj8g1qZ6NH0isCXp9IXOxAgN6n8CuZqP7riiytf6IXPcpdACfflK0zE6Bic NSl9WGnPfqAYL3COMrbG/OaEV1AIRUv2aO/REDAL06IBH0GoFfxNzcsItTWmTaMxSl m3C2jskM9+jNGXP8bS2AHJgDet7vzCwnEasFh+srsmyiyxukxdNugBpPK1UkpFz7o6 mBSlnzZOCbt25+zOTDJ49YyKte1tQCszMtcm/UisQxuhq4u1VB63XsQdwHmBuDJsle YsYgX1xjTGwrg== In-Reply-To: Feedback-ID: 57735886:user:proton 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:250911 Archived-At: ------- Original Message ------- On Tuesday, December 13th, 2022 at 6:36 PM, Stefan Kangas wrote: > tags 60034 + moreinfo > thanks >=20 > Heime via "Bug reports for GNU Emacs, the Swiss army knife of text > editors" bug-gnu-emacs@gnu.org writes: >=20 > > How is it that the comment character for org and python include a space= "# ", when > > for all other languages it is only a single character? >=20 >=20 > Could you explain which variable(s) you are looking at? >=20 > Are you reporting a bug in the behavior of python-mode and org-mode? If > so, what is it? It is about "comment-start". I am constructing a "regexp" for use with hi-= lock mode to highlight certain comments. For elisp I am matching ";; [Text] More" The regex is adapted for the particular programming mode. Another difficul= ty has been that in "c-mode", "comment-start" returns "/*" with no possibil= ity to get the alternative "//".=20 (defun tegor () "TODO." (interactive) (let ( (fm (format "%s%s" comment-start comment-start)) ) (message "fm: %s" fm) (message "kmcategor: %s" (format "%s%s%s" "^\s*" fm "\s\\(\\[.+\\]\\).*$"))))