diff options
| author | Richard M. Stallman | 1995-02-14 16:33:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-02-14 16:33:19 +0000 |
| commit | f6ed2e848d23035748b621a86be74956c093823f (patch) | |
| tree | 8b63b904eaa4bb419e33ee3a65cc5ebb9b886d2a /src/buffer.c | |
| parent | 8eb34fb9f541e8e8faabdd4206fd47f10b633eb1 (diff) | |
| download | emacs-f6ed2e848d23035748b621a86be74956c093823f.tar.gz emacs-f6ed2e848d23035748b621a86be74956c093823f.zip | |
(syms_of_buffer): Set up Lisp var buffer-file-truename.
(init_buffer_once): Set up flag and default value for file_truename.
(reset_buffer): Init file_truename slot.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 334d71931a0..1ceec958a00 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -410,6 +410,7 @@ reset_buffer (b) | |||
| 410 | register struct buffer *b; | 410 | register struct buffer *b; |
| 411 | { | 411 | { |
| 412 | b->filename = Qnil; | 412 | b->filename = Qnil; |
| 413 | b->file_truename = Qnil; | ||
| 413 | b->directory = (current_buffer) ? current_buffer->directory : Qnil; | 414 | b->directory = (current_buffer) ? current_buffer->directory : Qnil; |
| 414 | b->modtime = 0; | 415 | b->modtime = 0; |
| 415 | XSETFASTINT (b->save_length, 0); | 416 | XSETFASTINT (b->save_length, 0); |
| @@ -2694,6 +2695,7 @@ init_buffer_once () | |||
| 2694 | XSETFASTINT (buffer_defaults.fill_column, 70); | 2695 | XSETFASTINT (buffer_defaults.fill_column, 70); |
| 2695 | XSETFASTINT (buffer_defaults.left_margin, 0); | 2696 | XSETFASTINT (buffer_defaults.left_margin, 0); |
| 2696 | buffer_defaults.cache_long_line_scans = Qnil; | 2697 | buffer_defaults.cache_long_line_scans = Qnil; |
| 2698 | buffer_defaults.file_truename = Qnil; | ||
| 2697 | 2699 | ||
| 2698 | /* Assign the local-flags to the slots that have default values. | 2700 | /* Assign the local-flags to the slots that have default values. |
| 2699 | The local flag is a bit that is used in the buffer | 2701 | The local flag is a bit that is used in the buffer |
| @@ -2716,6 +2718,7 @@ init_buffer_once () | |||
| 2716 | XSETINT (buffer_local_flags.undo_list, -1); | 2718 | XSETINT (buffer_local_flags.undo_list, -1); |
| 2717 | XSETINT (buffer_local_flags.mark_active, -1); | 2719 | XSETINT (buffer_local_flags.mark_active, -1); |
| 2718 | XSETINT (buffer_local_flags.point_before_scroll, -1); | 2720 | XSETINT (buffer_local_flags.point_before_scroll, -1); |
| 2721 | XSETINT (buffer_local_flags.file_truename, -1); | ||
| 2719 | 2722 | ||
| 2720 | XSETFASTINT (buffer_local_flags.mode_line_format, 1); | 2723 | XSETFASTINT (buffer_local_flags.mode_line_format, 1); |
| 2721 | XSETFASTINT (buffer_local_flags.abbrev_mode, 2); | 2724 | XSETFASTINT (buffer_local_flags.abbrev_mode, 2); |
| @@ -3008,6 +3011,12 @@ It may not be a list of functions."); | |||
| 3008 | "Name of file visited in current buffer, or nil if not visiting a file.\n\ | 3011 | "Name of file visited in current buffer, or nil if not visiting a file.\n\ |
| 3009 | Each buffer has its own value of this variable."); | 3012 | Each buffer has its own value of this variable."); |
| 3010 | 3013 | ||
| 3014 | DEFVAR_PER_BUFFER ("buffer-file-truename", ¤t_buffer->file_truename, | ||
| 3015 | make_number (Lisp_String), | ||
| 3016 | "Truename of file visited in current buffer, or nil if not visiting a file.\n\ | ||
| 3017 | The truename of a file is calculated by `file-truename'.\n\ | ||
| 3018 | Each buffer has its own value of this variable."); | ||
| 3019 | |||
| 3011 | DEFVAR_PER_BUFFER ("buffer-auto-save-file-name", | 3020 | DEFVAR_PER_BUFFER ("buffer-auto-save-file-name", |
| 3012 | ¤t_buffer->auto_save_file_name, | 3021 | ¤t_buffer->auto_save_file_name, |
| 3013 | make_number (Lisp_String), | 3022 | make_number (Lisp_String), |