aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <[email protected]>2011-03-16 00:30:17 -0700
committerPaul Eggert <[email protected]>2011-03-16 00:30:17 -0700
commitd28a21703d47c6983e91d3d4a464546750519236 (patch)
treebe30105ab2f278522a46e77f3e5fbc727bef18da /src
parent475545b50099448132747e79b70bbb4199559d09 (diff)
* eval.c (Fdefvar): Rewrite so as not to use empty "else".
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog1
-rw-r--r--src/eval.c9
2 files changed, 6 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4e72b9c0d2..15d169a8b3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,6 +1,7 @@
2011-03-16 Paul Eggert <[email protected]>
* eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
+ (Fdefvar): Rewrite so as not to use empty "else".
* callint.c (quotify_arg, quotify_args): Now static.
(Fcall_interactively): Rename locals to avoid shadowing.
diff --git a/src/eval.c b/src/eval.c
index f9ed8712eb..4f6d3dd015 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -801,10 +801,11 @@ usage: (defvar SYMBOL &optional INITVALUE DOCSTRING) */)
LOADHIST_ATTACH (sym);
}
else
- /* Simple (defvar <var>) should not count as a definition at all.
- It could get in the way of other definitions, and unloading this
- package could try to make the variable unbound. */
- ;
+ {
+ /* Simple (defvar <var>) should not count as a definition at all.
+ It could get in the way of other definitions, and unloading this
+ package could try to make the variable unbound. */
+ }
return sym;
}