From: Vinicius Jose Latorre Date: Thu, 6 May 2004 03:21:04 +0000 (+0000) Subject: New fun. X-Git-Tag: ttn-vms-21-2-B4~6402 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=51138c946f09b6987ee7ffd6c964a5c7bca34fcf;p=emacs.git New fun. --- diff --git a/lisp/ps-print.el b/lisp/ps-print.el index e60eebe07cf..620398ac3b9 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el @@ -3657,14 +3657,23 @@ If `ps-prefix-quote' is nil, it's set to t after generating string." (if (> col len) (make-string (- col len) ?\ ) " ") - (cond ((null val) "nil") - ((eq val t) "t") - ((or (symbolp val) (listp val)) (format "'%S" val)) - (t (format "%S" val)))))) + (ps-value-string val)))) (t "") )) +(defun ps-value-string (val) + "Return a string representation of VAL. Used by `ps-print-quote'." + (cond ((null val) + "nil") + ((eq val t) + "t") + ((or (symbolp val) (listp val)) + (format "'%S" val)) + (t + (format "%S" val)))) + + (defun ps-value (alist-sym key) "Return value from association list ALIST-SYM which car is `eq' to KEY." (cdr (assq key (symbol-value alist-sym))))