[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs22 large file y-or-n-p
From: |
Brendan Halpin |
Subject: |
Re: Emacs22 large file y-or-n-p |
Date: |
Wed, 14 Jun 2006 11:04:39 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Mathias Dahl <brakjoller@gmail.com> writes:
> Or, in this code in files.el:
>
> (when (and large-file-warning-threshold (nth 7 attributes)
> ;; Don't ask again if we already have the file or
> ;; if we're asked to be quiet.
>
> ;;;;;;;; NEW CHECK STARTS HERE
>
> (not (string-match large-file-warning-exceptions filename))
>
> ;;;;;;;; NEW CHECK ENDS HERE
>
> (not (or buf nowarn))
> (> (nth 7 attributes) large-file-warning-threshold)
> (not (y-or-n-p
> (format "File %s is large (%dMB), really open? "
> (file-name-nondirectory filename)
> (/ (nth 7 attributes) 1048576)))))
>
> ;; New variable
>
> (defvar large-file-warning-exceptions nil
> "Regexp matching files that wont get their size checked")
>
> ;; And in your .emacs
>
> (setq large-file-warning-exceptions "my_rmail_file_regexp")
>
> This is probably the best solution in that it is more general.
That is the best solution (or something very like it -- a list of
exceptions, perhaps).
Where should feature requests for Emacs22 be sent?
Brendan
--
Brendan Halpin, Department of Sociology, University of Limerick, Ireland
Tel: w +353-61-213147 f +353-61-202569 h +353-61-338562; Room F2-025 x 3147
mailto:brendan.halpin@ul.ie http://www.ul.ie/sociology/brendan.halpin.html