+2008-07-19 Glenn Morris <rgm@gnu.org>
+
+ * term/ns-win.el (ns-make-command-string): Use mapconcat.
+ (ns-save-preferences): Fix typo in previous change. (Bug#573)
+
2008-07-18 Michael Albinus <michael.albinus@gmx.de>
* net/dbus.el (dbus-interface-properties): New defconst.
;;; ns-win.el --- lisp side of interface with NeXT/Open/GNUstep/MacOS X window system
-;; Copyright (C) 1993, 1994, 2005, 2006, 2008 Free Software Foundation, Inc.
+;; Copyright (C) 1993, 1994, 2005, 2006, 2007, 2008
+;; Free Software Foundation, Inc.
;; Authors: Carl Edman, Christian Limpach, Scott Bender,
;; Christophe de Dinechin, Adrian Robert
;;; Mostly used only under ns-extended-platform-support-mode.
(defun ns-make-command-string (cmdlist)
- (let ((str "")
- (cmds cmdlist))
- (while cmds
- (if (not (eq str "")) (setq str (format "%s ; " str)))
- (setq str (format "%s%s" str (car cmds)))
- (setq cmds (cdr cmds)))
- str))
+ (mapconcat 'identity cmdlist " ; "))
;;;###autoload
(defun ns-grabenv (&optional shell-path startup)
(t (cdr v)))))
(if (setq v (assq 'internal-border-width p))
(ns-set-resource nil "InternalBorderWidth"
- (number-to-string v)))
+ (number-to-string (cdr v))))
(if (setq v (assq 'vertical-scroll-bars p))
(ns-set-resource nil "VerticalScrollBars"
(case (cdr v)