diff options
author | Rajesh Vaidheeswarran <rv@gnu.org> | 2003-10-02 02:21:27 +0000 |
---|---|---|
committer | Rajesh Vaidheeswarran <rv@gnu.org> | 2003-10-02 02:21:27 +0000 |
commit | 8daa9f3dd9da8bd585c26db3a08f5db2aad11020 (patch) | |
tree | c94d53f38def571edd53b919471af85f545ac488 /lisp/ffap.el | |
parent | 589e039f7a72125ca4ce72a9c0f2e589ed957e8e (diff) | |
download | emacs-8daa9f3dd9da8bd585c26db3a08f5db2aad11020.tar.gz |
removed defadvice related code from ffap
Diffstat (limited to 'lisp/ffap.el')
-rw-r--r-- | lisp/ffap.el | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lisp/ffap.el b/lisp/ffap.el index 7b1853228a2..668700a5c1f 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el @@ -1249,9 +1249,7 @@ which may actually result in an url rather than a filename." ;; This code assumes that you load ffap.el after complete.el. ;; ;; We must inform complete about whether our completion function -;; will do filename style completion. For earlier versions of -;; complete.el, this requires a defadvice. For recent versions -;; there may be a special variable for this purpose. +;; will do filename style completion. (defun ffap-complete-as-file-p nil ;; Will `minibuffer-completion-table' complete the minibuffer @@ -1265,15 +1263,7 @@ which may actually result in an url rather than a filename." (featurep 'complete) (if (boundp 'PC-completion-as-file-name-predicate) ;; modern version of complete.el, just set the variable: - (setq PC-completion-as-file-name-predicate 'ffap-complete-as-file-p) - (require 'advice) - (defadvice PC-do-completion (around ffap-fix act) - "Work with ffap." - (let ((minibuffer-completion-table - (if (eq t (ffap-complete-as-file-p)) - 'read-file-name-internal - minibuffer-completion-table))) - ad-do-it)))) + (setq PC-completion-as-file-name-predicate 'ffap-complete-as-file-p))) ;;; Highlighting (`ffap-highlight'): |