diff options
| author | Joakim Verona | 2013-03-26 16:15:43 +0100 |
|---|---|---|
| committer | Joakim Verona | 2013-03-26 16:15:43 +0100 |
| commit | 62dd123f7c11ddbe156bc0e84dcb7ca1da5368bb (patch) | |
| tree | c5af993aa23c093bdd764766f5f2ae762cb02684 | |
| parent | e11705b616777a8a72363b2037d989987630e863 (diff) | |
| download | emacs-62dd123f7c11ddbe156bc0e84dcb7ca1da5368bb.tar.gz emacs-62dd123f7c11ddbe156bc0e84dcb7ca1da5368bb.zip | |
cl-flet replaces flet (Stefan Hussman)
| -rw-r--r-- | lisp/xwidget.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/xwidget.el b/lisp/xwidget.el index 38b404586e6..8af8d47c00d 100644 --- a/lisp/xwidget.el +++ b/lisp/xwidget.el | |||
| @@ -64,7 +64,7 @@ see xwidget.c for types suitable for TYPE." | |||
| 64 | ;;; webkit support | 64 | ;;; webkit support |
| 65 | (require 'browse-url) | 65 | (require 'browse-url) |
| 66 | (require 'image-mode);;for some image-mode alike functinoality | 66 | (require 'image-mode);;for some image-mode alike functinoality |
| 67 | (require 'cl);;for flet | 67 | (require 'cl-macs);;for flet |
| 68 | 68 | ||
| 69 | ;;;###autoload | 69 | ;;;###autoload |
| 70 | (defun xwidget-webkit-browse-url (url &optional new-session) | 70 | (defun xwidget-webkit-browse-url (url &optional new-session) |
| @@ -93,13 +93,13 @@ defaults to the string looking like a url around the cursor position." | |||
| 93 | (defmacro xwidget-image-mode-navigation-adaptor (fn) | 93 | (defmacro xwidget-image-mode-navigation-adaptor (fn) |
| 94 | "Image code adaptor. `image-mode' FN is called." | 94 | "Image code adaptor. `image-mode' FN is called." |
| 95 | `(lambda () (interactive) | 95 | `(lambda () (interactive) |
| 96 | (flet ((image-display-size (spec) (xwidget-image-display-size spec))) | 96 | (cl-flet ((image-display-size (spec) (xwidget-image-display-size spec))) |
| 97 | (funcall ,fn )))) | 97 | (funcall ,fn )))) |
| 98 | 98 | ||
| 99 | (defmacro xwidget-image-mode-navigation-adaptor-p (fn) | 99 | (defmacro xwidget-image-mode-navigation-adaptor-p (fn) |
| 100 | "Image code adaptor. `image-mode' FN is called with interactive arg." | 100 | "Image code adaptor. `image-mode' FN is called with interactive arg." |
| 101 | `(lambda (n) (interactive "p") | 101 | `(lambda (n) (interactive "p") |
| 102 | (flet ((image-display-size (spec) (xwidget-image-display-size spec))) | 102 | (cl-flet ((image-display-size (spec) (xwidget-image-display-size spec))) |
| 103 | (funcall ,fn n)))) | 103 | (funcall ,fn n)))) |
| 104 | 104 | ||
| 105 | 105 | ||