From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [NonGNU ELPA] new package: clangd-inactive-regions Date: Mon, 04 Nov 2024 00:34:42 -0500 Message-ID: References: Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5151"; mail-complaints-to="usenet@ciao.gmane.io" Cc: filippo.argiolas@gmail.com, emacs-devel@gnu.org, eliz@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 04 06:35:22 2024 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 1t7pkI-0001AN-9D for ged-emacs-devel@m.gmane-mx.org; Mon, 04 Nov 2024 06:35:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7pjh-0000yF-Q2; Mon, 04 Nov 2024 00:34:45 -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 1t7pjg-0000xy-8m for emacs-devel@gnu.org; Mon, 04 Nov 2024 00:34:44 -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 1t7pjg-000218-03; Mon, 04 Nov 2024 00:34:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=ztSEnHbvHIRB3CNgcI68mC3cGJ/ym8JSeCoDEGoZme8=; b=AhE+T/ksavfN Wn7u18DRRxH31YOxXhUdkJnuRJ8Rep56v+VVTPf5WCMq5PHyUAt2c4jM0XTYqQnVrsXERa/m1yJuU OAyZ5k2R+opCfJgUEEpp7yMl/QsfCGfiQce6hkXy9nI0k1FD0G9jyNED/9z87e7uPEwuQPVt8mNN9 p/oYYUWrFWO7bIqG+QeQdxJ5YiI1Fdd5yKXtNcLMHUlsx8O9k1jEemIo8a1cRNOGnoyPAveCwNKKs EFJfF1blICi2LfN6MXigZw2p8+xGOXNOR/TxK9dWezvuJ9IMOKZxzkNESik1Uh0AwVDB5CuIVDMp6 /Uy4hscF+db5cRKOOdZvpg==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1t7pje-0003u6-4x; Mon, 04 Nov 2024 00:34:42 -0500 In-Reply-To: (message from Stefan Kangas on Sat, 2 Nov 2024 14:52:11 -0700) 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:325076 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > > It's an eglot extension that listens to clangd inactiveRegions > > notifications and shades inactive code accordingly. It's useful to > > highlight disabled code sections in a LSP aware way, honoring current > > building options and defines. Does "inactive region" mean unreachable code? I am guessin so. Is there a standard way for lamguage servers to report unreachable code? Could we make Emacs recognize that way? Then eglot could handle it for any language, and it would not be specific to clangd. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)