X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/3adbe22462f8c670a843494dad84f8f2260a0802..77c7bcb1157b405bde1227b20ef5f7ce9a90e689:/lisp/lpr.el diff --git a/lisp/lpr.el b/lisp/lpr.el index 296063549f..b31d19b624 100644 --- a/lisp/lpr.el +++ b/lisp/lpr.el @@ -1,6 +1,6 @@ ;;; lpr.el --- print Emacs buffer on line printer -;; Copyright (C) 1985, 1988, 1992, 1994, 2001-2011 +;; Copyright (C) 1985, 1988, 1992, 1994, 2001-2012 ;; Free Software Foundation, Inc. ;; Maintainer: FSF @@ -29,8 +29,6 @@ ;;; Code: -(eval-when-compile (require 'cl)) - ;;;###autoload (defvar lpr-windows-system (memq system-type '(ms-dos windows-nt)) @@ -281,10 +279,10 @@ for further customization of the printer command." (if (markerp end) (set-marker end nil)) (message "Spooling%s...done%s%s" switch-string - (case (count-lines (point-min) (point-max)) + (pcase (count-lines (point-min) (point-max)) (0 "") (1 ": ") - (t ":\n")) + (_ ":\n")) (buffer-string))))))) ;; This function copies the text between start and end