From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Remove elements from speedbar-supported-extension-expressions Date: Tue, 03 Dec 2024 16:43:44 +0000 Message-ID: Reply-To: Heime Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3738"; mail-complaints-to="usenet@ciao.gmane.io" To: Heime via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 03 17:44:42 2024 Return-path: Envelope-to: geh-help-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 1tIW0w-0000ou-85 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 03 Dec 2024 17:44:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIW0J-0001rx-2K; Tue, 03 Dec 2024 11:44:04 -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 1tIW0B-0001qh-AR for help-gnu-emacs@gnu.org; Tue, 03 Dec 2024 11:43:55 -0500 Original-Received: from mail-10696.protonmail.ch ([79.135.106.96]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIW09-0002w8-2O for help-gnu-emacs@gnu.org; Tue, 03 Dec 2024 11:43:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1733244230; x=1733503430; bh=CjRWUnIBQK6WIMzzFY6Otpi+HNixxIL2BFJW63OfsDM=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=a5l/k/Dfym/QFZFb4YG3qkEcBv6t5rnQ0iM75CUR1tLetExc9D03x0u4CQAt8giv3 1H0rzYcmJnUkqWxq6p1nVBZrAJS4zieKpGE3g1WauzUm9T5b+fKsBBLQZadmKVMVnl rCeZQ8shIV+n1d330Ugmh5i/2AZzUMd8iW309fD6zCY9g1nzws2UHUoHG2TiE8tY0d fTOFMPHZzIpyT0kOUfkmUm3ApKVH2nlfen0w5cANH3iWJbeRP5DJkuNqET8M0/btaP LCNiCvdoMGWXYrd2bLxFuLaaudJetzreFMyxPMM82Sadg6ciFCQIdRgqX7jBTzcaLc s7alBlFgLoxbQ== Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 181630c39606b764db7addb6525f7b7421cbf880 Received-SPF: pass client-ip=79.135.106.96; envelope-from=heimeborgia@protonmail.com; helo=mail-10696.protonmail.ch 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_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148541 Archived-At: I want to have a function to remove elements from speedbar-supported-extens= ion-expressions What is a robust way to do it? =20 If I do C-h v speedbar-supported-extension-expressions and pick up the entry in the way it is printed, would it be remaved if=20 one just copies the entry? Suppose the printed value is (".[ch]\\(\\+\\+\\|pp\\|c\\|h\\|xx\\)?" ".tex\\(i\\(nfo\\)?\\)?" ".el" ".emacs" ".l" ".lsp" ".p" ".java" ".js" ".f\\(90\\|77\\|or\\)?" ".ad[abs]" ".p[lm]" ".tcl" ".m" ".scm" ".pm" ".py" ".g" ".s?html" ".ma?k" "[Mm]akefile\\(\\.in\\)?") =20 and match using=20 ".[ch]\\(\\+\\+\\|pp\\|c\\|h\\|xx\\)?" to remove that entry. Or is- it more robust to remove the entry by its position in the list?