Mercurial > hg > xemacs-beta
annotate modules/README @ 5655:b7ae5f44b950
Remove some redundant functions, change others to labels, lisp/
lisp/ChangeLog addition:
2012-05-05 Aidan Kehoe <kehoea@parhasard.net>
Remove some redundant functions; turn other utility functions into
labels, avoiding visibility in the global namespace, and reducing
the size of the dumped binary.
* auto-save.el (auto-save-unhex): Removed.
* auto-save.el (auto-save-unescape-name): Use #'string-to-number
instead of #'auto-save-unhex.
* files.el (save-some-buffers):
* files.el (save-some-buffers-1): Changed to a label.
* files.el (not-modified):
* gui.el (make-gui-button):
* gui.el (gui-button-action): Changed to a label.
* gui.el (insert-gui-button):
* indent.el (indent-for-tab-command):
* indent.el (insert-tab): Changed to a label.
* indent.el (indent-rigidly):
* isearch-mode.el:
* isearch-mode.el (isearch-ring-adjust):
* isearch-mode.el (isearch-ring-adjust1): Changed to a label.
* isearch-mode.el (isearch-pre-command-hook):
* isearch-mode.el (isearch-maybe-frob-keyboard-macros): Changed to
a label.
* isearch-mode.el (isearch-highlight):
* isearch-mode.el (isearch-make-extent): Changed to a label.
* itimer.el:
* itimer.el (itimer-decrement): Removed, replaced uses with decf.
* itimer.el (itimer-increment): Removed, replaced uses with incf.
* itimer.el (itimer-signum): Removed, replaced uses with minusp, plusp.
* itimer.el (itimer-name):
* itimer.el (check-itimer): Removed, replaced with #'check-type calls.
* itimer.el (itimer-value):
* itimer.el (check-itimer-coerce-string): Removed.
* itimer.el (itimer-restart):
* itimer.el (itimer-function):
* itimer.el (check-nonnegative-number): Removed.
* itimer.el (itimer-uses-arguments):
* itimer.el (check-string): Removed.
* itimer.el (itimer-function-arguments):
* itimer.el (itimer-recorded-run-time):
* itimer.el (set-itimer-name):
* itimer.el (set-itimer-value):
* itimer.el (set-itimer-value-internal):
* itimer.el (set-itimer-restart):
* itimer.el (set-itimer-function):
* itimer.el (set-itimer-is-idle):
* itimer.el (set-itimer-recorded-run-time):
* itimer.el (get-itimer):
* itimer.el (delete-itimer):
* itimer.el (start-itimer):
* itimer.el (activate-itimer):
* itimer.el (itimer-edit-set-field):
* itimer.el (itimer-edit-next-field):
* itimer.el (itimer-edit-previous-field):
Use incf, decf, plusp, minusp and the more general argument type
checking macros.
* lib-complete.el:
* lib-complete.el (lib-complete:better-root): Changed to a label.
* lib-complete.el (lib-complete:get-completion-table): Changed to
a label.
* lib-complete.el (read-library-internal): Include labels.
* lib-complete.el (lib-complete:cache-completions): Changed to a
label.
* minibuf.el (read-buffer): Use #'set-difference, don't reinvent it.
* newcomment.el (comment-padright): Use a label instead of
repeating a lambda expression.
* packages.el (package-get-key):
* packages.el (package-get-key-1): Removed, use #'getf instead.
* simple.el (kill-backward-chars): Removed; this isn't used.
* simple.el (what-cursor-position):
(lambda (arg) (format "%S" arg) -> #'prin1-to-string.
* simple.el (debug-print-1): Renamed to #'debug-print.
* simple.el (debug-print): Removed, #'debug-print-1 was equivalent.
* subr.el (integer-to-bit-vector): check-nonnegative-number no
longer available.
* widget.el (define-widget):
* widget.el (define-widget-keywords): Removed, this was long obsolete.
| author | Aidan Kehoe <kehoea@parhasard.net> |
|---|---|
| date | Sat, 05 May 2012 18:42:00 +0100 |
| parents | da1365dd3f07 |
| children |
| rev | line source |
|---|---|
|
5436
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
1 This file is part of XEmacs. |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
2 |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
3 XEmacs is free software: you can redistribute it and/or modify it |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
4 under the terms of the GNU General Public License as published by the |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
5 Free Software Foundation, either version 3 of the License, or (at your |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
6 option) any later version. |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
7 |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
8 XEmacs is distributed in the hope that it will be useful, but WITHOUT |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
9 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
10 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
11 for more details. |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
12 |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
13 You should have received a copy of the GNU General Public License |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
14 along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
15 |
|
da1365dd3f07
Added GPLv3 or later license to modules/README.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
16 |
| 996 | 17 This directory contains a number of XEmacs dynamic modules. These |
| 18 modules can be loaded directly with the command 'M-x load-module'. | |
| 19 However, the preferred method of loading a module is to issue a | |
| 20 "(require 'module-name)" command to the Lisp interpreter. This will | |
| 21 store information so that a later "(unload-feature 'module-name)" can | |
| 22 succeed. | |
| 388 | 23 |
| 996 | 24 To compile one of these modules, simply enter the desired directory, |
| 25 type 'configure', and then 'make'. If you are building the module for | |
| 26 an installed XEmacs, then 'make install' will place the module in the | |
| 27 appropriate directory for XEmacs to find it later (assuming you have | |
| 28 permission to write to that directory). A subsequent 'load-module' or | |
| 29 'require' will then load the module, as described above. | |
| 388 | 30 |
| 996 | 31 Each of these demonstrates different features and limitations of the |
| 32 XEmacs module loading technology. For a complete discussion on XEmacs | |
| 33 dynamic modules, please consult the XEmacs Module Writers Guide, which | |
| 34 can be found in the ../info directory. | |
| 388 | 35 |
| 996 | 36 For those wanting to get started with module writing, please see the |
| 37 'sample' directory. It contains two subdirectories: internal and | |
| 38 external. The 'internal' subdirectory contains the framework needed to | |
| 39 migrate some core piece of XEmacs functionality into code that can | |
| 40 either be compiled into the core or built as a separate module. The | |
| 41 'external' subdirectory contains the somewhat simpler framework needed | |
| 42 to build a module separately from XEmacs. These should be considered | |
| 43 starting places for module writing. |
