aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mpc.el
diff options
context:
space:
mode:
authorGlenn Morris2012-04-16 19:57:09 -0400
committerGlenn Morris2012-04-16 19:57:09 -0400
commit121b8917ec329a6bbc292ad02f5c4e39d164fff5 (patch)
tree04108b805e878cd7456cd9d55eada3f35fbb6027 /lisp/mpc.el
parentf53a85a90a16970fe9dc15294a2ebdb984369c97 (diff)
downloademacs-121b8917ec329a6bbc292ad02f5c4e39d164fff5.tar.gz
emacs-121b8917ec329a6bbc292ad02f5c4e39d164fff5.zip
Replace independent implementations of string-prefix-p
* vc/vc.el (vc-string-prefix-p): * vc/pcvs-util.el (cvs-string-prefix-p): * textmodes/tex-mode.el (latex-string-prefix-p, tex-string-prefix-p): * mpc.el (mpc-string-prefix-p): Make all of these into obsolete aliases for string-prefix-p. Update callers. * vc/pcvs.el, vc/vc-dispatcher.el, vc/vc-dir.el: Update callers.
Diffstat (limited to 'lisp/mpc.el')
-rw-r--r--lisp/mpc.el9
1 files changed, 3 insertions, 6 deletions
diff --git a/lisp/mpc.el b/lisp/mpc.el
index 614f2bd6806..d2203a4deab 100644
--- a/lisp/mpc.el
+++ b/lisp/mpc.el
@@ -1,6 +1,6 @@
1;;; mpc.el --- A client for the Music Player Daemon -*- coding: utf-8; lexical-binding: t -*- 1;;; mpc.el --- A client for the Music Player Daemon -*- coding: utf-8; lexical-binding: t -*-
2 2
3;; Copyright (C) 2006-2012 Free Software Foundation, Inc. 3;; Copyright (C) 2006-2012 Free Software Foundation, Inc.
4 4
5;; Author: Stefan Monnier <monnier@iro.umontreal.ca> 5;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
6;; Keywords: multimedia 6;; Keywords: multimedia
@@ -184,10 +184,7 @@ numerically rather than lexicographically."
184 (abs res)) 184 (abs res))
185 res)))))))) 185 res))))))))
186 186
187(defun mpc-string-prefix-p (str1 str2) 187(define-obsolete-function-alias 'mpc-string-prefix-p 'string-prefix-p "24.2")
188 ;; FIXME: copied from pcvs-util.el.
189 "Tell whether STR1 is a prefix of STR2."
190 (eq t (compare-strings str2 nil (length str1) str1 nil nil)))
191 188
192;; This can speed up mpc--song-search significantly. The table may grow 189;; This can speed up mpc--song-search significantly. The table may grow
193;; very large, tho. It's only bounded by the fact that it gets flushed 190;; very large, tho. It's only bounded by the fact that it gets flushed
@@ -1690,7 +1687,7 @@ Return non-nil if a selection was deactivated."
1690 (process-put (mpc-proc) prop 1687 (process-put (mpc-proc) prop
1691 (delq nil 1688 (delq nil
1692 (mapcar (lambda (x) 1689 (mapcar (lambda (x)
1693 (if (mpc-string-prefix-p name x) 1690 (if (string-prefix-p name x)
1694 nil x)) 1691 nil x))
1695 new))))) 1692 new)))))
1696 (mpc-tagbrowser-refresh))) 1693 (mpc-tagbrowser-refresh)))