GNU bug report logs -
#79059
31.0.50; eshell-emit-prompt errors when front-sticky or rear-nonsticky properties are set to t
Previous Next
Full log
View this message in rfc822 format
On 7/20/2025 3:00 AM, László Vaskó wrote:
> Hello,
>
> Since df288d2e414 (bug#74230) eshell is more careful adding text
> properties to prompts using `eshell--append-text-property'. It's
> implementation assumes that `get-text-property' will always return a
> list. This is not true, as both `front-sticky' and `rear-nonsticky'
> properties can be set to t.
>
> Repro:
>
> -- 8< --
> cat <<EOF > /tmp/init-eshell-propertized-prompt.el
> ;; -*- lexical-binding: t; -*-
> (setq eshell-prompt-function
> (defun propertizing-prompt ()
> (setq eshell-prompt-string (propertize "test" 'rear-nonsticky t))))
> (eshell)
> EOF
> emacs -Q --batch --load /tmp/init-eshell-propertized-prompt.el
> -- 8< --
When does this come up in practice? I think this could only happen if
some code specifically customizes 'eshell-prompt-function' to set the
stickiness properties this way. Is doing that necessary for something
else that I'm missing?
This bug report was last modified 23 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.