From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Missing features in c-ts-mode Date: Thu, 16 Feb 2023 09:35:33 +0200 Message-ID: <83ttzm83lm.fsf@gnu.org> References: <83wn4iajyy.fsf@gnu.org> <87fsb67pfj.fsf@thornhill.no> <83lekyagwy.fsf@gnu.org> <87a61e7n5j.fsf@thornhill.no> <877cwi7mju.fsf@thornhill.no> <83bkluaevv.fsf@gnu.org> <878rgy4qh6.fsf@web.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12705"; mail-complaints-to="usenet@ciao.gmane.io" Cc: theo@thornhill.no, casouri@gmail.com, emacs-devel@gnu.org To: Felix , Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 16 08:36:19 2023 Return-path: Envelope-to: ged-emacs-devel@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 1pSYoU-000344-GN for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Feb 2023 08:36:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSYoA-0001IP-Hf; Thu, 16 Feb 2023 02:35:58 -0500 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 1pSYo5-0000xe-8b for emacs-devel@gnu.org; Thu, 16 Feb 2023 02:35:55 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSYo4-0008Gt-LN; Thu, 16 Feb 2023 02:35:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=B8G85lGHpPp4q7byxr1rhYLIrKLn9FARObYBUp9nZlI=; b=hD5kX6zwNpoi +y8tMAr0+CJKdzWbhiTsspkLvt1CZAAHvF6nlUveeLlaUBcxTcHZi/r+7CV8/47ad+YyVlZbxaS1b HFPVNMtMIZ3oDiZn6gHGdZblBJ1l9MY+81C8KZfue3euw/TJ491fu7SUuPHgNjBncKkPLCrmpSQ10 mr9XEWVM+2QQJ2Gjge5Tgg/qH6Ecy/aslana09pwsJGV9Ua5lFCJ/c4WUO/0eflKEW5ZLqZnoq55K nAOoFuBQ8Rn858Rnd5eC7WDjRuKve6I1UV1xHQDQuP6R4AXjoMZltNGfl8/7UHBJ6iWDvvzFwSwPN td52A2j9dZeCtTYpE0DgzQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSYo2-0000wP-Kt; Thu, 16 Feb 2023 02:35:52 -0500 In-Reply-To: <878rgy4qh6.fsf@web.de> (message from Felix on Wed, 15 Feb 2023 21:31:25 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303370 Archived-At: > From: Felix > Cc: Theodor Thornhill , casouri@gmail.com, > emacs-devel@gnu.org > Date: Wed, 15 Feb 2023 21:31:25 +0100 > > I don't know if it's ok to reuse/extend this thread, > but another feature that doesn't work in c-ts-mode is > c-toggle-comment-style. > Initially the mode uses /* */ style comments. > If after c-toggle-comment-style, commenting anything leads to: > > 'comment-or-uncomment-region: Args out of range: "", 0, 1' Please report this as a bug. c-ts-mode should have its own command for this; invoking c-toggle-comment-style will always cause trouble in this situation and should probably signal an error if invoked not in c-mode or its descendant.