GNU bug report logs -
#76461
31.0.50; CRM tries to insert candidate in prompt read-only zone
Previous Next
Reported by: Thierry Volpiatto <thievol <at> posteo.net>
Date: Fri, 21 Feb 2025 08:08:02 UTC
Severity: normal
Tags: patch
Found in version 31.0.50
Fixed in version 30.2
Done: Dmitry Gutov <dmitry <at> gutov.dev>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Thierry Volpiatto <thievol <at> posteo.net> writes:
> Thierry Volpiatto <thievol <at> posteo.net> writes:
>
> This bug happens as well on 30.1, I am closing bug#76520 (useless
> duplicate).
> I modified the patch (only commit message)
Seems it is cleaner to write it like this:
--8<---------------cut here---------------start------------->8---
(if (and (re-search-backward crm-separator nil t)
;; Matches end of prompt (:) when sep is ":".
(not (field-at-pos (point))))
(1+ (point))
(minibuffer-prompt-end))
--8<---------------cut here---------------end--------------->8---
Have a look.
Here a test to reproduce:
--8<---------------cut here---------------start------------->8---
(defun crm-init-test-environ ()
"Set up some variables for testing."
(interactive)
(setq my-prompt "Prompt: ")
(setq my-table
'(("hi") ("there") ("man") ("may") ("mouth") ("ma")
("a") ("ab") ("abc") ("abd") ("abf") ("zab") ("acb")
("da") ("dab") ("dabc") ("dabd") ("dabf") ("dzab") ("dacb")
("fda") ("fdab") ("fdabc") ("fdabd") ("fdabf") ("fdzab") ("fdacb")
("gda") ("gdab") ("gdabc") ("gdabd") ("gdabf") ("gdzab") ("gdacb"))))
(crm-init-test-environ)
(let ((crm-separator "[ \t]*:[ \t]*"))
(completing-read-multiple my-prompt my-table))
--8<---------------cut here---------------end--------------->8---
--
Thierry
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 160 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.