hyperspec-lookup at a blank prompt in a *slime-repl* will set the read-only/intangible package prompt as the default for the completing-read in the minibuffer.
the read-only bit should probably be stripped. that way the user can easily delete the text in one keystroke if it's an intangible package prompt or edit it if it was grabbed from a read-only lisp source buffer.
i'm an elisp newbie, so i don't have a working patch yet. i imagine it involves either (remove-text-properties ...) or copying the text with no properties. someone want to point in the right direction?
thanks,
...bryan
i'm an elisp newbie, so i don't have a working patch yet. i imagine it involves either (remove-text-properties ...) or copying the text with no properties. someone want to point in the right direction?
ok, i figured it out. here's a quick patch that will remove the read-only property. i'd have thought it would retain the intangible bit, but i guess not.
i'm using (propertize ...) which is non-destructive. i imagine that symbol-at-point is a copy already, so a destructive op should use less space. again, i'm still new at this. ;)
"bryan o'connor" bryan-slime@lunch.org writes:
i'm an elisp newbie, so i don't have a working patch yet. i imagine it involves either (remove-text-properties ...) or copying the text with no properties. someone want to point in the right direction?
ok, i figured it out. here's a quick patch that will remove the read-only property. i'd have thought it would retain the intangible bit, but i guess not.
Should be fixed in CVS. I wrote a small wrapper around hyperspec-lookup, because I don't like to change hypespec.el itself.
Thanks for the report!
Helmut.