diff options
| author | Stefan Monnier | 2014-01-06 18:34:05 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2014-01-06 18:34:05 -0500 |
| commit | 6bdd920482e75a47062ebec76c022baa4259530d (patch) | |
| tree | aaa13a3161dde6f8bdee5ad5a2b02ea2fd97562a | |
| parent | daccca97f0231b54628c6ef8e58621277c678aa3 (diff) | |
| download | emacs-6bdd920482e75a47062ebec76c022baa4259530d.tar.gz emacs-6bdd920482e75a47062ebec76c022baa4259530d.zip | |
* lisp/abbrev.el (define-abbrev): Beware new meaning of fboundp.
* lisp/emacs-lisp/elint.el (elint-find-builtins):
* lisp/emacs-lisp/eldoc.el (eldoc-symbol-function):
* lisp/emacs-lisp/bytecomp.el (byte-compile-callargs-warn)
(byte-compile-file-form-defmumble, byte-compile, byte-compile-form):
* lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand):
* lisp/apropos.el (apropos-safe-documentation):
* lisp/subr.el (symbol-file): Remove redundant fboundp.
* lisp/progmodes/idlw-shell.el (idlwave-shell-comint-filter): Use defalias.
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/abbrev.el | 2 | ||||
| -rw-r--r-- | lisp/apropos.el | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/byte-opt.el | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 13 | ||||
| -rw-r--r-- | lisp/emacs-lisp/eldoc.el | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/elint.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/idlw-shell.el | 8 | ||||
| -rw-r--r-- | lisp/subr.el | 2 |
9 files changed, 29 insertions, 22 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ed858741160..8b6462b2d6b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2014-01-06 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * abbrev.el (define-abbrev): Beware new meaning of fboundp. | ||
| 4 | * emacs-lisp/elint.el (elint-find-builtins): | ||
| 5 | * emacs-lisp/eldoc.el (eldoc-symbol-function): | ||
| 6 | * emacs-lisp/bytecomp.el (byte-compile-callargs-warn) | ||
| 7 | (byte-compile-file-form-defmumble, byte-compile, byte-compile-form): | ||
| 8 | * emacs-lisp/byte-opt.el (byte-compile-inline-expand): | ||
| 9 | * apropos.el (apropos-safe-documentation): | ||
| 10 | * subr.el (symbol-file): Remove redundant fboundp. | ||
| 11 | * progmodes/idlw-shell.el (idlwave-shell-comint-filter): Use defalias. | ||
| 12 | |||
| 1 | 2014-01-06 Bastien Guerry <bzg@gnu.org> | 13 | 2014-01-06 Bastien Guerry <bzg@gnu.org> |
| 2 | 14 | ||
| 3 | * hl-line.el (global-hl-line-overlay): Make a local variable. | 15 | * hl-line.el (global-hl-line-overlay): Make a local variable. |
diff --git a/lisp/abbrev.el b/lisp/abbrev.el index 0fd4dc6fd38..8c59d2919ab 100644 --- a/lisp/abbrev.el +++ b/lisp/abbrev.el | |||
| @@ -588,7 +588,7 @@ An obsolete but still supported calling form is: | |||
| 588 | (boundp sym) (symbol-value sym) | 588 | (boundp sym) (symbol-value sym) |
| 589 | (not (abbrev-get sym :system))) | 589 | (not (abbrev-get sym :system))) |
| 590 | (unless (or system-flag | 590 | (unless (or system-flag |
| 591 | (and (boundp sym) (fboundp sym) | 591 | (and (boundp sym) |
| 592 | ;; load-file-name | 592 | ;; load-file-name |
| 593 | (equal (symbol-value sym) expansion) | 593 | (equal (symbol-value sym) expansion) |
| 594 | (equal (symbol-function sym) hook))) | 594 | (equal (symbol-function sym) hook))) |
diff --git a/lisp/apropos.el b/lisp/apropos.el index 1d09ded0820..f24871d5d20 100644 --- a/lisp/apropos.el +++ b/lisp/apropos.el | |||
| @@ -1006,8 +1006,7 @@ Returns list of symbols and documentation found." | |||
| 1006 | "Like `documentation', except it avoids calling `get_doc_string'. | 1006 | "Like `documentation', except it avoids calling `get_doc_string'. |
| 1007 | Will return nil instead." | 1007 | Will return nil instead." |
| 1008 | (while (and function (symbolp function)) | 1008 | (while (and function (symbolp function)) |
| 1009 | (setq function (if (fboundp function) | 1009 | (setq function (symbol-function function))) |
| 1010 | (symbol-function function)))) | ||
| 1011 | (if (eq (car-safe function) 'macro) | 1010 | (if (eq (car-safe function) 'macro) |
| 1012 | (setq function (cdr function))) | 1011 | (setq function (cdr function))) |
| 1013 | (setq function (if (byte-code-function-p function) | 1012 | (setq function (if (byte-code-function-p function) |
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el index f6ba8af9177..60203da9da6 100644 --- a/lisp/emacs-lisp/byte-opt.el +++ b/lisp/emacs-lisp/byte-opt.el | |||
| @@ -248,10 +248,10 @@ | |||
| 248 | (defun byte-compile-inline-expand (form) | 248 | (defun byte-compile-inline-expand (form) |
| 249 | (let* ((name (car form)) | 249 | (let* ((name (car form)) |
| 250 | (localfn (cdr (assq name byte-compile-function-environment))) | 250 | (localfn (cdr (assq name byte-compile-function-environment))) |
| 251 | (fn (or localfn (and (fboundp name) (symbol-function name))))) | 251 | (fn (or localfn (symbol-function name)))) |
| 252 | (when (autoloadp fn) | 252 | (when (autoloadp fn) |
| 253 | (autoload-do-load fn) | 253 | (autoload-do-load fn) |
| 254 | (setq fn (or (and (fboundp name) (symbol-function name)) | 254 | (setq fn (or (symbol-function name) |
| 255 | (cdr (assq name byte-compile-function-environment))))) | 255 | (cdr (assq name byte-compile-function-environment))))) |
| 256 | (pcase fn | 256 | (pcase fn |
| 257 | (`nil | 257 | (`nil |
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 1f2a69ccf59..1e21a222149 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -1265,8 +1265,7 @@ Each function's symbol gets added to `byte-compile-noruntime-functions'." | |||
| 1265 | (if (byte-code-function-p def) | 1265 | (if (byte-code-function-p def) |
| 1266 | (aref def 0) | 1266 | (aref def 0) |
| 1267 | '(&rest def))))) | 1267 | '(&rest def))))) |
| 1268 | (if (and (fboundp (car form)) | 1268 | (if (subrp (symbol-function (car form))) |
| 1269 | (subrp (symbol-function (car form)))) | ||
| 1270 | (subr-arity (symbol-function (car form)))))) | 1269 | (subr-arity (symbol-function (car form)))))) |
| 1271 | (ncall (length (cdr form)))) | 1270 | (ncall (length (cdr form)))) |
| 1272 | ;; Check many or unevalled from subr-arity. | 1271 | ;; Check many or unevalled from subr-arity. |
| @@ -2396,9 +2395,8 @@ not to take responsibility for the actual compilation of the code." | |||
| 2396 | (byte-compile-warn "%s `%s' defined multiple times in this file" | 2395 | (byte-compile-warn "%s `%s' defined multiple times in this file" |
| 2397 | (if macro "macro" "function") | 2396 | (if macro "macro" "function") |
| 2398 | name))) | 2397 | name))) |
| 2399 | ((and (fboundp name) | 2398 | ((eq (car-safe (symbol-function name)) |
| 2400 | (eq (car-safe (symbol-function name)) | 2399 | (if macro 'lambda 'macro)) |
| 2401 | (if macro 'lambda 'macro))) | ||
| 2402 | (when (byte-compile-warning-enabled-p 'redefine) | 2400 | (when (byte-compile-warning-enabled-p 'redefine) |
| 2403 | (byte-compile-warn "%s `%s' being redefined as a %s" | 2401 | (byte-compile-warn "%s `%s' being redefined as a %s" |
| 2404 | (if macro "function" "macro") | 2402 | (if macro "function" "macro") |
| @@ -2532,7 +2530,7 @@ If FORM is a lambda or a macro, byte-compile it as a function." | |||
| 2532 | (byte-compile-close-variables | 2530 | (byte-compile-close-variables |
| 2533 | (let* ((lexical-binding lexical-binding) | 2531 | (let* ((lexical-binding lexical-binding) |
| 2534 | (fun (if (symbolp form) | 2532 | (fun (if (symbolp form) |
| 2535 | (and (fboundp form) (symbol-function form)) | 2533 | (symbol-function form) |
| 2536 | form)) | 2534 | form)) |
| 2537 | (macro (eq (car-safe fun) 'macro))) | 2535 | (macro (eq (car-safe fun) 'macro))) |
| 2538 | (if macro | 2536 | (if macro |
| @@ -2946,8 +2944,7 @@ for symbols generated by the byte compiler itself." | |||
| 2946 | (format "; use `%s' instead." | 2944 | (format "; use `%s' instead." |
| 2947 | interactive-only)) | 2945 | interactive-only)) |
| 2948 | (t ".")))) | 2946 | (t ".")))) |
| 2949 | (if (and (fboundp (car form)) | 2947 | (if (eq (car-safe (symbol-function (car form))) 'macro) |
| 2950 | (eq (car-safe (symbol-function (car form))) 'macro)) | ||
| 2951 | (byte-compile-log-warning | 2948 | (byte-compile-log-warning |
| 2952 | (format "Forgot to expand macro %s" (car form)) nil :error)) | 2949 | (format "Forgot to expand macro %s" (car form)) nil :error)) |
| 2953 | (if (and handler | 2950 | (if (and handler |
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 759bd0b642d..8bd9ebc1e63 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el | |||
| @@ -512,8 +512,7 @@ In the absence of INDEX, just call `eldoc-docstring-format-sym-doc'." | |||
| 512 | 512 | ||
| 513 | ;; Do indirect function resolution if possible. | 513 | ;; Do indirect function resolution if possible. |
| 514 | (defun eldoc-symbol-function (fsym) | 514 | (defun eldoc-symbol-function (fsym) |
| 515 | (let ((defn (and (fboundp fsym) | 515 | (let ((defn (symbol-function fsym))) |
| 516 | (symbol-function fsym)))) | ||
| 517 | (and (symbolp defn) | 516 | (and (symbolp defn) |
| 518 | (condition-case _ | 517 | (condition-case _ |
| 519 | (setq defn (indirect-function fsym)) | 518 | (setq defn (indirect-function fsym)) |
diff --git a/lisp/emacs-lisp/elint.el b/lisp/emacs-lisp/elint.el index 63c19e6e6da..77da42450e9 100644 --- a/lisp/emacs-lisp/elint.el +++ b/lisp/emacs-lisp/elint.el | |||
| @@ -1145,8 +1145,8 @@ Marks the function with their arguments, and returns a list of variables." | |||
| 1145 | (defun elint-find-builtins () | 1145 | (defun elint-find-builtins () |
| 1146 | "Return a list of all built-in functions." | 1146 | "Return a list of all built-in functions." |
| 1147 | (let (subrs) | 1147 | (let (subrs) |
| 1148 | (mapatoms (lambda (s) (and (fboundp s) (subrp (symbol-function s)) | 1148 | (mapatoms (lambda (s) (and (subrp (symbol-function s)) |
| 1149 | (setq subrs (cons s subrs))))) | 1149 | (push s subrs)))) |
| 1150 | subrs)) | 1150 | subrs)) |
| 1151 | 1151 | ||
| 1152 | (defun elint-find-builtin-args (&optional list) | 1152 | (defun elint-find-builtin-args (&optional list) |
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el index 0be81c3904f..e7bf3792e5f 100644 --- a/lisp/progmodes/idlw-shell.el +++ b/lisp/progmodes/idlw-shell.el | |||
| @@ -1446,10 +1446,10 @@ Otherwise just move the line. Move down unless UP is non-nil." | |||
| 1446 | 1446 | ||
| 1447 | ;; Newer versions of comint.el changed the name of comint-filter to | 1447 | ;; Newer versions of comint.el changed the name of comint-filter to |
| 1448 | ;; comint-output-filter. | 1448 | ;; comint-output-filter. |
| 1449 | (defun idlwave-shell-comint-filter (process string) nil) | 1449 | (defalias 'idlwave-shell-comint-filter |
| 1450 | (if (fboundp 'comint-output-filter) | 1450 | (if (fboundp 'comint-output-filter) |
| 1451 | (fset 'idlwave-shell-comint-filter (symbol-function 'comint-output-filter)) | 1451 | #'comint-output-filter |
| 1452 | (fset 'idlwave-shell-comint-filter (symbol-function 'comint-filter))) | 1452 | #'comint-filter)) |
| 1453 | 1453 | ||
| 1454 | (defun idlwave-shell-is-running () | 1454 | (defun idlwave-shell-is-running () |
| 1455 | "Return t if the shell process is running." | 1455 | "Return t if the shell process is running." |
diff --git a/lisp/subr.el b/lisp/subr.el index 5d945047da6..40465556531 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -1810,7 +1810,7 @@ If TYPE is nil, then any kind of definition is acceptable. If | |||
| 1810 | TYPE is `defun', `defvar', or `defface', that specifies function | 1810 | TYPE is `defun', `defvar', or `defface', that specifies function |
| 1811 | definition, variable definition, or face definition only." | 1811 | definition, variable definition, or face definition only." |
| 1812 | (if (and (or (null type) (eq type 'defun)) | 1812 | (if (and (or (null type) (eq type 'defun)) |
| 1813 | (symbolp symbol) (fboundp symbol) | 1813 | (symbolp symbol) |
| 1814 | (autoloadp (symbol-function symbol))) | 1814 | (autoloadp (symbol-function symbol))) |
| 1815 | (nth 1 (symbol-function symbol)) | 1815 | (nth 1 (symbol-function symbol)) |
| 1816 | (let ((files load-history) | 1816 | (let ((files load-history) |