# HG changeset patch # User Glenn Morris # Date 1195270969 0 # Node ID 4fbadbd4abb047cf74591b100f2c07677b99ff8e # Parent e8cb5c919219476652cc2b1e2658963d1ecbc671 (process-lines): Move to ../lisp/subr.el. diff -r e8cb5c919219 -r 4fbadbd4abb0 admin/admin.el --- a/admin/admin.el Sat Nov 17 03:42:22 2007 +0000 +++ b/admin/admin.el Sat Nov 17 03:42:49 2007 +0000 @@ -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."