diff options
| author | Stefan Monnier | 2012-04-26 08:43:28 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-04-26 08:43:28 -0400 |
| commit | e95a67dc75c3d41c428d6e215426f321b5a2f9e5 (patch) | |
| tree | 942041f2385c9506f52b6c97af7e4cee34f917db /lisp/progmodes | |
| parent | 4c3fa1d9adf3dca80e86b45488b0556f5f0fa495 (diff) | |
| download | emacs-e95a67dc75c3d41c428d6e215426f321b5a2f9e5.tar.gz emacs-e95a67dc75c3d41c428d6e215426f321b5a2f9e5.zip | |
Replace lexical-let by lexical-binding (except Gnus, CEDET, ERT).
* lisp/term/ns-win.el (ns-define-service):
* lisp/progmodes/pascal.el (pascal-goto-defun):
* lisp/progmodes/js.el (js--read-tab):
* lisp/progmodes/etags.el (tags-lazy-completion-table):
* lisp/emacs-lisp/syntax.el (syntax-propertize-via-font-lock):
* lisp/emacs-lisp/ewoc.el (ewoc--wrap):
* lisp/emacs-lisp/assoc.el (aput, adelete, amake):
* lisp/doc-view.el (doc-view-convert-current-doc):
* lisp/url/url.el (url-retrieve-synchronously):
* lisp/vc/diff.el (diff-no-select): Replace lexical-let by lexical-binding.
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/etags.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/js.el | 14 | ||||
| -rw-r--r-- | lisp/progmodes/pascal.el | 8 |
3 files changed, 10 insertions, 16 deletions
diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index d8a561340d3..638410ae627 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; etags.el --- etags facility for Emacs | 1 | ;;; etags.el --- etags facility for Emacs -*- lexical-binding: t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985-1986, 1988-1989, 1992-1996, 1998, 2000-2012 | 3 | ;; Copyright (C) 1985-1986, 1988-1989, 1992-1996, 1998, 2000-2012 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| @@ -781,7 +781,7 @@ tags table and its (recursively) included tags tables." | |||
| 781 | (setq tags-completion-table nil))))) | 781 | (setq tags-completion-table nil))))) |
| 782 | 782 | ||
| 783 | (defun tags-lazy-completion-table () | 783 | (defun tags-lazy-completion-table () |
| 784 | (lexical-let ((buf (current-buffer))) | 784 | (let ((buf (current-buffer))) |
| 785 | (lambda (string pred action) | 785 | (lambda (string pred action) |
| 786 | (with-current-buffer buf | 786 | (with-current-buffer buf |
| 787 | (save-excursion | 787 | (save-excursion |
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 69da6737520..1c8a1f45e57 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; js.el --- Major mode for editing JavaScript | 1 | ;;; js.el --- Major mode for editing JavaScript -*- lexical-binding: t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2008-2012 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2008-2012 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -1036,17 +1036,12 @@ LIMIT defaults to point." | |||
| 1036 | 1036 | ||
| 1037 | (c-save-buffer-state | 1037 | (c-save-buffer-state |
| 1038 | (open-items | 1038 | (open-items |
| 1039 | orig-match-start | ||
| 1040 | orig-match-end | ||
| 1041 | orig-depth | ||
| 1042 | parse | 1039 | parse |
| 1043 | prev-parse-point | 1040 | prev-parse-point |
| 1044 | name | 1041 | name |
| 1045 | case-fold-search | 1042 | case-fold-search |
| 1046 | filtered-class-styles | 1043 | filtered-class-styles |
| 1047 | new-item | 1044 | goal-point) |
| 1048 | goal-point | ||
| 1049 | end-prop) | ||
| 1050 | 1045 | ||
| 1051 | ;; Figure out which class styles we need to look for | 1046 | ;; Figure out which class styles we need to look for |
| 1052 | (setq filtered-class-styles | 1047 | (setq filtered-class-styles |
| @@ -2956,8 +2951,8 @@ browser, respectively." | |||
| 2956 | (ido-mode -1)) | 2951 | (ido-mode -1)) |
| 2957 | 2952 | ||
| 2958 | (with-js | 2953 | (with-js |
| 2959 | (lexical-let ((tabs (js--get-tabs)) selected-tab-cname | 2954 | (let ((tabs (js--get-tabs)) selected-tab-cname |
| 2960 | selected-tab prev-hitab) | 2955 | selected-tab prev-hitab) |
| 2961 | 2956 | ||
| 2962 | ;; Disambiguate names | 2957 | ;; Disambiguate names |
| 2963 | (setq tabs (loop with tab-names = (make-hash-table :test 'equal) | 2958 | (setq tabs (loop with tab-names = (make-hash-table :test 'equal) |
| @@ -3053,7 +3048,6 @@ browser, respectively." | |||
| 3053 | "gBrowser" | 3048 | "gBrowser" |
| 3054 | "selectedTab") | 3049 | "selectedTab") |
| 3055 | 3050 | ||
| 3056 | with index = 0 | ||
| 3057 | for match in ido-matches | 3051 | for match in ido-matches |
| 3058 | for candidate-tab = (find-tab-by-cname match) | 3052 | for candidate-tab = (find-tab-by-cname match) |
| 3059 | if (eq (fourth candidate-tab) tab-to-match) | 3053 | if (eq (fourth candidate-tab) tab-to-match) |
diff --git a/lisp/progmodes/pascal.el b/lisp/progmodes/pascal.el index 8f7f313753c..5a6f4e20fbc 100644 --- a/lisp/progmodes/pascal.el +++ b/lisp/progmodes/pascal.el | |||
| @@ -1353,21 +1353,21 @@ The default is a name found in the buffer around point." | |||
| 1353 | (default (if (pascal-comp-defun default nil 'lambda) | 1353 | (default (if (pascal-comp-defun default nil 'lambda) |
| 1354 | default "")) | 1354 | default "")) |
| 1355 | (label | 1355 | (label |
| 1356 | ;; Do completion with default | 1356 | ;; Do completion with default. |
| 1357 | (completing-read (if (not (string= default "")) | 1357 | (completing-read (if (not (string= default "")) |
| 1358 | (concat "Label (default " default "): ") | 1358 | (concat "Label (default " default "): ") |
| 1359 | "Label: ") | 1359 | "Label: ") |
| 1360 | ;; Complete with the defuns found in the | 1360 | ;; Complete with the defuns found in the |
| 1361 | ;; current-buffer. | 1361 | ;; current-buffer. |
| 1362 | (lexical-let ((buf (current-buffer))) | 1362 | (let ((buf (current-buffer))) |
| 1363 | (lambda (s p a) | 1363 | (lambda (s p a) |
| 1364 | (with-current-buffer buf | 1364 | (with-current-buffer buf |
| 1365 | (pascal-comp-defun s p a)))) | 1365 | (pascal-comp-defun s p a)))) |
| 1366 | nil t ""))) | 1366 | nil t ""))) |
| 1367 | ;; If there was no response on prompt, use default value | 1367 | ;; If there was no response on prompt, use default value. |
| 1368 | (if (string= label "") | 1368 | (if (string= label "") |
| 1369 | (setq label default)) | 1369 | (setq label default)) |
| 1370 | ;; Goto right place in buffer if label is not an empty string | 1370 | ;; Goto right place in buffer if label is not an empty string. |
| 1371 | (or (string= label "") | 1371 | (or (string= label "") |
| 1372 | (progn | 1372 | (progn |
| 1373 | (goto-char (point-min)) | 1373 | (goto-char (point-min)) |