From unknown Tue Jun 17 20:15:28 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#60034 <60034@debbugs.gnu.org> To: bug#60034 <60034@debbugs.gnu.org> Subject: Status: comment character for org and python includes a space Reply-To: bug#60034 <60034@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:15:28 +0000 retitle 60034 comment character for org and python includes a space reassign 60034 emacs submitter 60034 Heime severity 60034 normal tag 60034 wontfix notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 13 10:28:14 2022 Received: (at submit) by debbugs.gnu.org; 13 Dec 2022 15:28:15 +0000 Received: from localhost ([127.0.0.1]:32841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p57CY-0005EU-Mq for submit@debbugs.gnu.org; Tue, 13 Dec 2022 10:28:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:46752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p57CW-0005EO-PL for submit@debbugs.gnu.org; Tue, 13 Dec 2022 10:28:13 -0500 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 1p57CW-00069F-Do for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2022 10:28:12 -0500 Received: from mail-40132.protonmail.ch ([185.70.40.132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p57CU-0007Sg-UV for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2022 10:28:12 -0500 Date: Tue, 13 Dec 2022 15:27:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1670945284; x=1671204484; bh=dc95owQI4O+V9+gjypZQ7FuPWcfRrrfV76doYB39Aa4=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=PuMLc3H01lqoVY6+kgT3K/cGg+ldDAwdG3CKXfyIfz8tD+QLEbL32V/oa9o+X8asg mxv3PHFoYx+wOnUVpdulw8eMmR2MTmjndE77LWepY1Yf8c60Mzk+7Rl2eJqLHF9kzN rkzc3QUpmny0rP0qXZ9mJ/h1vk2OzIZ2JTCHkPA814lsaIMmFh1zyco00lLNjefsVq H+qojXjq96Xsd9mBxIXP3iF2cflQnAcl15QSEwXMJ/t9hLFK9kArvKGGqYtfD2uHEY nQS/Tt05mYVymJT6vdWq4R+LlEhfwLdOEM9lEmjGwdc6ZjbWHab6NY4poNnCZZ+W2p VPhlgyjPK4qfw== To: "bug-gnu-emacs@gnu.org" From: Heime Subject: comment character for org and python includes a space Message-ID: Feedback-ID: 57735886:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.132; envelope-from=heimeborgia@protonmail.com; helo=mail-40132.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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? From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 13 13:36:54 2022 Received: (at 60034) by debbugs.gnu.org; 13 Dec 2022 18:36:54 +0000 Received: from localhost ([127.0.0.1]:33922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5A98-0003gP-Ih for submit@debbugs.gnu.org; Tue, 13 Dec 2022 13:36:54 -0500 Received: from mail-oo1-f43.google.com ([209.85.161.43]:42641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5A96-0003gE-1u for 60034@debbugs.gnu.org; Tue, 13 Dec 2022 13:36:53 -0500 Received: by mail-oo1-f43.google.com with SMTP id v62-20020a4a7c41000000b004a0a214dfbaso2512081ooc.9 for <60034@debbugs.gnu.org>; Tue, 13 Dec 2022 10:36:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date:message-id:reply-to; bh=Of82JzW4PTFGbHLxMOLOVUKCgfcC9gkHEnBxdtcmRrs=; b=iHMPN+Q/VTqHPdSo5LsAvCPNioqSb4BdqJG+7m8W6qQa7//VbwM/xPbS221gAWKAwY hDhHjR4ZmrH8tyQ28+5gnczMBbw1pG0L6wEzvOB5ahMe7zZJlafDWQmf3LkusiJ5K/y6 s0gVMe/1cBPtxuTNj+ie0CvBw8JrBdzKIfzTEpibcyiXyA2a6FrHdFS06oU+UZ9NaZl4 JiSOPDFBtn4CdUxWlTLyXWiYDwLKh5bF0qULqPqk4PihPrScPqpQ1bOef8XanhkAiXe5 kMBdW6qsCjmZ+I0p+KF45xxlplD03bobfa9s90L93HVyHJoPJ1Adc/FYx1q0xU0vMqTU SuJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Of82JzW4PTFGbHLxMOLOVUKCgfcC9gkHEnBxdtcmRrs=; b=lmPAFqK1ZTUuxVCJAKnIMbYAG/yDRfjw5yvf/MhUJoYbjhlDrST7Rf0qC83oG4dlLR V6Ya2udqWlmIzvJqdyU99zi278gH0HIuuuaWrr4h1ScxNDUQIAg/ME3O2pAZ9xwvFx3A WcePczgddItDzsSBJAXpZjf+8hdKdacW4JR7nA9ITlUsUpTj03TLJR6fV4IZ+DvDfH3Q KhCEIcNfKkb68ljAgn7+XFFq+4ttgAe5HL/eF65mFT9JMSLyHn3BZe7TeWRiZJ5tvFIQ YTVO+AAlh6K5hPltzRTrmKCJto9eq2qhWKQnxF9PeMrw/blL8k8yAzW5RDRtRMbAA3zZ ypOQ== X-Gm-Message-State: ANoB5pkATUymC5J1DmiS7MNkZe7anPCMRsUm/V+dkzfCqbgFl6JB+RYG cKR7KJwmIKETkv/rY0R628XV9VPwLkmQ7mk+lyo= X-Google-Smtp-Source: AA0mqf6wF1JIIqPSMjKoL1/4cZgJ09UkAh1uqMzZgrOcwyFNxKgn5fijV+JfWjjkc0QIDtHzGCY2VytCyzc8ITmzvtw= X-Received: by 2002:a4a:972e:0:b0:4a3:5a51:ba94 with SMTP id u43-20020a4a972e000000b004a35a51ba94mr4583276ooi.5.1670956606358; Tue, 13 Dec 2022 10:36:46 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 13 Dec 2022 10:36:45 -0800 From: Stefan Kangas In-Reply-To: References: X-Hashcash: 1:20:221213:heimeborgia@protonmail.com::/0CDRBt8uSnLeOMY:Itll MIME-Version: 1.0 Date: Tue, 13 Dec 2022 10:36:45 -0800 Message-ID: Subject: Re: bug#60034: comment character for org and python includes a space To: Heime , 60034@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 60034 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 60034 + moreinfo thanks Heime via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > 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? Could you explain which variable(s) you are looking at? Are you reporting a bug in the behavior of python-mode and org-mode? If so, what is it? From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 13 21:35:51 2022 Received: (at 60034) by debbugs.gnu.org; 14 Dec 2022 02:35:51 +0000 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 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 Date: Wed, 14 Dec 2022 02:35:40 +0000 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== To: Stefan Kangas From: Heime Subject: Re: bug#60034: comment character for org and python includes a space Message-ID: In-Reply-To: References: Feedback-ID: 57735886:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 60034 Cc: 60034@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ------- 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\\(\\[.+\\]\\).*$")))) From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 03 05:39:02 2023 Received: (at control) by debbugs.gnu.org; 3 Sep 2023 09:39:02 +0000 Received: from localhost ([127.0.0.1]:39526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcjZO-0001jz-Bk for submit@debbugs.gnu.org; Sun, 03 Sep 2023 05:39:02 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:50498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcjZN-0001jZ-An for control@debbugs.gnu.org; Sun, 03 Sep 2023 05:39:01 -0400 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4ff8f2630e3so880679e87.1 for ; Sun, 03 Sep 2023 02:38:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693733925; x=1694338725; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=5chh1Hmh76dd/Ev7npceH5+RKdERwlQVmRstYRl6tZU=; b=lS4rb4bPiAQT9ZjUzy3B6u8hFd4lKPdYRToU7SyzF6U5nv3xfQF6YxpSb/UFeFtk31 5kE8fEE5LVFN47IGksyS+UJEehXFfozeYRYh+KPd4a1ppOmRvr/W7C9T83QWpAUqIv4c lZ6rNoorFY83NlxnoK+v6ehU+gQMlWz5Xb8psekkOmDZRM7sfW/cIKMrqMTdsWd9g/J9 gLV2sn44LRDkKu2b2/FrSzGiXwgX0SL9q/eUzqFNl5F4m/oe++Ijy56jFomiNUiETrQd h4f5nmcgTRcQHBITw8NfTJtjp3YXMSKjO9extM0XheUGw9zUZCUPAh+f5ufk301aEQ/a sRNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693733925; x=1694338725; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5chh1Hmh76dd/Ev7npceH5+RKdERwlQVmRstYRl6tZU=; b=ZeetfrhWOOt/JPgNzMVI5BNtBTP7tmpVr6vU5BNh2tR75ksReQJzidExH02XLw6HAC hGCHlV8DpkzJN0U0ydIuiK/YXfD9+klmQ9nDYXxPfkiILeiDw3aiJaLL0KRsc1XD8hR9 04RIpSGdT8RTPrC0YS+SSm6jJvS5pdw00OPm99bVu745i7a2SnmMnbBjE8Ckh8Df8pNB SUVZGlmTbXloJJ6ilERH9WeDK8hpZ6fDtSVx5pUNcTFqwvOece8dCsAvHnUGoTwufKK+ Wau1E4cz0wURtMsa+zEqHc+VcG4/1+7HYn1niRHZnjD/HOVCZiQGVYrdc4lYn00M/qCT 74tg== X-Gm-Message-State: AOJu0Yz/qw0XGjTdasZ3qs4ofO4G2Fc3G3vdA9RMG1KCYr8/TwiJBTi7 V4ON9vn5mOuS9eUgpsLVTFqOKjj0u/l0CuyfJxGQe39EjXk= X-Google-Smtp-Source: AGHT+IGDgYleYg8yv+9SUS6COSR64XFBYH2Ky2Y3OPeaX2Hq7r3tYHLOdfz7ykvvp32tWhlimFTbsf9kCwaViXmDtgo= X-Received: by 2002:ac2:5e7a:0:b0:4fb:bef0:948e with SMTP id a26-20020ac25e7a000000b004fbbef0948emr4100188lfr.5.1693733924968; Sun, 03 Sep 2023 02:38:44 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 3 Sep 2023 02:38:44 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Sun, 3 Sep 2023 02:38:44 -0700 Message-ID: Subject: control message for bug #60034 To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 60034 - moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 10 14:48:01 2023 Received: (at 60034) by debbugs.gnu.org; 10 Sep 2023 18:48:02 +0000 Received: from localhost ([127.0.0.1]:51299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfPTV-0000iU-7F for submit@debbugs.gnu.org; Sun, 10 Sep 2023 14:48:01 -0400 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]:62841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfPTR-0000hO-Ia for 60034@debbugs.gnu.org; Sun, 10 Sep 2023 14:47:59 -0400 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2bcda0aaf47so57950961fa.1 for <60034@debbugs.gnu.org>; Sun, 10 Sep 2023 11:47:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694371668; x=1694976468; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=jnWrN5b5LNBLLAgfaAHUzi36iXtCMWVDDFh+6lqgb7E=; b=cLdLTNpmhT/TNiAaF2v2s1pE3hp3OepYdcpx5GAxYCONZgqM+J1qiR0NphhfltACSO dT11931Yo0RnxCFKTAQQkTOOj0OiSgW+08dDP5dN9xamVbxbw947IqcXjo4KqLzFRKtB FK0MqALNiGZHNPHCYYvMx1K1Q4GJf3t4MYRp86v3bIx5C3HQEzGVNhNOPUQXrmkmGyL/ tce1hIfpyktWE/Jda7Wt3ds045MaP7bNG4eUy/Prwv6oYkw7xr/LA1B0ZwthdRsI4ozj ylK/LP5P161qt2X0E1tNTAIP09DNhBclsXdmcvRWYujMUSkRTeAvbogb0KndMbDFaoa0 H8jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694371668; x=1694976468; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jnWrN5b5LNBLLAgfaAHUzi36iXtCMWVDDFh+6lqgb7E=; b=WjQ0DwX8Nm24Db1h9jIjCsqCh26eEZx9LEDyd3yftO7VRFY1jrjA6wvTG9VS9F+Wuj 2sO4SJ8v/RARyJ75DsR6rF3ID1FS5gtUI8cn2FKNyS2kfubKErKAYICxHyUuGZqErcFu cUik5BbBm5r0dMofAC5YNUwoMlc3YHqCp2hYdXfVEvc5LWdTXiCVXqJBYX3o3ieo3mlH LfJ8ETx0sGhn0tXxN9ou04HMdJfuOr2e+8L5GEJVRxFjXmLeGPVpnoKwDcNFxIIZznS9 NLlKCcrZklY7G6VsRA4G7roYn6QUp7sI7TWeNlwN9H3nUgWsQXtHeIWnlPaTNyHwav9N WRTA== X-Gm-Message-State: AOJu0YzNrH0+mwIRdJKjhZp3X4QjkXY6Tgblpmq4l+e3cIJKT5bms+PP SLThF0I8qMxv8HiVq9606my666iJDt34fYfGskm9uAJ7 X-Google-Smtp-Source: AGHT+IHJvxkHidUiZ663fwEr/mjZOM6vC4No5pnDKQcmE4hUOWRBlEffayoTuxkrt5j/B+Q1w2ITg0B9e+cXTuGQYUw= X-Received: by 2002:a2e:b992:0:b0:2bf:7e69:9846 with SMTP id p18-20020a2eb992000000b002bf7e699846mr1073109ljp.9.1694371667763; Sun, 10 Sep 2023 11:47:47 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 10 Sep 2023 11:47:47 -0700 From: Stefan Kangas In-Reply-To: (Heime's message of "Wed, 14 Dec 2022 02:35:40 +0000") References: MIME-Version: 1.0 Date: Sun, 10 Sep 2023 11:47:47 -0700 Message-ID: Subject: Re: bug#60034: comment character for org and python includes a space To: Heime Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60034 Cc: 60034@debbugs.gnu.org, Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Heime writes: >> Heime via "Bug reports for GNU Emacs, the Swiss army knife of text >> editors" bug-gnu-emacs@gnu.org writes: >> >> > 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? >> >> Could you explain which variable(s) you are looking at? >> >> 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. It seems like we do it both ways in our sources, so I'm not sure if it matters, or what is the correct way. It's not documented in the `comment-start' docstring either. Perhaps it's better to just leave it out unless it is a part of the language grammar, but I don't know if it would have any adverse effects. Stefan, what do you think? > Another difficulty has been that in "c-mode", "comment-start" returns > "/*" with no possibility to get the alternative "//". Please report this as a separate bug report, and include the use case you're looking at with all the details. > (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\\(\\[.+\\]\\).*$")))) From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 10 22:46:54 2023 Received: (at 60034) by debbugs.gnu.org; 11 Sep 2023 02:46:55 +0000 Received: from localhost ([127.0.0.1]:51700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfWww-000347-J9 for submit@debbugs.gnu.org; Sun, 10 Sep 2023 22:46:54 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:12225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfWwu-00033s-VI for 60034@debbugs.gnu.org; Sun, 10 Sep 2023 22:46:53 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A5C7844490A; Sun, 10 Sep 2023 22:46:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1694400398; bh=y5V0fqcRhX4hM/wJJvRCQsBEXpVUXlJ2ZujisRMlcvs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=nklNtkQVTvkHfMm3nPdg59l3VFlFrowTCvq2YiOwOWvwsmAnkyN4cYWEjc6Ms/e7H RgAF6Gr9iG0vZgEBP9sJsWNP63A6Wh3V7IoqDGCCImizSNX7M+N4s9h8fRoXVKVfdL EGF/DQwZDgHHM/nLvGjupN8jZR7tE0pZCyYnEoUrXriUqgRo3Lfr3EOH+iljnHko7j RUQwnApeD9GxIjYfZZ5aQhxY/cwBxwup6wJpZPrt1D1Xyb9b07i4BzTU7ngedfvR1U 89jsHMdU0dOSCzC7hNrfPIS5cIGGigacEGZGAstEm9JEtT36K53dC4SQ5rB8gdsdfT TlSVpcyhQUGMg== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2AFB9444908; Sun, 10 Sep 2023 22:46:38 -0400 (EDT) Received: from pastel (unknown [104.247.229.91]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id EB1B51201DD; Sun, 10 Sep 2023 22:46:37 -0400 (EDT) From: Stefan Monnier To: Stefan Kangas Subject: Re: bug#60034: comment character for org and python includes a space In-Reply-To: (Stefan Kangas's message of "Sun, 10 Sep 2023 11:47:47 -0700") Message-ID: References: Date: Sun, 10 Sep 2023 22:46:37 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.021 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60034 Cc: 60034@debbugs.gnu.org, Heime , Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >>> > 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? FWIW, both options are valid and they lead to different results when you do `M-;` (as well as as when `-comment-add` is 0). E.g. ELisp uses ";" rather than "; " so that you can do `M-; ; hello` to add a comment of the form `;; hello` at the end of the current line. In modes where using repetitions of the comment char is unusual (typically because indentation rules don't pay attention to the number of consecutive comment chars), it's more common to add a space at the end of `comment-start`. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 11 04:24:19 2023 Received: (at 60034) by debbugs.gnu.org; 11 Sep 2023 08:24:19 +0000 Received: from localhost ([127.0.0.1]:52078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfcDT-0000Az-G8 for submit@debbugs.gnu.org; Mon, 11 Sep 2023 04:24:19 -0400 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:54603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfcDO-0000Ab-O1 for 60034@debbugs.gnu.org; Mon, 11 Sep 2023 04:24:18 -0400 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2bce552508fso67715671fa.1 for <60034@debbugs.gnu.org>; Mon, 11 Sep 2023 01:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694420645; x=1695025445; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=IzIVNxNwv7YT6Apjx4Yol87j/a6TzwZ/Vthntrrb9jY=; b=RAADPx60rrQ6e7Mda81Ra5zpm1a5k8NyW1zEgEji8npUsl6tc7rNYdBlVrcGhNoQqb wT2Kwujo/ACu85YMtdoETZ8qgw1saMxVu78/JSD6m7jBfKH/SZ5Mp6OoXirmN9qpIeht BC2O0koC+6MkpVrjGJ6jrVFJ2f7+gWc0RGOK2GJrsyprqrzSSmx/MzUPnIPuQ/D3uuld Tt/g4qidi/qAR1yy6BIc3qQqnJV3yqDMDLXZWnXz/TYhPI9WlJOYJh/OiL+BACchW7Va mJ687Sb29hodovL9pt3bTPmp80kmYa4oiUKEjoX6F7gDmNjbd4Sw1zGOgN/Q7yUHG5Yx ToKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694420645; x=1695025445; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IzIVNxNwv7YT6Apjx4Yol87j/a6TzwZ/Vthntrrb9jY=; b=EU8qkQt82CsFhsTZRAu+zQMM6oIgie7yOCkegieFEfeCRJMaVXjITDLODdxfCJfJj+ 81b12rAVjDK8VOwMV34LW3JXIsoJJ+tTbu0567I2XT70LbRDIarMwFXE4Mt+J9j2efz/ yiBz1qKW9w3DJsNVHYw0YVGohivRH8heG09N8KfYDZ7992DcGmUU0rAMbf4PJsK31op6 Y+uey1Hl3QUfkVYJUIn0qZB2BApzCbeN9WAOvawqjxbLzlVbrycwsd69eNld/S9MYu8s K8ZVTLJOdlPrKHTGZYm670aHXP2QziMlCQP3FOcjkP1el4i19xO2X0r9mx3oEqR/5tUb z5EA== X-Gm-Message-State: AOJu0YwjxlQTpJwvWeMZ0NAImcCNUgTGBk675RIFY3/NS0Rx0V0lcQrs J6HHT8r8HFma9TPDY7T0HEMXy97Iw8J8wiL/tyB6Zqqo X-Google-Smtp-Source: AGHT+IH8Jy3myG5vYDisci+14efNX0hwKY9OnIbQS7i2EvKc5DjY6n2IFGmrp+K29lNtTJZhqTtMxLkqDo8slZP+vT0= X-Received: by 2002:a2e:800c:0:b0:2b6:a804:4cc with SMTP id j12-20020a2e800c000000b002b6a80404ccmr6930248ljg.53.1694420644662; Mon, 11 Sep 2023 01:24:04 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 11 Sep 2023 01:24:04 -0700 From: Stefan Kangas In-Reply-To: References: MIME-Version: 1.0 Date: Mon, 11 Sep 2023 01:24:04 -0700 Message-ID: Subject: Re: bug#60034: comment character for org and python includes a space To: Stefan Monnier Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60034 Cc: 60034@debbugs.gnu.org, Heime , Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 60034 + notabug wontfix close 60034 thanks Stefan Monnier writes: >>>> > 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? > > FWIW, both options are valid and they lead to different results > when you do `M-;` (as well as as when `-comment-add` is 0). > > E.g. ELisp uses ";" rather than "; " so that you can do `M-; ; hello` to > add a comment of the form `;; hello` at the end of the current line. > > In modes where using repetitions of the comment char is unusual > (typically because indentation rules don't pay attention to the number > of consecutive comment chars), it's more common to add a space at the > end of `comment-start`. Thanks, so I don't think there's anything to fix here. If someone needs the space-free version, they can use something like: (string-remove-suffix " " comment-start) So I'm closing this as a wontfix. Sorry. From unknown Tue Jun 17 20:15:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 09 Oct 2023 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator