unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* (setq byte-compile-warnings '(unresolved)) does not work
@ 2003-03-04  9:00 Matt Swift
  0 siblings, 0 replies; only message in thread
From: Matt Swift @ 2003-03-04  9:00 UTC (permalink / raw)



Setting `byte-compile-warnings' to '(unresolved) results in no
compiler warnings about unresolved functions in 21.2 and this week's
CVS Emacs 21.3.  The reason is that the list
`byte-compile-unresolved-functions' is maintained properly only when
the 'callargs and 'redefine warnings are also selected.

The list is augmented only in `byte-compile-callargs-warn', which is
called only if the 'callargs warning is selected.

The list is trimmed only in `byte-compile-defalias-warn' and
`byte-compile-if', which are called only when compiling invocations of
`defalias' and `if', and `byte-compile-arglist-warn', which is called
only if the 'redefine warning is selected.

To demonstrate, save the following in its own file and \C-x\C-e
(`eval-last-sexp') with point at the end.  Uncomment `callargs' and
repeat.

;;;;;;;;;;;;;;;;;;;;;;

(or
 (and (fboundp 'zzzz) (progn (zzzz) (error "whoops")))
 (and
  (setq byte-compile-warnings '(
				unresolved
				;; callargs
				))
  (byte-compile-file (buffer-file-name))))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-04  9:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-04  9:00 (setq byte-compile-warnings '(unresolved)) does not work Matt Swift

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).