aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-09-27 14:09:43 -0400
committerGlenn Morris2011-09-27 14:09:43 -0400
commit8b457e28320da995d51714e40af65ab52d637eb8 (patch)
treeddd3a723cac1b4755955db687963170369e87c21
parent85a162088f56ec197b7ccc6d2f9ad23a691a362d (diff)
downloademacs-8b457e28320da995d51714e40af65ab52d637eb8.tar.gz
emacs-8b457e28320da995d51714e40af65ab52d637eb8.zip
pcmpl-cvs.el fix for bug#9606
* lisp/pcmpl-cvs.el (pcmpl-cvs-entries): Update for Emacs 22.1 changes to split-string.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/pcmpl-cvs.el14
2 files changed, 12 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8bbb7f5fcc8..b258f1081b0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-09-27 Glenn Morris <rgm@gnu.org>
2
3 * pcmpl-cvs.el (pcmpl-cvs-entries): Update for Emacs 22.1 changes
4 to split-string. (Bug#9606)
5
12011-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org> 62011-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 7
3 * mail/smtpmail.el (smtpmail-via-smtp): Fix STARTTLS detection 8 * 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'."
169 (insert-file-contents (concat dir "CVS/Entries")) 169 (insert-file-contents (concat dir "CVS/Entries"))
170 (goto-char (point-min)) 170 (goto-char (point-min))
171 (while (not (eobp)) 171 (while (not (eobp))
172 (let* ((line (buffer-substring (line-beginning-position) 172 ;; Normal file: /NAME -> "" "NAME"
173 (line-end-position))) 173 ;; Directory : D/NAME -> "D" "NAME"
174 (fields (split-string line "/")) 174 (let* ((fields (split-string (buffer-substring
175 text) 175 (line-beginning-position)
176 (if (eq (aref line 0) ?/) 176 (line-end-position))
177 (setq fields (cons "" fields))) 177 "/"))
178 (setq text (nth 1 fields)) 178 (text (nth 1 fields)))
179 (when text 179 (when text
180 (if (string= (nth 0 fields) "D") 180 (if (string= (nth 0 fields) "D")
181 (setq text (file-name-as-directory text))) 181 (setq text (file-name-as-directory text)))