From: Glenn Morris Date: Sat, 17 Nov 2007 03:42:57 +0000 (+0000) Subject: (process-lines): Move to ../lisp/subr.el. X-Git-Tag: emacs-pretest-23.0.90~9674 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1453abd0cc4897e053d9c5329ea99c9e8e78c68f;p=emacs.git (process-lines): Move to ../lisp/subr.el. --- diff --git a/admin/ChangeLog b/admin/ChangeLog index 706b2f68c8d..20d0adc0e89 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog @@ -1,3 +1,7 @@ +2007-11-17 Glenn Morris + + * admin.el (process-lines): Move to ../lisp/subr.el. + 2007-10-23 Glenn Morris * MAINTAINERS: Move here from ../. diff --git a/admin/admin.el b/admin/admin.el index 76c50243b3d..a8b436171c5 100644 --- a/admin/admin.el +++ b/admin/admin.el @@ -29,23 +29,6 @@ ;;; Code: -(defun process-lines (program &rest args) - "Execute PROGRAM with ARGS, returning its output as a list of lines. -Signal an error if the program returns with a non-zero exit status." - (with-temp-buffer - (let ((status (apply 'call-process program nil (current-buffer) nil args))) - (unless (eq status 0) - (error "%s exited with status %s" program status)) - (goto-char (point-min)) - (let (lines) - (while (not (eobp)) - (setq lines (cons (buffer-substring-no-properties - (line-beginning-position) - (line-end-position)) - lines)) - (forward-line 1)) - (nreverse lines))))) - (defun add-release-logs (root version) "Add \"Version VERSION released.\" change log entries in ROOT. Root must be the root of an Emacs source tree."