From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christophe Troestler Newsgroups: gmane.emacs.bugs Subject: bug#50226: 27.1; Fix uncomment-region with space-only comment-continue Date: Fri, 27 Aug 2021 16:22:40 +0200 Message-ID: <87r1efc6hb.fsf@poincare.umons.ac.be> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22903"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.3; emacs 27.1 To: 50226@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 27 16:29:26 2021 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 1mJcrG-0005kH-5l for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Aug 2021 16:29:26 +0200 Original-Received: from localhost ([::1]:47100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJcrE-0005du-GE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Aug 2021 10:29:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJcqs-0005ab-B7 for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2021 10:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41110) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJcqs-0002BG-1Q for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2021 10:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mJcqr-0003oL-QT for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2021 10:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christophe Troestler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Aug 2021 14:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50226 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163007448214581 (code B ref -1); Fri, 27 Aug 2021 14:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Aug 2021 14:28:02 +0000 Original-Received: from localhost ([127.0.0.1]:52656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJcpt-0003my-L9 for submit@debbugs.gnu.org; Fri, 27 Aug 2021 10:28:02 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJcpp-0003me-7Y for submit@debbugs.gnu.org; Fri, 27 Aug 2021 10:28:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJcpo-00058M-PM for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2021 10:27:56 -0400 Original-Received: from mail-vi1eur04on0617.outbound.protection.outlook.com ([2a01:111:f400:fe0e::617]:27910 helo=EUR04-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJcpj-0001Gk-FD for bug-gnu-emacs@gnu.org; Fri, 27 Aug 2021 10:27:55 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PokZOGBluIBjeTg3hMxJfIBhTv0g6OBPgW/LY910QJE1qTI5EZhIvUo0OB8dipIGbdI8ZO9YGhTqwjZ71WEs+BPaIllCaRI+7IQjQEJHTJa0oOLMq4LNHH0swvfuLuMUd6sG+/wT4a2e5AEpvzLygcgI1+RUthu/dwc7vPOvp/pb59MSPgGinV088aJ8Wp6RJGLIQR+lfu43ySRV1z9LvtYOFfdGymd740i2JWdBp+1S8BTIZhVTCqlk/NK9WYLox5ZJvw3FSgT0TUF0kqulNoWuFMCvetBYMqoCBUvW9IhSHRcm3qSpwfL3nltq8WxnithSanRh4fIdeG4uS63cAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ntJiE4UvPvCBMtps1pQmKodbxUoU5u7luaVHrua2uzM=; b=kiyp9GQ+KtcDd3v0NccG2DDVPrHyyg6rbBGh8XO40ofhYWVKmQ5qms72pfDD0KyEs3vnT2zyxx7XGJt4QVb0LYcgARNjXGA0CSd1GY1nhKoVhqpECcvIoqm5XnGXYmqyG5heQ3F5uabsT+d0hy7aFPNVYeZMQQO/AQFJAA01u2xF15WKirDHaToD8utX159w2CIhGfB6tnGRz3ANPHmC+mqvUrvF/eDovcJofUVlEdnnUVpzYTACUVrlvWMk9xcpPAESvAcIif2ZiTcnjk5FWOR3pjgUAx8k71NRt8k0fMUW+AFtsoeGkjR/yO2HosTy7Qgg6lfhavPHVCRrIP1BBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=umons.ac.be; dmarc=pass action=none header.from=umons.ac.be; dkim=pass header.d=umons.ac.be; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alumniumonsac.onmicrosoft.com; s=selector1-alumniumonsac-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ntJiE4UvPvCBMtps1pQmKodbxUoU5u7luaVHrua2uzM=; b=z5NkZgv+QhyfN/QDledso45pt18gPFMnSxFuLdiQnIyzOyOnYjFsDYovul+rlRs2QjKvkiFlyeFQwu2ZXtDAhovwfIEGvDn+p4SUo4obh5Xvf0ScaxFqxfVCCSfb7YmdzvTz87GNqeIt97JeIJXTIabMrIp5jnrcDv2SAucGUKY= Authentication-Results: umons.ac.be; dkim=none (message not signed) header.d=none;umons.ac.be; dmarc=none action=none header.from=umons.ac.be; Original-Received: from VI1PR01MB5213.eurprd01.prod.exchangelabs.com (2603:10a6:803:cd::27) by VI1PR01MB5070.eurprd01.prod.exchangelabs.com (2603:10a6:803:8e::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4436.19; Fri, 27 Aug 2021 14:22:42 +0000 Original-Received: from VI1PR01MB5213.eurprd01.prod.exchangelabs.com ([fe80::f07a:f45f:44a3:a14f]) by VI1PR01MB5213.eurprd01.prod.exchangelabs.com ([fe80::f07a:f45f:44a3:a14f%6]) with mapi id 15.20.4436.027; Fri, 27 Aug 2021 14:22:42 +0000 X-Date: Fri, 27 Aug 2021 16:07:42 +0200 X-ClientProxiedBy: PAZP264CA0057.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1fd::18) To VI1PR01MB5213.eurprd01.prod.exchangelabs.com (2603:10a6:803:cd::27) X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from poincare (2a02:a03f:c394:e400:a5b3:c7f5:da59:8dec) by PAZP264CA0057.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1fd::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.20 via Frontend Transport; Fri, 27 Aug 2021 14:22:41 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 930d8a7e-33de-44a1-e15e-08d96966218f X-MS-TrafficTypeDiagnostic: VI1PR01MB5070: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:220; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WfDT3m9AABP+FO9/V+1TS9qPd0Q0UXHnN6o3vmRFH4pUbxP4BFeGNninrcksbp095v6o11i7eB8OD23XrdmfEgPM+GeGr5HpFH5fifjOczIKU1mxpPwpqeIARP6E39fS7kiln/U0kp6taIrLTk3M0xbR3r8LA2pmJLCSvlqYNiZzQ+KyVvFtEcH4glyJqriuw/x+YKM1KVq13MavAB0rpeWgyCpO0UezhFEijiZ5gqXsNoy1xUoVR2OqBVjCYrlBjppnnQRdGl7vdtlevCDJi+5C+TmkfU0sqD2KwcOfDqGemdZ6UT8bvwDeQPe+6EFlcdP0HT8htDt8YjpAHYHiME+I7W8Oe79NvM0Icj2ZKnkkH5Gceu0avAE/ECQLqMTa89P7y45ytw/C4tlAaPfPyeoysyX+UdbA13HGBF7lnwwsH32bd1YAQhXOF7qPpLP4c9BqDLmGugcUxIbVPTRoPZgX2loe5XDNdTWQ5bF1IKDmX0s4eMa04KJ5PBZJ7SeLbP3jK/d0EV2cJ6hge4GBYGaAOSbWTTdvDX7oSbGzk9H+qobLqLgB/4fiGaiXhHoAgtTsHJlxwDr/G+emj/QxRnyJUSCLcxgV3JCdAyYK7GhBODKmW2dpliva5oEogJAfsXe3XTeztmydYyq+97MgVq0jVXMZltBrezVUkYcxBf0= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR01MB5213.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(2906002)(66616009)(66476007)(66946007)(66556008)(44832011)(30864003)(6486002)(86362001)(6496006)(52116002)(5660300002)(83380400001)(186003)(43170500006)(508600001)(6916009)(316002)(786003)(8936002)(38100700002)(8676002)(53546011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ltErWmX0M79H3Bpksilg2XX97rsMBuzr6qydw/Cnx6SLAZCy5wTGzpHI3btbYI83KGlj0Hclhso+npAzBXSI8YzQeypkig43sEIIRv3f3S/dKk1pgMBQkkMQ87OFJsAFfWA4VeWt0wlehgutDEqgFekaLjrzTyF78ZlbT//93Jv5Yb2wJNzs2HRny88RS+xuTWoP/MxwUVRJUdM/zpYZgR8sEIvMSqSKQ8FFWt819ag7F+YojYmHD02qb0jaeP7HcwZboi/6PI3POZWCxBUoYxfHhrDWjwIt0qn/+Qxsp6uUSAD34KoZ1zoWZio9OJKm5Z08sOMQQA5glLP4xdZZSxLSJoXnXsS6YtmSujoDMGAh0oxNbT4ww0yQii3DCUXwMRFsX5GQYZupl8y51pTj787EkGBA8JPN8Nj6ff9AXyq/A4qnP423SY26gHN8oi34bcEUO2j5v2B+RtiAXe1gxwFZhMtZjNEp50aU7JBdgotCa5SHzN8g+N79T3wUXz+y+KBvqBThn+z0gZCAnERai3vpw3lXJgffO/ivd3RnMeTojSVwexZABSu6Zq8Brund9QFE4bQ25aHvpfEag81HSyi81ZJA5jZn7KsP72TdtqTGFRs/v4zIaOQUowzIMIBIu+CjkEroxe7cGogavpx2VOb+w9SsLSBvxesmkklOTtibml9V0bTULchqZl9Mi4ezbF0zjs6xQR9zlpY+PCpJE+fKPw6l6yDLqJZuosuZtyLlkghk3dAeyZWH5Q 1+ogbkX9YNrIJzkDRTX4+Gak0V2I9y382sLadkMkPlSfjtoxzZubiHc/lIjnfnk+XjifXe4u/IK7PCEYimOozIDjm8PraSdABe X-OriginatorOrg: umons.ac.be X-MS-Exchange-CrossTenant-Network-Message-Id: 930d8a7e-33de-44a1-e15e-08d96966218f X-MS-Exchange-CrossTenant-AuthSource: VI1PR01MB5213.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2021 14:22:42.1483 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 488bed9d-d6a7-48d5-ba1f-ebec3823b357 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WUsO7qEMt9E+DuTWNeQlB3Rw/sBg6RNe2rrV7qL1B0lF/GE59L4GSDQIIEQ8ruLgIh0yFp5XBEvZsglGbvz94g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR01MB5070 Received-SPF: pass client-ip=2a01:111:f400:fe0e::617; envelope-from=Christophe.TROESTLER@umons.ac.be; helo=EUR04-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:212813 Archived-At: --=-=-= Content-Type: text/plain In the Emacs development branch, `comment-region-default-1' has been fixed to handle the case 'comment-continue' is entirely made of whitespace (commit 5c93063129). However, `uncomment-region-default-1' did not receive an appropriate fix as the following test shows: --8<---------------cut here---------------start------------->8--- (let ((comment-style 'multi-line) (comment-continue " ") (text " a\n b")) (equal text (with-temp-buffer (c-mode) (insert text) (comment-region (point-min) (point-max)) (uncomment-region (point-min) (point-max)) (buffer-string)))) --8<---------------cut here---------------end--------------->8--- The attached patch fixes that. Best, C. In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-28, modified by Debian built on x86-conova-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Recent messages: Checking 71 files in /usr/share/emacs/27.1/lisp/erc... Checking 34 files in /usr/share/emacs/27.1/lisp/emulation... Checking 180 files in /usr/share/emacs/27.1/lisp/emacs-lisp... Checking 24 files in /usr/share/emacs/27.1/lisp/cedet... Checking 59 files in /usr/share/emacs/27.1/lisp/calendar... Checking 87 files in /usr/share/emacs/27.1/lisp/calc... Checking 113 files in /usr/share/emacs/27.1/lisp/obsolete... Checking for load-path shadows...done Org-Msg mode disabled Mark set Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-cairo --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -ffile-prefix-map=/build/emacs-LlFm6W/emacs-27.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LC_MESSAGES: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: OrgMsg Minor modes in effect: visual-fill-column-mode: t flyspell-mode: t desktop-save-mode: t TeX-PDF-mode: t global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t show-paren-mode: t global-edit-server-edit-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: ~/software/OCaml/dune/editor-integration/emacs/dune-flymake hides /home/trch/.opam/4.11.2+flambda+no-flat-float-array/share/emacs/site-lisp/dune-flymake ~/software/OCaml/dune/editor-integration/emacs/dune hides /home/trch/.opam/4.11.2+flambda+no-flat-float-array/share/emacs/site-lisp/dune /home/trch/software/org-msg/org-msg hides /home/trch/.emacs.d/elpa/org-msg-20210716.2237/org-msg /home/trch/.emacs.d/elpa/debian-el-20201011.1543/deb-view hides /usr/share/emacs/site-lisp/elpa/debian-el-37/deb-view /home/trch/.emacs.d/elpa/debian-el-20201011.1543/debian-bug hides /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-bug /home/trch/.emacs.d/elpa/debian-el-20201011.1543/apt-utils hides /usr/share/emacs/site-lisp/elpa/debian-el-37/apt-utils /home/trch/.emacs.d/elpa/debian-el-20201011.1543/preseed hides /usr/share/emacs/site-lisp/elpa/debian-el-37/preseed /home/trch/.emacs.d/elpa/debian-el-20201011.1543/apt-sources hides /usr/share/emacs/site-lisp/elpa/debian-el-37/apt-sources /home/trch/.emacs.d/elpa/debian-el-20201011.1543/debian-autoloads hides /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-autoloads /home/trch/.emacs.d/elpa/debian-el-20201011.1543/debian-el hides /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-el /home/trch/.emacs.d/elpa/debian-el-20201011.1543/debian-el-autoloads hides /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-el-autoloads /home/trch/.emacs.d/elpa/debian-el-20201011.1543/gnus-BTS hides /usr/share/emacs/site-lisp/elpa/debian-el-37/gnus-BTS /home/trch/.emacs.d/elpa/debian-el-20201011.1543/debian-el-pkg hides /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-el-pkg /home/trch/.emacs.d/elpa/debian-el-20201011.1543/deb-view hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/deb-view /home/trch/.emacs.d/elpa/debian-el-20201011.1543/apt-utils hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/apt-utils /home/trch/.emacs.d/elpa/debian-el-20201011.1543/preseed hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/preseed /home/trch/.emacs.d/elpa/debian-el-20201011.1543/debian-bug hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-bug /home/trch/.emacs.d/elpa/debian-el-20201011.1543/apt-sources hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/apt-sources /home/trch/.emacs.d/elpa/debian-el-20201011.1543/debian-autoloads hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-autoloads /home/trch/.emacs.d/elpa/debian-el-20201011.1543/debian-el hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-el /home/trch/.emacs.d/elpa/debian-el-20201011.1543/debian-el-autoloads hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-el-autoloads /home/trch/.emacs.d/elpa/debian-el-20201011.1543/gnus-BTS hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/gnus-BTS /home/trch/.emacs.d/elpa/debian-el-20201011.1543/debian-el-pkg hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-el-pkg Features: (shadow emacsbug cl-print debug backtrace eieio-opt help-fns radix-tree magit-gitignore git-rebase goto-addr magit-extras misearch multi-isearch cal-china lunar solar cal-dst cal-islam holidays hol-loaddefs cal-move rect mhtml-mode css-mode eww mm-url js sgml-mode dabbrev image-file url-http url-gw url-auth url-queue gnutls network-stream nsm mailalias visual-fill-column face-remap url-cache sort smiley shr-color mm-archive mail-extr qp latexenc auto-complete popup reftex-auc preview tex-buf reftex-dcr reftex reftex-loaddefs reftex-vars latex latex-flymake tex-ispell tex-style tex-mode ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir ol-docview ol-bibtex ol-bbdb ol-w3m tuareg tuareg-compat tuareg-opam caml-help view find-file bug-reference sh-script executable flyspell ispell markdown-mode fortran cus-edit cus-start cus-load vc-git flycheck matlab matlab-scan matlab-syntax matlab-compat pulse desktop frameset php-mode mode-local speedbar sb-image ezimage dframe cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs php-face php php-project tlc font-latex tex dbus texmathp bibtex julia-repl s term disp-table ehelp dune-flymake flymake-proc flymake compile warnings dune skeleton smie merlin-xref xref project merlin-cap merlin pcase caml-types magit-bookmark magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode git-commit log-edit pcvs-util add-log magit-core magit-autorevert magit-margin magit-transient magit-process with-editor shell magit-mode transient cl-extra magit-git magit-section magit-utils crm dash erc-goodies erc erc-backend erc-compat erc-loaddefs twittering-mode org-msg let-alist color ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar ox-html table ox-ascii ox-publish ox org-element avl-tree generator htmlize gnus-msg org-agenda mu4e-icalendar gnus-icalendar org-capture gnus-cite mu4e-contrib eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util bookmark pp mu4e mu4e-org mu4e-main mu4e-view mu4e-view-gnus gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum url url-proxy url-privacy url-expand url-methods url-history gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-range gnus-win gnus nnheader wid-edit mu4e-view-common thingatpt mu4e-headers mu4e-compose mu4e-context mu4e-draft mu4e-actions ido rfc2368 smtpmail sendmail mu4e-mark mu4e-proc mu4e-utils doc-view jka-compr image-mode exif mu4e-lists mu4e-message shr url-cookie url-domsuf url-util svg xml dom flow-fill mule-util mailcap hl-line mu4e-vars message rmc puny dired dired-loaddefs rfc822 mml mml-sec gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader mu4e-meta adoc-mode tempo cl markup-faces org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities time-date noutline outline easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org-macs org-loaddefs format-spec find-func timeclock epa-file epa derived epg epg-config quail help-mode autorevert filenotify edmacro kmacro paren icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs edit-server advice server finder-inf tex-site debian-el proof-site proof-autoloads rx info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 914242 120046) (symbols 48 60873 94) (strings 32 287523 30289) (string-bytes 1 8844929) (vectors 16 105104) (vector-slots 8 2202885 188808) (floats 8 1241 492) (intervals 56 17150 2164) (buffers 1000 150)) --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-lisp-newcomment.el-Uncommenting-with-whitespace-comm.patch >From c0d9a34a7f0a5955002429da0480aaf3913cd061 Mon Sep 17 00:00:00 2001 From: Christophe Troestler Date: Fri, 27 Aug 2021 16:14:08 +0200 Subject: [PATCH] lisp/newcomment.el: Uncommenting with whitespace `comment-continue' Content-Type: text/plain; charset="utf-8" --- lisp/newcomment.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/newcomment.el b/lisp/newcomment.el index 57a52effd1..b458f0356d 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el @@ -932,7 +932,8 @@ uncomment-region-default-1 (setq end (copy-marker end)) (let* ((numarg (prefix-numeric-value arg)) (ccs comment-continue) - (srei (comment-padright ccs 're)) + (srei (or (comment-padright ccs 're) + (and (stringp comment-continue) comment-continue))) (csre (comment-padright comment-start 're)) (sre (and srei (concat "^\\s-*?\\(" srei "\\)"))) spt) -- 2.32.0 --=-=-=--