0
(setq revert-without-query '("\*"))

I have set this to avoid emacs' yes/no prompt when i revert a buffer and discard its changes. But, still the prompt keeps coming.

Other regex patterns, i tried with no success,

(setq revert-without-query '("*"))
(setq revert-without-query '("\\*"))

The doc, heresays, set the variable revert-without-query to a list of regular expressions.

4

The regexp "*" is not a valid regexp, "*" means that whatever precedes it can occur zero or more times. A regexp that match anything can be written ".*", or more simply "".

So, you can try this:

(setq revert-without-query '(".*"))
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.