diff options
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/cus-edit.el | 22 |
2 files changed, 17 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2424d75a37e..59922f2e2dc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2002-05-12 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | ||
| 2 | |||
| 3 | * cus-edit.el (customize-set-value): Rename `var' to `variable' | ||
| 4 | and `val' to `value'. | ||
| 5 | (customize-save-variable): Rename `var' to `'variable. | ||
| 6 | |||
| 1 | 2002-05-12 Glenn Morris <gmorris@ast.cam.ac.uk> | 7 | 2002-05-12 Glenn Morris <gmorris@ast.cam.ac.uk> |
| 2 | 8 | ||
| 3 | * progmodes/fortran.el (fortran-preprocessor-re): New variable. | 9 | * progmodes/fortran.el (fortran-preprocessor-re): New variable. |
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 54f5614df82..344ffab2d47 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -748,7 +748,7 @@ it as the third element in the list." | |||
| 748 | (list var val)))) | 748 | (list var val)))) |
| 749 | 749 | ||
| 750 | ;;;###autoload | 750 | ;;;###autoload |
| 751 | (defun customize-set-value (var val &optional comment) | 751 | (defun customize-set-value (variable value &optional comment) |
| 752 | "Set VARIABLE to VALUE, and return VALUE. VALUE is a Lisp object. | 752 | "Set VARIABLE to VALUE, and return VALUE. VALUE is a Lisp object. |
| 753 | 753 | ||
| 754 | If VARIABLE has a `variable-interactive' property, that is used as if | 754 | If VARIABLE has a `variable-interactive' property, that is used as if |
| @@ -763,10 +763,10 @@ If given a prefix (or a COMMENT argument), also prompt for a comment." | |||
| 763 | current-prefix-arg)) | 763 | current-prefix-arg)) |
| 764 | 764 | ||
| 765 | (cond ((string= comment "") | 765 | (cond ((string= comment "") |
| 766 | (put var 'variable-comment nil)) | 766 | (put variable 'variable-comment nil)) |
| 767 | (comment | 767 | (comment |
| 768 | (put var 'variable-comment comment))) | 768 | (put variable 'variable-comment comment))) |
| 769 | (set var val)) | 769 | (set variable value)) |
| 770 | 770 | ||
| 771 | ;;;###autoload | 771 | ;;;###autoload |
| 772 | (defun customize-set-variable (variable value &optional comment) | 772 | (defun customize-set-variable (variable value &optional comment) |
| @@ -801,7 +801,7 @@ If given a prefix (or a COMMENT argument), also prompt for a comment." | |||
| 801 | value) | 801 | value) |
| 802 | 802 | ||
| 803 | ;;;###autoload | 803 | ;;;###autoload |
| 804 | (defun customize-save-variable (var value &optional comment) | 804 | (defun customize-save-variable (variable value &optional comment) |
| 805 | "Set the default for VARIABLE to VALUE, and save it for future sessions. | 805 | "Set the default for VARIABLE to VALUE, and save it for future sessions. |
| 806 | Return VALUE. | 806 | Return VALUE. |
| 807 | 807 | ||
| @@ -821,14 +821,14 @@ If given a prefix (or a COMMENT argument), also prompt for a comment." | |||
| 821 | (interactive (custom-prompt-variable "Set and save variable: " | 821 | (interactive (custom-prompt-variable "Set and save variable: " |
| 822 | "Set and save value for %s as: " | 822 | "Set and save value for %s as: " |
| 823 | current-prefix-arg)) | 823 | current-prefix-arg)) |
| 824 | (funcall (or (get var 'custom-set) 'set-default) var value) | 824 | (funcall (or (get variable 'custom-set) 'set-default) variable value) |
| 825 | (put var 'saved-value (list (custom-quote value))) | 825 | (put variable 'saved-value (list (custom-quote value))) |
| 826 | (cond ((string= comment "") | 826 | (cond ((string= comment "") |
| 827 | (put var 'variable-comment nil) | 827 | (put variable 'variable-comment nil) |
| 828 | (put var 'saved-variable-comment nil)) | 828 | (put variable 'saved-variable-comment nil)) |
| 829 | (comment | 829 | (comment |
| 830 | (put var 'variable-comment comment) | 830 | (put variable 'variable-comment comment) |
| 831 | (put var 'saved-variable-comment comment))) | 831 | (put variable 'saved-variable-comment comment))) |
| 832 | (custom-save-all) | 832 | (custom-save-all) |
| 833 | value) | 833 | value) |
| 834 | 834 | ||