bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Dmitry Gutov
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
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Thunderbird/50.0

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?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]