aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2007-08-12 18:11:57 +0000
committerRichard M. Stallman2007-08-12 18:11:57 +0000
commitad4fed11b3fc9553c8fb60868c7b4aa52229f437 (patch)
treea1831b0f5b093dcb78e0a5f703b2b85c5f2420f6
parentc0d8c0a4c53163b99ab500a0329c917736c2b131 (diff)
downloademacs-ad4fed11b3fc9553c8fb60868c7b4aa52229f437.tar.gz
emacs-ad4fed11b3fc9553c8fb60868c7b4aa52229f437.zip
(cvs-reread-cvsrc, cvs-checkout, cvs-mode-checkout)
(cvs-execute-single-file): Use new name split-string-and-unquote. (cvs-header-msg): Use new name combine-and-quote-strings.
-rw-r--r--etc/NEWS3
-rw-r--r--lisp/ChangeLog20
-rw-r--r--lisp/pcvs.el11
3 files changed, 29 insertions, 5 deletions
diff --git a/etc/NEWS b/etc/NEWS
index a428a39f421..8e4d7f95f1c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -81,6 +81,9 @@ as its frame.
81** The new function `image-refresh' refreshes all images associated 81** The new function `image-refresh' refreshes all images associated
82with a given image specification. 82with a given image specification.
83 83
84** The new function `split-string-and-unquote' does (what?)
85
86** The new function `combine-and-quote-strings' does (what?)
84 87
85* Installation Changes in Emacs 22.1 88* Installation Changes in Emacs 22.1
86 89
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 713ad4d3bf6..cba37b26f2a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,23 @@
12007-08-12 Richard Stallman <rms@gnu.org>
2
3 * pcvs.el (cvs-reread-cvsrc, cvs-checkout, cvs-mode-checkout)
4 (cvs-execute-single-file): Use new name split-string-and-unquote.
5 (cvs-header-msg): Use new name combine-and-quote-strings.
6
7 * emulation/vi.el (vi-next-line): Ignore return value of line-move.
8
9 * progmodes/gud.el (gud-common-init): Use new name
10 split-string-and-unquote.
11
12 * progmodes/flymake.el (flymake-err-line-patterns): Fix infloop
13 in javac regexp.
14
15 * pcvs-util.el (cvs-qtypedesc-strings): Use new names
16 combine-and-quote-strings and split-string-and-unquote.
17
18 * subr.el (combine-and-quote-strings): Renamed from strings->string.
19 (split-string-and-unquote): Renamed from string->strings.
20
12007-08-10 Stefan Monnier <monnier@iro.umontreal.ca> 212007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
2 22
3 * log-view.el (log-view-font-lock-keywords): Use `eval' so as to adapt 23 * log-view.el (log-view-font-lock-keywords): Use `eval' so as to adapt
diff --git a/lisp/pcvs.el b/lisp/pcvs.el
index 901110bbfa3..6db3ed31a51 100644
--- a/lisp/pcvs.el
+++ b/lisp/pcvs.el
@@ -182,7 +182,7 @@
182 (when (re-search-forward 182 (when (re-search-forward
183 (concat "^" cmd "\\(\\s-+\\(.*\\)\\)?$") nil t) 183 (concat "^" cmd "\\(\\s-+\\(.*\\)\\)?$") nil t)
184 (let* ((sym (intern (concat "cvs-" cmd "-flags"))) 184 (let* ((sym (intern (concat "cvs-" cmd "-flags")))
185 (val (string->strings (or (match-string 2) "")))) 185 (val (split-string-and-unquote (or (match-string 2) ""))))
186 (cvs-flags-set sym 0 val)))) 186 (cvs-flags-set sym 0 val))))
187 ;; ensure that cvs doesn't have -q or -Q 187 ;; ensure that cvs doesn't have -q or -Q
188 (cvs-flags-set 'cvs-cvs-flags 0 188 (cvs-flags-set 'cvs-cvs-flags 0
@@ -612,7 +612,7 @@ If non-nil, NEW means to create a new buffer no matter what."
612 (t arg))) 612 (t arg)))
613 args))) 613 args)))
614 (concat cvs-program " " 614 (concat cvs-program " "
615 (strings->string 615 (combine-and-quote-strings
616 (append (cvs-flags-query 'cvs-cvs-flags nil 'noquery) 616 (append (cvs-flags-query 'cvs-cvs-flags nil 'noquery)
617 (if cvs-cvsroot (list "-d" cvs-cvsroot)) 617 (if cvs-cvsroot (list "-d" cvs-cvsroot))
618 args 618 args
@@ -941,7 +941,8 @@ With a prefix argument, prompt for cvs FLAGS to use."
941 (let ((root (cvs-get-cvsroot))) 941 (let ((root (cvs-get-cvsroot)))
942 (if (or (null root) current-prefix-arg) 942 (if (or (null root) current-prefix-arg)
943 (setq root (read-string "CVS Root: "))) 943 (setq root (read-string "CVS Root: ")))
944 (list (string->strings (read-string "Module(s): " (cvs-get-module))) 944 (list (split-string-and-unquote
945 (read-string "Module(s): " (cvs-get-module)))
945 (read-directory-name "CVS Checkout Directory: " 946 (read-directory-name "CVS Checkout Directory: "
946 nil default-directory nil) 947 nil default-directory nil)
947 (cvs-add-branch-prefix 948 (cvs-add-branch-prefix
@@ -964,7 +965,7 @@ The files are stored to DIR."
964 (if branch (format " (branch: %s)" branch) 965 (if branch (format " (branch: %s)" branch)
965 "")))) 966 ""))))
966 (list (read-directory-name prompt nil default-directory nil)))) 967 (list (read-directory-name prompt nil default-directory nil))))
967 (let ((modules (string->strings (cvs-get-module))) 968 (let ((modules (split-string-and-unquote (cvs-get-module)))
968 (flags (cvs-add-branch-prefix 969 (flags (cvs-add-branch-prefix
969 (cvs-flags-query 'cvs-checkout-flags "cvs checkout flags"))) 970 (cvs-flags-query 'cvs-checkout-flags "cvs checkout flags")))
970 (cvs-cvsroot (cvs-get-cvsroot))) 971 (cvs-cvsroot (cvs-get-cvsroot)))
@@ -2253,7 +2254,7 @@ With prefix argument, prompt for cvs flags."
2253 (let* ((args (append constant-args arg-list))) 2254 (let* ((args (append constant-args arg-list)))
2254 2255
2255 (insert (format "=== %s %s\n\n" 2256 (insert (format "=== %s %s\n\n"
2256 program (strings->string args))) 2257 program (split-string-and-unquote args)))
2257 2258
2258 ;; FIXME: return the exit status? 2259 ;; FIXME: return the exit status?
2259 (apply 'call-process program nil t t args) 2260 (apply 'call-process program nil t t args)