From: Glenn Morris Date: Tue, 27 Sep 2011 18:09:43 +0000 (-0400) Subject: pcmpl-cvs.el fix for bug#9606 X-Git-Tag: emacs-pretest-24.0.91~260^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8b457e28320da995d51714e40af65ab52d637eb8;p=emacs.git pcmpl-cvs.el fix for bug#9606 * lisp/pcmpl-cvs.el (pcmpl-cvs-entries): Update for Emacs 22.1 changes to split-string. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8bbb7f5fcc8..b258f1081b0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-09-27 Glenn Morris + + * pcmpl-cvs.el (pcmpl-cvs-entries): Update for Emacs 22.1 changes + to split-string. (Bug#9606) + 2011-09-27 Lars Magne Ingebrigtsen * mail/smtpmail.el (smtpmail-via-smtp): Fix STARTTLS detection diff --git a/lisp/pcmpl-cvs.el b/lisp/pcmpl-cvs.el index b6c5eb62b17..3ff07bca20e 100644 --- a/lisp/pcmpl-cvs.el +++ b/lisp/pcmpl-cvs.el @@ -169,13 +169,13 @@ operation character applies, as displayed by 'cvs -n update'." (insert-file-contents (concat dir "CVS/Entries")) (goto-char (point-min)) (while (not (eobp)) - (let* ((line (buffer-substring (line-beginning-position) - (line-end-position))) - (fields (split-string line "/")) - text) - (if (eq (aref line 0) ?/) - (setq fields (cons "" fields))) - (setq text (nth 1 fields)) + ;; Normal file: /NAME -> "" "NAME" + ;; Directory : D/NAME -> "D" "NAME" + (let* ((fields (split-string (buffer-substring + (line-beginning-position) + (line-end-position)) + "/")) + (text (nth 1 fields))) (when text (if (string= (nth 0 fields) "D") (setq text (file-name-as-directory text)))