From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Emacs22 large file y-or-n-p
Date: Wed, 14 Jun 2006 09:58:13 -0600 [thread overview]
Message-ID: <e6pbor$qg6$1@sea.gmane.org> (raw)
In-Reply-To: <87slm82l0n.fsf@wivenhoe.staff8.ul.ie>
Brendan Halpin wrote:
> Pascal Bourguignon <pjb@informatimago.com> writes:
>
>> Really Brendan! M-x apropos RET large.*file RET
>
> That doesn't tell me anything that wasn't clear from files.el --
> I'm looking for a way to create a single exception, not turn it
> off.
Untested:
(defvar large-file-warning-threshold-exceptions nil
"A list of regexps matching names of large files to be visited
without query.
This temporarily overrides `large-file-warning-threshold'.")
(defadvice find-file-noselect (around
large-file-warning-threshold-exceptions
activate)
"Respect `large-file-warning-threshold-exceptions'."
(let ((large-file-warning-threshold
(if (and large-file-warning-threshold-exceptions
(catch 'any
(mapc (lambda (regexp)
(when (string-match regexp (ad-get-arg 0))
(throw 'any t)))
large-file-warning-threshold-exceptions)
nil))
nil ; disabled
large-file-warning-threshold)))
(ad-do-it)))
--
Kevin
next prev parent reply other threads:[~2006-06-14 15:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-13 23:19 Emacs22 large file y-or-n-p Brendan Halpin
2006-06-14 0:15 ` Pascal Bourguignon
2006-06-14 8:20 ` Tim X
2006-06-14 8:34 ` Brendan Halpin
2006-06-14 15:58 ` Kevin Rodgers [this message]
[not found] ` <mailman.2887.1150300794.9609.help-gnu-emacs@gnu.org>
2006-06-14 16:08 ` Brendan Halpin
2006-06-14 8:16 ` Reiner Steib
2006-06-14 9:03 ` Stein Arild Strømme
2006-06-14 9:20 ` Brendan Halpin
2006-06-14 9:50 ` Mathias Dahl
2006-06-14 10:04 ` Brendan Halpin
2006-06-14 10:37 ` Giorgos Keramidas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='e6pbor$qg6$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.