all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Unexpected behavior byte-compiling (with-no-warnings (require...))
@ 2009-09-07 23:27 Juanma Barranquero
  2009-09-08  1:28 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Juanma Barranquero @ 2009-09-07 23:27 UTC (permalink / raw)
  To: Emacs developers

  ;; test.el
  (progn (require 'cl))

  (defun test1 (args)
    (destructuring-bind (one . two) args
      two))
  ;; end

Byte-compiling test.el gives this output:

  In toplevel form:
  test.el:2:1:Warning: cl package required at runtime
  Wrote c:/tmp/test.elc

Changing the require line to:

  (with-no-warnings (require 'cl))

the byte-compilation output is this:

  In toplevel form:
  test.el:4:15:Error: Wrong type argument: sequencep, two

Yes, I know that (progn (require ...)) does not make much sense; I
just did it to check that it works just as fine as a simple

  (require 'cl)

It does. However, with-no-warning does not.

Is there something obvious that I'm missing?

    Juanma




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-08  1:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-07 23:27 Unexpected behavior byte-compiling (with-no-warnings (require...)) Juanma Barranquero
2009-09-08  1:28 ` Glenn Morris
2009-09-08  1:41   ` Juanma Barranquero

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.