Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7ec8d2c6
Commit
7ec8d2c6
authored
May 12, 2002
by
Pavel Janík
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(customize-set-value): Rename `var' to `variable' and `val' to `value'.
(customize-save-variable): Rename `var' to `'variable.
parent
a68c5400
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
lisp/ChangeLog
lisp/ChangeLog
+6
-0
lisp/cus-edit.el
lisp/cus-edit.el
+11
-11
No files found.
lisp/ChangeLog
View file @
7ec8d2c6
2002-05-12 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
* cus-edit.el (customize-set-value): Rename `var' to `variable'
and `val' to `value'.
(customize-save-variable): Rename `var' to `'variable.
2002-05-12 Glenn Morris <gmorris@ast.cam.ac.uk>
* progmodes/fortran.el (fortran-preprocessor-re): New variable.
...
...
lisp/cus-edit.el
View file @
7ec8d2c6
...
...
@@ -748,7 +748,7 @@ it as the third element in the list."
(
list
var
val
))))
;;;###autoload
(
defun
customize-set-value
(
var
val
&optional
comment
)
(
defun
customize-set-value
(
var
iable
val
ue
&optional
comment
)
"Set VARIABLE to VALUE, and return VALUE. VALUE is a Lisp object.
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."
current-prefix-arg
))
(
cond
((
string=
comment
""
)
(
put
var
'variable-comment
nil
))
(
put
var
iable
'variable-comment
nil
))
(
comment
(
put
var
'variable-comment
comment
)))
(
set
var
val
))
(
put
var
iable
'variable-comment
comment
)))
(
set
var
iable
val
ue
))
;;;###autoload
(
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."
value
)
;;;###autoload
(
defun
customize-save-variable
(
var
value
&optional
comment
)
(
defun
customize-save-variable
(
var
iable
value
&optional
comment
)
"Set the default for VARIABLE to VALUE, and save it for future sessions.
Return VALUE.
...
...
@@ -821,14 +821,14 @@ If given a prefix (or a COMMENT argument), also prompt for a comment."
(
interactive
(
custom-prompt-variable
"Set and save variable: "
"Set and save value for %s as: "
current-prefix-arg
))
(
funcall
(
or
(
get
var
'custom-set
)
'set-default
)
var
value
)
(
put
var
'saved-value
(
list
(
custom-quote
value
)))
(
funcall
(
or
(
get
var
iable
'custom-set
)
'set-default
)
var
iable
value
)
(
put
var
iable
'saved-value
(
list
(
custom-quote
value
)))
(
cond
((
string=
comment
""
)
(
put
var
'variable-comment
nil
)
(
put
var
'saved-variable-comment
nil
))
(
put
var
iable
'variable-comment
nil
)
(
put
var
iable
'saved-variable-comment
nil
))
(
comment
(
put
var
'variable-comment
comment
)
(
put
var
'saved-variable-comment
comment
)))
(
put
var
iable
'variable-comment
comment
)
(
put
var
iable
'saved-variable-comment
comment
)))
(
custom-save-all
)
value
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment