Skip to main content
10 events
when toggle format what by license comment
Mar 24, 2015 at 18:46 comment added Croad Langshan Yes, what I'm looking for is (something close to) a command that iterates over matched files in the grep buffer and calls query-replace for each. I guess that wouldn't be hard to write but I was hoping it was already implemented (or if not, something sufficiently close that I could adapt to it easily). I'd prefer not to edit a grep buffer (globrep, referenced in my question, is another one of those).
Mar 24, 2015 at 14:02 comment added Drew Those let you use regular query-replace in the grep buffer, to modify it. Then you can apply those changes to the source files, in one action. If you are instead wanting to use the grep (or compilation) output to access the source files, and then use query-replace there, then you can already do that, no?
Mar 22, 2015 at 21:04 comment added Croad Langshan I would count those under "different UIs". What I'm looking for with this question is really something that does behave just like query-replace, for better or worse. (re M-x icicle-mode: well, in this case you are dealing with an idiot, so wouldn't be snarky ;-)
Mar 22, 2015 at 19:58 comment added Drew Googled again: emacs grep edit, and found these: grep-edit.el, wgrep.el. Those are for grep, but either you might find something similar for compilation or you might be able to adapt those (or other google hits).
Mar 22, 2015 at 19:56 comment added Drew ;-) I almost asked whether you had turned on icicle-mode (wrote it but erased it, thinking it might sound snarky). As I said at the outset, I seem to recall something that responded exactly to what you requested: you can edit the compilation buffer and then have those edits transferred to the source files. I don't recall where/when I saw mention of that, however. Let's hope that someone else does, or that your googling for it is better than mine.
Mar 22, 2015 at 19:10 comment added Croad Langshan On further investigation I realise that the reason the bindings were not enabled is because I had not enabled icicle-mode :-) Thanks for your help, icicles looks interesting -- though I think doesn't quite fit the question, as you noted.
Mar 22, 2015 at 15:46 history edited Drew CC BY-SA 3.0
added 214 characters in body
Mar 22, 2015 at 15:34 history edited Drew CC BY-SA 3.0
added 214 characters in body
Mar 22, 2015 at 15:30 comment added Drew Sorry, but that's a bit too vague to be able to help. Which keys etc.? Anyway, as I said, there is a learning curve, yes. You might need to read more of the search docs, and you might need to try it a little more. Or ask more specifically for help. (Or not.) If you want to understand Icicles search, start with C-c ' (icicle-occur). After you understand search well, read about replace and try it. IOW, I'd suggest not starting with search-and-replace. This is different from anything you are used to, and it is normal that it takes some getting used to. If it helps you, great. If not, sorry.
Mar 22, 2015 at 1:49 history answered Drew CC BY-SA 3.0