Chong Yidong
12bd42bee5
Minor doc fix.
2006-09-01 13:35:11 +00:00
Chong Yidong
3e1451520b
* buffer.h (struct buffer_text): New field chars_modiff.
...
(CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
* buffer.c (Fbuffer_chars_modified_tick): New function returning
value of BUF_CHARS_MODIFF.
(syms_of_buffer): Defsubr it.
(Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
* insdel.c (modify_region): New argument preserve_chars_modiff.
Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
(insert_1_both, insert_from_string_1, insert_from_buffer_1)
(adjust_after_replace, adjust_after_replace_noundo)
(replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
* lisp.h (modify_region): Add fourth argument in extern.
* casefiddle.c (casify_region): Call modify_region with fourth
argument zero to assert that CHARS_MODIFF is updated.
* editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
(Ftranspose_regions): Likewise.
* textprop.c (Fadd_text_properties, Fset_text_properties)
(Fremove_text_properties, Fremove_list_of_text_properties):
Call modify_region with fourth argument 1 to avoid that
CHARS_MODIFF is updated.
2006-09-01 13:28:13 +00:00
Kim F. Storm
8929fd8784
(Fset_buffer_multibyte): Simplify; use list3.
2006-08-25 23:33:44 +00:00
Richard M. Stallman
611ac52147
(Fswitch_to_buffer): Fix previous change.
2006-08-25 21:10:26 +00:00
Nick Roberts
fab45703d3
(Fswitch_to_buffer): Move buffer to front of
...
buffer-alist if necessary.
2006-08-24 20:40:53 +00:00
Kim F. Storm
38babc072d
2006-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
...
(Fset_buffer_multibyte): Record proper undo entry.
2006-08-22 09:25:59 +00:00
Chong Yidong
43ed3b8da0
* buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
...
(Fkill_all_local_variables): Use it.
(syms_of_buffer): Defvar it.
2006-08-06 14:22:24 +00:00
Kim F. Storm
4c4dc0b09b
(Fbuffer_local_value, Fbarf_if_buffer_read_only):
...
Use xsignal1.
2006-07-18 13:25:47 +00:00
Juri Linkov
dafbe726b8
(mode-line-format): Fix docstring.
2006-05-25 21:20:19 +00:00
Richard M. Stallman
63af60550b
(syms_of_buffer, Fmake_overlay): Doc fixes.
2006-05-21 21:11:48 +00:00
Richard M. Stallman
624d267858
(Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
2006-05-17 22:26:51 +00:00
Chong Yidong
e2bcf94d93
buffer.c: Revert last change.
2006-02-25 23:33:57 +00:00
Chong Yidong
7d63db9802
* buffer.c (Foverlay_put): Mark buffer as changed.
2006-02-25 23:32:19 +00:00
Kim F. Storm
18700091b0
(modify_overlay): Force redisplay if we modify an
...
overlay at the end of the buffer.
2006-02-24 23:31:26 +00:00
Kim F. Storm
c6a46372a3
(init_buffer_once): Set dummy default values for
...
fringe-indicator-alist and fringe-cursor-alist. The proper
default values are set by pre-loading fringe.el.
(syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
correspondig default- variables.
2006-02-20 22:14:06 +00:00
Thien-Thi Nguyen
aaef169dc6
Update years in copyright notice; nfc.
2006-02-06 15:23:23 +00:00
Ken Raeburn
09706e1fc4
(Fkill_buffer): Avoid dangerous side effects in NILP argument.
2005-12-06 07:37:47 +00:00
Károly Lőrentey
6ad0f04d22
(Fpop_to_buffer): Remove superfluous call to record_buffer.
2005-11-30 13:18:56 +00:00
Kim F. Storm
54622f3318
(clone_per_buffer_values): Remove unused var tem.
...
(init_buffer): Remove unused vars dotstat, pwdstat.
2005-10-20 15:02:52 +00:00
Romain Francoise
b639c9be35
(init_buffer): Rename rc' to len' for clarity.
2005-10-12 10:14:41 +00:00
Romain Francoise
f996237104
(init_buffer): Fix typos.
2005-09-10 20:05:02 +00:00
Romain Francoise
156bdb4130
(init_buffer): Grow buffer to add directory separator
...
and terminal zero.
2005-09-10 19:55:28 +00:00
Eli Zaretskii
a17b5ed1a9
(init_buffer): Fix error message for failed call to get_current_dir_name.
...
(get_current_dir_name): Remove prototype.
2005-09-10 14:05:17 +00:00
Eli Zaretskii
01537133a0
(init_buffer): Use get_current_dir_name.
2005-09-10 11:30:06 +00:00
Thien-Thi Nguyen
0b5538bd85
Update years in copyright notice; nfc.
2005-08-07 12:33:19 +00:00
Juanma Barranquero
b8dc613f45
(syms_of_buffer) <cursor-type>: Doc fix.
2005-07-21 16:06:33 +00:00
Juri Linkov
e5f95d5ca4
(scroll-up-aggressively, scroll-down-aggressively): Delete duplicate words.
2005-07-18 16:32:35 +00:00
Richard M. Stallman
a625ee20c8
(Fmake_overlay): Doc fix.
2005-07-17 03:47:19 +00:00
Lute Kamstra
4fc5845fe8
Update FSF's address.
2005-07-04 16:49:24 +00:00
Richard M. Stallman
b4234f4ce6
Finish previous change.
2005-06-17 21:22:14 +00:00
Richard M. Stallman
398f0da507
(syms_of_buffer) <cursor-type>: Doc fix.
2005-06-17 13:59:11 +00:00
Richard M. Stallman
0e4d0c9af9
(Fbuffer_local_value): Call indirect_variable.
2005-05-29 08:25:17 +00:00
Juanma Barranquero
5e2ad10b99
(Fbuffer_local_value): Make argument name match its use in docstring.
2005-05-27 11:02:11 +00:00
Kim F. Storm
187ccf4905
(init_buffer_once): Set cursor_in_non_selected_windows default value.
...
(syms_of_buffer): Add default-cursor-in-non-selected-windows.
Fix type of cursor-in-non-selected-windows.
2005-05-04 22:10:14 +00:00
Richard M. Stallman
0124c5bdea
(syms_of_buffer): Define cursor-in-non-selected-windows.
2005-05-02 17:10:29 +00:00
Richard M. Stallman
7fa57e4559
(Fmake_indirect_buffer): Clear out some local variables.
2005-04-10 23:22:38 +00:00
Richard M. Stallman
e1688f54df
(buffer_lisp_local_variables): New function,
...
broken out from Fbuffer_local_variables.
(clone_per_buffer_values): Use buffer_lisp_local_variables.
2005-03-17 23:37:39 +00:00
Lute Kamstra
845a78b47b
(syms_of_buffer): Fix typo.
2005-02-25 15:22:17 +00:00
Lute Kamstra
563f712898
(Foverlay_buffer): Doc fix.
2005-02-23 08:45:04 +00:00
Richard M. Stallman
3997118842
(Fbury_buffer): Doc fix.
2005-02-03 07:33:52 +00:00
Kim F. Storm
7405f386b9
(syms_of_buffer) <buffer-undo-list>: Doc fix.
2005-01-31 22:45:12 +00:00
Richard M. Stallman
c6c7dc0349
(syms_of_buffer) <buffer-undo-list>: Doc fix.
2005-01-29 17:18:57 +00:00
Luc Teirlinck
188577ceca
(syms_of_buffer) <vertical-scroll-bar>: Correct typo.
2004-12-29 22:18:41 +00:00
Richard M. Stallman
7c6b20070e
(syms_of_buffer) <vertical-scroll-bar>: Doc fix.
2004-12-29 20:39:38 +00:00
Richard M. Stallman
fc2c88874c
(Fbuffer_disable_undo): Deleted (moved to simple.el).
...
(syms_of_buffer): Don't defsubr it.
2004-12-27 16:07:42 +00:00
Kenichi Handa
dcd74c5f2c
(init_buffer): Set current_buffer->directory to a
...
multibyte string made by string_to_multibyte.
2004-11-29 07:16:25 +00:00
Richard M. Stallman
79e3497d3f
(syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
2004-11-25 03:16:34 +00:00
David Kastrup
5629f29b3c
(syms_of_buffer): Fix a few typos.
2004-10-26 09:45:16 +00:00
Kim F. Storm
b222903736
(syms_of_buffer) <indicate-buffer-boundaries>:
...
Doc fix. Format may now be a symbol or alist, not a cons.
2004-09-27 13:28:10 +00:00
Richard M. Stallman
557ca2c1b4
(syms_of_buffer) <default-major-mode>: Doc fix.
2004-09-18 19:20:53 +00:00