diff options
| author | Paul Eggert | 2014-09-02 11:05:00 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-09-02 11:05:00 -0700 |
| commit | ff8b9b273f8c24c37c11811a7bbb79b54449c0bd (patch) | |
| tree | d71aec1ea62e9873ba8ddfe257fb331816ec000b /src/buffer.c | |
| parent | 77ea21cdfcc4d41aaac7dad2d0ed9f74e02603e7 (diff) | |
| download | emacs-ff8b9b273f8c24c37c11811a7bbb79b54449c0bd.tar.gz emacs-ff8b9b273f8c24c37c11811a7bbb79b54449c0bd.zip | |
Minor cleanup of recent strlen-avoiding patch.
* src/fileio.c (CHECK_LENGTH): Remove.
Rewrite callers so that they don't need it.
(Fexpand_file_name) [DOS_NT]: Fix a case where directory length
variable wasn't set.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c index ee1359611c3..62431cb8fe1 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1276,10 +1276,10 @@ Most elements look like (SYMBOL . VALUE), describing one variable. | |||
| 1276 | For a symbol that is locally unbound, just the symbol appears in the value. | 1276 | For a symbol that is locally unbound, just the symbol appears in the value. |
| 1277 | Note that storing new VALUEs in these elements doesn't change the variables. | 1277 | Note that storing new VALUEs in these elements doesn't change the variables. |
| 1278 | No argument or nil as argument means use current buffer as BUFFER. */) | 1278 | No argument or nil as argument means use current buffer as BUFFER. */) |
| 1279 | (register Lisp_Object buffer) | 1279 | (Lisp_Object buffer) |
| 1280 | { | 1280 | { |
| 1281 | register struct buffer *buf = decode_buffer (buffer); | 1281 | struct buffer *buf = decode_buffer (buffer); |
| 1282 | register Lisp_Object result = buffer_lisp_local_variables (buf, 0); | 1282 | Lisp_Object result = buffer_lisp_local_variables (buf, 0); |
| 1283 | 1283 | ||
| 1284 | /* Add on all the variables stored in special slots. */ | 1284 | /* Add on all the variables stored in special slots. */ |
| 1285 | { | 1285 | { |
| @@ -1306,9 +1306,9 @@ DEFUN ("buffer-modified-p", Fbuffer_modified_p, Sbuffer_modified_p, | |||
| 1306 | 0, 1, 0, | 1306 | 0, 1, 0, |
| 1307 | doc: /* Return t if BUFFER was modified since its file was last read or saved. | 1307 | doc: /* Return t if BUFFER was modified since its file was last read or saved. |
| 1308 | No argument or nil as argument means use current buffer as BUFFER. */) | 1308 | No argument or nil as argument means use current buffer as BUFFER. */) |
| 1309 | (register Lisp_Object buffer) | 1309 | (Lisp_Object buffer) |
| 1310 | { | 1310 | { |
| 1311 | register struct buffer *buf = decode_buffer (buffer); | 1311 | struct buffer *buf = decode_buffer (buffer); |
| 1312 | return BUF_SAVE_MODIFF (buf) < BUF_MODIFF (buf) ? Qt : Qnil; | 1312 | return BUF_SAVE_MODIFF (buf) < BUF_MODIFF (buf) ? Qt : Qnil; |
| 1313 | } | 1313 | } |
| 1314 | 1314 | ||