skeeto / nasm-mode

Major mode for editing NASM assembly programs
The Unlicense
79 stars 17 forks source link

nasm-mode prevents completion-at-point in sh-mode #5

Closed tuhdo closed 8 years ago

tuhdo commented 8 years ago

After installing nasm-mode and load it, completion-at-point in sh-mode no longer give code completion, but giving this error instead:

user-error: No items suitable for an index found in this buffer
skeeto commented 8 years ago

I'm not able to reproduce this. What version of Emacs are you using?

tuhdo commented 8 years ago

I'm using Emacs 24.5.1. I can reproduce it from stock Emacs, load MELPA, install the package then load it.

skeeto commented 8 years ago

Ok, I think I understand your problem now, and I can reproduce it on 24.4 as well. Looks to me like this is a bug in sh-mode. The problem occurs just by loading imenu, which is required by nasm-mode. Here's how you can reproduce without involving nasm-mode:

emacs -Q --eval "(require 'imenu)"

Loading imenu breaks completion sh-mode.

tuhdo commented 8 years ago

I see. Thanks for finding out the cause.

jgarvin commented 8 years ago

@tuhdo did you ever find a fix or workaround for this? the only mentions I can find are your bugs