diff options
| author | Paul Eggert | 2012-07-19 15:35:58 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-07-19 15:35:58 -0700 |
| commit | 52b852c77d74800aaa1338dc72f786f7e261bfee (patch) | |
| tree | f2d4a83567f37b1fa9a70d719565c2dc7afc9d06 /src/buffer.h | |
| parent | 8a4e6db81ae0c04a73693718cb8aaa59e160663f (diff) | |
| download | emacs-52b852c77d74800aaa1338dc72f786f7e261bfee.tar.gz emacs-52b852c77d74800aaa1338dc72f786f7e261bfee.zip | |
* buffer.h (FOR_EACH_BUFFER): Rename from 'for_each_buffer'.
(FOR_EACH_PER_BUFFER_OBJECT_AT): Rename from
'for_each_per_buffer_object_at'.
All uses changed. It's better to use upper-case for macros that
cannot be implemented as functions, to give the reader a clue
that they're special.
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.h b/src/buffer.h index 6f090479a24..a97cc13705b 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -866,7 +866,7 @@ extern struct buffer *all_buffers; | |||
| 866 | 866 | ||
| 867 | /* Used to iterate over the chain above. */ | 867 | /* Used to iterate over the chain above. */ |
| 868 | 868 | ||
| 869 | #define for_each_buffer(b) \ | 869 | #define FOR_EACH_BUFFER(b) \ |
| 870 | for ((b) = all_buffers; (b); (b) = (b)->header.next.buffer) | 870 | for ((b) = all_buffers; (b); (b) = (b)->header.next.buffer) |
| 871 | 871 | ||
| 872 | /* This points to the current buffer. */ | 872 | /* This points to the current buffer. */ |
| @@ -1021,7 +1021,7 @@ extern int last_per_buffer_idx; | |||
| 1021 | Lisp_Objects except undo_list). If you add, remove, or reorder | 1021 | Lisp_Objects except undo_list). If you add, remove, or reorder |
| 1022 | Lisp_Objects in a struct buffer, make sure that this is still correct. */ | 1022 | Lisp_Objects in a struct buffer, make sure that this is still correct. */ |
| 1023 | 1023 | ||
| 1024 | #define for_each_per_buffer_object_at(offset) \ | 1024 | #define FOR_EACH_PER_BUFFER_OBJECT_AT(offset) \ |
| 1025 | for (offset = PER_BUFFER_VAR_OFFSET (name); \ | 1025 | for (offset = PER_BUFFER_VAR_OFFSET (name); \ |
| 1026 | offset <= PER_BUFFER_VAR_OFFSET (cursor_in_non_selected_windows); \ | 1026 | offset <= PER_BUFFER_VAR_OFFSET (cursor_in_non_selected_windows); \ |
| 1027 | offset += sizeof (Lisp_Object)) | 1027 | offset += sizeof (Lisp_Object)) |