X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/ceb4c4d3039f5b70d0e49c343bce0bd36cfc1dc8..c05c21ed109720d66c834a0c5b21ea29416683a6:/lisp/eshell/esh-test.el diff --git a/lisp/eshell/esh-test.el b/lisp/eshell/esh-test.el index 5aad4126f9..5bce6072f0 100644 --- a/lisp/eshell/esh-test.el +++ b/lisp/eshell/esh-test.el @@ -1,16 +1,16 @@ ;;; esh-test.el --- Eshell test suite -;; Copyright (C) 1999, 2000, 2002, 2003, 2004, -;; 2005, 2006 Free Software Foundation, Inc. +;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, +;; 2008, 2009, 2010 Free Software Foundation, Inc. ;; Author: John Wiegley ;; This file is part of GNU Emacs. -;; GNU Emacs is free software; you can redistribute it and/or modify +;; GNU Emacs is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 2, or (at your option) -;; any later version. +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. ;; GNU Emacs is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -18,18 +18,7 @@ ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301, USA. - -(provide 'esh-test) - -(eval-when-compile (require 'esh-maint)) - -(defgroup eshell-test nil - "This module is meant to ensure that Eshell is working correctly." - :tag "Eshell test suite" - :group 'eshell) +;; along with GNU Emacs. If not, see . ;;; Commentary: @@ -39,8 +28,16 @@ ;;; Code: +(eval-when-compile + (require 'eshell) + (require 'esh-util)) (require 'esh-mode) +(defgroup eshell-test nil + "This module is meant to ensure that Eshell is working correctly." + :tag "Eshell test suite" + :group 'eshell) + ;;; User Variables: (defface eshell-test-ok @@ -48,8 +45,7 @@ (((class color) (background dark)) (:foreground "Green" :bold t))) "*The face used to highlight OK result strings." :group 'eshell-test) -;; backward-compatibility alias -(put 'eshell-test-ok-face 'face-alias 'eshell-test-ok) +(define-obsolete-face-alias 'eshell-test-ok-face 'eshell-test-ok "22.1") (defface eshell-test-failed '((((class color) (background light)) (:foreground "OrangeRed" :bold t)) @@ -57,8 +53,7 @@ (t (:bold t))) "*The face used to highlight FAILED result strings." :group 'eshell-test) -;; backward-compatibility alias -(put 'eshell-test-failed-face 'face-alias 'eshell-test-failed) +(define-obsolete-face-alias 'eshell-test-failed-face 'eshell-test-failed "22.1") (defcustom eshell-show-usage-metrics nil "*If non-nil, display different usage metrics for each Eshell command." @@ -74,8 +69,7 @@ ;;; Code: -(eval-when-compile - (defvar test-buffer)) +(defvar test-buffer) (defun eshell-insert-command (text &optional func) "Insert a command at the end of the buffer." @@ -107,7 +101,7 @@ (eshell-redisplay)) (let ((truth (eval command))) (with-current-buffer test-buffer - (delete-backward-char 6) + (delete-char -6) (insert-before-markers "[" (let (str) (if truth @@ -236,5 +230,7 @@ "\n")))) nil t)) -;;; arch-tag: 6e32275a-8285-4a4e-b7cf-819aa7c86b8e +(provide 'esh-test) + +;; arch-tag: 6e32275a-8285-4a4e-b7cf-819aa7c86b8e ;;; esh-test.el ends here