1 Feb 02:31
Re: [bump] semantic-complete-self-insert not working
Eric M. Ludlam <ericludlam <at> gmail.com>
2012-02-01 01:31:23 GMT
2012-02-01 01:31:23 GMT
Hi, What is going on is that when there is no common prefix, the special Emacs overlay created to manage the inline completion as start==end. It goes into the inline completion engine, discovers that the point isn't "inside" the bounds of the overlay, and assumes you want to exit, and then exits the completion engine. I'm not sure what may have changed in the newer emacsen that may have caused the old code to behave this way. I've been fiddling in semantic-complete-post-command-hook to see what is going on and have been able to make it get partway through, but it still exits too soon. Here is a partial patch: === modified file 'lisp/cedet/semantic/complete.el' *** lisp/cedet/semantic/complete.el 2011-12-07 22:44:28 +0000 --- lisp/cedet/semantic/complete.el 2012-02-01 01:22:45 +0000 *************** *** 686,692 **** (cond ;; EXIT when we are no longer in a good place. ((or (not (eq b (current-buffer))) ! (<= (point) s) (> (point) e)) ;;(message "Exit: %S %S %S" s e (point)) (semantic-complete-inline-exit) --- 686,692 ---- (cond ;; EXIT when we are no longer in a good place. ((or (not (eq b (current-buffer)))(Continue reading)
RSS Feed