1 ;;; advise-eval-region.el --- Wrap advice around eval-region
2 ;; Copyright (C) 1996 Miranova Systems, Inc.
4 ;; Original-Author: Unknown
5 ;; Adapted-By: Steven L Baur <steve@xemacs.org>
6 ;; Keywords: extensions lisp
8 ;; This file is part of XEmacs.
10 ;; XEmacs is free software; you can redistribute it and/or modify it
11 ;; under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; XEmacs is distributed in the hope that it will be useful, but
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ;; General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with XEmacs; see the file COPYING. If not, write to the Free
22 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25 ;;; Synched up with: Not in FSF.
29 ;; This file splits out advice to eval-region formerly done in cl-read.el.
30 ;; Due to the way cl-read.el reads itself in twice during bytecompilation,
31 ;; and the fact that functions shouldn't be advised twice, I split this out
38 ;; Advise the redefined eval-region
39 (defadvice eval-region (around cl-read activate)
40 "Use the reader::read instead of the original read if cl-read-active."
41 (with-elisp-eval-region (not cl-read-active)
44 (provide 'advise-eval-region)
46 ;;; advise-eval-region.el ends here