GNU bug report logs - #24238
25.1.50; error in capf in sh-script if imenu-index is empty

Previous Next

Package: emacs;

Reported by: Andreas Politz <politza <at> hochschule-trier.de>

Date: Mon, 15 Aug 2016 18:20:01 UTC

Severity: minor

Tags: patch

Found in version 25.1.50

Fixed in version 25.2

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Andreas Politz <politza <at> hochschule-trier.de>, 24238 <at> debbugs.gnu.org
Subject: bug#24238: 25.1.50; error in capf in sh-script if imenu-index is empty
Date: Sun, 16 Oct 2016 12:02:15 +0300
On 15.08.2016 21:19, Andreas Politz wrote:
>
> The completion function sh--cmd-completion-table in sh-script.el may use
> imenu--make-index-alist to create a list of candidates.  But this
> function signals the error imenu-unavailable, if the index is empty.
> This is a commonly the case, e.g. if the scripts is new.
>
> Solution: Catch the error condition.

Looks good to me. Do you have commit access?




This bug report was last modified 8 years and 279 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.