(process-lines): Move to ../lisp/subr.el.

This commit is contained in:
Glenn Morris 2007-11-17 03:42:57 +00:00
parent d43c8d0332
commit 1453abd0cc
2 changed files with 4 additions and 17 deletions

View file

@ -1,3 +1,7 @@
2007-11-17 Glenn Morris <rgm@gnu.org>
* admin.el (process-lines): Move to ../lisp/subr.el.
2007-10-23 Glenn Morris <rgm@gnu.org>
* MAINTAINERS: Move here from ../.

View file

@ -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."