diff options
| -rw-r--r-- | lisp/pcvs.el | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/pcvs.el b/lisp/pcvs.el index 3db0eaccfed..35bf89598d1 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.14 2000/11/03 22:34:26 monnier Exp $ | 17 | ;; Revision: $Id: pcvs.el,v 1.15 2000/11/06 07:17:33 monnier Exp $ |
| 18 | 18 | ||
| 19 | ;; This file is part of GNU Emacs. | 19 | ;; This file is part of GNU Emacs. |
| 20 | 20 | ||
| @@ -2112,12 +2112,14 @@ The exact behavior is determined also by `cvs-dired-use-hook'." | |||
| 2112 | ;; hook into uniquify | 2112 | ;; hook into uniquify |
| 2113 | ;; | 2113 | ;; |
| 2114 | 2114 | ||
| 2115 | (defadvice uniquify-buffer-file-name (after pcl-cvs-uniquify activate) | 2115 | ;; Don't suck in advice.el unless necessary. |
| 2116 | (or ad-return-value | 2116 | (eval-after-load "uniquify" |
| 2117 | (save-excursion | 2117 | '(defadvice uniquify-buffer-file-name (after pcl-cvs-uniquify activate) |
| 2118 | (set-buffer (ad-get-arg 0)) | 2118 | (or ad-return-value |
| 2119 | (when (eq major-mode 'cvs-mode) | 2119 | (save-excursion |
| 2120 | (setq ad-return-value list-buffers-directory))))) | 2120 | (set-buffer (ad-get-arg 0)) |
| 2121 | (when (eq major-mode 'cvs-mode) | ||
| 2122 | (setq ad-return-value list-buffers-directory)))))) | ||
| 2121 | 2123 | ||
| 2122 | 2124 | ||
| 2123 | (provide 'pcvs) | 2125 | (provide 'pcvs) |