1

Is it possible to avoid the "File X is too large, really open?" confirmation?

If not, would it be possible for Emacs to remember my answer the first time I visited a large file? If I visited it once, I will surely want to really visit it again.

1
  • I'm not convinced your final sentence is a safe generalization. That sort of warning is generally added in response to enormous files causing performance/stability problems. If the file in question is large enough to cause problems on your computer (vs the low end system likely considered by the devs in setting default the threshold) throwing a "you're playing with fire" reminder is probably a good idea. Nov 26, 2014 at 19:54

1 Answer 1

7

The variable is large-file-warning-threshold. Documentation:

large-file-warning-threshold is a variable defined in `files.el'.
Its value is 10000000

Documentation:
Maximum size of file above which a confirmation is requested.
When nil, never request confirmation.

You can customize this variable.

This variable was introduced, or its default value was changed, in
version 22.1 of Emacs.

I found this by using helm-apropos and searching for "large file".

2
  • 3
    See also this thread for more information.
    – Dan
    Nov 26, 2014 at 13:43
  • @Dan, That is quite a detailed answer for such a seemingly simple question. Thanks.
    – nanny
    Nov 26, 2014 at 13:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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