HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* lisp/emacs-lisp/lisp-mode.el (eval-defun-2): Simplify, using lexical-binding.
[bpt/emacs.git]
/
lisp
/
pcmpl-linux.el
diff --git
a/lisp/pcmpl-linux.el
b/lisp/pcmpl-linux.el
index
85731a8
..
a946f08
100644
(file)
--- a/
lisp/pcmpl-linux.el
+++ b/
lisp/pcmpl-linux.el
@@
-1,7
+1,6
@@
;;; pcmpl-linux.el --- functions for dealing with GNU/Linux completions
;;; pcmpl-linux.el --- functions for dealing with GNU/Linux completions
-;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+;; Copyright (C) 1999-2013 Free Software Foundation, Inc.
;; Package: pcomplete
;; Package: pcomplete
@@
-32,9
+31,10
@@
(require 'pcomplete)
(require 'pcomplete)
-(defgroup pcmpl-linux nil
- "Functions for dealing with GNU/Linux completions."
- :group 'pcomplete)
+;; Unused.
+;;; (defgroup pcmpl-linux nil
+;;; "Functions for dealing with GNU/Linux completions."
+;;; :group 'pcomplete)
;; Functions:
;; Functions:
@@
-84,6
+84,19
@@
(forward-line)))
(pcomplete-uniqify-list points))))
(forward-line)))
(pcomplete-uniqify-list points))))
+(defun pcomplete-pare-list (l r)
+ "Destructively remove from list L all elements matching any in list R.
+Test is done using `equal'."
+ (while (and l (and r (member (car l) r)))
+ (setq l (cdr l)))
+ (let ((m l))
+ (while m
+ (while (and (cdr m)
+ (and r (member (cadr m) r)))
+ (setcdr m (cddr m)))
+ (setq m (cdr m))))
+ l)
+
(defun pcmpl-linux-mountable-directories ()
"Return a list of mountable directory names."
(let (points)
(defun pcmpl-linux-mountable-directories ()
"Return a list of mountable directory names."
(let (points)