Mercurial > hg > xemacs-beta
view lisp/gtk-package.el @ 4317:15d36164ebd7
Eliminate lost docstring warnings on 21.5.
2007-12-09 Aidan Kehoe <kehoea@parhasard.net>
* unicode.el (load-unicode-mapping-tables):
Call #'set-default-unicode-precedence wrapped with
#'declare-fboundp, to avoid warnings on non-Mule builds.
* unicode.el (ccl-encode-to-ucs-2):
* unicode.el (unicode-error-sequence-regexp-range):
* unicode.el (frob-unicode-errors-region):
* unicode.el (unicode-error-translate-region):
Unconditionally provide these functions and variables at top
level in the code, to make them available to make-docfile. For the
INITVALUE args to #'defvar, conditionalise on (featurep 'mule);
ditto for the code that tests the lookup tables and provides the
WGL4 characters as jit-ucs-charset-0 characters.
Unintern the function and variable symbols if (featurep 'mule) is
not true, so their function definitions and so on get garbage
collected at dump time in non-Mule builds.
* obsolete.el (add-menu-item):
* obsolete.el (add-menu):
* obsolete.el (add-menu):
* obsolete.el (package-get-download-menu):
Provide these functions at top level, in order to make them
available to make-docfile.c, which has trouble interpreting byte
code. Unintern their symbols if the menubar feature is not
available, which means they will be garbage collected on
non-menubar builds.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 09 Dec 2007 14:55:03 +0100 |
parents | 7039e6323819 |
children | db7068430402 |
line wrap: on
line source
;; A GTK version of package-ui.el (globally-declare-fboundp '(gtk-window-new gtk-hbox-new gtk-container-add gtk-widget-show-all)) (require 'package-get) (require 'package-ui) (defun package-gtk-edit-sites () (let ((window (gtk-window-new 'toplevel)) (box (gtk-hbox-new nil 5))) (gtk-container-add window box) (gtk-widget-show-all window)))