Subject: bug#11692: closed (Re: bug#11692: (featurep 'xemacs) not protecting against warnings)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 13 Jun 2012 13:21:03 +0000

Your bug report

#11692: (featurep 'xemacs) not protecting against warnings

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
11692: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11692
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#11692: (featurep 'xemacs) not protecting against warnings
From: Stefan Monnier <[email-masked]>
To: Juanma Barranquero <[email-masked]>
Cc: [email-masked]
Date: Wed, 13 Jun 2012 09:17:15 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

> 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

Subject: (featurep 'xemacs) not protecting against warnings
From: Juanma Barranquero <[email-masked]>
To: Bug-Gnu-Emacs <[email-masked]>
Date: Wed, 13 Jun 2012 13:23:36 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

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