diff options
| author | Stefan Monnier | 2005-03-14 01:13:33 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-03-14 01:13:33 +0000 |
| commit | b70d9316bbf3e2482c1345d8135ddd1ee7e25ba7 (patch) | |
| tree | 60fecced61f567ba1b11441b3f8f86a741695c32 | |
| parent | 295f6616401967b2fae6671a5d2ae36a287576e9 (diff) | |
| download | emacs-b70d9316bbf3e2482c1345d8135ddd1ee7e25ba7.tar.gz emacs-b70d9316bbf3e2482c1345d8135ddd1ee7e25ba7.zip | |
(cvs-string->strings): Strip trailing whitespace.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/pcvs-util.el | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 98410285828..fc9baa42987 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -5,6 +5,10 @@ | |||
| 5 | (line-move): Don't perform auto-window-vscroll when defining or | 5 | (line-move): Don't perform auto-window-vscroll when defining or |
| 6 | executing keyboard macro to ensure consistent behaviour. | 6 | executing keyboard macro to ensure consistent behaviour. |
| 7 | 7 | ||
| 8 | 2005-03-13 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 9 | |||
| 10 | * pcvs-util.el (cvs-string->strings): Strip trailing whitespace. | ||
| 11 | |||
| 8 | 2005-03-13 Lute Kamstra <lute@gnu.org> | 12 | 2005-03-13 Lute Kamstra <lute@gnu.org> |
| 9 | 13 | ||
| 10 | * emacs-lisp/debug.el (debug): Set debug-on-exit before calling | 14 | * emacs-lisp/debug.el (debug): Set debug-on-exit before calling |
diff --git a/lisp/pcvs-util.el b/lisp/pcvs-util.el index a4eda95e23e..2cbb00b324c 100644 --- a/lisp/pcvs-util.el +++ b/lisp/pcvs-util.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; pcvs-util.el --- utility functions for PCL-CVS -*- byte-compile-dynamic: t -*- | 1 | ;;; pcvs-util.el --- utility functions for PCL-CVS -*- byte-compile-dynamic: t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 3 | ;; Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
| 4 | ;; 2000, 2001, 2004 Free Software Foundation, Inc. | 4 | ;; 2000, 2001, 2004, 2005 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Stefan Monnier <monnier@cs.yale.edu> | 6 | ;; Author: Stefan Monnier <monnier@cs.yale.edu> |
| 7 | ;; Keywords: pcl-cvs | 7 | ;; Keywords: pcl-cvs |
| @@ -205,8 +205,8 @@ It understands elisp style quoting within STRING such that | |||
| 205 | The SEPARATOR regexp defaults to \"\\s-+\"." | 205 | The SEPARATOR regexp defaults to \"\\s-+\"." |
| 206 | (let ((sep (or separator "\\s-+")) | 206 | (let ((sep (or separator "\\s-+")) |
| 207 | (i (string-match "[\"]" string))) | 207 | (i (string-match "[\"]" string))) |
| 208 | (if (null i) (split-string string sep) ; no quoting: easy | 208 | (if (null i) (split-string string sep t) ; no quoting: easy |
| 209 | (append (unless (eq i 0) (split-string (substring string 0 i) sep)) | 209 | (append (unless (eq i 0) (split-string (substring string 0 i) sep t)) |
| 210 | (let ((rfs (read-from-string string i))) | 210 | (let ((rfs (read-from-string string i))) |
| 211 | (cons (car rfs) | 211 | (cons (car rfs) |
| 212 | (cvs-string->strings (substring string (cdr rfs)) | 212 | (cvs-string->strings (substring string (cdr rfs)) |