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#60034: comment character for org and python includes a space Date: Mon, 11 Sep 2023 01:24:04 -0700 Message-ID: References: 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="36600"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60034@debbugs.gnu.org, Heime , Stefan Monnier To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 11 10:25:20 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 1qfcES-0009HJ-BM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Sep 2023 10:25:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfcE8-0005YS-Iv; Mon, 11 Sep 2023 04:25: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 1qfcE6-0005Y8-QF for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 04:24: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 1qfcE6-0006H4-I5 for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 04:24:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfcEA-0000CF-77 for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 04:25: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: Mon, 11 Sep 2023 08:25:02 +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.1694420659686 (code B ref 60034); Mon, 11 Sep 2023 08:25:02 +0000 Original-Received: (at 60034) by debbugs.gnu.org; 11 Sep 2023 08:24:19 +0000 Original-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 Original-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 Original-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) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 11 Sep 2023 01:24:04 -0700 In-Reply-To: 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:270029 Archived-At: 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.