Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6a140159
Commit
6a140159
authored
Jan 04, 1995
by
Richard M. Stallman
Browse files
Use SAVE_MODIFF and BUF_SAVE_MODIFF
instead of direct access to the save_modiff field.
parent
e343d389
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/filelock.c
src/filelock.c
+6
-6
No files found.
src/filelock.c
View file @
6a140159
...
...
@@ -381,7 +381,7 @@ unlock_all_files ()
for
(
tail
=
Vbuffer_alist
;
GC_CONSP
(
tail
);
tail
=
XCONS
(
tail
)
->
cdr
)
{
b
=
XBUFFER
(
XCONS
(
XCONS
(
tail
)
->
car
)
->
cdr
);
if
(
STRINGP
(
b
->
filename
)
&&
b
->
save_modified
<
BUF_MODIFF
(
b
))
if
(
STRINGP
(
b
->
filename
)
&&
BUF_SAVE_MODIFF
(
b
)
<
BUF_MODIFF
(
b
))
unlock_file
(
b
->
filename
);
}
}
...
...
@@ -399,7 +399,7 @@ or else nothing is done if current buffer isn't visiting a file.")
fn
=
current_buffer
->
filename
;
else
CHECK_STRING
(
fn
,
0
);
if
(
current_buffer
->
save_modified
<
MODIFF
if
(
SAVE_MODIFF
<
MODIFF
&&
!
NILP
(
fn
))
lock_file
(
fn
);
return
Qnil
;
...
...
@@ -411,8 +411,8 @@ DEFUN ("unlock-buffer", Funlock_buffer, Sunlock_buffer,
if it should normally be locked."
)
()
{
if
(
current_buffer
->
save_modified
<
MODIFF
&&
STRINGP
(
current_buffer
->
filename
))
if
(
SAVE_MODIFF
<
MODIFF
&&
STRINGP
(
current_buffer
->
filename
))
unlock_file
(
current_buffer
->
filename
);
return
Qnil
;
}
...
...
@@ -423,8 +423,8 @@ if it should normally be locked.")
unlock_buffer
(
buffer
)
struct
buffer
*
buffer
;
{
if
(
buffer
->
save_modified
<
BUF_MODIFF
(
buffer
)
&&
STRINGP
(
buffer
->
filename
))
if
(
BUF_SAVE_MODIFF
(
buffer
)
<
BUF_MODIFF
(
buffer
)
&&
STRINGP
(
buffer
->
filename
))
unlock_file
(
buffer
->
filename
);
}
...
...
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