diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-04-12 08:35:41 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-04-12 08:35:41 +0000 |
commit | c5292bc831ae97cd0d99234c039c9309c05af2a6 (patch) | |
tree | 18be7ff92d7fa0acf1b3b477bca4382427a72614 /lisp/lpr.el | |
parent | fcad51995cb19634708db88b2efcbed581be979f (diff) | |
download | emacs-c5292bc831ae97cd0d99234c039c9309c05af2a6.tar.gz |
Add defgroup's; use defcustom for user vars.
Diffstat (limited to 'lisp/lpr.el')
-rw-r--r-- | lisp/lpr.el | 47 |
1 files changed, 33 insertions, 14 deletions
diff --git a/lisp/lpr.el b/lisp/lpr.el index 34956193642..e219e4bfa2a 100644 --- a/lisp/lpr.el +++ b/lisp/lpr.el @@ -30,40 +30,59 @@ ;;; Code: +(defgroup lpr nil + "Print Emacs buffer on line printer" + :group 'wp) + + ;;;###autoload -(defvar lpr-switches nil +(defcustom lpr-switches nil "*List of strings to pass as extra options for the printer program. -See `lpr-command'.") +See `lpr-command'." + :type '(repeat (string :tag "Argument")) + :group 'lpr) -(defvar lpr-add-switches (eq system-type 'berkeley-unix) +(defcustom lpr-add-switches (eq system-type 'berkeley-unix) "*Non-nil means construct -T and -J options for the printer program. These are made assuming that the program is `lpr'; if you are using some other incompatible printer program, -this variable should be nil.") +this variable should be nil." + :type 'boolean + :group 'lpr) ;;;###autoload -(defvar lpr-command +(defcustom lpr-command (if (memq system-type '(usg-unix-v dgux hpux irix)) "lp" "lpr") - "*Name of program for printing a file.") + "*Name of program for printing a file." + :type 'string + :group 'lpr) ;; Default is nil, because that enables us to use pr -f ;; which is more reliable than pr with no args, which is what lpr -p does. -(defvar lpr-headers-switches nil +(defcustom lpr-headers-switches nil "*List of strings of options to request page headings in the printer program. If nil, we run `lpr-page-header-program' to make page headings -and print the result.") +and print the result." + :type '(repeat (string :tag "Argument")) + :group 'lpr) -(defvar print-region-function nil +(defcustom print-region-function nil "Function to call to print the region on a printer. -See definition of `print-region-1' for calling conventions.") +See definition of `print-region-1' for calling conventions." + :type 'function + :group 'lpr) -(defvar lpr-page-header-program "pr" - "*Name of program for adding page headers to a file.") +(defcustom lpr-page-header-program "pr" + "*Name of program for adding page headers to a file." + :type 'string + :group 'lpr) -(defvar lpr-page-header-switches '("-f") +(defcustom lpr-page-header-switches '("-f") "*List of strings to use as options for the page-header-generating program. -The variable `lpr-page-header-program' specifies the program to use.") +The variable `lpr-page-header-program' specifies the program to use." + :type '(repeat string) + :group 'lpr) ;;;###autoload (defun lpr-buffer () |