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

index 620398ac3b926b957655ae75f29390f505413bef..d6042a9763cb9152a6c7930e77a34ac70c1f67a4 100644 (file)
@@ -3501,6 +3501,7 @@ The table depends on the current ps-print setup."
      #'ps-print-quote
      (list
       (concat "\n;;; ps-print version " ps-print-version "\n")
+      (ps-comment-string "ps-print-emacs-type" ps-print-emacs-type)
       '(25 . ps-print-color-p)
       '(25 . ps-lpr-command)
       '(25 . ps-lpr-switches)
@@ -3674,6 +3675,11 @@ If `ps-prefix-quote' is nil, it's set to t after generating string."
         (format "%S" val))))
 
 
+(defun ps-comment-string (str value)
+  "Return a comment string like \";; STR = VALUE\\n\"."
+  (concat ";; " str " = " (ps-value-string value) "\n"))
+
+
 (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))))