diff options
| author | Daniel LaLiberte | 1994-04-05 21:05:09 +0000 |
|---|---|---|
| committer | Daniel LaLiberte | 1994-04-05 21:05:09 +0000 |
| commit | 11b57bf98367a1498cff29646ffffd39c5d3371a (patch) | |
| tree | 7f7ea699869fb1a4350e81d0ae32c406dfcd7f23 | |
| parent | 22e8f7199482cec148a3c100280223d096ae549e (diff) | |
| download | emacs-11b57bf98367a1498cff29646ffffd39c5d3371a.tar.gz emacs-11b57bf98367a1498cff29646ffffd39c5d3371a.zip | |
Change install- and uninstall- to -install and -uninstall.
| -rw-r--r-- | lisp/emacs-lisp/cust-print.el | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/lisp/emacs-lisp/cust-print.el b/lisp/emacs-lisp/cust-print.el index 28569f05985..6b9ae19269a 100644 --- a/lisp/emacs-lisp/cust-print.el +++ b/lisp/emacs-lisp/cust-print.el | |||
| @@ -9,7 +9,12 @@ | |||
| 9 | ;; LCD Archive Entry: | 9 | ;; LCD Archive Entry: |
| 10 | ;; cust-print|Daniel LaLiberte|liberte@cs.uiuc.edu | 10 | ;; cust-print|Daniel LaLiberte|liberte@cs.uiuc.edu |
| 11 | ;; |Handle print-level, print-circle and more. | 11 | ;; |Handle print-level, print-circle and more. |
| 12 | ;; |$Date: 1994/03/23 20:34:29 $|$Revision: 1.4 $| | 12 | ;; |$Date: 1994/03/24 20:26:05 $|1.5| |
| 13 | |||
| 14 | ;; Version 1.5 ($Revision: 1.13 $ from Emacs 19) | ||
| 15 | |||
| 16 | ;; Emacs maintainers: please inform me of any changes to this code. | ||
| 17 | ;; Better yet, ask me first. | ||
| 13 | 18 | ||
| 14 | ;; This file is part of GNU Emacs. | 19 | ;; This file is part of GNU Emacs. |
| 15 | 20 | ||
| @@ -28,8 +33,13 @@ | |||
| 28 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | 33 | ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 29 | 34 | ||
| 30 | ;;; =============================== | 35 | ;;; =============================== |
| 31 | ;;; $Header: /import/kaplan/kaplan/liberte/Edebug/RCS/cust-print.el,v 1.4 1994/03/23 20:34:29 liberte Exp liberte $ | ||
| 32 | ;;; $Log: cust-print.el,v $ | 36 | ;;; $Log: cust-print.el,v $ |
| 37 | ;;; Revision 1.13 1994/03/24 20:26:05 liberte | ||
| 38 | ;;; Change "internal" to "original" throughout. | ||
| 39 | ;;; (add-custom-printer, delete-custom-printer) replace customizers. | ||
| 40 | ;;; (with-custom-print) new | ||
| 41 | ;;; (custom-prin1-to-string) Made it more robust. | ||
| 42 | ;;; | ||
| 33 | ;;; Revision 1.4 1994/03/23 20:34:29 liberte | 43 | ;;; Revision 1.4 1994/03/23 20:34:29 liberte |
| 34 | ;;; * Change "emacs" to "original" - I just can't decide. | 44 | ;;; * Change "emacs" to "original" - I just can't decide. |
| 35 | ;;; | 45 | ;;; |
| @@ -129,8 +139,8 @@ | |||
| 129 | print-level | 139 | print-level |
| 130 | print-circle | 140 | print-circle |
| 131 | 141 | ||
| 132 | install-custom-print | 142 | custom-print-install |
| 133 | uninstall-custom-print | 143 | custom-print-uninstall |
| 134 | custom-print-installed-p | 144 | custom-print-installed-p |
| 135 | with-custom-print | 145 | with-custom-print |
| 136 | 146 | ||
| @@ -281,11 +291,10 @@ Any pair that has the same PREDICATE is first removed." | |||
| 281 | (cust-print-original-error error)))) | 291 | (cust-print-original-error error)))) |
| 282 | 292 | ||
| 283 | 293 | ||
| 284 | (defalias 'install-custom-print-funcs 'install-custom-print) | 294 | (defun custom-print-install () |
| 285 | (defun install-custom-print () | ||
| 286 | "Replace print functions with general, customizable, Lisp versions. | 295 | "Replace print functions with general, customizable, Lisp versions. |
| 287 | The emacs subroutines are saved away, and you can reinstall them | 296 | The emacs subroutines are saved away, and you can reinstall them |
| 288 | by running `uninstall-custom-print'." | 297 | by running `custom-print-uninstall'." |
| 289 | (interactive) | 298 | (interactive) |
| 290 | (mapcar 'cust-print-set-function-cell | 299 | (mapcar 'cust-print-set-function-cell |
| 291 | '((prin1 custom-prin1) | 300 | '((prin1 custom-prin1) |
| @@ -298,8 +307,7 @@ by running `uninstall-custom-print'." | |||
| 298 | )) | 307 | )) |
| 299 | t) | 308 | t) |
| 300 | 309 | ||
| 301 | (defalias 'uninstall-custom-print-funcs 'uninstall-custom-print) | 310 | (defun custom-print-uninstall () |
| 302 | (defun uninstall-custom-print () | ||
| 303 | "Reset print functions to their emacs subroutines." | 311 | "Reset print functions to their emacs subroutines." |
| 304 | (interactive) | 312 | (interactive) |
| 305 | (mapcar 'cust-print-set-function-cell | 313 | (mapcar 'cust-print-set-function-cell |
| @@ -326,9 +334,9 @@ by running `uninstall-custom-print'." | |||
| 326 | "Temporarily install the custom print package while executing BODY." | 334 | "Temporarily install the custom print package while executing BODY." |
| 327 | (` (unwind-protect | 335 | (` (unwind-protect |
| 328 | (progn | 336 | (progn |
| 329 | (install-custom-print) | 337 | (custom-print-install) |
| 330 | (,@ body)) | 338 | (,@ body)) |
| 331 | (uninstall-custom-print)))) | 339 | (custom-print-uninstall)))) |
| 332 | 340 | ||
| 333 | 341 | ||
| 334 | ;; Lisp replacements for prin1 and princ, and for some subrs that use them | 342 | ;; Lisp replacements for prin1 and princ, and for some subrs that use them |