aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2000-11-21 20:47:49 +0000
committerStefan Monnier2000-11-21 20:47:49 +0000
commitf5438f0c793c9cd803efcf9cbba301b76956b8e2 (patch)
tree775fde74205dfe437a7ff676d9387b18fae57566
parentf4eda05fe5461b7aa6c8d2442a4ee6656a2f8e41 (diff)
downloademacs-f5438f0c793c9cd803efcf9cbba301b76956b8e2.tar.gz
emacs-f5438f0c793c9cd803efcf9cbba301b76956b8e2.zip
* pcvs.el (uniquify-buffer-file-name): Remove advice.
* uniquify.el (uniquify-list-buffers-directory-modes): New var. (uniquify-buffer-file-name): Use it.
-rw-r--r--lisp/pcvs.el15
1 files changed, 1 insertions, 14 deletions
diff --git a/lisp/pcvs.el b/lisp/pcvs.el
index fb9abb12fa2..2edc266e253 100644
--- a/lisp/pcvs.el
+++ b/lisp/pcvs.el
@@ -14,7 +14,7 @@
14;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu 14;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu
15;; Keywords: CVS, version control, release management 15;; Keywords: CVS, version control, release management
16;; Version: $Name: $ 16;; Version: $Name: $
17;; Revision: $Id: pcvs.el,v 1.16 2000/11/09 12:07:39 fx Exp $ 17;; Revision: $Id: pcvs.el,v 1.17 2000/11/09 23:55:05 monnier Exp $
18 18
19;; This file is part of GNU Emacs. 19;; This file is part of GNU Emacs.
20 20
@@ -2113,19 +2113,6 @@ The exact behavior is determined also by `cvs-dired-use-hook'."
2113 2113
2114(add-hook 'after-save-hook 'cvs-mark-buffer-changed) 2114(add-hook 'after-save-hook 'cvs-mark-buffer-changed)
2115 2115
2116;;
2117;; hook into uniquify
2118;;
2119
2120;; Don't suck in advice.el unless necessary.
2121(eval-after-load "uniquify"
2122 '(defadvice uniquify-buffer-file-name (after pcl-cvs-uniquify activate)
2123 (or ad-return-value
2124 (save-excursion
2125 (set-buffer (ad-get-arg 0))
2126 (when (eq major-mode 'cvs-mode)
2127 (setq ad-return-value list-buffers-directory))))))
2128
2129 2116
2130(provide 'pcvs) 2117(provide 'pcvs)
2131 2118