all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthew Flaschen <matthew.flaschen@gatech.edu>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Backup Blacklist
Date: Wed, 24 Jan 2007 20:15:54 -0500	[thread overview]
Message-ID: <45B804CA.6090006@gatech.edu> (raw)
In-Reply-To: <f7ccd24b0701050439g4d55a221sb4565e2e2c937265@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1057 bytes --]

Juanma Barranquero wrote:
> When you test it, use this version of `bex-enable-predicate':
> 
> (defun bex-enable-predicate (file)
>  "Alternate `backup-enable-predicate' function that excludes from
> backups those files registered with `bex-exclude-files' or
> `bex-exclude-file-from-backup'."
>  (if bex-previous-backup-predicate
>      (let ((regexp (get 'backup-exclude :regexp)))
>        (if (and regexp
>                 (let ((case-fold-search bex-case-fold-search))
>                   (string-match regexp (expand-file-name file))))
>            nil
>          (funcall bex-previous-backup-predicate file)))
>    nil))
> 
> It's a small change to support the case that `backup-enable-predicate'
> is nil (which is uncommon, but possible). Note that in this case, no
> file is ever backed up (because backup-exclude can only exclude files,
> and there's no function ever returning t for any of them).
> 

Thanks, I updated it. :)  It's still been working fine (though I haven't
used it all that often).

Matthew Flaschen


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

  reply	other threads:[~2007-01-25  1:15 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-01 12:45 Backup Blacklist Matthew Flaschen
2007-01-02  1:51 ` Juanma Barranquero
2007-01-02  7:02   ` Matthew Flaschen
2007-01-02 13:01     ` Juanma Barranquero
2007-01-02 21:06       ` Matthew Flaschen
2007-01-02 22:22         ` Juanma Barranquero
2007-01-03  1:13           ` Matthew Flaschen
2007-01-03  1:25             ` Juanma Barranquero
2007-01-03  5:48               ` Matthew Flaschen
2007-01-03 11:56                 ` Juanma Barranquero
2007-01-03 12:30                   ` Juanma Barranquero
2007-01-03 23:41                     ` Juanma Barranquero
2007-01-04  7:18                       ` Matthew Flaschen
2007-01-05 12:39                         ` Juanma Barranquero
2007-01-25  1:15                           ` Matthew Flaschen [this message]
2007-01-25  1:22                             ` Juanma Barranquero

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=45B804CA.6090006@gatech.edu \
    --to=matthew.flaschen@gatech.edu \
    --cc=help-gnu-emacs@gnu.org \
    --cc=lekktu@gmail.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.