[slime-devel] fuzzy update with fixes

Ury Marshak urym at two-bytes.com
Sat Oct 21 15:28:49 UTC 2006


Attila Lendvai wrote:
> +  (add-local-hook 'pre-command-hook 'slime-pre-command-hook) 
>   


add-local-hook seems to be missing from GNU emacs.
Quick googling suggests adding:

(or (fboundp 'add-local-hook)
    (defun add-local-hook (hook function &optional append)
      (make-local-hook hook)
      (add-hook hook function append t)))

(or (fboundp 'remove-local-hook)
    (defun remove-local-hook (hook function)
      (if (local-variable-p hook (current-buffer))
	  (remove-hook hook function t))))


Also, after fixing add-local-hook, when trying slime-fuzzy-completion-in-place 
it seems to break it for me even further - without the patch at least the arrow
keys in the target buffer work, with this patch even arrows stop working (they 
work as in normal buffer, but do not move selection in the completion buffer)

This is on CVS HEAD GNU Emacs

Cheers,
Ury





More information about the slime-devel mailing list