diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2011-05-23 14:57:17 -0300 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2011-05-23 14:57:17 -0300 |
commit | 4f91a8160fe71295b7ad4d6e3f90f004caa3546c (patch) | |
tree | c0f3f767b785559ee0387e7cfb54a2a1aa06bcd5 /lisp/progmodes | |
parent | 782fc81943849d699d74c3039be80d4068bb3422 (diff) | |
download | emacs-4f91a8160fe71295b7ad4d6e3f90f004caa3546c.tar.gz |
Don't quote lambda expressions with `quote'.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r-- | lisp/progmodes/cperl-mode.el | 8 | ||||
-rw-r--r-- | lisp/progmodes/f90.el | 6 | ||||
-rw-r--r-- | lisp/progmodes/gdb-mi.el | 8 | ||||
-rw-r--r-- | lisp/progmodes/gud.el | 10 | ||||
-rw-r--r-- | lisp/progmodes/idlw-help.el | 2 | ||||
-rw-r--r-- | lisp/progmodes/idlw-shell.el | 8 | ||||
-rw-r--r-- | lisp/progmodes/mixal-mode.el | 3 | ||||
-rw-r--r-- | lisp/progmodes/python.el | 2 | ||||
-rw-r--r-- | lisp/progmodes/sql.el | 14 | ||||
-rw-r--r-- | lisp/progmodes/verilog-mode.el | 12 |
10 files changed, 36 insertions, 37 deletions
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index f6d497569ba..2cce5e13fb0 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el @@ -8594,10 +8594,10 @@ the appropriate statement modifier." (pargs (cdr (car flist)))) (setq command (concat command " | " pcom " " - (mapconcat '(lambda (phrase) - (if (not (stringp phrase)) - (error "Malformed Man-filter-list")) - phrase) + (mapconcat (lambda (phrase) + (if (not (stringp phrase)) + (error "Malformed Man-filter-list")) + phrase) pargs " "))) (setq flist (cdr flist)))) command)) diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el index e9bb43c4d6d..28f5d329fd5 100644 --- a/lisp/progmodes/f90.el +++ b/lisp/progmodes/f90.el @@ -78,9 +78,9 @@ ;; To customize f90-mode for your taste, use, for example: ;; (you don't have to specify values for all the parameters below) ;; -;;(add-hook 'f90-mode-hook -;; ;; These are the default values. -;; '(lambda () (setq f90-do-indent 3 +;; (add-hook 'f90-mode-hook +;; ;; These are the default values. +;; (lambda () (setq f90-do-indent 3 ;; f90-if-indent 3 ;; f90-type-indent 3 ;; f90-program-indent 2 diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index c2ee1a93389..61055ef4342 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -2539,7 +2539,7 @@ If not in a source or disassembly buffer just set point." ;; Don't bind "q" to kill-this-buffer as we need it for breakpoint icons. (define-key map "q" 'gdb-delete-frame-or-window) (define-key map "\r" 'gdb-goto-breakpoint) - (define-key map "\t" '(lambda () + (define-key map "\t" (lambda () (interactive) (gdb-set-window-buffer (gdb-get-buffer-create 'gdb-threads-buffer) t))) @@ -2626,7 +2626,7 @@ corresponding to the mode line clicked." (define-key map "i" 'gdb-interrupt-thread) (define-key map "c" 'gdb-continue-thread) (define-key map "s" 'gdb-step-thread) - (define-key map "\t" '(lambda () + (define-key map "\t" (lambda () (interactive) (gdb-set-window-buffer (gdb-get-buffer-create 'gdb-breakpoints-buffer) t))) @@ -3582,7 +3582,7 @@ member." (let ((map (make-sparse-keymap))) (suppress-keymap map) (define-key map "q" 'kill-this-buffer) - (define-key map "\t" '(lambda () + (define-key map "\t" (lambda () (interactive) (gdb-set-window-buffer (gdb-get-buffer-create @@ -3670,7 +3670,7 @@ member." (define-key map "\r" 'gdb-edit-register-value) (define-key map [mouse-2] 'gdb-edit-register-value) (define-key map "q" 'kill-this-buffer) - (define-key map "\t" '(lambda () + (define-key map "\t" (lambda () (interactive) (gdb-set-window-buffer (gdb-get-buffer-create diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index f45273026b4..259ee81c9ba 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -116,11 +116,11 @@ Used to grey out relevant toolbar icons.") (display-buffer-reuse-frames t)) (catch 'info-found (walk-windows - '(lambda (window) - (if (eq (window-buffer window) (get-buffer "*info*")) - (progn - (setq same-window-regexps nil) - (throw 'info-found nil)))) + (lambda (window) + (if (eq (window-buffer window) (get-buffer "*info*")) + (progn + (setq same-window-regexps nil) + (throw 'info-found nil)))) nil 0) (select-frame (make-frame))) (if (eq gud-minor-mode 'gdbmi) diff --git a/lisp/progmodes/idlw-help.el b/lisp/progmodes/idlw-help.el index 7202d95c8db..05fcedde048 100644 --- a/lisp/progmodes/idlw-help.el +++ b/lisp/progmodes/idlw-help.el @@ -835,7 +835,7 @@ see if a link is set for it. Try extra help functions if necessary." ((or idlwave-help-browser-is-local (string-match "w3" (symbol-name idlwave-help-browser-function))) - (idlwave-help-display-help-window '(lambda () (browse-url full-link)))) + (idlwave-help-display-help-window (lambda () (browse-url full-link)))) (t (browse-url full-link))))) diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el index 01c256ab41b..b2cd24f0f98 100644 --- a/lisp/progmodes/idlw-shell.el +++ b/lisp/progmodes/idlw-shell.el @@ -4243,15 +4243,15 @@ Otherwise, just expand the file name." (define-key idlwave-shell-electric-debug-mode-map "_" 'idlwave-shell-stack-down) (define-key idlwave-shell-electric-debug-mode-map "e" - '(lambda () (interactive) (idlwave-shell-print '(16)))) + (lambda () (interactive) (idlwave-shell-print '(16)))) (define-key idlwave-shell-electric-debug-mode-map "q" 'idlwave-shell-retall) (define-key idlwave-shell-electric-debug-mode-map "t" - '(lambda () (interactive) (idlwave-shell-send-command "help,/TRACE"))) + (lambda () (interactive) (idlwave-shell-send-command "help,/TRACE"))) (define-key idlwave-shell-electric-debug-mode-map [(control ??)] 'idlwave-shell-electric-debug-help) (define-key idlwave-shell-electric-debug-mode-map "x" - '(lambda (arg) (interactive "P") - (idlwave-shell-print arg nil nil t))) + (lambda (arg) (interactive "P") + (idlwave-shell-print arg nil nil t))) ; Enter the prefix map in two places. diff --git a/lisp/progmodes/mixal-mode.el b/lisp/progmodes/mixal-mode.el index bf5662cdfa3..0d8cdd9f9b1 100644 --- a/lisp/progmodes/mixal-mode.el +++ b/lisp/progmodes/mixal-mode.el @@ -1059,8 +1059,7 @@ EXECUTION-TIME holds info about the time it takes, number or string.") (let* ((completion-ignore-case t) ;; we already have a list, but it is not in the right format ;; transform it to a valid table so completition can use it - (table (mapcar '(lambda (elm) - (cons (symbol-name (car elm)) nil)) + (table (mapcar (lambda (elm) (cons (symbol-name (car elm)) nil)) mixal-operation-codes-alist)) ;; prompt is different depending on we are close to a valid op-code (have-default (assq (intern-soft (current-word)) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 67a51dfbeee..e35fc89618a 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -2380,7 +2380,7 @@ without confirmation." (features (cons 'python-mode features))) ; and requires this (brm-init) ; second line of normal recipe (remove-hook 'python-mode-hook ; undo this from `brm-init' - '(lambda () (easy-menu-add brm-menu))) + (lambda () (easy-menu-add brm-menu))) (easy-menu-define python-brm-menu python-mode-map "Bicycle Repair Man" diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index facbba60057..1da819660d2 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el @@ -1207,13 +1207,13 @@ Based on `comint-mode-map'.") (mapc ;; In Emacs 22+, provide SYSTEM-FLAG to define-abbrev. - '(lambda (abbrev) - (let ((name (car abbrev)) - (expansion (cdr abbrev))) - (condition-case nil - (define-abbrev sql-mode-abbrev-table name expansion nil 0 t) - (error - (define-abbrev sql-mode-abbrev-table name expansion))))) + (lambda (abbrev) + (let ((name (car abbrev)) + (expansion (cdr abbrev))) + (condition-case nil + (define-abbrev sql-mode-abbrev-table name expansion nil 0 t) + (error + (define-abbrev sql-mode-abbrev-table name expansion))))) '(("ins" . "insert") ("upd" . "update") ("del" . "delete") diff --git a/lisp/progmodes/verilog-mode.el b/lisp/progmodes/verilog-mode.el index 8bb9256078a..eab34f6f026 100644 --- a/lisp/progmodes/verilog-mode.el +++ b/lisp/progmodes/verilog-mode.el @@ -4586,7 +4586,7 @@ This lets programs calling batch mode to easily extract error messages." (verilog-mode)))) (buffer-list)) ;; Process the files - (mapcar '(lambda (buf) + (mapcar (lambda (buf) (when (buffer-file-name buf) (save-excursion (if (not (file-exists-p (buffer-file-name buf))) @@ -6373,7 +6373,7 @@ for matches of `str' and adding the occurrence tp `all' through point END." (defun verilog-keyword-completion (keyword-list) "Give list of all possible completions of keywords in KEYWORD-LIST." - (mapcar '(lambda (s) + (mapcar (lambda (s) (if (string-match (concat "\\<" verilog-str) s) (if (or (null verilog-pred) (funcall verilog-pred s)) @@ -6493,7 +6493,7 @@ and `verilog-separator-keywords'.)" (all-completions verilog-str 'verilog-completion))) (match (if verilog-toggle-completions "" (try-completion - verilog-str (mapcar '(lambda (elm) + verilog-str (mapcar (lambda (elm) (cons elm 0)) allcomp))))) ;; Delete old string (delete-region b e) @@ -11447,13 +11447,13 @@ Wilson Snyder (wsnyder@wsnyder.org)." (verilog-auto-re-search-do "/\\*AUTOINOUTCOMP([^)]*)\\*/" 'verilog-auto-inout-comp) ;; next in/outs which need previous sucked inputs first (verilog-auto-re-search-do "/\\*AUTOOUTPUT\\((\"[^\"]*\")\\)\\*/" - '(lambda () (verilog-auto-output t))) + (lambda () (verilog-auto-output t))) (verilog-auto-re-search-do "/\\*AUTOOUTPUT\\*/" 'verilog-auto-output) (verilog-auto-re-search-do "/\\*AUTOINPUT\\((\"[^\"]*\")\\)\\*/" - '(lambda () (verilog-auto-input t))) + (lambda () (verilog-auto-input t))) (verilog-auto-re-search-do "/\\*AUTOINPUT\\*/" 'verilog-auto-input) (verilog-auto-re-search-do "/\\*AUTOINOUT\\((\"[^\"]*\")\\)\\*/" - '(lambda () (verilog-auto-inout t))) + (lambda () (verilog-auto-inout t))) (verilog-auto-re-search-do "/\\*AUTOINOUT\\*/" 'verilog-auto-inout) ;; Then tie off those in/outs (verilog-auto-re-search-do "/\\*AUTOTIEOFF\\*/" 'verilog-auto-tieoff) |