]> git.eshelyaron.com Git - emacs.git/commitdiff
New fun.
authorVinicius Jose Latorre <viniciusjl@ig.com.br>
Thu, 6 May 2004 03:21:04 +0000 (03:21 +0000)
committerVinicius Jose Latorre <viniciusjl@ig.com.br>
Thu, 6 May 2004 03:21:04 +0000 (03:21 +0000)
lisp/ps-print.el

index e60eebe07cf7827e24349745a753d665592c6d81..620398ac3b926b957655ae75f29390f505413bef 100644 (file)
@@ -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))))