aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThien-Thi Nguyen2002-06-03 01:58:20 +0000
committerThien-Thi Nguyen2002-06-03 01:58:20 +0000
commite2c0561ec51837dad43442727ac97279a7b346ca (patch)
tree44e21d7d47ab7aba63900d4c47312c97a09861b0 /src
parent097812fb661072fcf0bdfa38e93cda596ac9b2c2 (diff)
downloademacs-e2c0561ec51837dad43442727ac97279a7b346ca.tar.gz
emacs-e2c0561ec51837dad43442727ac97279a7b346ca.zip
(current_column): Now returns float.
(indented_beyond_p): 3rd arg now a float.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog36
-rw-r--r--src/lisp.h32
2 files changed, 46 insertions, 22 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9be130c46f0..93299b9c296 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,27 @@
12002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
2
3 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
4 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
5 * keymap.c (describe_command): Likewise.
6 * minibuf.c (read_minibuf): Likewise.
7
8 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
9 Cast `current_column' return value to int.
10 (back_to_previous_visible_line_start,
11 reseat_at_next_visible_line_start, next_element_from_buffer):
12 Cast `indented_beyond_p' 3rd arg to float.
13
14 * indent.c (last_known_column): Now a float.
15 (current_column_1, position_indentation, current_column,
16 string_display_width): Return float.
17 (Fcurrent_column): Cast `current_column' return value to int.
18 (Fcurrent_indentation): Cast `position_indentation' retval to int.
19 (indented_beyond_p): Third arg now a float.
20 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
21
22 * lisp.h (current_column): Now returns float.
23 (indented_beyond_p): 3rd arg now a float.
24
12002-05-31 Eli Zaretskii <eliz@is.elta.co.il> 252002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
2 26
3 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system 27 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
@@ -57,7 +81,7 @@
57 (substitute_object_recurse, substitute_object_in_subtree) 81 (substitute_object_recurse, substitute_object_in_subtree)
58 (substitute_in_interval): Prototype. 82 (substitute_in_interval): Prototype.
59 (read_multibyte): Return c if it's less than zero. 83 (read_multibyte): Return c if it's less than zero.
60 84
612002-05-28 Kim F. Storm <storm@cua.dk> 852002-05-28 Kim F. Storm <storm@cua.dk>
62 86
63 * fileio.c (Fread_file_name_internal): Added brute-force 87 * fileio.c (Fread_file_name_internal): Added brute-force
@@ -77,7 +101,7 @@
77 Call Vread_file_name_function to read the file name if non-nil. 101 Call Vread_file_name_function to read the file name if non-nil.
78 102
79 * lisp.h (Fread_file_name): Now has 6 args. 103 * lisp.h (Fread_file_name): Now has 6 args.
80 104
81 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p 105 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
82 predicate for Fread_file_name when reading directory name. 106 predicate for Fread_file_name when reading directory name.
83 Supply Qnil for predicate in other calls to Fread_file_name. 107 Supply Qnil for predicate in other calls to Fread_file_name.
@@ -1036,8 +1060,8 @@
1036 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame. 1060 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
1037 (Fimage_size, Fimage_mask_p, XPutPixel): New functions. 1061 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
1038 (four_corners_best, x_clear_image_1, x_clear_image) 1062 (four_corners_best, x_clear_image_1, x_clear_image)
1039 (x_alloc_image_color, postprocess_image) 1063 (x_alloc_image_color, postprocess_image)
1040 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image) 1064 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
1041 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows. 1065 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
1042 (init_xfns, syms_of_w32fns): Initialize image functions and constants. 1066 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
1043 1067
@@ -1052,7 +1076,7 @@
1052 socket functions. 1076 socket functions.
1053 (socket_to_fd): New function. 1077 (socket_to_fd): New function.
1054 (sys_socket): Use it. 1078 (sys_socket): Use it.
1055 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept) 1079 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
1056 (sys_recvfrom, sys_sendto): New wrapper functions. 1080 (sys_recvfrom, sys_sendto): New wrapper functions.
1057 1081
1058 * process.c (QCfamily, QCfilter): Remove duplicate declaration 1082 * process.c (QCfamily, QCfilter): Remove duplicate declaration
@@ -1182,7 +1206,7 @@
1182 1206
11832002-03-16 Richard M. Stallman <rms@gnu.org> 12072002-03-16 Richard M. Stallman <rms@gnu.org>
1184 1208
1185 * xdisp.c (redisplay_internal, redisplay_windows): 1209 * xdisp.c (redisplay_internal, redisplay_windows):
1186 Use list_of_error to call internal_condition_case_1. 1210 Use list_of_error to call internal_condition_case_1.
1187 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2} 1211 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
1188 so as to catch all errors with no possibility of debugger redisplay. 1212 so as to catch all errors with no possibility of debugger redisplay.
diff --git a/src/lisp.h b/src/lisp.h
index 144beeb7e7d..659bf8db3f1 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -303,7 +303,7 @@ enum pvec_type
303 PVEC_BUFFER = 0x20000, 303 PVEC_BUFFER = 0x20000,
304 PVEC_HASH_TABLE = 0x40000, 304 PVEC_HASH_TABLE = 0x40000,
305 PVEC_TYPE_MASK = 0x7fe00 305 PVEC_TYPE_MASK = 0x7fe00
306 306
307#if 0 /* This is used to make the value of PSEUDOVECTOR_FLAG available to 307#if 0 /* This is used to make the value of PSEUDOVECTOR_FLAG available to
308 GDB. It doesn't work on OS Alpha. Moved to a variable in 308 GDB. It doesn't work on OS Alpha. Moved to a variable in
309 emacs.c. */ 309 emacs.c. */
@@ -892,7 +892,7 @@ struct Lisp_Symbol
892 892
893 /* The symbol's property list. */ 893 /* The symbol's property list. */
894 Lisp_Object plist; 894 Lisp_Object plist;
895 895
896 /* Next symbol in obarray bucket, if the symbol is interned. */ 896 /* Next symbol in obarray bucket, if the symbol is interned. */
897 struct Lisp_Symbol *next; 897 struct Lisp_Symbol *next;
898}; 898};
@@ -935,7 +935,7 @@ struct Lisp_Symbol
935 else \ 935 else \
936 XSYMBOL (sym)->value = (val); \ 936 XSYMBOL (sym)->value = (val); \
937 } while (0) 937 } while (0)
938 938
939 939
940/*********************************************************************** 940/***********************************************************************
941 Hash Tables 941 Hash Tables
@@ -948,14 +948,14 @@ struct Lisp_Hash_Table
948 /* Vector fields. The hash table code doesn't refer to these. */ 948 /* Vector fields. The hash table code doesn't refer to these. */
949 EMACS_INT size; 949 EMACS_INT size;
950 struct Lisp_Vector *vec_next; 950 struct Lisp_Vector *vec_next;
951 951
952 /* Function used to compare keys. */ 952 /* Function used to compare keys. */
953 Lisp_Object test; 953 Lisp_Object test;
954 954
955 /* Nil if table is non-weak. Otherwise a symbol describing the 955 /* Nil if table is non-weak. Otherwise a symbol describing the
956 weakness of the table. */ 956 weakness of the table. */
957 Lisp_Object weak; 957 Lisp_Object weak;
958 958
959 /* When the table is resized, and this is an integer, compute the 959 /* When the table is resized, and this is an integer, compute the
960 new size by adding this to the old size. If a float, compute the 960 new size by adding this to the old size. If a float, compute the
961 new size by multiplying the old size with this factor. */ 961 new size by multiplying the old size with this factor. */
@@ -1127,7 +1127,7 @@ struct Lisp_Buffer_Objfwd
1127 one that corresponds to the loaded binding. To read or set the 1127 one that corresponds to the loaded binding. To read or set the
1128 variable, you must first make sure the right binding is loaded; 1128 variable, you must first make sure the right binding is loaded;
1129 then you can access the value in (or through) `realvalue'. 1129 then you can access the value in (or through) `realvalue'.
1130 1130
1131 `buffer' and `frame' are the buffer and frame for which the loaded 1131 `buffer' and `frame' are the buffer and frame for which the loaded
1132 binding was found. If those have changed, to make sure the right 1132 binding was found. If those have changed, to make sure the right
1133 binding is loaded it is necessary to find which binding goes with 1133 binding is loaded it is necessary to find which binding goes with
@@ -1601,7 +1601,7 @@ typedef unsigned char UCHAR;
1601 || (SYMBOLP (OBJ) && !NILP (Ffboundp (OBJ))) \ 1601 || (SYMBOLP (OBJ) && !NILP (Ffboundp (OBJ))) \
1602 || COMPILEDP (OBJ) \ 1602 || COMPILEDP (OBJ) \
1603 || SUBRP (OBJ)) 1603 || SUBRP (OBJ))
1604 1604
1605/* defsubr (Sname); 1605/* defsubr (Sname);
1606 is how we define the symbol for function `name' at start-up time. */ 1606 is how we define the symbol for function `name' at start-up time. */
1607extern void defsubr P_ ((struct Lisp_Subr *)); 1607extern void defsubr P_ ((struct Lisp_Subr *));
@@ -1646,9 +1646,9 @@ extern void defvar_kboard P_ ((char *, int));
1646 form. 1646 form.
1647 1647
1648 Otherwise, the element is a variable binding. 1648 Otherwise, the element is a variable binding.
1649 1649
1650 If the symbol field is a symbol, it is an ordinary variable binding. 1650 If the symbol field is a symbol, it is an ordinary variable binding.
1651 1651
1652 Otherwise, it should be a structure (SYMBOL WHERE 1652 Otherwise, it should be a structure (SYMBOL WHERE
1653 . CURRENT-BUFFER), which means having bound a local value while 1653 . CURRENT-BUFFER), which means having bound a local value while
1654 CURRENT-BUFFER was active. If WHERE is nil this means we saw the 1654 CURRENT-BUFFER was active. If WHERE is nil this means we saw the
@@ -1797,13 +1797,13 @@ extern struct gcpro *gcprolist;
1797struct gcpro 1797struct gcpro
1798{ 1798{
1799 struct gcpro *next; 1799 struct gcpro *next;
1800 1800
1801 /* Address of first protected variable. */ 1801 /* Address of first protected variable. */
1802 volatile Lisp_Object *var; 1802 volatile Lisp_Object *var;
1803 1803
1804 /* Number of consecutive protected variables. */ 1804 /* Number of consecutive protected variables. */
1805 int nvars; 1805 int nvars;
1806 1806
1807#ifdef DEBUG_GCPRO 1807#ifdef DEBUG_GCPRO
1808 int level; 1808 int level;
1809#endif 1809#endif
@@ -1833,7 +1833,7 @@ struct gcpro
1833/* Do something silly with gcproN vars just so gcc shuts up. */ 1833/* Do something silly with gcproN vars just so gcc shuts up. */
1834 1834
1835#define GCPRO1(varname) ((void) gcpro1) 1835#define GCPRO1(varname) ((void) gcpro1)
1836#define GCPRO2(varname1, varname2)(((void) gcpro2, (void) gcpro1)) 1836#define GCPRO2(varname1, varname2)(((void) gcpro2, (void) gcpro1))
1837#define GCPRO3(varname1, varname2, varname3) \ 1837#define GCPRO3(varname1, varname2, varname3) \
1838 (((void) gcpro3, (void) gcpro2, (void) gcpro1)) 1838 (((void) gcpro3, (void) gcpro2, (void) gcpro1))
1839#define GCPRO4(varname1, varname2, varname3, varname4) \ 1839#define GCPRO4(varname1, varname2, varname3, varname4) \
@@ -2807,9 +2807,9 @@ EXFUN (Fvertical_motion, 2);
2807EXFUN (Findent_to, 2); 2807EXFUN (Findent_to, 2);
2808EXFUN (Fcurrent_column, 0); 2808EXFUN (Fcurrent_column, 0);
2809EXFUN (Fmove_to_column, 2); 2809EXFUN (Fmove_to_column, 2);
2810extern int current_column P_ ((void)); 2810extern float current_column P_ ((void));
2811extern void invalidate_current_column P_ ((void)); 2811extern void invalidate_current_column P_ ((void));
2812extern int indented_beyond_p P_ ((int, int, int)); 2812extern int indented_beyond_p P_ ((int, int, float));
2813extern void syms_of_indent P_ ((void)); 2813extern void syms_of_indent P_ ((void));
2814 2814
2815/* defined in window.c */ 2815/* defined in window.c */
@@ -3143,7 +3143,7 @@ extern Lisp_Object Vdirectory_sep_char;
3143 3143
3144/* Loop over Lisp list LIST. Signal an error if LIST is not a proper 3144/* Loop over Lisp list LIST. Signal an error if LIST is not a proper
3145 list, or if it contains circles. 3145 list, or if it contains circles.
3146 3146
3147 HARE and TORTOISE should be the names of Lisp_Object variables, and 3147 HARE and TORTOISE should be the names of Lisp_Object variables, and
3148 N should be the name of an EMACS_INT variable declared in the 3148 N should be the name of an EMACS_INT variable declared in the
3149 function where the macro is used. Each nested loop should use 3149 function where the macro is used. Each nested loop should use