unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: (setq byte-compile-warnings '(unresolved)) does not work
       [not found] <m2znobwlp7.fsf@beth.swift.xxx>
@ 2003-03-05 20:46 ` Richard Stallman
  0 siblings, 0 replies; only message in thread
From: Richard Stallman @ 2003-03-05 20:46 UTC (permalink / raw)
  Cc: emacs-devel

      The reason is that the list
    `byte-compile-unresolved-functions' is maintained properly only when
    the `callargs' and `redefine' warnings are also selected.

I think the way to fix this is to move the code that maintains the
list outside the subroutines `byte-compile-callargs-warn' and
`byte-compile-arglist-warn', so that it will update the list even
if those functions are not called.

Would someone like to write the code?

Here's the test case:

    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-05 20:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <m2znobwlp7.fsf@beth.swift.xxx>
2003-03-05 20:46 ` (setq byte-compile-warnings '(unresolved)) does not work Richard Stallman

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).