(defun my-find-orgfiles ()
(interactive)
(find-name-dired "." "*py"))
(global-set-key (kbd "M-n") 'my-find-orgfiles)
Than, t
to toggle marked/unmarked files (thus marking them all, since none were marked). Then I use Q
to use query-replace on the marked files
. And enter .value
to replace with value
.
=> What am I trying to do?
Replace a string that is starting or ending with .
(dot) such as: .value
or value.
.
=> What happens instead?
During replacement Emacs also finds text such as (value
, [space]value
, [value
and so on. In other words, .value
is matching any character followed by value
.
=> How can I force dired-do-find-regexp-and-replace
(bound to Q
in Dired buffers) to look for a literal .
during string replacement?
M-n
, I presst
andQ
. AfterwardsQuery replace regexp in marked files
pops up and I type.value
goal is to replace it withvalue
. So basically on the selected files I want to replace.value
withvalue
t
to toggle marked/unmarked files (thus marking them all, since none were marked). Then you useQ
to use query-replace on the marked files. You might want to add that info to the question, for clarity.