unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#11692: (featurep 'xemacs) not protecting against warnings
@ 2012-06-13 11:23 Juanma Barranquero
  2012-06-13 13:17 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Juanma Barranquero @ 2012-06-13 11:23 UTC (permalink / raw)
  To: 11692

Package: emacs
Version: 24.1.50
Severity: minor

New "not known to be defined" warnings are thrown for some (not all)
unknown functions protected with

  (if (featurep 'xemacs) (xemacs-func) (emacs-func))

or

  (cond ((featurep 'xemacs) (xemacs-func))
        (t (emacs-func)))


Some examples:

emulation/edt-mapper.el:550:1:Warning: the function `console-type' is not
    known to be defined.

emulation/tpu-mapper.el:168:48:Warning: the function `event-key' is not known
    to be defined.

vc/ediff-hook.el:263:1:Warning: the following functions are not known to be
    defined: add-submenu, add-menu-button, ediff-xemacs-init-menus

vc/ediff-init.el:1828:1:Warning: the following functions are not known to be
    defined: device-type, selected-device





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

* bug#11692: (featurep 'xemacs) not protecting against warnings
  2012-06-13 11:23 bug#11692: (featurep 'xemacs) not protecting against warnings Juanma Barranquero
@ 2012-06-13 13:17 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2012-06-13 13:17 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: 11692-done

> New "not known to be defined" warnings are thrown for some (not all)
> unknown functions protected with

>   (if (featurep 'xemacs) (xemacs-func) (emacs-func))

Indeed, thanks for spotting this (it was because byte-opt was loaded
too late).  Should be fixed now,


        Stefan





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

end of thread, other threads:[~2012-06-13 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-13 11:23 bug#11692: (featurep 'xemacs) not protecting against warnings Juanma Barranquero
2012-06-13 13:17 ` Stefan Monnier

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