From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63759: 29.0.91; dockerfile-ts-mode--imenu returns invalid index Date: Sat, 27 May 2023 21:34:18 +0300 Message-ID: <83y1l9ipxx.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11130"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63759@debbugs.gnu.org To: Jimmy Yuen Ho Wong , Randy Taylor Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 27 20:34:31 2023 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 1q2ykI-0002fs-C5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 May 2023 20:34:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2yjs-0007G2-4q; Sat, 27 May 2023 14:34:04 -0400 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 1q2yjq-0007Ft-5S for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 14:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q2yjp-0002L3-Tk for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 14:34:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q2yjp-0005ZV-PD for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 14:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 May 2023 18:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63759 X-GNU-PR-Package: emacs Original-Received: via spool by 63759-submit@debbugs.gnu.org id=B63759.168521243221399 (code B ref 63759); Sat, 27 May 2023 18:34:01 +0000 Original-Received: (at 63759) by debbugs.gnu.org; 27 May 2023 18:33:52 +0000 Original-Received: from localhost ([127.0.0.1]:52569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2yjg-0005Z5-5A for submit@debbugs.gnu.org; Sat, 27 May 2023 14:33:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2yje-0005Yq-FM for 63759@debbugs.gnu.org; Sat, 27 May 2023 14:33:51 -0400 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 1q2yjY-0002IX-Pj; Sat, 27 May 2023 14:33:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=nZEH14yBNf0vmqy0GBgheOSmqNOs7RPGPFwHtO0CVzQ=; b=Ys/U5gY8prdN UGFK7VuaUhqFOkW9LAj2nOlRGeuRlk3Dw73M1E4x9nTkVtvlZKSsXnkUccJG/Kscd8jNut2W7ko4u sleMftD2wSfhuQEYORM7bSTd8Gyqf7zWURC0x9mPa3eX6YJ2qpfNeDID/+WNjFdVJmzj3JlREaPq9 i78uYx3eMSQm1HdFMARfRylnaQTkhm2TwWFqiNg29U7UYqz+2XMIXAUPfJTov74bseeVh+CsGQDvZ qspk40OPuQS5TvyThUNCTAfjTE/h/M8rI+IVO0wCFGpI0F4FfZ2+F5UKByV3zLogeLivWVQAhhZwo /RRQzqJpkySFrvbAo1PPFw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2yjY-0006Gj-6i; Sat, 27 May 2023 14:33:44 -0400 In-Reply-To: (message from Jimmy Yuen Ho Wong on Sat, 27 May 2023 18:38:29 +0100) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262487 Archived-At: > From: Jimmy Yuen Ho Wong > Date: Sat, 27 May 2023 18:38:29 +0100 > > > Reproduction: > > 0. Open a Emacs GUI, i.e. NS port > 1. C-x C-f /some/nonexistent/Dockerfile > 2. M-x toggle-debug-on-error > 2. M-x imenu-add-menubar-index > 3. Click on the Index > Stage menu item > 4. Observe the following error pops up > > Expectation: > > If the dockerfile-ts-mode buffer is empty, there should not be an extra > item preset in the imenu index that when clicked on will jump to a > non-existent location and result in an error. > > ``` > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) > imenu-default-goto-function("Stage" nil) > imenu(("Stage" nil imenu-default-goto-function)) > imenu(("Stage")) > imenu--menubar-select(("Stage")) > #f(compiled-function () (interactive nil) #)() > funcall-interactively(#f(compiled-function () (interactive nil) #)) > #(#f(compiled-function () (interactive nil) #) nil nil) > call-interactively@ido-cr+-record-current-command(# #f(compiled-function () (interactive nil) #) nil nil) > apply(call-interactively@ido-cr+-record-current-command # (#f(compiled-function () (interactive nil) #) nil nil)) > call-interactively(#f(compiled-function () (interactive nil) #) nil nil) > command-execute(#f(compiled-function () (interactive nil) #)) > ``` Thanks. Randy, can you p-lease look into this?