aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 5ac012c8378..c4725aa0ff3 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -44,7 +44,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
44#include <sys/resource.h> 44#include <sys/resource.h>
45#endif 45#endif
46 46
47#include <ctype.h>
48#include <float.h> 47#include <float.h>
49#include <limits.h> 48#include <limits.h>
50#include <intprops.h> 49#include <intprops.h>
@@ -882,7 +881,7 @@ save_excursion_restore (Lisp_Object info)
882 info = XCDR (info); 881 info = XCDR (info);
883 tem = XCAR (info); 882 tem = XCAR (info);
884 tem1 = BVAR (current_buffer, mark_active); 883 tem1 = BVAR (current_buffer, mark_active);
885 BSET (current_buffer, mark_active, tem); 884 bset_mark_active (current_buffer, tem);
886 885
887 /* If mark is active now, and either was not active 886 /* If mark is active now, and either was not active
888 or was at a different place, run the activate hook. */ 887 or was at a different place, run the activate hook. */
@@ -2816,13 +2815,15 @@ determines whether case is significant or ignored. */)
2816static Lisp_Object 2815static Lisp_Object
2817subst_char_in_region_unwind (Lisp_Object arg) 2816subst_char_in_region_unwind (Lisp_Object arg)
2818{ 2817{
2819 return BSET (current_buffer, undo_list, arg); 2818 bset_undo_list (current_buffer, arg);
2819 return arg;
2820} 2820}
2821 2821
2822static Lisp_Object 2822static Lisp_Object
2823subst_char_in_region_unwind_1 (Lisp_Object arg) 2823subst_char_in_region_unwind_1 (Lisp_Object arg)
2824{ 2824{
2825 return BSET (current_buffer, filename, arg); 2825 bset_filename (current_buffer, arg);
2826 return arg;
2826} 2827}
2827 2828
2828DEFUN ("subst-char-in-region", Fsubst_char_in_region, 2829DEFUN ("subst-char-in-region", Fsubst_char_in_region,
@@ -2896,11 +2897,11 @@ Both characters must have the same length of multi-byte form. */)
2896 { 2897 {
2897 record_unwind_protect (subst_char_in_region_unwind, 2898 record_unwind_protect (subst_char_in_region_unwind,
2898 BVAR (current_buffer, undo_list)); 2899 BVAR (current_buffer, undo_list));
2899 BSET (current_buffer, undo_list, Qt); 2900 bset_undo_list (current_buffer, Qt);
2900 /* Don't do file-locking. */ 2901 /* Don't do file-locking. */
2901 record_unwind_protect (subst_char_in_region_unwind_1, 2902 record_unwind_protect (subst_char_in_region_unwind_1,
2902 BVAR (current_buffer, filename)); 2903 BVAR (current_buffer, filename));
2903 BSET (current_buffer, filename, Qnil); 2904 bset_filename (current_buffer, Qnil);
2904 } 2905 }
2905 2906
2906 if (pos_byte < GPT_BYTE) 2907 if (pos_byte < GPT_BYTE)
@@ -2982,7 +2983,7 @@ Both characters must have the same length of multi-byte form. */)
2982 INC_POS (pos_byte_next); 2983 INC_POS (pos_byte_next);
2983 2984
2984 if (! NILP (noundo)) 2985 if (! NILP (noundo))
2985 BSET (current_buffer, undo_list, tem); 2986 bset_undo_list (current_buffer, tem);
2986 2987
2987 UNGCPRO; 2988 UNGCPRO;
2988 } 2989 }
@@ -3937,7 +3938,7 @@ usage: (format STRING &rest OBJECTS) */)
3937 3938
3938 /* If this argument has text properties, record where 3939 /* If this argument has text properties, record where
3939 in the result string it appears. */ 3940 in the result string it appears. */
3940 if (string_get_intervals (args[n])) 3941 if (string_intervals (args[n]))
3941 info[n].intervals = arg_intervals = 1; 3942 info[n].intervals = arg_intervals = 1;
3942 3943
3943 continue; 3944 continue;
@@ -4281,7 +4282,7 @@ usage: (format STRING &rest OBJECTS) */)
4281 arguments has text properties, set up text properties of the 4282 arguments has text properties, set up text properties of the
4282 result string. */ 4283 result string. */
4283 4284
4284 if (string_get_intervals (args[0]) || arg_intervals) 4285 if (string_intervals (args[0]) || arg_intervals)
4285 { 4286 {
4286 Lisp_Object len, new_len, props; 4287 Lisp_Object len, new_len, props;
4287 struct gcpro gcpro1; 4288 struct gcpro gcpro1;
@@ -4531,7 +4532,7 @@ Transposing beyond buffer boundaries is an error. */)
4531 Lisp_Object buf; 4532 Lisp_Object buf;
4532 4533
4533 XSETBUFFER (buf, current_buffer); 4534 XSETBUFFER (buf, current_buffer);
4534 cur_intv = buffer_get_intervals (current_buffer); 4535 cur_intv = buffer_intervals (current_buffer);
4535 4536
4536 validate_region (&startr1, &endr1); 4537 validate_region (&startr1, &endr1);
4537 validate_region (&startr2, &endr2); 4538 validate_region (&startr2, &endr2);