From unknown Tue Jun 17 01:47:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70804: 29.3.50; Feature request: Allow setting INITIAL-INPUT in comment-normalize-vars when comment-start is nil Resent-From: Daan Ro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 May 2024 16:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70804 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 70804@debbugs.gnu.org X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.171501344126010 (code B ref -1); Mon, 06 May 2024 16:38:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 May 2024 16:37:21 +0000 Received: from localhost ([127.0.0.1]:38976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s41L7-0006lS-6P for submit@debbugs.gnu.org; Mon, 06 May 2024 12:37:21 -0400 Received: from lists.gnu.org ([2001:470:142::17]:47616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s41L3-0006lM-9F for submit@debbugs.gnu.org; Mon, 06 May 2024 12:37:20 -0400 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 1s41KY-0007Rk-4g for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 12:36:47 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s41KT-00070n-RD for bug-gnu-emacs@gnu.org; Mon, 06 May 2024 12:36:43 -0400 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1e9ffd3f96eso14950215ad.3 for ; Mon, 06 May 2024 09:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715013397; x=1715618197; darn=gnu.org; h=mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=YLyN0Vs65ravXqY28LynGF54eQ82chqPrzyLIBvq1os=; b=impvUqE/ay2zbNbp+G9iDMOEj6bJCpVi7WT2YDaTVIkEcfUT02mWT9B85nf0FII5KT mQgqcogm/8BVdq4io+/YHaC1zcacAKXOZZpdyICHIKdJ209wjRZLX+QpEmKTpsBZ/HSb m/bis2gPTtSsuadzL+VQhbtIjhY1gJ05gG94LTfVxKN7wqMUftT8/grahzpkezDuzLfl NxO4b1jch/OfwCWigvi+b3+BDNhWmsSMYRF8pgzEGDepBASUDdml1J40JCtT/enHJaEI 8PuP/VNe+KGMaVvjmz/bIFnjTwzY1vsg8IsxKsugiB9sD6priOho63buosWGvxtIwCct aUYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715013397; x=1715618197; h=mime-version:subject:message-id:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=YLyN0Vs65ravXqY28LynGF54eQ82chqPrzyLIBvq1os=; b=nCHJnFJd1ENS4RSx0USn2ZmVVYD2MCj6FDdpRdZCEOtf6vob4+snTMWaPZvCrVq8fW Ci/3PB4YnSVJ7Zj7OPH1L1ipZCqXitOr+O0CQxCpyfIdGofyRMSymIZh/xmUInABUhgF PqrQVa6D/gxeDDaZWp0IjzT7EBnoVXGLVHG0f8idgIn0ATvZ7o2E4KsDUXo4NuoSnY+I 5KQL9R0u5QD56xgYa7wj7PjvrUxRiyUd+o+ZfdnkKzbeSaPXiSB6t2WhYKelY2ipEV94 yEhpudshpWcEW5rep7XNjsYcCBAnHL0VMAkBijpuLL7vVLDqqTFntaGfVxKy22cxCoVA 2Qog== X-Gm-Message-State: AOJu0YyLcTmDU3KZdI0yKUTdftFYzYbUCmn9gKEHMfcYuGIuptK2ciyo i13Slw3WZo73NS3J2PVNl3xFRLcBwNz5RQP26ACCSQhgWFtbkGWwAmZ95g== X-Google-Smtp-Source: AGHT+IGff8+xpbDjglGMszBGyXRx4lzrGacUkH56Q1eFleEgNqjotMRMYxzRfW9B9ucNUDPje1H1dA== X-Received: by 2002:a17:902:e747:b0:1e8:b81d:e193 with SMTP id p7-20020a170902e74700b001e8b81de193mr12926203plf.12.1715013397043; Mon, 06 May 2024 09:36:37 -0700 (PDT) Received: from dan-laptop ([2405:4802:9380:b03a:e84e:4cab:82f5:a881]) by smtp.gmail.com with ESMTPSA id l12-20020a170903244c00b001e511acfd0esm8472330pls.140.2024.05.06.09.36.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 May 2024 09:36:36 -0700 (PDT) Date: Mon, 6 May 2024 23:36:32 +0700 From: Daan Ro Message-ID: <497AEED3-677D-453A-A567-F3CFF7D13688@getmailspring.com> X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="66390710_6bdfec16_1f69b" Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=daanturo@gmail.com; helo=mail-pl1-x62c.google.com X-Spam_score_int: 0 X-Spam_score: -0.0 X-Spam_bar: / X-Spam_report: (-0.0 / 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, HTML_IMAGE_ONLY_12=2.059, HTML_IMAGE_RATIO_04=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: "#" is the most common comment syntax in text files whose major mode couldn't be recognized automatically. I hope this can be customized in Emacs 30. Daanturo Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (daanturo[at]gmail.com) 1.6 HTML_IMAGE_ONLY_12 BODY: HTML: images with 800-1200 bytes of words 0.0 HTML_IMAGE_RATIO_04 BODY: HTML has a low ratio of text to image area 0.0 HTML_MESSAGE BODY: HTML included in message 0.0 T_REMOTE_IMAGE Message contains an external image 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.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: "#" is the most common comment syntax in text files whose major mode couldn't be recognized automatically. I hope this can be customized in Emacs 30. Daanturo Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (daanturo[at]gmail.com) 1.6 HTML_IMAGE_ONLY_12 BODY: HTML: images with 800-1200 bytes of words 0.0 HTML_IMAGE_RATIO_04 BODY: HTML has a low ratio of text to image area 0.0 HTML_MESSAGE BODY: HTML included in message -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --66390710_6bdfec16_1f69b Content-Type: multipart/alternative; boundary="66390710_17bccefb_1f69b" --66390710_17bccefb_1f69b Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline "#" is the most common comment syntax in text files whose major mode couldn't be recognized automatically. I hope this can be customized in Emacs 30. Daanturo --66390710_17bccefb_1f69b Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=22=23=22 is the most common comment syntax in text files whose majo= r mode
couldn't be recognized automatically.

I ho= pe this can be customized in Emacs 30.


Daantur= o
3D=22Sent --66390710_17bccefb_1f69b-- --66390710_6bdfec16_1f69b Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-Add-comment-start-default-suggestion-user-option.patch" RnJvbSBmMGEwMTFmZGM4ODhmNDFlYjQ5Y2I0NGUxYmU1NzcyNjFmOGIyYTliIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBEYWFudHVybyA8ZGFhbnR1cm9AZ21haWwuY29tPgpEYXRlOiBN b24sIDYgTWF5IDIwMjQgMjM6MTY6NTYgKzA3MDAKU3ViamVjdDogW1BBVENIXSBBZGQgYGNvbW1l bnQtc3RhcnQtZGVmYXVsdC1zdWdnZXN0aW9uJyB1c2VyIG9wdGlvbgoKKiBsaXNwL25ld2NvbW1l bnQuZWw6IERlZmluZSBgY29tbWVudC1zdGFydC1kZWZhdWx0LXN1Z2dlc3Rpb24nIExpc3AKdmFy aWFibGUgYW5kIHVzZSBpdCBpbiBgY29tbWVudC1ub3JtYWxpemUtdmFycycuCgoqIGV0Yy9ORVdT OiBBbm5vdW5jZSB0aGUgb3B0aW9uLgotLS0KIGV0Yy9ORVdTICAgICAgICAgICB8IDUgKysrKysK IGxpc3AvbmV3Y29tbWVudC5lbCB8IDkgKysrKysrKystCiAyIGZpbGVzIGNoYW5nZWQsIDEzIGlu c2VydGlvbnMoKyksIDEgZGVsZXRpb24oLSkKCmRpZmYgLS1naXQgYS9ldGMvTkVXUyBiL2V0Yy9O RVdTCmluZGV4IDQ1NmY5YjhmOGI4Li5mYTliN2M4MmE5NyAxMDA2NDQKLS0tIGEvZXRjL05FV1MK KysrIGIvZXRjL05FV1MKQEAgLTU0MSw2ICs1NDEsMTEgQEAgd2hlcmVhcyBpZiB0aGUgbW91c2Ug cG9pbnRlciBpcyBpbiB0aGUgbGVmdCBoYWxmIG9mIGEgZ2x5cGgsIHBvaW50CiB3aWxsIGJlIHB1 dCBpbiBmcm9udCB0aGUgYnVmZmVyIHBvc2l0aW9uIGNvcnJlc3BvbmRpbmcgdG8gdGhhdCBnbHlw aC4KIEJ5IGRlZmF1bHQgdGhpcyBpcyBkaXNhYmxlZC4KIAorLS0tCisqKiBOZXcgdXNlciBvcHRp b24gJ2NvbW1lbnQtc3RhcnQtZGVmYXVsdC1zdWdnZXN0aW9uJy4KK1doZW4gJ2NvbW1lbnQtbm9y bWFsaXplLXZhcnMnIGFza3MgZm9yIG5pbCAnY29tbWVudC1zdGFydCcsIHVzZSB0aGlzIGFzCit0 aGUgZGVmYXVsdCBzdWdnZXN0ZWQgc3RyaW5nIGluIHRoZSBwcm9tcHQuCisKICoqIEludGVybmF0 aW9uYWxpemF0aW9uCiAKIC0tLQpkaWZmIC0tZ2l0IGEvbGlzcC9uZXdjb21tZW50LmVsIGIvbGlz cC9uZXdjb21tZW50LmVsCmluZGV4IGVlN2IyZWEzNGQ4Li44NjUyOTY2ODA2NyAxMDA2NDQKLS0t IGEvbGlzcC9uZXdjb21tZW50LmVsCisrKyBiL2xpc3AvbmV3Y29tbWVudC5lbApAQCAtMzQ5LDYg KzM0OSwxMiBAQCB0ZXJtaW5hdGVkIGJ5IHRoZSBlbmQgb2YgbGluZSAoaS5lLiwgYGNvbW1lbnQt ZW5kJyBpcyBlbXB0eSkuIgogICAiUmV0dXJuIHRoZSBtaXJyb3IgaW1hZ2Ugb2Ygc3RyaW5nIFMs IHdpdGhvdXQgYW55IHRyYWlsaW5nIHNwYWNlLiIKICAgKGNvbW1lbnQtc3RyaW5nLXN0cmlwIChj b25jYXQgKG5yZXZlcnNlIChzdHJpbmctdG8tbGlzdCBzKSkpIG5pbCB0KSkKIAorKGRlZmN1c3Rv bSBjb21tZW50LXN0YXJ0LWRlZmF1bHQtc3VnZ2VzdGlvbiBuaWwKKyAgIlRoZSBkZWZhdWx0IHN1 Z2dlc3Rpb24gd2hlbiB1bnNldCBgY29tbWVudC1zdGFydCcgaXMgYXNrZWQuIgorICA6dHlwZSAn c3RyaW5nCisgIDp2ZXJzaW9uICIzMC4xIgorICA6Z3JvdXAgJ2NvbW1lbnQpCisKIDs7OyMjI2F1 dG9sb2FkCiAoZGVmdW4gY29tbWVudC1ub3JtYWxpemUtdmFycyAoJm9wdGlvbmFsIG5vZXJyb3Ip CiAgICJDaGVjayBhbmQgc2V0IHVwIHZhcmlhYmxlcyBuZWVkZWQgYnkgb3RoZXIgY29tbWVudGlu ZyBmdW5jdGlvbnMuCkBAIC0zNTgsNyArMzY0LDggQEAgZnVuY3Rpb25zIHdvcmsgY29ycmVjdGx5 LiAgTGlzcCBjYWxsZXJzIG9mIGFueSBvdGhlciBgY29tbWVudC0qJwogZnVuY3Rpb24gc2hvdWxk IGZpcnN0IGNhbGwgdGhpcyBmdW5jdGlvbiBleHBsaWNpdGx5LiIKICAgKHVubGVzcyAoYW5kIChu b3QgY29tbWVudC1zdGFydCkgbm9lcnJvcikKICAgICAodW5sZXNzIGNvbW1lbnQtc3RhcnQKLSAg ICAgIChsZXQgKChjcyAocmVhZC1zdHJpbmcgIk5vIGNvbW1lbnQgc3ludGF4IGlzIGRlZmluZWQu ICBVc2U6ICIpKSkKKyAgICAgIChsZXQgKChjcyAocmVhZC1zdHJpbmcgIk5vIGNvbW1lbnQgc3lu dGF4IGlzIGRlZmluZWQuICBVc2U6ICIKKyAgICAgICAgICAgICAgICAgICAgICAgICAgY29tbWVu dC1zdGFydC1kZWZhdWx0LXN1Z2dlc3Rpb24pKSkKIAkoaWYgKHplcm9wIChsZW5ndGggY3MpKQog CSAgICAoZXJyb3IgIk5vIGNvbW1lbnQgc3ludGF4IGRlZmluZWQiKQogICAgICAgICAgIChzZXRx LWxvY2FsIGNvbW1lbnQtc3RhcnQgY3MpCi0tIAoyLjQ1LjAKCg== --66390710_6bdfec16_1f69b-- From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 28 21:33:06 2025 Received: (at control) by debbugs.gnu.org; 1 Mar 2025 02:33:06 +0000 Received: from localhost ([127.0.0.1]:56333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1toCf4-0002Zy-1A for submit@debbugs.gnu.org; Fri, 28 Feb 2025 21:33:06 -0500 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:55683) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1toCf2-0002Z6-6r for control@debbugs.gnu.org; Fri, 28 Feb 2025 21:33:04 -0500 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-5dedd4782c6so5073864a12.3 for ; Fri, 28 Feb 2025 18:33:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740796378; x=1741401178; darn=debbugs.gnu.org; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=wFg70MeZ9Q7e2lZrZqfKRSdLxf6QkkMdwfU2pCFPTKs=; b=gR24AgRlljP/0pnsoKiWvFmq1okTSCvb7Y4pv6lVjhZum1sNGwCNFzvPwWKsEUiqEW jg3RfG2ZpHt4TClHiKVJ0R4S9kzHqjeD3CtjAU4R4LUuRYcNF1jbEoTAdchG84y8/vM4 h6BUbkxr8Hzgp14GA7CpjjpJUmBxJ/jJL7iLQB6qu3fXwS+adq8xg9ViTtf4dxJmGPiP ze5TKIoX8lX0ZzA+lHCPSP90IPL7UBnsZqjMvUO3aPNWJbnBSUF+N19BJYeccArb3j9u xa2jksVvgeMrRuELMDu/3kIUBi9LX8eE50m5BQmJbPbL1m0zA0FlTQzB3JGywFhKK2X/ uzVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740796378; x=1741401178; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wFg70MeZ9Q7e2lZrZqfKRSdLxf6QkkMdwfU2pCFPTKs=; b=Ic4mN+4qphb+FJ7v0xFu8sT/zeTqtklMJch9fdbh8Gbm8g7OsSf3V+JK+wP47yiv8W Nay4o5pLHufzetndg5n1MvenYzC97XaKpyW56jH67jVx/cfuYn/Or13lCORAtkmMJKCi ui/TcQMYwAZIZFEuymct/dSmsxxHIsmWsKL+bU4fh6rFNaOYysVBZOiqbQkMEJLKUH/D WcTwo/rD0+1cJX0hPPcWONJ1fT6PuEdlQMwnyPqf0k7gRH6ghnsXQsuI7RwyA18D7/QJ GWyxXbCGMcTheRKIEkb83Oy6eVagQAa/iKJ3kK0iH8IYTiMbr15w6PcAx7EVb0M7VaJl 4Rhw== X-Gm-Message-State: AOJu0YzB2n5jOdDMsZNA2zmpuDhiZQcSvk3XckkOpE0XsR/dswkXBBx6 rSbmK1/z24R3OBWoeRIjqxTD5tgQ+DMZjT/EWDqkAEZXGyO3feBE7BBQG1kNxEAh1q3F9QrYv5K BaRJ0jTQwprvN8r4SZwUFqwjxHNkbDySAWSQ= X-Gm-Gg: ASbGncvz0QMCAsUfKqFQjPJETH/gh8J+DhzHzo60LwX07LknmIzmv76VSHFYYB12OBt VU5qGntAMTDuArdVkUPh1eADiqZAYd4Ty44RQJXyS5fw+AFNGFc3AI+5Uns3z1EFG42LShh9yid UUF1/G9ftlqAUu5MGx6UaxFn+bQXw= X-Google-Smtp-Source: AGHT+IGolknKAkFOUJ2qacU04NtXBLR1I7jRHYns5qSrSXmF3ahlthw2d4ALM2744vZPOuwRmzrjTvfDWtdqN9W8cuI= X-Received: by 2002:a05:6402:3887:b0:5e0:7509:4543 with SMTP id 4fb4d7f45d1cf-5e4d6ba860fmr4615494a12.32.1740796378074; Fri, 28 Feb 2025 18:32:58 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 28 Feb 2025 18:32:57 -0800 From: Stefan Kangas MIME-Version: 1.0 Date: Fri, 28 Feb 2025 18:32:57 -0800 X-Gm-Features: AQ5f1JoYayzDjYuujqCJ1Cvqn1khypJ4fDoFNE1cyZZuXj2vPz9iYwYwUORAqdY Message-ID: Subject: control message for bug #70804 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 70804 + patch quit From unknown Tue Jun 17 01:47:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70804: 29.3.50; Feature request: Allow setting INITIAL-INPUT in comment-normalize-vars when comment-start is nil Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 02:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70804 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Daan Ro Cc: 70804@debbugs.gnu.org Received: via spool by 70804-submit@debbugs.gnu.org id=B70804.174096716113528 (code B ref 70804); Mon, 03 Mar 2025 02:00:03 +0000 Received: (at 70804) by debbugs.gnu.org; 3 Mar 2025 01:59:21 +0000 Received: from localhost ([127.0.0.1]:40624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tov5U-0003W7-V9 for submit@debbugs.gnu.org; Sun, 02 Mar 2025 20:59:21 -0500 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:51402) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tov5R-0003VH-V1 for 70804@debbugs.gnu.org; Sun, 02 Mar 2025 20:59:18 -0500 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5e4ebc78da5so4703840a12.2 for <70804@debbugs.gnu.org>; Sun, 02 Mar 2025 17:59:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740967152; x=1741571952; 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=kBYCfUeQ9EsbLeU2/flO+9OtXHDDKT0VVg+o5r0T4+M=; b=nKQjHZXgf5VHd7lqGUupZ5A1E52fUeAxNM1YmzmCQsy0bpSDDQ+iS0WA+oSi9gxBjg TOJZsjdIF1rDCvYe3pQSqbv1VXp2dvN+xnZPC/+aKZrwEl0BSpW9Cc45PJxuBLooeuG8 8u2ifTQgmMcTWu3zhEvRB4XCrj5uSha6/V00c/e9CBF2Er3E1y1G3+/0dmLBJp5PhDGT 3Ce/FiCR8N/ZvjZgwQaWqY8AiiPXu/N2tDdRZnBdYEBN8qIDdxuubR5bstyQNWOtk/Ho diu1j/vQsHYnGsPO2h6SGcUirIhJp3c30F+8PFBlTj3t5ucVlWaQQsvDKZTtv/c/B/P3 Kd4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740967152; x=1741571952; 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=kBYCfUeQ9EsbLeU2/flO+9OtXHDDKT0VVg+o5r0T4+M=; b=DM9tgd51gNL4TsNAnzdjzRlUa9y0gb/uOk2Xe8VYrFV3QA7evyMKJFaO/KzI8pgx9U D5JvygP2dUoww3Gd1LaING3dmFiLoYnln3b3SA8db42VKUn9QjTHSXOU2/gfke3mMMry zzM809J4609l3U7n4GaL8qIOEUvp8VBR5pw5ABkmhQwndnRu/IXRu9l5xX8wltIJ34e8 MqCKw2p9oTK+JhoaTKO85NNBQtdePWY4b9edPGE98nI8VgvQpWYhn7eMEZyXYQ7qae3M WuTH7zjI4/imssJ5JZfE7hlK68OLA5ZWfTj7NGHABsUOboiGzBFryeGZxcpnMbO7FOvG tD2Q== X-Gm-Message-State: AOJu0Yw+Puoz626Cjz5IBiuCnTG4An40T4S8ngUwCpdTic/j4f/xqu38 PNGx0dAGCT+IlNFhFELE/uBCZNhUmY+pL208SgPThZvTnFiM32o6ehJiewnmPKsxZy42RFkPtnQ eOjGo94w3LV617CgWKbAzivJuecU= X-Gm-Gg: ASbGnct7501NgT8lI/39fF+BnMhG7PUOQYSFyj0zM31TicGDWrxU5wWT0VFlprmp1k8 3KZU4o48SCschhqLRkTFHIwPS1Ozs4OFK4k0Rro5wD0R2zjh8g/QgfAREhRp6yueWCQ3zjnbfJf faqpMDMw0KFpCFvoNehb3oQ27C3g== X-Google-Smtp-Source: AGHT+IFIDYXSpKa5X14sVmITQP0x9xjJ/9OZasTRI5xhS+CCv8XmjG8QHaIQUjp72ArNKLpI8k8NS9TrLcN3UY1FLe0= X-Received: by 2002:a05:6402:5190:b0:5db:f26d:fff1 with SMTP id 4fb4d7f45d1cf-5e4d6b62c36mr12114114a12.21.1740967151537; Sun, 02 Mar 2025 17:59:11 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 2 Mar 2025 17:59:11 -0800 From: Stefan Kangas In-Reply-To: <497AEED3-677D-453A-A567-F3CFF7D13688@getmailspring.com> References: <497AEED3-677D-453A-A567-F3CFF7D13688@getmailspring.com> MIME-Version: 1.0 Date: Sun, 2 Mar 2025 17:59:11 -0800 X-Gm-Features: AQ5f1JrtEONQA9tdMpF_xw1xZSNc8Su8hD5hv0d7jUnTtU5Jt9_MvygPm_GIB5o Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) 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 (-) Daan Ro writes: > "#" is the most common comment syntax in text files whose major mode > couldn't be recognized automatically. > > I hope this can be customized in Emacs 30. Thanks for the patch, and sorry for the long delay. Maybe we should just offer "#" as the default instead, if it's the most common one? My reasoning here is that there is no need to add a defcustom, if no one has asked for it. > From f0a011fdc888f41eb49cb44e1be577261f8b2a9b Mon Sep 17 00:00:00 2001 > From: Daanturo > Date: Mon, 6 May 2024 23:16:56 +0700 > Subject: [PATCH] Add `comment-start-default-suggestion' user option > > * lisp/newcomment.el: Define `comment-start-default-suggestion' Lisp > variable and use it in `comment-normalize-vars'. > > * etc/NEWS: Announce the option. > --- > etc/NEWS | 5 +++++ > lisp/newcomment.el | 9 ++++++++- > 2 files changed, 13 insertions(+), 1 deletion(-) > > diff --git a/etc/NEWS b/etc/NEWS > index 456f9b8f8b8..fa9b7c82a97 100644 > --- a/etc/NEWS > +++ b/etc/NEWS > @@ -541,6 +541,11 @@ whereas if the mouse pointer is in the left half of a glyph, point > will be put in front the buffer position corresponding to that glyph. > By default this is disabled. > > +--- > +** New user option 'comment-start-default-suggestion'. > +When 'comment-normalize-vars' asks for nil 'comment-start', use this as > +the default suggested string in the prompt. > + > ** Internationalization > > --- > diff --git a/lisp/newcomment.el b/lisp/newcomment.el > index ee7b2ea34d8..86529668067 100644 > --- a/lisp/newcomment.el > +++ b/lisp/newcomment.el > @@ -349,6 +349,12 @@ terminated by the end of line (i.e., `comment-end' is empty)." > "Return the mirror image of string S, without any trailing space." > (comment-string-strip (concat (nreverse (string-to-list s))) nil t)) > > +(defcustom comment-start-default-suggestion nil > + "The default suggestion when unset `comment-start' is asked." > + :type 'string > + :version "30.1" > + :group 'comment) > + > ;;;###autoload > (defun comment-normalize-vars (&optional noerror) > "Check and set up variables needed by other commenting functions. > @@ -358,7 +364,8 @@ functions work correctly. Lisp callers of any other `comment-*' > function should first call this function explicitly." > (unless (and (not comment-start) noerror) > (unless comment-start > - (let ((cs (read-string "No comment syntax is defined. Use: "))) > + (let ((cs (read-string "No comment syntax is defined. Use: " > + comment-start-default-suggestion))) > (if (zerop (length cs)) > (error "No comment syntax defined") > (setq-local comment-start cs) From unknown Tue Jun 17 01:47:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70804: 29.3.50; Feature request: Allow setting INITIAL-INPUT in comment-normalize-vars when comment-start is nil Resent-From: Daan Ro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 14:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70804 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Stefan Kangas Cc: "70804@debbugs.gnu.org" <70804@debbugs.gnu.org> Received: via spool by 70804-submit@debbugs.gnu.org id=B70804.174101138723918 (code B ref 70804); Mon, 03 Mar 2025 14:17:02 +0000 Received: (at 70804) by debbugs.gnu.org; 3 Mar 2025 14:16:27 +0000 Received: from localhost ([127.0.0.1]:46700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tp6ao-0006Di-AI for submit@debbugs.gnu.org; Mon, 03 Mar 2025 09:16:26 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:53287) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tp6ak-0006D1-AS for 70804@debbugs.gnu.org; Mon, 03 Mar 2025 09:16:24 -0500 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-2239c066347so25868805ad.2 for <70804@debbugs.gnu.org>; Mon, 03 Mar 2025 06:16:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741011376; x=1741616176; darn=debbugs.gnu.org; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=frD7l+mpYvwEKb7W0qz+e8CMk8GReVmRudS+xysPRII=; b=OGcXqzKsc2eGdR2jE8eH8QqIOb7pUAovGiu3LBMEHIM6UkgAOX8tk/FIIEsROwc9PS ZGqj7Xxksjvx9H7wOQPDUTZKvY0odNutbNp0gZSA7G27G8YL0hY8tehtB2qGGqIDOp9o qem7bpWDign73f93OL988Tkrm2PuKwaI92VgOtQmJK1TpL+kdCyq1VjfhoGbCeMwaTi4 guRDGcfwfrtZRkRU4iaRFHwxV+GepOf+RhahvizO0/Bt9CXOXnR7mot1wbUueILkxr0b iehBiy7PJiKJz6TqsjaNPnZLsXHGgZ8DIinDV8Pg4ofRNllxx5f3OhCvPZldQA+VmGki qMng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741011376; x=1741616176; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=frD7l+mpYvwEKb7W0qz+e8CMk8GReVmRudS+xysPRII=; b=FgYLm6UYTF+T4UarkHDL032P34Y8BVS7ItOYABRtguJROScXR0kX9kidxZ5x1o3keC Zv+u+zvHJzPUNDUHlSkInCS+xqUcdmPs2vUDmjaxVEb84ICAPaZc4P364YvqsQMHdy1U LLiVsXmcTBEdISg7hKk925fL2YarRQBI2uHAA6j4NO61d3opQZeVqLVKZWERn/uGya4L ciNzih8OxzKrSUQJekwVM6rq4uXW2gI6dq0D/pR2SwL/lvz/1z4D1KwiMsuBNH391dZu 7YoWC+luMLqkttf6t+wqTpF4wdH7IMjsn1dH6qHE9pe8JJMFkPFlRe7ICfNtVT1nvw1y cbaA== X-Gm-Message-State: AOJu0YzlfVTEstAX2d9IZ0vBs8ZbgVc/nEEZnybu3eV1tMSmkkzX81Td ZNxBYxAeSDsGjEqMGPiW3PJrTKtZ0b9rnI/TIbreWioYj8Wbl3j41IDfXgOZ X-Gm-Gg: ASbGncup++Z5+WwevnxcHETasTezlWDH0IM+aD2R3Mcbn00DWz1kfKdXLjdkCUY7eNY g6jHxoxhzoPOlythYGDE46fD8mPTIV6P+lkrI8yPXccizLpFgWAwjgBP612ssUga2c8hIZw+Ke1 QQY0TFbUhMeS4bcC9e9EaqhEqCi7qQi3ICMnKWrhos0OQk/lTeLnbJAk3laodteaoCDxjLwnnfw Sl0ccvPBvncvwsm9U80AIFyzbYcVCrIFq8UMViNwpTxJh6A1KVmNXgpj17vJcjBrI0KpLbqPW3p 12wkVhnfI05eWTQDBU3JTifinwnPjCNoUozeGarzvSVsSA== X-Google-Smtp-Source: AGHT+IGjklbO28/NLExl0jbov1HJ/K9stRiWNTsEifAzpZmhz1zL0hou3I7B14BuAW46qlYURY7OEw== X-Received: by 2002:a17:903:fa6:b0:223:37ec:63bf with SMTP id d9443c01a7336-22368fbc8f5mr186746875ad.25.1741011375600; Mon, 03 Mar 2025 06:16:15 -0800 (PST) Received: from dan-laptop ([2405:4802:bfb8:1f00:eefa:9441:3f6d:fcbb]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-223504dc489sm77763075ad.159.2025.03.03.06.16.14 for <70804@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Mar 2025 06:16:14 -0800 (PST) Date: Mon, 3 Mar 2025 21:16:10 +0700 From: Daan Ro Message-ID: In-Reply-To: References: X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="67c5b9aa_3b638201_926" X-Spam-Score: 0.0 (/) 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 (-) --67c5b9aa_3b638201_926 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline I was afraid that directly setting the default may break many people's muscle memory, or hypothetically maybe someday "#" won't be the most common unknown case anymore. Between a new custom variable and the default I have no strong opinion otherwise. Daanturo On Mar 3 2025, at 8:59 am, Stefan Kangas wrote: > Daan Ro writes: > > > "#" is the most common comment syntax in text files whose major mode > > couldn't be recognized automatically. > > > > I hope this can be customized in Emacs 30. > > Thanks for the patch, and sorry for the long delay. > Maybe we should just offer "#" as the default instead, if it's the most > common one? My reasoning here is that there is no need to add a > defcustom, if no one has asked for it. > > > From f0a011fdc888f41eb49cb44e1be577261f8b2a9b Mon Sep 17 00:00:00 2001 > > From: Daanturo > > Date: Mon, 6 May 2024 23:16:56 +0700 > > Subject: [PATCH] Add `comment-start-default-suggestion' user option > > > > * lisp/newcomment.el: Define `comment-start-default-suggestion' Lisp > > variable and use it in `comment-normalize-vars'. > > > > * etc/NEWS: Announce the option. > > --- > > etc/NEWS | 5 +++++ > > lisp/newcomment.el | 9 ++++++++- > > 2 files changed, 13 insertions(+), 1 deletion(-) > > > > diff --git a/etc/NEWS b/etc/NEWS > > index 456f9b8f8b8..fa9b7c82a97 100644 > > --- a/etc/NEWS > > +++ b/etc/NEWS > > @@ -541,6 +541,11 @@ whereas if the mouse pointer is in the left half of a glyph, point > > will be put in front the buffer position corresponding to that glyph. > > By default this is disabled. > > > > +--- > > +** New user option 'comment-start-default-suggestion'. > > +When 'comment-normalize-vars' asks for nil 'comment-start', use this as > > +the default suggested string in the prompt. > > + > > ** Internationalization > > > > --- > > diff --git a/lisp/newcomment.el b/lisp/newcomment.el > > index ee7b2ea34d8..86529668067 100644 > > --- a/lisp/newcomment.el > > +++ b/lisp/newcomment.el > > @@ -349,6 +349,12 @@ terminated by the end of line (i.e., `comment-end' is empty)." > > "Return the mirror image of string S, without any trailing space." > > (comment-string-strip (concat (nreverse (string-to-list s))) nil t)) > > > > +(defcustom comment-start-default-suggestion nil > > + "The default suggestion when unset `comment-start' is asked." > > + :type 'string > > + :version "30.1" > > + :group 'comment) > > + > > ;;;###autoload > > (defun comment-normalize-vars (&optional noerror) > > "Check and set up variables needed by other commenting functions. > > @@ -358,7 +364,8 @@ functions work correctly. Lisp callers of any other `comment-*' > > function should first call this function explicitly." > > (unless (and (not comment-start) noerror) > > (unless comment-start > > - (let ((cs (read-string "No comment syntax is defined. Use: "))) > > + (let ((cs (read-string "No comment syntax is defined. Use: " > > + comment-start-default-suggestion))) > > (if (zerop (length cs)) > > (error "No comment syntax defined") > > (setq-local comment-start cs) > --67c5b9aa_3b638201_926 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I was afraid that directly setting the default may break many people= 's muscle
memory, or hypothetically maybe someday =22=23=22 won= 't be the most common unknown
case anymore.  Between a new= custom variable and the default I have no strong
opinion other= wise.

Daanturo
On Mar 3 2025, at 8:59 am, Stefan Kangas <stefankangas=40gmail.co= m> wrote:
Daan Ro <daanturo=40gmail.com&= gt; writes:

> =22=23=22 is the most common comment synta= x in text files whose major mode
> couldn't be recognized au= tomatically.
>
> I hope this can be customized = in Emacs 30.

Thanks for the patch, and sorry for the long d= elay.

Maybe we should just offer =22=23=22 as the default i= nstead, if it's the most
common one=3F My reasoning here is tha= t there is no need to add a
defcustom, if no one has asked for = it.

> =46rom f0a011fdc888f41eb49cb44e1be577261f8b2a9b Mo= n Sep 17 00:00:00 2001
> =46rom: Daanturo <daanturo=40gma= il.com>
> Date: Mon, 6 May 2024 23:16:56 +0700
= > Subject: =5BPATCH=5D Add =60comment-start-default-suggestion' user o= ption
>
> * lisp/newcomment.el: Define =60comme= nt-start-default-suggestion' Lisp
> variable and use it in =60= comment-normalize-vars'.
>
> * etc/NEWS: Announ= ce the option.
> ---
> etc/NEWS =7C 5 +++++
> lisp/newcomment.el =7C 9 ++++++++-
> 2 files cha= nged, 13 insertions(+), 1 deletion(-)
>
> diff = --git a/etc/NEWS b/etc/NEWS
> index 456f9b8f8b8..fa9b7c82a97= 100644
> --- a/etc/NEWS
> +++ b/etc/NEWS
=
> =40=40 -541,6 +541,11 =40=40 whereas if the mouse pointer is in= the left half of a glyph, point
> will be put in front the = buffer position corresponding to that glyph.
> By default th= is is disabled.
>
> +---
> +** New= user option 'comment-start-default-suggestion'.
> +When 'co= mment-normalize-vars' asks for nil 'comment-start', use this as
> +the default suggested string in the prompt.
> +
=
> ** Internationalization
>
> ---
=
> diff --git a/lisp/newcomment.el b/lisp/newcomment.el
= > index ee7b2ea34d8..86529668067 100644
> --- a/lisp/newc= omment.el
> +++ b/lisp/newcomment.el
> =40=40 -= 349,6 +349,12 =40=40 terminated by the end of line (i.e., =60comment-end'= is empty).=22
> =22Return the mirror image of string S, wit= hout any trailing space.=22
> (comment-string-strip (concat = (nreverse (string-to-list s))) nil t))
>
> +(de= fcustom comment-start-default-suggestion nil
> + =22The defa= ult suggestion when unset =60comment-start' is asked.=22
> += :type 'string
> + :version =2230.1=22
> + :gro= up 'comment)
> +
> ;;;=23=23=23autoload
> (defun comment-normalize-vars (&optional noerror)
&= gt; =22Check and set up variables needed by other commenting functions.
> =40=40 -358,7 +364,8 =40=40 functions work correctly. Lisp = callers of any other =60comment-*'
> function should first c= all this function explicitly.=22
> (unless (and (not comment= -start) noerror)
> (unless comment-start
> - (l= et ((cs (read-string =22No comment syntax is defined. Use: =22)))
> + (let ((cs (read-string =22No comment syntax is defined. Use: =22=
> + comment-start-default-suggestion)))
> (if = (zerop (length cs))
> (error =22No comment syntax defined=22= )
> (setq-local comment-start cs)
--67c5b9aa_3b638201_926-- From unknown Tue Jun 17 01:47:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70804: 29.3.50; Feature request: Allow setting INITIAL-INPUT in comment-normalize-vars when comment-start is nil Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 14:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70804 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Daan Ro Cc: "70804@debbugs.gnu.org" <70804@debbugs.gnu.org> Received: via spool by 70804-submit@debbugs.gnu.org id=B70804.174101214927831 (code B ref 70804); Mon, 03 Mar 2025 14:30:02 +0000 Received: (at 70804) by debbugs.gnu.org; 3 Mar 2025 14:29:09 +0000 Received: from localhost ([127.0.0.1]:46820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tp6n7-0007Ep-3H for submit@debbugs.gnu.org; Mon, 03 Mar 2025 09:29:09 -0500 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:48452) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tp6n5-0007EL-0R for 70804@debbugs.gnu.org; Mon, 03 Mar 2025 09:29:07 -0500 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5e4c0c12bccso7932451a12.1 for <70804@debbugs.gnu.org>; Mon, 03 Mar 2025 06:29:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741012140; x=1741616940; 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=VqUveUBQnJRnUPpRYbRLnEwPNw62m3dEzfhiagbTlkA=; b=D8bx3dU3ynV2eIEiGFlgSkE3NEX+YGg0mH4Bb7rBTIbCluQkNXUORXbelEwQCy9Ly7 TU5GnJiYNYVoHI3v8aqvwVViPDnbmupEx/lWlnrgfdmNLUqUOOlOXen3PTkDpiiVv/t6 fjl7+qVkb3/OcbswrH7HdICZyQF9jYnkA4ph0GdbeWHjoQ/ae+mKMPX4PbJyAPIL15o5 4EAEhJY+jRpQpgblcrhzXolIYhqv6dEsCN3zsrs2k5SEWZVYTHbpk7PrcWfJg0OObzkE Pf/nR6K05WjfEw89OgTPv7qrorTbqex6VVBY1r1xpCx2/MjR6/GfUf64I13uh5rLuIM4 nzpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741012140; x=1741616940; 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=VqUveUBQnJRnUPpRYbRLnEwPNw62m3dEzfhiagbTlkA=; b=uj//mQM5yVrTmvDHnK1YjYypRlOVJ1atNxRRsjrECrNnAIHq+TvjhKHA65KdhwJpdP lrdwUqW5l6fqHElhnugD2gwmFKy6pXjeEzh9hQGauoJmkjVCmAPD9ZkRdjeNImGE3xzz FHVi1NYmnANq4SbtWF11e9pa1j17f5YjFwXt+WVPx+wqRqFJLHfd+pu/V0xkUsrljyNP MFfY+2cZ9hN92vQR3R1hctIRezoQWDqCmBRsVf6utNH42lZir4ZkRYIlxbkwgdrdzlor DKGL+E6yBFWGHJNnRlboBYj4VW+xxi8rr+9iruR45pDgUh8MdfGgKUdsmcJQPBIZUYQV dYug== X-Gm-Message-State: AOJu0YxsLo2H/pF8hJ3632YVHnVLYHezVaxyGH+wENGYSnOAP36hfPv0 RwcrImiWWLF5jdQIIv6MmjaS6VOpbe/8gVObdGVLB0EBGICsDdDbRRtyZzs6op5IRQV7yBm+hV6 ADQA9C4IKJVSmFhrM0QL+kc1XA4A= X-Gm-Gg: ASbGncu0Z2xMTfB45dD3swJZjit6KYTSS83ZhlcN0Gl1ha4jXJMjplncNYnkAiHKM+y Y0tUPbAZNMuO0thvOyC2Spm+LvFhPKDIQ/dX0o258JDBf0uBlQpsWtxDrcFoNOJUdF2btYs3W4t svc2ll8jQuilq+aIwwrcr3z4XDCQ== X-Google-Smtp-Source: AGHT+IGlSkL2RpCJITxz2ZCoZFaagacQ6BzmqMBvFIZvPnmMDSq/osoPctBKhg2HFkm4DYJZiqFlM5WYvGCuIT/H/S8= X-Received: by 2002:a05:6402:34c2:b0:5e0:8c55:501 with SMTP id 4fb4d7f45d1cf-5e4d6ad4c08mr14539924a12.7.1741012139885; Mon, 03 Mar 2025 06:28:59 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 3 Mar 2025 14:28:59 +0000 From: Stefan Kangas In-Reply-To: References: MIME-Version: 1.0 Date: Mon, 3 Mar 2025 14:28:59 +0000 X-Gm-Features: AQ5f1JqpGhoNYNtXVVIrEqeArej2xg8tIE8dHYJU51mjYsV9z7SoqIkxQ5Lg9QU Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) 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 (-) Daan Ro writes: > I was afraid that directly setting the default may break many people's muscle > memory, or Hmm, but the default now is the empty string, which AFAIU means to do nothing. It seems strange to have, in muscle memory, `M-; RET`, if it indeed has the effect to do nothing... IOW, I think a new default is harmless here. > hypothetically maybe someday "#" won't be the most common unknown > case anymore. When that day comes, we can add a defcustom. > Between a new custom variable and the default I have no strong > opinion otherwise. Would you like to propose a new patch along the above lines? I don't think this needs to be in NEWS, even. From unknown Tue Jun 17 01:47:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70804: 29.3.50; Feature request: Allow setting INITIAL-INPUT in comment-normalize-vars when comment-start is nil Resent-From: Daan Ro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 18:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70804 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Stefan Kangas Cc: "70804@debbugs.gnu.org" <70804@debbugs.gnu.org> Received: via spool by 70804-submit@debbugs.gnu.org id=B70804.174102819316707 (code B ref 70804); Mon, 03 Mar 2025 18:57:02 +0000 Received: (at 70804) by debbugs.gnu.org; 3 Mar 2025 18:56:33 +0000 Received: from localhost ([127.0.0.1]:51846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tpAxs-0004LN-FE for submit@debbugs.gnu.org; Mon, 03 Mar 2025 13:56:32 -0500 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:59717) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tpAxn-0004KW-ND for 70804@debbugs.gnu.org; Mon, 03 Mar 2025 13:56:30 -0500 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-2235908a30aso72565725ad.3 for <70804@debbugs.gnu.org>; Mon, 03 Mar 2025 10:56:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741028181; x=1741632981; darn=debbugs.gnu.org; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=edhCAMYjzvL8mdCcEqYdPdeSrmG2Fj8NIJ+9YTebC7c=; b=ILQSyrfoTJ3k30pz7QHkK5OzMnQAn0cM46gNJwpAkmBAPBA49x4JGyt/G8H/+Af48I bY8xMzKbQwCM5J+0OfJBOGVwJgAgLHY0dkrY8mSBy/szqtmm2cwXNEPZzTUUdi6zsWvw Amw8zw29wg7RhFPrvyPIlWXHe9mT5n+07uvccNzyhs0uib4nZVI613grR6YkHCUChiy/ pWkcDEIdCffTuO7DSH6qDj1TOLgPfP2Ph1fCfGdH5NTrI7Dd5UeAjVvz5514AD4+w/Yj 1WNiBX87+mjrvPZSyA/p5vdnFZTdPUWPyGfTPjold66Cz6L97v0ZTLte27atPjLsjurn 2yNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741028181; x=1741632981; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=edhCAMYjzvL8mdCcEqYdPdeSrmG2Fj8NIJ+9YTebC7c=; b=tAZ+Eplc73DLgBFJLOCkRgH0I8Lb+e+cwsuq3zVoxYw0s8ReZNkZFBo3dxz/j5uvVl VZygtVreIvym7oL2rI975oj/mp5uPS/nBOV/rIJ3KWnTv/n4byvfu1HBjhm8/Gyl3dsy gcF/ej8ycT2B008eVSzNyePTDo4dNGgKM+EoLCjgHnKjs4hNcsSZL3jUml9EObmfbtWJ iT+T9UPCeSFx01ZhidkwtFarfL9iqYLQ/tVIIX9x32GiRSZV5O+GdQNk/ADb7QvWLSZA B3asXrqF4RN74WgdHwgLsDzS/2NkWjqVoJeKJynL5uPtRiy4s2Tc1EXoDuvXNAkOKx5l GjPw== X-Gm-Message-State: AOJu0YxQ9q/6x45w5akXf8LB5dmp16fc7fmhzyOMBpDYs5KXY9rFuIlN j8MvU3IwhkI+8qbVnxUjZ5cpSw7NUVymhlNGpDWY5WEPX2gtUg3CTvv6ni+y X-Gm-Gg: ASbGncuAIoHCvQGBUvUkM1RSyS6130s1kAgYaeIFj2i8+yyrb5rim6SYCj++ZKRI4HY NQs44Yb5CH42jELGk0BaNgd77aQCocGPJAUHWspo9PzS9rnJUJgNSYuk47HLzVRIqt6zSiZCOQQ Hn971gwE0BHAFCmCzPpN9eSdofnLlEnCRATSeqFwlistxG5HytPzdWDoOfXeOTYo6lBVjcpyxz1 iMypZePHRmb5DDJdI2Dw+pZPtr2kmgjHR8qBCbFBDYNpL8+MWC/Jbb9KgriRaeU6aulUK/6Qeek FMBu5VKH07eY0W46OitkjrwOb2aDi9n1K5LP9SmpfFgxcA== X-Google-Smtp-Source: AGHT+IFWCe/Fs22lRRQbZr3UE+IhSQ77Cvud1+nPMS81M55nckA00uIgIA+wdCEWlTHLIUCaTGUGCA== X-Received: by 2002:a17:903:2ca:b0:223:4b88:780f with SMTP id d9443c01a7336-22368f7558dmr208644815ad.17.1741028180935; Mon, 03 Mar 2025 10:56:20 -0800 (PST) Received: from dan-laptop ([2405:4802:bfb8:1f00:eefa:9441:3f6d:fcbb]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2235050f12esm81334775ad.209.2025.03.03.10.56.19 for <70804@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Mar 2025 10:56:20 -0800 (PST) Date: Tue, 4 Mar 2025 01:56:16 +0700 From: Daan Ro Message-ID: In-Reply-To: References: X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="67c5fb50_203c617f_926" X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Attached a single sexp change patch =)). Daanturo On Mar 3 2025, at 9:28 pm, Stefan Kangas wrote: > Daan Ro writes: > > Would you like to propose a new patch along the above lines? > I don't think this needs to be in NEWS, even. Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (daanturo[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 HTML_IMAGE_RATIO_06 BODY: HTML has a low ratio of text to image area 0.0 HTML_MESSAGE BODY: HTML included in message 1.6 HTML_IMAGE_ONLY_12 BODY: HTML: images with 800-1200 bytes of words -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:631 listed in] [list.dnswl.org] 0.0 T_REMOTE_IMAGE Message contains an external image 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: 0.6 (/) --67c5fb50_203c617f_926 Content-Type: multipart/alternative; boundary="67c5fb50_65bab40b_926" --67c5fb50_65bab40b_926 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Attached a single sexp change patch =)). Daanturo On Mar 3 2025, at 9:28 pm, Stefan Kangas wrote: > Daan Ro writes: > > Would you like to propose a new patch along the above lines? > I don't think this needs to be in NEWS, even. --67c5fb50_65bab40b_926 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Attached a single sexp change patch =3D)).

Daa= nturo
<= /div>
<= div class=3D=22gmail=5Fquote=5Fattribution=22>On Mar 3 2025, at 9:28 pm, = Stefan Kangas <stefankangas=40gmail.com> wrote:
Daan Ro <daanturo=40gmail.com> writes:

Would = you like to propose a new patch along the above lines=3F

I = don't think this needs to be in NEWS, even.
3D=22Sent --67c5fb50_65bab40b_926-- --67c5fb50_203c617f_926 Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="=?utf-8?Q?0001-Let-sharp-be-the-suggested-comment-start-when-undefined-bug-70804.patch?=" RnJvbSA1NDllZTY4ZDViNmNmM2RhZTVkZDY5YjhmMWE5OWMwNDVmMjAwY2JlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBEYWFudHVybyA8ZGFhbnR1cm9AZ21haWwuY29tPgpEYXRlOiBN b24sIDMgTWFyIDIwMjUgMTg6NDY6MDEgKzAwMDAKU3ViamVjdDogW1BBVENIXSBMZXQgIiMiIGJl IHRoZSBzdWdnZXN0ZWQgY29tbWVudC1zdGFydCB3aGVuIHVuZGVmaW5lZAogKGJ1ZyM3MDgwNCkK CiogbGlzcC9uZXdjb21tZW50LmVsOiBhZGQgIiMiIHRvICdjb21tZW50LW5vcm1hbGl6ZS12YXJz JyBwcm9tcHQncwppbml0aWFsIGlucHV0LgotLS0KIGxpc3AvbmV3Y29tbWVudC5lbCB8IDIgKy0K IDEgZmlsZSBjaGFuZ2VkLCAxIGluc2VydGlvbigrKSwgMSBkZWxldGlvbigtKQoKZGlmZiAtLWdp dCBhL2xpc3AvbmV3Y29tbWVudC5lbCBiL2xpc3AvbmV3Y29tbWVudC5lbAppbmRleCA5NDUxODdl ODYzZi4uMzI1ODczNWRjZWEgMTAwNjQ0Ci0tLSBhL2xpc3AvbmV3Y29tbWVudC5lbAorKysgYi9s aXNwL25ld2NvbW1lbnQuZWwKQEAgLTM1OCw3ICszNTgsNyBAQCBjb21tZW50LW5vcm1hbGl6ZS12 YXJzCiBmdW5jdGlvbiBzaG91bGQgZmlyc3QgY2FsbCB0aGlzIGZ1bmN0aW9uIGV4cGxpY2l0bHku IgogICAodW5sZXNzIChhbmQgKG5vdCBjb21tZW50LXN0YXJ0KSBub2Vycm9yKQogICAgICh1bmxl c3MgY29tbWVudC1zdGFydAotICAgICAgKGxldCAoKGNzIChyZWFkLXN0cmluZyAiTm8gY29tbWVu dCBzeW50YXggaXMgZGVmaW5lZC4gIFVzZTogIikpKQorICAgICAgKGxldCAoKGNzIChyZWFkLXN0 cmluZyAiTm8gY29tbWVudCBzeW50YXggaXMgZGVmaW5lZC4gIFVzZTogIiAiIyIpKSkKIAkoaWYg KHplcm9wIChsZW5ndGggY3MpKQogCSAgICAoZXJyb3IgIk5vIGNvbW1lbnQgc3ludGF4IGRlZmlu ZWQiKQogICAgICAgICAgIChzZXRxLWxvY2FsIGNvbW1lbnQtc3RhcnQgY3MpCi0tIAoyLjQ4LjEK Cg== --67c5fb50_203c617f_926-- From unknown Tue Jun 17 01:47:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70804: 29.3.50; Feature request: Allow setting INITIAL-INPUT in comment-normalize-vars when comment-start is nil Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 19:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70804 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Daan Ro Cc: 70804@debbugs.gnu.org Received: via spool by 70804-submit@debbugs.gnu.org id=B70804.174102903121419 (code B ref 70804); Mon, 03 Mar 2025 19:11:01 +0000 Received: (at 70804) by debbugs.gnu.org; 3 Mar 2025 19:10:31 +0000 Received: from localhost ([127.0.0.1]:51969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tpBBN-0005ZK-Tm for submit@debbugs.gnu.org; Mon, 03 Mar 2025 14:10:30 -0500 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:53534) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tpBBK-0005YK-93 for 70804@debbugs.gnu.org; Mon, 03 Mar 2025 14:10:27 -0500 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5e033c2f106so5460872a12.3 for <70804@debbugs.gnu.org>; Mon, 03 Mar 2025 11:10:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741029020; x=1741633820; 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=TjVY8X8et3CX+CT3WcYsnnoSOUPFx75qLy3rHJ80H8A=; b=hGrWlaTcih51pqKX9g3iornHMAGzf0vLQn7Sb/ummVbrICNxD5iOFV54Pwc3rja67o UarJ7PTw1Odpsk2R8YqJrpd6Nd4+b6wtA/WNnDcrknL258bpnJJeImnmgUM1o6AW/ge/ 4bCNaOHf7SySzE+36dHE/sXnNVqarzXO/t5DUFrSoRn3s+XvluSc+ikqzdVD2jaLnOrO MfV5c0ChBOosfDAhUIFR3iwVm4wZ9yKiogm4I6AonWEsUi9aACZUdkufu+pUgKYnN13F In7o6SWwy+D4U4raJ/GjFy/6Ylb9ZNLQSSQW+M2h7r1ycxPSwhfgDliukdnoi13cnRpp wPTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741029020; x=1741633820; 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=TjVY8X8et3CX+CT3WcYsnnoSOUPFx75qLy3rHJ80H8A=; b=bsII2ZD19v6aeeKeMFDMKeEyaZeDDxniKiVYIJcgP8CRUM4CHRLrZjKaWdjI1iPSNB 25J8P321tpCq/LHRZpDAFHukBmvi+9dCKWO0M1MN+h2SUeDcyD2CWZBKWeRIvmUVW5gI oi/CgIwceqV/+EA/+k8Kj8TCL7EB+EHOLU/BIMUTHJ8iSuhXD/TwaIH8trqPWTFmUTmT 8zELr+cT8L5E4ufW2YT+sFyU2/V+1j6VnsnVqlTCeyMu7J8TmQusoOaT1uO3Uzss8gCI KP45bf3+sMXiwqis0CoKvCftY+rLGPSsTL1ksjA5WX1A/cQAQZv5e1jGEaklfej/LeRj O0sQ== X-Gm-Message-State: AOJu0YxmYbaiZm4S4k0qeDnlIOBaNhoLV7XH2wjMAkAW88Ju+f7MssL+ Cm1qWvTzZQoQEzsJSFxVFqQJERiFz27LMZ+o5VEYVWnqHIptLdTuu6q6c8+qwkB56fO/YpUYYDF ZR84Ss6KmxEiTipl487DtWSb1btM= X-Gm-Gg: ASbGncsTsHjOetSXB/7PUbSkRB/osuYnNXdmEN36tviGsTAeer40YYiJ1dRJrwXLydC NbAaV+nHjEt/NQ2vwDb0/eu9yk+IROD+SSP3Srr3gxZ1HKbAz7AmyDAD7GVK8KG2P7qgiLLCCWg dpyuvIrV1Bn6Wm87duaxWpbpa62w== X-Google-Smtp-Source: AGHT+IHTVx8aR5UHyJpIFc1xs2GrSxjRoWs2iFFit5RZtQV4YWRE9hnRcNtVDqy+SY4bGHy07oxgPQW3x18OKX2Hq4Y= X-Received: by 2002:a05:6402:51c6:b0:5dc:5ada:e0c7 with SMTP id 4fb4d7f45d1cf-5e4d6b4c2edmr40569669a12.26.1741029019843; Mon, 03 Mar 2025 11:10:19 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 3 Mar 2025 19:10:19 +0000 From: Stefan Kangas In-Reply-To: References: MIME-Version: 1.0 Date: Mon, 3 Mar 2025 19:10:19 +0000 X-Gm-Features: AQ5f1Jrd4AUEhs6gyx9jDqp747FFhABGnlhu1xm-HYD9gPV-5THcqJSXHIIGmII Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) 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 (-) Version: 31.1 Daan Ro writes: > Attached a single sexp change patch =)). Thanks! Some comments below: > From 549ee68d5b6cf3dae5dd69b8f1a99c045f200cbe Mon Sep 17 00:00:00 2001 > From: Daanturo > Date: Mon, 3 Mar 2025 18:46:01 +0000 > Subject: [PATCH] Let "#" be the suggested comment-start when undefined > (bug#70804) > > * lisp/newcomment.el: add "#" to 'comment-normalize-vars' prompt's > initial input. > --- > lisp/newcomment.el | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lisp/newcomment.el b/lisp/newcomment.el > index 945187e863f..3258735dcea 100644 > --- a/lisp/newcomment.el > +++ b/lisp/newcomment.el > @@ -358,7 +358,7 @@ comment-normalize-vars > function should first call this function explicitly." > (unless (and (not comment-start) noerror) > (unless comment-start > - (let ((cs (read-string "No comment syntax is defined. Use: "))) > + (let ((cs (read-string "No comment syntax is defined. Use: " "#"))) I think you should use the DEFAULT-VALUE argument instead of INITIAL-INPUT. Also, I recommend using format-prompt, e.g. (format-prompt "No comment syntax is defined, use" "#") > (if (zerop (length cs)) > (error "No comment syntax defined") > (setq-local comment-start cs) > -- > 2.48.1 From unknown Tue Jun 17 01:47:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70804: 29.3.50; Feature request: Allow setting INITIAL-INPUT in comment-normalize-vars when comment-start is nil Resent-From: Daan Ro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Mar 2025 10:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70804 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Stefan Kangas Cc: "70804@debbugs.gnu.org" <70804@debbugs.gnu.org> Received: via spool by 70804-submit@debbugs.gnu.org id=B70804.174108443329141 (code B ref 70804); Tue, 04 Mar 2025 10:34:02 +0000 Received: (at 70804) by debbugs.gnu.org; 4 Mar 2025 10:33:53 +0000 Received: from localhost ([127.0.0.1]:55594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tpPay-0007Zx-QA for submit@debbugs.gnu.org; Tue, 04 Mar 2025 05:33:53 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:48428) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tpPaw-0007ZU-5T for 70804@debbugs.gnu.org; Tue, 04 Mar 2025 05:33:51 -0500 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-223480ea43aso134375415ad.1 for <70804@debbugs.gnu.org>; Tue, 04 Mar 2025 02:33:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741084424; x=1741689224; darn=debbugs.gnu.org; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=yChZvbRs2HKPaonwdDM4QgdViV9sBqubxinMWnaILNA=; b=YDtaa/a0yvaFClTQdez9eNa3oCwewixVaDuioHBXUs2LNoAXN/TUAOac22qEaA/tYt bh0ktB+nlUSsL4Fe8D3ktgiTqz2ZW2uMAVYde5Fxx265Y2kTKw3IUXfA/dlTDvmJNGhy XOTMkfk6qJMZEDycjPXXhvavZGegoLKkpyCxPDS19czW2IqtRXeK7gDgZ3izwe0WvFTF 5MYNlUVNUrCF/hpqsnzoIdqzbnLSSL2HYzf5qmcXkKYpV7Yo0af0oyZLINZQl39Zhbsc P9aBezE61rl+4//YpLM3mSbgTvBhxGhvDCstmhZU6ZSMI2/YK09H9uK3ibCr1XWegv5g tnvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741084424; x=1741689224; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yChZvbRs2HKPaonwdDM4QgdViV9sBqubxinMWnaILNA=; b=kwHxZa3f3KUBz+5fDFP1HD90aIhByT22RZI3ycubR8ikjMexNN47/AWowIlrY+sBm4 I8iGFClSHD/ldCJ1Wc4hvMuI9BhI0+sNsUI4iFj0BZjwEyPW6fjBwaSNzARCi1eU6Owr X+Iba7MD1U2FeQJjDLeIugC1FxdL36vWRpFA+f7cCmztcFFa+Y3zBFkZFC+u5taRJJMq rpyfdaR7w0sNFBynRQZtkVDTrTW3CMGaPvsuoot2oSS/N9ocCknrRxt+NZTvJYLwEyO+ hhMesNfsKjpWPWNjFjAwgBxPienmBiGeRUVGqd9HBEuKdoAn0XTwlu5q1JdZAAusDAzT gqvg== X-Gm-Message-State: AOJu0Yydt5CNgA/VllKWtZKLi39D/K0uh8mwOdjwN5O6ZgsYNXvPwRC1 G6y+iMhWBQt4M8P75KwoJ3QW/eMFeW01T6uOiErTDDU9IymaWNDCuB6VQFQ0 X-Gm-Gg: ASbGncuRss991EPnytPbvynxsXHM1F0UB4FCUKp0O1bgJqGmmo3OLUDRdWu78zR41hd Q2fA4j+2um0CxQkDeCw1icQS9VYZbn6M5MRd1PC8CgOh6wP4PoqEiP01DOJlNjhcoYfspn95nIc TJNTWIMAhhC82gSQ8RIPn9XyCTYSmrUV0WHGQIPKjAHwxVwguWY/pJqvt6TgN+FKNec/9dFCIHZ o3Pajgoti3KSejQR1WbQfqnFWrBL7tPdhVtxyt8fxaEYeiAE6yYRh9Xf7GiHdsynne/uEzyh9Ib PkCyEtI6Ee0nvMs+BgdyvAnZzItIIT+/4yQL+iTSqQ4HSQ== X-Google-Smtp-Source: AGHT+IEbwi2RgVOeQzyjW2S3IyJGTNj+fVlAnyOH2pU6y9po0lsYtVPtOsM9tifAAcuMZDcGgjR3lw== X-Received: by 2002:a05:6a00:8d0:b0:736:6d4d:ffa6 with SMTP id d2e1a72fcca58-7366d4e0079mr4479058b3a.15.1741084423452; Tue, 04 Mar 2025 02:33:43 -0800 (PST) Received: from dan-laptop ([2405:4802:bfb8:1f00:eefa:9441:3f6d:fcbb]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-736560f5e6esm3729738b3a.104.2025.03.04.02.33.41 for <70804@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Mar 2025 02:33:42 -0800 (PST) Date: Tue, 4 Mar 2025 17:33:37 +0700 From: Daan Ro Message-ID: <372CE65F-D0FD-434F-B6A6-DC94B9F36CAB@getmailspring.com> In-Reply-To: References: X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="67c6d701_f130be2_932" X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Thank you! I see, that way is far less disrupting so it could be proceeded without debating. Daanturo On Mar 4 2025, at 2:10 am, Stefan Kangas wrote: > Version: 31.1 > > I think you should use the DEFAULT-VALUE argument instead of > INITIAL-INPUT. > > Also, I recommend using format-prompt, e.g. > (f [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (daanturo[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 HTML_MESSAGE BODY: HTML included in message 0.0 HTML_IMAGE_RATIO_08 BODY: HTML has a low ratio of text to image area 1.6 HTML_IMAGE_ONLY_12 BODY: HTML: images with 800-1200 bytes of words -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:632 listed in] [list.dnswl.org] 0.0 T_REMOTE_IMAGE Message contains an external image 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: 0.6 (/) --67c6d701_f130be2_932 Content-Type: multipart/alternative; boundary="67c6d701_779988ee_932" --67c6d701_779988ee_932 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Thank you! I see, that way is far less disrupting so it could be proceeded without debating. Daanturo On Mar 4 2025, at 2:10 am, Stefan Kangas wrote: > Version: 31.1 > > I think you should use the DEFAULT-VALUE argument instead of > INITIAL-INPUT. > > Also, I recommend using format-prompt, e.g. > (format-prompt "No comment syntax is defined, use" "#") --67c6d701_779988ee_932 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Thank you=21  I see, that way is far less disrupting so it coul= d be
proceeded without debating.

Daantur= o
On Mar 4 2025, at 2:10 am, Stef= an Kangas <stefankangas=40gmail.com> wrote:
<= div>Version: 31.1

I think you should use the DE=46AULT-VALU= E argument instead of
INITIAL-INPUT.

Also, I reco= mmend using format-prompt, e.g.

(format-prompt =22No commen= t syntax is defined, use=22 =22=23=22)
3D=22Sent --67c6d701_779988ee_932-- --67c6d701_f130be2_932 Content-Type: application/octet-stream Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="=?utf-8?Q?0001-Let-sharp-be-the-default-comment-start-when-prompted-bug-70804.patch?=" RnJvbSA3ZTRmODFmNzhhYjBlY2YwMjk3NTM0NjYxMzNjMzliZWIxMTY3ZTczIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBEYWFudHVybyA8ZGFhbnR1cm9AZ21haWwuY29tPgpEYXRlOiBN b24sIDMgTWFyIDIwMjUgMTg6NDY6MDEgKzAwMDAKU3ViamVjdDogW1BBVENIXSBMZXQgIiMiIGJl IHRoZSBkZWZhdWx0IGNvbW1lbnQtc3RhcnQgd2hlbiBwcm9tcHRlZAogKGJ1ZyM3MDgwNCkKCiog bGlzcC9uZXdjb21tZW50LmVsOiBhZGQgIiMiIHRvICdjb21tZW50LW5vcm1hbGl6ZS12YXJzJyBw cm9tcHQncwpkZWZhdWx0IHZhbHVlLgotLS0KIGxpc3AvbmV3Y29tbWVudC5lbCB8IDYgKysrKyst CiAxIGZpbGUgY2hhbmdlZCwgNSBpbnNlcnRpb25zKCspLCAxIGRlbGV0aW9uKC0pCgpkaWZmIC0t Z2l0IGEvbGlzcC9uZXdjb21tZW50LmVsIGIvbGlzcC9uZXdjb21tZW50LmVsCmluZGV4IDk0NTE4 N2U4NjNmLi4xNzcwYzk3MGMzMyAxMDA2NDQKLS0tIGEvbGlzcC9uZXdjb21tZW50LmVsCisrKyBi L2xpc3AvbmV3Y29tbWVudC5lbApAQCAtMzU4LDcgKzM1OCwxMSBAQCBjb21tZW50LW5vcm1hbGl6 ZS12YXJzCiBmdW5jdGlvbiBzaG91bGQgZmlyc3QgY2FsbCB0aGlzIGZ1bmN0aW9uIGV4cGxpY2l0 bHkuIgogICAodW5sZXNzIChhbmQgKG5vdCBjb21tZW50LXN0YXJ0KSBub2Vycm9yKQogICAgICh1 bmxlc3MgY29tbWVudC1zdGFydAotICAgICAgKGxldCAoKGNzIChyZWFkLXN0cmluZyAiTm8gY29t bWVudCBzeW50YXggaXMgZGVmaW5lZC4gIFVzZTogIikpKQorICAgICAgKGxldCogKChkZWZhdWx0 ICIjIikKKyAgICAgICAgICAgICAoY3MgKHJlYWQtc3RyaW5nIChmb3JtYXQtcHJvbXB0CisgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIk5vIGNvbW1lbnQgc3ludGF4IGlzIGRlZmluZWQuICBV c2U6ICIKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZWZhdWx0KQorICAgICAgICAgICAg ICAgICAgICAgICAgICAgbmlsIG5pbCBkZWZhdWx0KSkpCiAJKGlmICh6ZXJvcCAobGVuZ3RoIGNz KSkKIAkgICAgKGVycm9yICJObyBjb21tZW50IHN5bnRheCBkZWZpbmVkIikKICAgICAgICAgICAo c2V0cS1sb2NhbCBjb21tZW50LXN0YXJ0IGNzKQotLSAKMi40OC4xCgo= --67c6d701_f130be2_932--