GNU bug report logs -
#28774
[ido] Can't add text property to built-in function name.
Previous Next
Reported by: Ilya Khaprov <ilya.khaprov <at> publitechs.com>
Date: Tue, 10 Oct 2017 07:58:01 UTC
Severity: normal
Tags: fixed
Found in version 26.0.90
Done: Noam Postavsky <npostavs <at> users.sourceforge.net>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi
After commit :3db388b0bf the following stopped working:
(global-set-key
"\M-x"
(lambda ()
(interactive)
(call-interactively
(intern
(ido-completing-read
"M-x "
(all-completions "" obarray 'commandp))))))
This package no longer works too: https://github.com/DarwinAwardWinner/ido-completing-read-plus
Example error message:
Error in post-command-hook (ido-exhibit): (error "Attempt to modify read-only object" "rename-buffer")
On the surface it looks like if I try to complete function defined in C (i.e, built-in),
I get this error because the symbol/name is read only.
Call chain like this :
ido-completions
put-text-property
add_text_properties_1
validate_inerval_range
create_root_interval
CHECK_IMPURE
pure_write_error
I still reproduce it on
emacs-26 - 5d51403ceb
master - 6abff55b55
Temporary fixed with ido-name override:
(defun ido-name (item)
;; Return file name for current item, whether in a normal list
;; or a merged work directory list.
(concat (if (consp item) (car item) item)))
Thanks,
Ilya
This bug report was last modified 7 years and 219 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.