diff options
| author | Richard M. Stallman | 1997-07-20 17:36:48 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-20 17:36:48 +0000 |
| commit | 77a5664f19cf8f3fcfbd73dc1a173e0b7ba319a4 (patch) | |
| tree | 2fc9b2a08fdd0b776a8f36e6451f564782791adf | |
| parent | a81635fcb8d7080683f9a1fd0fea5b081f55a1fa (diff) | |
| download | emacs-77a5664f19cf8f3fcfbd73dc1a173e0b7ba319a4.tar.gz emacs-77a5664f19cf8f3fcfbd73dc1a173e0b7ba319a4.zip | |
(custom-declare-variable-early): New function.
(custom-declare-variable-list): New variable.
(read-quoted-char-radix): Use defvar and custom-declare-variable-early.
(functionp): Doc fix.
| -rw-r--r-- | lisp/subr.el | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 4d583944de9..0fa6193bd33 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -20,7 +20,15 @@ | |||
| 20 | ;; Boston, MA 02111-1307, USA. | 20 | ;; Boston, MA 02111-1307, USA. |
| 21 | 21 | ||
| 22 | ;;; Code: | 22 | ;;; Code: |
| 23 | 23 | (defvar custom-declare-variable-list nil | |
| 24 | "Record `defcustom' calls made before `custom.el' is loaded to handle them. | ||
| 25 | Each element of this list holds the arguments to one call to `defcustom'.") | ||
| 26 | |||
| 27 | ;; Use this rather that defcustom, in subr.el and other files loaded | ||
| 28 | ;; before custom.el. | ||
| 29 | (defun custom-declare-variable-early (&rest arguments) | ||
| 30 | (setq custom-declare-variable-list | ||
| 31 | (cons arguments custom-declare-variable-list))) | ||
| 24 | 32 | ||
| 25 | ;;;; Lisp language features. | 33 | ;;;; Lisp language features. |
| 26 | 34 | ||
| @@ -649,8 +657,13 @@ FILE should be the name of a library, with no directory name." | |||
| 649 | 657 | ||
| 650 | ;;;; Input and display facilities. | 658 | ;;;; Input and display facilities. |
| 651 | 659 | ||
| 652 | (defcustom read-quoted-char-radix 8 | 660 | (defvar read-quoted-char-radix 8 |
| 653 | "*Radix for \\[quoted-insert] and other uses of `read-quoted-char'. | 661 | "*Radix for \\[quoted-insert] and other uses of `read-quoted-char'. |
| 662 | Legitimate radix values are 8, 10 and 16.") | ||
| 663 | |||
| 664 | (custom-declare-variable-early | ||
| 665 | 'read-quoted-char-radix 8 | ||
| 666 | "*Radix for \\[quoted-insert] and other uses of `read-quoted-char'. | ||
| 654 | Legitimate radix values are 8, 10 and 16." | 667 | Legitimate radix values are 8, 10 and 16." |
| 655 | :type '(choice (const 8) (const 10) (const 16)) | 668 | :type '(choice (const 8) (const 10) (const 16)) |
| 656 | :group 'editing-basics) | 669 | :group 'editing-basics) |
| @@ -1043,7 +1056,7 @@ configuration." | |||
| 1043 | (eq (car object) 'frame-configuration))) | 1056 | (eq (car object) 'frame-configuration))) |
| 1044 | 1057 | ||
| 1045 | (defun functionp (object) | 1058 | (defun functionp (object) |
| 1046 | "Non-nil of OBJECT is a type of object that can be called as a function." | 1059 | "Non-nil if OBJECT is a type of object that can be called as a function." |
| 1047 | (or (subrp object) (compiled-function-p object) | 1060 | (or (subrp object) (compiled-function-p object) |
| 1048 | (eq (car-safe object) 'lambda) | 1061 | (eq (car-safe object) 'lambda) |
| 1049 | (and (symbolp object) (fboundp object)))) | 1062 | (and (symbolp object) (fboundp object)))) |