From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 20 12:19:53 2021 Received: (at submit) by debbugs.gnu.org; 20 Jun 2021 16:19:53 +0000 Received: from localhost ([127.0.0.1]:34839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lv0Aq-0000Jk-St for submit@debbugs.gnu.org; Sun, 20 Jun 2021 12:19:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:40152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luzM7-0007Uf-2r for submit@debbugs.gnu.org; Sun, 20 Jun 2021 11:27:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luzM6-0002Ra-Re for bug-gnu-emacs@gnu.org; Sun, 20 Jun 2021 11:27:26 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:43593) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luzM4-0007o9-QK for bug-gnu-emacs@gnu.org; Sun, 20 Jun 2021 11:27:26 -0400 Received: by mail-pg1-x529.google.com with SMTP id e22so5893298pgv.10 for ; Sun, 20 Jun 2021 08:27:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=2y3FVUu9HtcPRy++CXqQx1yOkTel6L6p6q04wYHHnOo=; b=eOkaRfPqmFS/Gc0qmEipLv3cvNu5QHeYhpDuWp/ZGd3OQcYgbg+hCpxq4+eBWRLRjq N7dZbcMFiGZa+UfzuC+AMnKVavsa5eh7S1VLE1o07M6Vgp9e0Gx9d7p9rR8MdIqSmEi2 95n+z3a7Wo/1QY4DPPCYcBOeT7dMeghadFE6SvhQYQeMYHbo7Qmosc6fHMnEFG7/q06K dwr8j4rHN3M4i23RCwDibIZ1UMfLi/1egOCmCbLGQdYeEJLYZ5yiVgrsGTiKD3G+5caC aA3QnVjetRrIGZCPJOss4OzWGmKdF+5VxK/dokqmtwl/S18RUuuB0T+bdSrsTr1FT72j 7YXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=2y3FVUu9HtcPRy++CXqQx1yOkTel6L6p6q04wYHHnOo=; b=eMOY+0w/8KnrpS94dlAhhIcnJQU1PWmfFoxKS5wNMySlNX6YDQSL6nU48HX2lHvSj6 ePnP9iObDh92absXa+L0+K06FST4CSk+RWSs6iLV2K+Ml8NfQfoT4MVZKJIRs4B6miGe VKRBWTXDOe6bRAg8iX2WxZhiAe8YbYI4ILt4cJltvwwl75H3Hxb6FVQvqMCqOixarMfz JHDK94YcKEd5k6XzrEaiTsQaZshZ0gdooqsqg1mRyCxRnpjYFxJvdd52vJMslLXzWPCp aStzbDMS1p92Rgooo0OS218wv86L0dT1i6hVo1GgbOzbOEtLHuDH9sKGkByu3ksgd0OY zHrw== X-Gm-Message-State: AOAM532R48GGoGXwBfs+5epPSjg49uFD2L/iB1rMOCaPJ6ELoGOKo3DN +GAPlGCaRc96Ub+u2TwhzqdwbWYzRMc= X-Google-Smtp-Source: ABdhPJziJUv0mBQvMh2WmIAadc1uGt7xScIqch1Pqn7Zz6kQZkvYnxw9wFP45mjxX6QTjotX1QWyFQ== X-Received: by 2002:a62:a217:0:b029:2ee:48e1:fd92 with SMTP id m23-20020a62a2170000b02902ee48e1fd92mr14807817pff.55.1624202842510; Sun, 20 Jun 2021 08:27:22 -0700 (PDT) Received: from debian ([150.117.248.123]) by smtp.gmail.com with ESMTPSA id t5sm9773062pfb.87.2021.06.20.08.27.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 08:27:21 -0700 (PDT) From: Liang-Jie Lee To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Speedbar cannot recognize complicated imenu index format Date: Sun, 20 Jun 2021 23:27:18 +0800 Message-ID: <878s34tv3d.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=s930054123yaoyao@gmail.com; helo=mail-pg1-x529.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=0.999, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 20 Jun 2021 12:19:52 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) According to speedbar manual, it can recognize imenu as tagging functions. However, I found its imenu support is quite limited. With more complex form like (NAME . NESTED-SUB-LIST) with customized "go to" function, I got a malformed error. To reproduce the error, try below recipe: 1. M-x package-install eglot 2. Install any language server if you havn't. EX: apt install clangd 2. Open a C/C++ project, M-x eglot 3. M-x speedbar Click on tags in the speedbar frame, and I got a malformed error. See also https://github.com/joaotavora/eglot/issues/536 (which I report the same bug to eglot author), I think it will be good to make speedbar completely support imenu since it's one of the most popular project navigation tools in Emacs. In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-06-17 built on debian Repository revision: ff053c706cb903534936c45b04a2aa38e3db1261 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Debian GNU/Linux 11 (bullseye) Configured using: 'configure --with-mailutils --with-native-compilation --with-xwidgets --enable-link-time-optimization 'CFLAGS=-march=native -O3'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: C/*l Minor modes in effect: eglot--managed-mode: t flymake-mode: t shell-dirtrack-mode: t async-bytecomp-package-mode: t show-paren-mode: t display-time-mode: t display-battery-mode: t mlscroll-mode: t recentf-mode: t delete-selection-mode: t electric-pair-mode: t global-so-long-mode: t savehist-mode: t save-place-mode: t windmove-mode: t winner-mode: t global-auto-revert-mode: t company-tng-mode: t global-company-mode: t company-mode: t minibuffer-depth-indicate-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t tab-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: /home/booaa/.emacs.d/elpa/transient-20210619.1100/transient hides /usr/local/share/emacs/28.0.50/lisp/transient Features: (cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-print pulse color vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc help-fns radix-tree eglot array jsonrpc ert pp ewoc debug flymake-proc flymake compile text-property-search tramp-archive tramp-gvfs tramp-cache zeroconf helm-elisp helm-files tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ansi-color parse-time iso8601 time-date ls-lisp helm-buffers helm-occur helm-tags helm-locate helm-grep helm-regexp helm-eval edebug backtrace helm-info helm-utils helm-types helm-help imenu find-func thingatpt xref project vc-git diff-mode vc-dispatcher misearch multi-isearch helm async-bytecomp helm-global-bindings helm-easymenu helm-source helm-multi-match helm-lib async paren time format-spec battery dbus xml mlscroll recentf tree-widget wid-edit delsel elec-pair so-long savehist saveplace move-text windmove winner ring autorevert filenotify company-tng company-keywords company-dabbrev-code company-dabbrev company-files company-capf company pcase exwm-randr xcb-randr xcb-render exwm-systemtray exwm-workspace server exwm-core xcb-systemtray xcb-ewmh xcb-xembed xcb-icccm xcb xcb-xproto xcb-types xcb-debug init init-misc init-exwm init-dev init-search init-completion mb-depth init-shell init-mail init-dired init-buffer init-window init-editor edmacro kmacro init-ui zenburn-theme init-packages no-littering use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source eieio eieio-core eieio-loaddefs password-cache json map url-vars comp comp-cstr warnings subr-x rx cl-seq cl-macs cl-extra help-mode seq byte-opt gv cl-loaddefs cl-lib bytecomp byte-compile cconv early-init iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads xwidget-internal dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 325233 407031) (symbols 48 29005 37) (strings 32 84336 115056) (string-bytes 1 3092800) (vectors 16 62382) (vector-slots 8 975167 667177) (floats 8 275 2003) (intervals 56 3199 2272) (buffers 992 29))