aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ps-print.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 620398ac3b9..d6042a9763c 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -3501,6 +3501,7 @@ The table depends on the current ps-print setup."
3501 #'ps-print-quote 3501 #'ps-print-quote
3502 (list 3502 (list
3503 (concat "\n;;; ps-print version " ps-print-version "\n") 3503 (concat "\n;;; ps-print version " ps-print-version "\n")
3504 (ps-comment-string "ps-print-emacs-type" ps-print-emacs-type)
3504 '(25 . ps-print-color-p) 3505 '(25 . ps-print-color-p)
3505 '(25 . ps-lpr-command) 3506 '(25 . ps-lpr-command)
3506 '(25 . ps-lpr-switches) 3507 '(25 . ps-lpr-switches)
@@ -3674,6 +3675,11 @@ If `ps-prefix-quote' is nil, it's set to t after generating string."
3674 (format "%S" val)))) 3675 (format "%S" val))))
3675 3676
3676 3677
3678(defun ps-comment-string (str value)
3679 "Return a comment string like \";; STR = VALUE\\n\"."
3680 (concat ";; " str " = " (ps-value-string value) "\n"))
3681
3682
3677(defun ps-value (alist-sym key) 3683(defun ps-value (alist-sym key)
3678 "Return value from association list ALIST-SYM which car is `eq' to KEY." 3684 "Return value from association list ALIST-SYM which car is `eq' to KEY."
3679 (cdr (assq key (symbol-value alist-sym)))) 3685 (cdr (assq key (symbol-value alist-sym))))