From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier 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: Sun, 10 Sep 2023 22:46:37 -0400 Message-ID: References: Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32473"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 60034@debbugs.gnu.org, Heime , Stefan Monnier To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 11 04:47:17 2023 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 1qfWxI-0008Du-Da for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Sep 2023 04:47:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfWx2-0003wV-2H; Sun, 10 Sep 2023 22:47:00 -0400 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 1qfWx0-0003w2-EY for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 22:46:58 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qfWx0-0006GP-6I for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 22:46:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfWx3-00034S-V6 for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 22:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Sep 2023 02:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60034 X-GNU-PR-Package: emacs Original-Received: via spool by 60034-submit@debbugs.gnu.org id=B60034.169440041511792 (code B ref 60034); Mon, 11 Sep 2023 02:47:01 +0000 Original-Received: (at 60034) by debbugs.gnu.org; 11 Sep 2023 02:46:55 +0000 Original-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 Original-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 Original-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== Original-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) Original-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) In-Reply-To: (Stefan Kangas's message of "Sun, 10 Sep 2023 11:47:47 -0700") 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:270020 Archived-At: >>> > 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