--- Begin Message ---
Subject: |
24.2; completion fails backward-char |
Date: |
Wed, 22 Aug 2012 10:40:25 +0800 |
This is a regression. It doesn't happen in Emacs 23.4.
1. Emacs -q -l b.el (b.el is attached)
2. M-x b-mode
3. Type I followed by <tab> to complete to IGNORE
4. C-b
In step 4, C-b could not move backwards; point appears to be trapped
there.
Leo
b.el
Description: b.el
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#12254: 24.2; completion fails backward-char |
Date: |
Wed, 29 Aug 2012 14:05:19 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
tags 12254 notabug
thanks
> (defun b-completion-at-point ()
> (let ((beg (progn
> (skip-syntax-backward "w")
> (point)))
> (end (progn
> (skip-syntax-forward "w")
> (point))))
> (list beg end '("IGNORE" "DEBUG" "HELLO"))))
This needs to save-excursion.
> This is a regression. It doesn't happen in Emacs 23.4.
That's only because completion-at-point-functions is used less often so
the bug in the above code doesn't bite as often.
But your above completion function is already buggy in Emacs-23.4 since
it can't complete "IG!R" to "IGNORE", whereas after adding the
save-excursion such completion works just fine.
Stefan
--- End Message ---