From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#56003: Bash functions not showing in speedbar Date: Thu, 16 Jun 2022 08:41:12 +0530 Message-ID: <87y1xxcnfz.fsf@gmail.com> References: 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="2107"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: carlmarcos@tutanota.com To: 56003@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 16 05:12:15 2022 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 1o1fvb-0000Od-HM for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Jun 2022 05:12:15 +0200 Original-Received: from localhost ([::1]:47946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1fva-00035Y-1U for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Jun 2022 23:12:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1fvO-00035F-Ou for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2022 23:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46372) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1fvO-0000QQ-HH for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2022 23:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1fvO-0006mh-D9 for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2022 23:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Jun 2022 03:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56003 X-GNU-PR-Package: emacs X-Debbugs-Original-To: carlmarcos--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: carlmarcos@tutanota.com, 56003@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165534910426052 (code B ref -1); Thu, 16 Jun 2022 03:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jun 2022 03:11:44 +0000 Original-Received: from localhost ([127.0.0.1]:40269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1fv6-0006m3-A2 for submit@debbugs.gnu.org; Wed, 15 Jun 2022 23:11:44 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1fv0-0006ll-OH for submit@debbugs.gnu.org; Wed, 15 Jun 2022 23:11:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1fv0-00033D-Jn for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2022 23:11:38 -0400 Original-Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]:37325) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1fuz-0000Ng-1K for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2022 23:11:38 -0400 Original-Received: by mail-pj1-x1044.google.com with SMTP id 3-20020a17090a174300b001e426a02ac5so597357pjm.2 for ; Wed, 15 Jun 2022 20:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=DUvnzIhynQhtpWRuTKPgckREZVVE3UJrhvrmflKyNJY=; b=AqhpL2yI/ZipgJdQybbDxBVZo44mFKCL4yNtRgwIluS/OkxYewMquadULeCbrG9aXu 5LNl2v5i1Zp583Wii6q/sQmeH6bkjbc5v+3CRMcdCy7SEtUXPaS0hCV6vBunTNNlhUmS vizdineUHieRtLerMj6yBqV8e2+2HEt6TbfhVOY6chc2odMGViIN0pGF4iIeq0I7EWwq 0oolGG3ThFQ5Q+kN3aX/IPquYPXmRoQMskaRh+I46/ggS5r/Hw3mmHDO46/N5h0L+edO bCK9OKGYU3R/qBuIlv+p5iNAS5VMt25bz38RMhKCO3UQK5YDwXq+rkrDfFDye/sOaYlA egYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=DUvnzIhynQhtpWRuTKPgckREZVVE3UJrhvrmflKyNJY=; b=QSQWPldTfojpJfeq1FGYNQroJpXQcEzdFxhGFiPHz/M4hRORJ8TE3DYc1rCY5gl6Cz bXpgtD2cpzcEQc2IC5nSc4vYOzw4qZHpZBVNbntrtuxIYxkYAVl9WwUc7cY2yKYdmh5v 30iu+WvGVpzw1FTodhPeuwlkuJa2nFIpJFEEfKlQlsqHi+8YRHMPdZuNdU86vhrkH/xX yShvk/gdsU+t82nq0/KukZ8wDIJjFC1UsZdTqx8CBXdgHjHJqVb7I7W9HSi6QyoUt2uv 32FctVFjspgETmDYJszbtQOSZdU8IZyANqRG7uoHnjH8iSaHUpG+F4c6pfnb48N617dm f1hQ== X-Gm-Message-State: AJIora9ztWqgtggg5lYufUJbwXL+XlQDFM4jEVh5eCTH1lXoLC/jP1qP UOi/Ka6Mk6ex05gmbBYfDakNPRxFvms= X-Google-Smtp-Source: AGRyM1svIpggNiyCLLlOniucGlgln5crXMrvRl1zmQPVgcOVJ+brLUcF35jZZeahLi9FhX2Js/jYGw== X-Received: by 2002:a17:90b:224a:b0:1e6:7780:6c8c with SMTP id hk10-20020a17090b224a00b001e677806c8cmr2764279pjb.119.1655349094530; Wed, 15 Jun 2022 20:11:34 -0700 (PDT) Original-Received: from localhost ([49.204.129.172]) by smtp.gmail.com with ESMTPSA id p24-20020aa78618000000b0051c7038bd52sm357488pfn.220.2022.06.15.20.11.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 20:11:31 -0700 (PDT) In-Reply-To: (carlmarcos's message of "Thu, 16 Jun 2022 02:12:11 +0200 (CEST)") Received-SPF: pass client-ip=2607:f8b0:4864:20::1044; envelope-from=visuweshm@gmail.com; helo=mail-pj1-x1044.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, T_SCC_BODY_TEXT_LINE=-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:234611 Archived-At: [=E0=AE=B5=E0=AE=BF=E0=AE=AF=E0=AE=BE=E0=AE=B4=E0=AE=A9=E0=AF=8D =E0=AE=9C= =E0=AF=82=E0=AE=A9=E0=AF=8D 16, 2022 02:12] carlmarcos--- via "Bug reports = for GNU Emacs, the Swiss army knife of text editors" wrote: > Have been working on some functionalities implemented in bash. But looki= ng at the speedbar, only some function > names are being listed. Tried to see whether a bug-report has been previ= ously submitted, but could not find any.=20 > Have found the search feature for the archives quite challenging to use. > > Carl You need to add a relevant bash entry to `sh-imenu-generic-expression'. I would propose a patch but the bash manual is vague about the allowed characters, and I never use bash so I'm not interested in digging further. Maybe the newly added mksh entry could be a good example, (mksh . ((nil ;; function FOO ;; function FOO() ,(rx bol (* (syntax whitespace)) "function" (+ (syntax whitespace)) (group (1+ (not (any "\0\t\n \"$&'();<=3D>\\`|#*?[]/")))) (* (syntax whitespace)) (? "()")) 1) (nil ;; FOO() ,(rx bol (* (syntax whitespace)) (group (1+ (not (any "\0\t\n \"$&'();<=3D>\\`|#*?[]/")))) (* (syntax whitespace)) "()") 1))) HTH.