reddit / emacs

repeat-complex-command without properties?

pragmat1c1 · 2022-06-13 08:13
When I evaluate `repeat-complex-command`, it will show me text properties as well. See example here: Ran `M-x replace-regexp RET ^org- RET " org-" RET` Next `C-x M-:` (which is bound to `repeat-complex-command` in my settings), I get this: (replace-regexp #("^org-" 0 1 (fontified t wrap-prefix "") 1 2 (fontified t wrap-prefix "") 2 3 (fontified t wrap-prefix "") 3 4 (fontified t wrap-prefix "") 4 5 (fontified t wrap-prefix "")) " org-" nil nil nil nil nil) Is there a way to get this without text properties?
00-11 · 2022-06-13 17:01
Do you see that if you start Emacs with `emacs -Q`? I don't. (I don't, whether or not I enter `"` for the replacement, as you wrote.) If you don't either, then bisect your init file to find the culprit.
7890yuiop · 2022-06-13 21:47
I can replicate this if I yank propertized text as the search pattern when originally calling `regexp-replace`. I used `(insert ...)` with the example propertized string from the question, then killed that text and yanked it at the regexp prompt, then called `repeat-complex-command` after. If I'm just typing the pattern interactively, though, there are no text properties.