comparison lisp/emacs-lisp/cust-print.el @ 90650:02cf29720f31

Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 490-504) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 161-163) - Update from CVS - Merge from emacs--devo--0 Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-130
author Miles Bader <miles@gnu.org>
date Tue, 07 Nov 2006 23:22:48 +0000
parents c5406394f567 59cd5ef2f5f0
children 6588c6259dfb
comparison
equal deleted inserted replaced
90649:d53934e7ddef 90650:02cf29720f31
254 (cust-print-original-error error)))) 254 (cust-print-original-error error))))
255 255
256 256
257 (defun custom-print-install () 257 (defun custom-print-install ()
258 "Replace print functions with general, customizable, Lisp versions. 258 "Replace print functions with general, customizable, Lisp versions.
259 The emacs subroutines are saved away, and you can reinstall them 259 The Emacs subroutines are saved away, and you can reinstall them
260 by running `custom-print-uninstall'." 260 by running `custom-print-uninstall'."
261 (interactive) 261 (interactive)
262 (mapcar 'cust-print-set-function-cell 262 (mapcar 'cust-print-set-function-cell
263 '((prin1 custom-prin1) 263 '((prin1 custom-prin1)
264 (princ custom-princ) 264 (princ custom-princ)
269 (error custom-error) 269 (error custom-error)
270 )) 270 ))
271 t) 271 t)
272 272
273 (defun custom-print-uninstall () 273 (defun custom-print-uninstall ()
274 "Reset print functions to their emacs subroutines." 274 "Reset print functions to their Emacs subroutines."
275 (interactive) 275 (interactive)
276 (mapcar 'cust-print-set-function-cell 276 (mapcar 'cust-print-set-function-cell
277 '((prin1 cust-print-original-prin1) 277 '((prin1 cust-print-original-prin1)
278 (princ cust-print-original-princ) 278 (princ cust-print-original-princ)
279 (print cust-print-original-print) 279 (print cust-print-original-print)
373 %c means print a number as a single character. 373 %c means print a number as a single character.
374 The argument used by %s must be a string or a symbol; 374 The argument used by %s must be a string or a symbol;
375 the argument used by %d, %b, %o, %x or %c must be a number. 375 the argument used by %d, %b, %o, %x or %c must be a number.
376 376
377 This is the custom-print replacement for the standard `format'. It 377 This is the custom-print replacement for the standard `format'. It
378 calls the emacs `format' after first making strings for list, 378 calls the Emacs `format' after first making strings for list,
379 vector, or symbol args. The format specification for such args should 379 vector, or symbol args. The format specification for such args should
380 be `%s' in any case, so a string argument will also work. The string 380 be `%s' in any case, so a string argument will also work. The string
381 is generated with `custom-prin1-to-string', which quotes quotable 381 is generated with `custom-prin1-to-string', which quotes quotable
382 characters." 382 characters."
383 (apply 'cust-print-original-format fmt 383 (apply 'cust-print-original-format fmt