aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2004-04-08 12:29:09 +0000
committerKaroly Lorentey2004-04-08 12:29:09 +0000
commitfbada922e4bc08f6a1dc228062f3f97213d9980f (patch)
tree4206c226846f15c969363b88a572dc914526c170 /src
parent1ba538094c4cd3da172d91878fa76d96c6b1cbd2 (diff)
parent8a7757f6f5793563a4337a3f761c8cc73974e27d (diff)
downloademacs-fbada922e4bc08f6a1dc228062f3f97213d9980f.tar.gz
emacs-fbada922e4bc08f6a1dc228062f3f97213d9980f.zip
Merged in changes from CVS HEAD
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-181 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-182 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-183 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-184 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-185 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-186 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-187 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-188 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-189 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-190 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-191 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-192 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-132
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog43
-rw-r--r--src/charset.h4
-rw-r--r--src/doc.c9
-rw-r--r--src/indent.c10
-rw-r--r--src/msdos.c6
-rw-r--r--src/w32term.c6
-rw-r--r--src/xdisp.c2
-rw-r--r--src/xterm.c2
8 files changed, 57 insertions, 25 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index a1c384ce535..0a1c04c1151 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,28 @@
12004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * doc.c (Fsnarf_documentation): Ignore new file name entries.
4
52004-04-06 Kim F. Storm <storm@cua.dk>
6
7 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
8 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
9
10 * w32term.c (w32_read_socket): Set mouse_face_hidden after
11 clearing highlight.
12
13 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
14
15 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
16 clearing highlight.
17
18 * indent.c (vmotion): Do not reserve one column for continuation
19 marks on window frames.
20
212004-04-04 Eli Zaretskii <eliz@gnu.org>
22
23 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
24 from GCC.
25
12004-04-03 Stefan Monnier <monnier@iro.umontreal.ca> 262004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
2 27
3 * .gdbinit-union: Remove. 28 * .gdbinit-union: Remove.
@@ -120,7 +145,7 @@
120 145
121 * xfns.c (x_find_image_file): Remove prototype. 146 * xfns.c (x_find_image_file): Remove prototype.
122 147
1232004-03-13 Eli Zaretskii <eliz@elta.co.il> 1482004-03-13 Eli Zaretskii <eliz@gnu.org>
124 149
125 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined. 150 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
126 151
@@ -782,7 +807,7 @@
782 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps 807 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
783 correctly over other bitmaps. 808 correctly over other bitmaps.
784 809
7852004-02-21 Eli Zaretskii <eliz@elta.co.il> 8102004-02-21 Eli Zaretskii <eliz@gnu.org>
786 811
787 * emacs.c (USAGE1): Split into two halves. 812 * emacs.c (USAGE1): Split into two halves.
788 (USAGE2): Second half of the old USAGE1. 813 (USAGE2): Second half of the old USAGE1.
@@ -860,7 +885,7 @@
860 (read_avail_input): Use it to zero out only those slots in buf[] 885 (read_avail_input): Use it to zero out only those slots in buf[]
861 that were used last time we were called. 886 that were used last time we were called.
862 887
8632004-02-16 Eli Zaretskii <eliz@elta.co.il> 8882004-02-16 Eli Zaretskii <eliz@gnu.org>
864 889
865 * Makefile.in (obj): Move fringe.o from here... 890 * Makefile.in (obj): Move fringe.o from here...
866 (XOBJ, MAC_OBJ): ...to here. 891 (XOBJ, MAC_OBJ): ...to here.
@@ -1147,7 +1172,7 @@
1147 if vector_ret_p is true. 1172 if vector_ret_p is true.
1148 (syms_of_xfns): Sx_send_client_message moved to xselect.c. 1173 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
1149 1174
11502004-02-02 Eli Zaretskii <eliz@elta.co.il> 11752004-02-02 Eli Zaretskii <eliz@gnu.org>
1151 1176
1152 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the 1177 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
1153 basename of FILE relative to it, not FILE itself. 1178 basename of FILE relative to it, not FILE itself.
@@ -1166,7 +1191,7 @@
1166 (syms_of_fileio): Adapt the docstring of insert-default-directory 1191 (syms_of_fileio): Adapt the docstring of insert-default-directory
1167 to the change in Fread_file_name. 1192 to the change in Fread_file_name.
1168 1193
11692004-01-29 Eli Zaretskii <eliz@elta.co.il> 11942004-01-29 Eli Zaretskii <eliz@gnu.org>
1170 1195
1171 * alloca.c [!alloca]: Fix the prototype for xfree. 1196 * alloca.c [!alloca]: Fix the prototype for xfree.
1172 1197
@@ -2241,7 +2266,7 @@
2241 * fontset.c (Finternal_char_font): Change return value to 2266 * fontset.c (Finternal_char_font): Change return value to
2242 cons (FONT-NAME . GLYPH-CODE). 2267 cons (FONT-NAME . GLYPH-CODE).
2243 2268
22442003-09-28 Eli Zaretskii <eliz@elta.co.il> 22692003-09-28 Eli Zaretskii <eliz@gnu.org>
2245 2270
2246 * term.c (tty_setup_colors): Treat any negative argument as -1. 2271 * term.c (tty_setup_colors): Treat any negative argument as -1.
2247 2272
@@ -2273,7 +2298,7 @@
2273 2298
2274 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros. 2299 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
2275 2300
22762003-09-22 Eli Zaretskii <eliz@elta.co.il> 23012003-09-22 Eli Zaretskii <eliz@gnu.org>
2277 2302
2278 * term.c (set_tty_color_mode): Use INTEGERP to test whether a 2303 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
2279 color mode is an integer number (it could be -1). 2304 color mode is an integer number (it could be -1).
@@ -2405,7 +2430,7 @@
2405 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to 2430 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
2406 avoid warning. 2431 avoid warning.
2407 2432
24082003-09-07 Eli Zaretskii <eliz@elta.co.il> 24332003-09-07 Eli Zaretskii <eliz@gnu.org>
2409 2434
2410 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP. 2435 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2411 2436
@@ -2492,7 +2517,7 @@
2492 * xfns.c (Vgtk_version_string): New variable. 2517 * xfns.c (Vgtk_version_string): New variable.
2493 (syms_of_xfns): DEFVAR_LISP it. Provide gtk. 2518 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
2494 2519
24952003-08-24 Eli Zaretskii <eliz@elta.co.il> 25202003-08-24 Eli Zaretskii <eliz@gnu.org>
2496 2521
2497 * term.c (term_init): Remove `const' from buffer_size's declaration. 2522 * term.c (term_init): Remove `const' from buffer_size's declaration.
2498 2523
diff --git a/src/charset.h b/src/charset.h
index 3a4eb5cbfcc..b49ed87a3ab 100644
--- a/src/charset.h
+++ b/src/charset.h
@@ -216,7 +216,7 @@ extern int charset_big5_2; /* Big5 Level 2 (Chinese Traditional) */
216#define MAX_CHAR (0x1F << 14) 216#define MAX_CHAR (0x1F << 14)
217 217
218/* 1 if C is a single byte character, else 0. */ 218/* 1 if C is a single byte character, else 0. */
219#define SINGLE_BYTE_CHAR_P(c) ((unsigned) (c) < 0x100) 219#define SINGLE_BYTE_CHAR_P(c) (((unsigned)(c) & 0xFF) == (c))
220 220
221/* 1 if BYTE is an ASCII character in itself, in multibyte mode. */ 221/* 1 if BYTE is an ASCII character in itself, in multibyte mode. */
222#define ASCII_BYTE_P(byte) ((byte) < 0x80) 222#define ASCII_BYTE_P(byte) ((byte) < 0x80)
@@ -535,7 +535,7 @@ extern int iso_charset_table[2][2][128];
535 535
536#define CHAR_STRING(c, str) \ 536#define CHAR_STRING(c, str) \
537 (SINGLE_BYTE_CHAR_P (c) \ 537 (SINGLE_BYTE_CHAR_P (c) \
538 ? ((ASCII_BYTE_P (c) || c >= 0xA0) \ 538 ? ((ASCII_BYTE_P (c) || c >= 0xA0) \
539 ? (*(str) = (unsigned char)(c), 1) \ 539 ? (*(str) = (unsigned char)(c), 1) \
540 : (*(str) = LEADING_CODE_8_BIT_CONTROL, *((str)+ 1) = c + 0x20, 2)) \ 540 : (*(str) = LEADING_CODE_8_BIT_CONTROL, *((str)+ 1) = c + 0x20, 2)) \
541 : char_to_string (c, (unsigned char *) str)) 541 : char_to_string (c, (unsigned char *) str))
diff --git a/src/doc.c b/src/doc.c
index 930afc88e23..d4d749ab585 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -1,5 +1,6 @@
1/* Record indices of function doc strings stored in a file. 1/* Record indices of function doc strings stored in a file.
2 Copyright (C) 1985, 86,93,94,95,97,98,99, 2000 Free Software Foundation, Inc. 2 Copyright (C) 1985, 86,93,94,95,97,98,99,2000,04
3 Free Software Foundation, Inc.
3 4
4This file is part of GNU Emacs. 5This file is part of GNU Emacs.
5 6
@@ -612,8 +613,7 @@ the same file name is found in the `data-directory'. */)
612 *p = '_'; 613 *p = '_';
613 p++; 614 p++;
614 } 615 }
615#endif /* not VMS4_4 */ 616#else /* VMS4_4 */
616#ifdef VMS4_4
617 strcpy (name, sys_translate_unix (name)); 617 strcpy (name, sys_translate_unix (name));
618#endif /* VMS4_4 */ 618#endif /* VMS4_4 */
619#endif /* VMS */ 619#endif /* VMS */
@@ -660,6 +660,9 @@ the same file name is found in the `data-directory'. */)
660 else if (p[1] == 'F') 660 else if (p[1] == 'F')
661 store_function_docstring (sym, pos + end + 1 - buf); 661 store_function_docstring (sym, pos + end + 1 - buf);
662 662
663 else if (p[1] == 'S')
664 ; /* Just a source file name boundary marker. Ignore it. */
665
663 else 666 else
664 error ("DOC file invalid at position %d", pos); 667 error ("DOC file invalid at position %d", pos);
665 } 668 }
diff --git a/src/indent.c b/src/indent.c
index 32efcbd0cc7..99422698d51 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1838,9 +1838,7 @@ vmotion (from, vtarget, w)
1838 register int from, vtarget; 1838 register int from, vtarget;
1839 struct window *w; 1839 struct window *w;
1840{ 1840{
1841 /* We don't need to make room for continuation marks (we have fringes now), 1841 int width = window_box_text_cols (w);
1842 so hould we really subtract 1 here if FRAME_WINDOW_P ? ++KFS */
1843 int width = window_box_text_cols (w) - 1;
1844 int hscroll = XINT (w->hscroll); 1842 int hscroll = XINT (w->hscroll);
1845 struct position pos; 1843 struct position pos;
1846 /* vpos is cumulative vertical position, changed as from is changed */ 1844 /* vpos is cumulative vertical position, changed as from is changed */
@@ -1861,6 +1859,12 @@ vmotion (from, vtarget, w)
1861 1859
1862 XSETWINDOW (window, w); 1860 XSETWINDOW (window, w);
1863 1861
1862 /* We must make room for continuation marks if we don't have fringes. */
1863#ifdef HAVE_WINDOW_SYSTEM
1864 if (!FRAME_WINDOW_P (XFRAME (w->frame)))
1865#endif
1866 width -= 1;
1867
1864 /* If the window contains this buffer, use it for getting text properties. 1868 /* If the window contains this buffer, use it for getting text properties.
1865 Otherwise use the current buffer as arg for doing that. */ 1869 Otherwise use the current buffer as arg for doing that. */
1866 if (EQ (w->buffer, Fcurrent_buffer ())) 1870 if (EQ (w->buffer, Fcurrent_buffer ()))
diff --git a/src/msdos.c b/src/msdos.c
index e73f284fa4d..39d28564890 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -1329,7 +1329,7 @@ show_mouse_face (struct display_info *dpyinfo, int hl)
1329static void 1329static void
1330clear_mouse_face (struct display_info *dpyinfo) 1330clear_mouse_face (struct display_info *dpyinfo)
1331{ 1331{
1332 if (! NILP (dpyinfo->mouse_face_window)) 1332 if (!dpyinfo->mouse_face_hidden && ! NILP (dpyinfo->mouse_face_window))
1333 show_mouse_face (dpyinfo, 0); 1333 show_mouse_face (dpyinfo, 0);
1334 1334
1335 dpyinfo->mouse_face_beg_row = dpyinfo->mouse_face_beg_col = -1; 1335 dpyinfo->mouse_face_beg_row = dpyinfo->mouse_face_beg_col = -1;
@@ -3131,7 +3131,7 @@ dos_rawgetc ()
3131 union REGS regs; 3131 union REGS regs;
3132 struct display_info *dpyinfo = FRAME_X_DISPLAY_INFO (SELECTED_FRAME()); 3132 struct display_info *dpyinfo = FRAME_X_DISPLAY_INFO (SELECTED_FRAME());
3133 EVENT_INIT (event); 3133 EVENT_INIT (event);
3134 3134
3135#ifndef HAVE_X_WINDOWS 3135#ifndef HAVE_X_WINDOWS
3136 /* Maybe put the cursor where it should be. */ 3136 /* Maybe put the cursor where it should be. */
3137 IT_cmgoto (SELECTED_FRAME()); 3137 IT_cmgoto (SELECTED_FRAME());
@@ -3342,8 +3342,8 @@ dos_rawgetc ()
3342 3342
3343 if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight)) 3343 if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight))
3344 { 3344 {
3345 dpyinfo->mouse_face_hidden = 1;
3346 clear_mouse_face (dpyinfo); 3345 clear_mouse_face (dpyinfo);
3346 dpyinfo->mouse_face_hidden = 1;
3347 } 3347 }
3348 3348
3349 if (code >= 0x100) 3349 if (code >= 0x100)
diff --git a/src/w32term.c b/src/w32term.c
index 41c188a2414..7f3b6b626de 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -4245,8 +4245,8 @@ w32_read_socket (sd, expected, hold_quit)
4245 { 4245 {
4246 if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight)) 4246 if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight))
4247 { 4247 {
4248 dpyinfo->mouse_face_hidden = 1;
4249 clear_mouse_face (dpyinfo); 4248 clear_mouse_face (dpyinfo);
4249 dpyinfo->mouse_face_hidden = 1;
4250 } 4250 }
4251 4251
4252 if (temp_index == sizeof temp_buffer / sizeof (short)) 4252 if (temp_index == sizeof temp_buffer / sizeof (short))
@@ -4268,8 +4268,8 @@ w32_read_socket (sd, expected, hold_quit)
4268 { 4268 {
4269 if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight)) 4269 if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight))
4270 { 4270 {
4271 dpyinfo->mouse_face_hidden = 1;
4272 clear_mouse_face (dpyinfo); 4271 clear_mouse_face (dpyinfo);
4272 dpyinfo->mouse_face_hidden = 1;
4273 } 4273 }
4274 4274
4275 if (temp_index == sizeof temp_buffer / sizeof (short)) 4275 if (temp_index == sizeof temp_buffer / sizeof (short))
@@ -4773,7 +4773,7 @@ w32_read_socket (sd, expected, hold_quit)
4773 help_echo_object = help_echo_window = Qnil; 4773 help_echo_object = help_echo_window = Qnil;
4774 help_echo_pos = -1; 4774 help_echo_pos = -1;
4775 } 4775 }
4776 4776
4777 any_help_event_p = 1; 4777 any_help_event_p = 1;
4778 gen_help_event (help_echo_string, frame, help_echo_window, 4778 gen_help_event (help_echo_string, frame, help_echo_window,
4779 help_echo_object, help_echo_pos); 4779 help_echo_object, help_echo_pos);
diff --git a/src/xdisp.c b/src/xdisp.c
index d5e49f744cf..0f5cde82cbd 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -19831,7 +19831,7 @@ clear_mouse_face (dpyinfo)
19831{ 19831{
19832 int cleared = 0; 19832 int cleared = 0;
19833 19833
19834 if (!NILP (dpyinfo->mouse_face_window)) 19834 if (!dpyinfo->mouse_face_hidden && !NILP (dpyinfo->mouse_face_window))
19835 { 19835 {
19836 show_mouse_face (dpyinfo, DRAW_NORMAL_TEXT); 19836 show_mouse_face (dpyinfo, DRAW_NORMAL_TEXT);
19837 cleared = 1; 19837 cleared = 1;
diff --git a/src/xterm.c b/src/xterm.c
index fe1dca7fd71..350c68ca20f 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6198,8 +6198,8 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6198 6198
6199 if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight)) 6199 if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight))
6200 { 6200 {
6201 dpyinfo->mouse_face_hidden = 1;
6202 clear_mouse_face (dpyinfo); 6201 clear_mouse_face (dpyinfo);
6202 dpyinfo->mouse_face_hidden = 1;
6203 } 6203 }
6204 6204
6205#if defined USE_MOTIF && defined USE_TOOLKIT_SCROLL_BARS 6205#if defined USE_MOTIF && defined USE_TOOLKIT_SCROLL_BARS