From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filippo Argiolas Newsgroups: gmane.emacs.devel Subject: [NonGNU ELPA] new package: eglot-inactive-regions Date: Sun, 01 Dec 2024 09:04:18 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25328"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerd =?utf-8?Q?M=C3=B6llmann?= , Stefan Kangas , Philip Kaludercic To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 01 09:05:20 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 1tHexE-0006RW-15 for ged-emacs-devel@m.gmane-mx.org; Sun, 01 Dec 2024 09:05:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHewN-0007xG-3s; Sun, 01 Dec 2024 03:04:27 -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 1tHewL-0007x5-PF for emacs-devel@gnu.org; Sun, 01 Dec 2024 03:04:25 -0500 Original-Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tHewJ-0001uP-Ty for emacs-devel@gnu.org; Sun, 01 Dec 2024 03:04:25 -0500 Original-Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-434b3e32e9dso25565435e9.2 for ; Sun, 01 Dec 2024 00:04:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733040262; x=1733645062; darn=gnu.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=7hjiU7y7jRh3l9qShMg3r6K1lvZGoMbINL4bqy6+EFE=; b=UVMXi9Tps2YO8yvuzYDmZF1kRAYgJ2r5SzymWyb5QGeARJYtHHhhgOQET+mmRMnWNJ ljCZfx1QUPM692M+sndp+S3XTFEQxf8scXhCwqGEEr/8prSaO3Zqda5RUlTpLr/kMf5L C682SxYrGjQQKcZfjsaj28amWCD5SVu2GW5W1atKUQaMHsKGPqcODcDRA3PyS04U5Y6M CWlKXsdQUw2gGW65013p/tNyQoRJ8Mt/a5wtZf3oUxvL/JPFCXdM1Sf25U5MGJbGsG32 GPphOOQ0tmfPcAa6uH2w1IgHxF4lMq/zAI4GDqGJf+ZbAqQiA16Cl7sVZAVTVuBacu7t VTEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733040262; x=1733645062; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7hjiU7y7jRh3l9qShMg3r6K1lvZGoMbINL4bqy6+EFE=; b=QTx8Xvn6+jj2oiUt9tqUsW6tB09wETx6RNyt5Vq1uK8+rR8N/+924MEyiEDwNkXqFp geJlafMSMhpnR4/D932MJATEbKDmkbw9YF5sQceAsEWgo6iRWNFnyqgcCdmzPQ1vMqXm cWHdusPGrYX6Zq0b+qiDJKYC2f1f6oZe3A34nRgyS3jdQKh9D+0Kj4hKvcdSnbeCBLOt hh6TsK4aN4wLX7/yF1YZ0kbcC0P1qHq7jOm7GfEkXu7wQh1CaHY8TNeBoKrB3mYGXYNo sVCh7Qk1g2Dg9m9Pl+UkD4gS7dxHpkdxKOEsciF3ERkd9qeTJaoD90qbHyk/bJt/NqGy ohcg== X-Gm-Message-State: AOJu0YzAABH7sOf7k16Y9Rj0sySX1ET18k3Du/wi20vI28wAXWZPf5tz qjSejYUqvrGijaOAJAabWSjoGGzoqG5LEi1YZSgOYAN8TIzaz7PH X-Gm-Gg: ASbGncuWSb+6x4WnulO+IQHLjyibZgNAM1lbZ4GjDhyGyqFutgqX6z9Np3gAEfUFLTr 9y/kuZFmcrqfy21Qd37q5lFOk3FEejypcuehg2ll0ORWXrn0JYVo3KUzVNRwyuMHJquHIYVohvA 83tP+cUZkFvphgPglnnP1vEoDlFqpkJ/Ri393tWS+Kl6E3P4GLms56pMvwwKKG1Uxf2hfbU8qro HnjR2J/VvqntdBZkVl88IYGq3zhbqd/73lftjszW2pTO5b87jSF0l+NLRM= X-Google-Smtp-Source: AGHT+IEnQEdiUCRdoLFFxU3qngic2bymW7qUM6w/6n07jParS9xQmEYxYwK60C6EE3dB6ll+nUJwsQ== X-Received: by 2002:a05:600c:5106:b0:434:9df4:5472 with SMTP id 5b1f17b1804b1-434a9df09b4mr175004785e9.31.1733040261604; Sun, 01 Dec 2024 00:04:21 -0800 (PST) Original-Received: from mba ([151.81.191.240]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434aa76b52bsm139784415e9.18.2024.12.01.00.04.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Dec 2024 00:04:20 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=filippo.argiolas@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:325907 Archived-At: Hi all, a couple of weeks ago I submitted my clangd-inactive-regions package NonGNU ELPA inclusion. Previous discussion led to renaming the package to make it more general, so I am submitting it again. For whom who missed it, it's a little Eglot extension to visually style inactive preprocessor branches in c/cpp code in a LSP powered way. You can find more at: https://github.com/fargiolas/eglot-inactive-regions This addresses some of the feedback received last time: - renamed the package to eglot-inactive-regions so it's not limited to clangd support only - added experimental support for ccls skippedRegions, so the rename actually makes sense - turned it into a global minor mode (thanks Gerd!). Now once the mode is active globally it gets automatically enabled in an eglot managed buffer when an inactive region notification arrives from the LSP server - moved all the user options to defcustoms I hope this rename won't cause too much disruption to my users. I think all the changes are for the best but let me know if I broke anything in the process. As always, feedback is very welcome! Cheers, Filippo