diff options
| author | Gerd Moellmann | 2001-05-29 11:10:47 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-05-29 11:10:47 +0000 |
| commit | 1cda365bcc8ffdc03ea705be1ca0860e56149944 (patch) | |
| tree | 7d4a67d2b046b564183ebce6847d44b8dd6ef707 | |
| parent | 82d336bb15a1145e9d6f082aa9ac5513d84459c3 (diff) | |
| download | emacs-old-branches/gerd_defvaralias.tar.gz emacs-old-branches/gerd_defvaralias.zip | |
*** empty log message ***old-branches/gerd_defvaralias
| -rw-r--r-- | src/ChangeLog | 25 | ||||
| -rw-r--r-- | src/editfns.c | 4 | ||||
| -rw-r--r-- | src/indent.c | 6 | ||||
| -rw-r--r-- | src/keymap.c | 20 | ||||
| -rw-r--r-- | src/lread.c | 2 | ||||
| -rw-r--r-- | src/macros.c | 2 | ||||
| -rw-r--r-- | src/termcap.c | 7 | ||||
| -rw-r--r-- | src/xmenu.c | 2 | ||||
| -rw-r--r-- | src/xterm.c | 43 |
9 files changed, 95 insertions, 16 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0904f6b54e5..15acfd1f0e3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | 2001-05-21 Gerd Moellmann <gerd@gnu.org> | 1 | 2001-05-29 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * lisp.h (enum symbol_interned): New enumeration. | 3 | * lisp.h (enum symbol_interned): New enumeration. |
| 4 | (struct Lisp_Symbol): Remove member `obarray', add | 4 | (struct Lisp_Symbol): Remove member `obarray', add |
| @@ -44,6 +44,29 @@ | |||
| 44 | SET_SYMBOL_VALUE macros instead of accessing symbols' value | 44 | SET_SYMBOL_VALUE macros instead of accessing symbols' value |
| 45 | directly. | 45 | directly. |
| 46 | 46 | ||
| 47 | 2001-05-28 Gerd Moellmann <gerd@gnu.org> | ||
| 48 | |||
| 49 | * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite | ||
| 50 | an item's name with its key description in case the description | ||
| 51 | is a multibyte string. | ||
| 52 | |||
| 53 | * keymap.c (Fsingle_key_description): Create a multibyte string | ||
| 54 | only if necessary. | ||
| 55 | |||
| 56 | * macros.c (Fstart_kbd_macro): Doc fix. | ||
| 57 | |||
| 58 | * xterm.c (cursor_in_mouse_face_p): New function. | ||
| 59 | (x_draw_stretch_glyph_string): Use it to choose a different GC | ||
| 60 | when drawing a cursor within highlighted text. | ||
| 61 | |||
| 62 | * editfns.c (char_property_eq): Put in #if 0. | ||
| 63 | |||
| 64 | * indent.c (string_display_width): Put in #if 0. | ||
| 65 | |||
| 66 | * lread.c (Fload): Remove unused label. | ||
| 67 | |||
| 68 | * termcap.c (speeds): Put in #if 0. | ||
| 69 | |||
| 47 | 2001-05-18 Gerd Moellmann <gerd@gnu.org> | 70 | 2001-05-18 Gerd Moellmann <gerd@gnu.org> |
| 48 | 71 | ||
| 49 | * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay. | 72 | * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay. |
diff --git a/src/editfns.c b/src/editfns.c index e50ef45ec0a..37f0162458d 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -316,6 +316,8 @@ If you set the marker not to point anywhere, the buffer will have no mark.") | |||
| 316 | } | 316 | } |
| 317 | 317 | ||
| 318 | 318 | ||
| 319 | #if 0 /* Not used. */ | ||
| 320 | |||
| 319 | /* Return nonzero if POS1 and POS2 have the same value | 321 | /* Return nonzero if POS1 and POS2 have the same value |
| 320 | for the text property PROP. */ | 322 | for the text property PROP. */ |
| 321 | 323 | ||
| @@ -332,6 +334,8 @@ char_property_eq (prop, pos1, pos2) | |||
| 332 | return EQ (pval1, pval2); | 334 | return EQ (pval1, pval2); |
| 333 | } | 335 | } |
| 334 | 336 | ||
| 337 | #endif /* 0 */ | ||
| 338 | |||
| 335 | /* Return the direction from which the text-property PROP would be | 339 | /* Return the direction from which the text-property PROP would be |
| 336 | inherited by any new text inserted at POS: 1 if it would be | 340 | inherited by any new text inserted at POS: 1 if it would be |
| 337 | inherited from the char after POS, -1 if it would be inherited from | 341 | inherited from the char after POS, -1 if it would be inherited from |
diff --git a/src/indent.c b/src/indent.c index a6c5b046012..49768ea5206 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -624,6 +624,9 @@ current_column_1 () | |||
| 624 | return col; | 624 | return col; |
| 625 | } | 625 | } |
| 626 | 626 | ||
| 627 | |||
| 628 | #if 0 /* Not used. */ | ||
| 629 | |||
| 627 | /* Return the width in columns of the part of STRING from BEG to END. | 630 | /* Return the width in columns of the part of STRING from BEG to END. |
| 628 | If BEG is nil, that stands for the beginning of STRING. | 631 | If BEG is nil, that stands for the beginning of STRING. |
| 629 | If END is nil, that stands for the end of STRING. */ | 632 | If END is nil, that stands for the end of STRING. */ |
| @@ -701,6 +704,9 @@ string_display_width (string, beg, end) | |||
| 701 | 704 | ||
| 702 | return col; | 705 | return col; |
| 703 | } | 706 | } |
| 707 | |||
| 708 | #endif /* 0 */ | ||
| 709 | |||
| 704 | 710 | ||
| 705 | DEFUN ("indent-to", Findent_to, Sindent_to, 1, 2, "NIndent to column: ", | 711 | DEFUN ("indent-to", Findent_to, Sindent_to, 1, 2, "NIndent to column: ", |
| 706 | "Indent from point with tabs and spaces until COLUMN is reached.\n\ | 712 | "Indent from point with tabs and spaces until COLUMN is reached.\n\ |
diff --git a/src/keymap.c b/src/keymap.c index a1f0de1c09a..f96c109c9cd 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -1959,14 +1959,18 @@ around function keys and event symbols.") | |||
| 1959 | } | 1959 | } |
| 1960 | else | 1960 | else |
| 1961 | { | 1961 | { |
| 1962 | char tem[KEY_DESCRIPTION_SIZE]; | 1962 | char tem[KEY_DESCRIPTION_SIZE], *end; |
| 1963 | int len; | 1963 | int nbytes, nchars; |
| 1964 | 1964 | Lisp_Object string; | |
| 1965 | *push_key_description (XUINT (key), tem, 1) = 0; | 1965 | |
| 1966 | len = strlen (tem); | 1966 | end = push_key_description (XUINT (key), tem, 1); |
| 1967 | return make_multibyte_string (tem, | 1967 | nbytes = end - tem; |
| 1968 | multibyte_chars_in_text (tem, len), | 1968 | nchars = multibyte_chars_in_text (tem, nbytes); |
| 1969 | len); | 1969 | if (nchars == nbytes) |
| 1970 | string = build_string (tem); | ||
| 1971 | else | ||
| 1972 | string = make_multibyte_string (tem, nchars, nbytes); | ||
| 1973 | return string; | ||
| 1970 | } | 1974 | } |
| 1971 | } | 1975 | } |
| 1972 | else if (SYMBOLP (key)) /* Function key or event-symbol */ | 1976 | else if (SYMBOLP (key)) /* Function key or event-symbol */ |
diff --git a/src/lread.c b/src/lread.c index d59fd83b11c..91b3075466b 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -777,8 +777,6 @@ Return t if file exists.") | |||
| 777 | } | 777 | } |
| 778 | else | 778 | else |
| 779 | { | 779 | { |
| 780 | load_source: | ||
| 781 | |||
| 782 | /* We are loading a source file (*.el). */ | 780 | /* We are loading a source file (*.el). */ |
| 783 | if (!NILP (Vload_source_file_function)) | 781 | if (!NILP (Vload_source_file_function)) |
| 784 | { | 782 | { |
diff --git a/src/macros.c b/src/macros.c index fde63165b47..4f5c77f6fbb 100644 --- a/src/macros.c +++ b/src/macros.c | |||
| @@ -61,7 +61,7 @@ The commands are recorded even as they are executed.\n\ | |||
| 61 | Use \\[end-kbd-macro] to finish recording and make the macro available.\n\ | 61 | Use \\[end-kbd-macro] to finish recording and make the macro available.\n\ |
| 62 | Use \\[name-last-kbd-macro] to give it a permanent name.\n\ | 62 | Use \\[name-last-kbd-macro] to give it a permanent name.\n\ |
| 63 | Non-nil arg (prefix arg) means append to last macro defined;\n\ | 63 | Non-nil arg (prefix arg) means append to last macro defined;\n\ |
| 64 | This begins by re-executing that macro as if you typed it again.") | 64 | this begins by re-executing that macro as if you typed it again.") |
| 65 | (append) | 65 | (append) |
| 66 | Lisp_Object append; | 66 | Lisp_Object append; |
| 67 | { | 67 | { |
diff --git a/src/termcap.c b/src/termcap.c index c9bf1a40b52..b99ae473315 100644 --- a/src/termcap.c +++ b/src/termcap.c | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | /* Work-alike for termcap, plus extra features. | 1 | /* Work-alike for termcap, plus extra features. |
| 2 | Copyright (C) 1985, 86, 93, 94, 95, 2000 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 86, 93, 94, 95, 2000, 2001 |
| 3 | Free Software Foundation, Inc. | ||
| 3 | 4 | ||
| 4 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
| @@ -292,6 +293,8 @@ tgetst1 (ptr, area) | |||
| 292 | int tputs_baud_rate; | 293 | int tputs_baud_rate; |
| 293 | char PC; | 294 | char PC; |
| 294 | 295 | ||
| 296 | #if 0 /* Doesn't seem to be used anymore. */ | ||
| 297 | |||
| 295 | /* Actual baud rate if positive; | 298 | /* Actual baud rate if positive; |
| 296 | - baud rate / 100 if negative. */ | 299 | - baud rate / 100 if negative. */ |
| 297 | 300 | ||
| @@ -306,6 +309,8 @@ static int speeds[] = | |||
| 306 | #endif /* not VMS */ | 309 | #endif /* not VMS */ |
| 307 | }; | 310 | }; |
| 308 | 311 | ||
| 312 | #endif /* 0 */ | ||
| 313 | |||
| 309 | void | 314 | void |
| 310 | tputs (str, nlines, outfun) | 315 | tputs (str, nlines, outfun) |
| 311 | register char *str; | 316 | register char *str; |
diff --git a/src/xmenu.c b/src/xmenu.c index 6317c126286..e87743b0057 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -2077,7 +2077,7 @@ xmenu_show (f, x, y, for_click, keymaps, title, error) | |||
| 2077 | if (STRINGP (item_name) && STRING_MULTIBYTE (item_name)) | 2077 | if (STRINGP (item_name) && STRING_MULTIBYTE (item_name)) |
| 2078 | item_name = string_make_unibyte (item_name); | 2078 | item_name = string_make_unibyte (item_name); |
| 2079 | if (STRINGP (descrip) && STRING_MULTIBYTE (descrip)) | 2079 | if (STRINGP (descrip) && STRING_MULTIBYTE (descrip)) |
| 2080 | item_name = string_make_unibyte (descrip); | 2080 | descrip = string_make_unibyte (descrip); |
| 2081 | #endif | 2081 | #endif |
| 2082 | 2082 | ||
| 2083 | wv = xmalloc_widget_value (); | 2083 | wv = xmalloc_widget_value (); |
diff --git a/src/xterm.c b/src/xterm.c index 3dfe0fac2aa..394b75cfe6c 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -399,6 +399,7 @@ enum draw_glyphs_face | |||
| 399 | DRAW_IMAGE_SUNKEN | 399 | DRAW_IMAGE_SUNKEN |
| 400 | }; | 400 | }; |
| 401 | 401 | ||
| 402 | static int cursor_in_mouse_face_p P_ ((struct window *)); | ||
| 402 | static int clear_mouse_face P_ ((struct x_display_info *)); | 403 | static int clear_mouse_face P_ ((struct x_display_info *)); |
| 403 | static int x_alloc_nearest_color_1 P_ ((Display *, Colormap, XColor *)); | 404 | static int x_alloc_nearest_color_1 P_ ((Display *, Colormap, XColor *)); |
| 404 | static void x_set_window_size_1 P_ ((struct frame *, int, int, int)); | 405 | static void x_set_window_size_1 P_ ((struct frame *, int, int, int)); |
| @@ -4384,14 +4385,23 @@ x_draw_stretch_glyph_string (s) | |||
| 4384 | /* Clear rest using the GC of the original non-cursor face. */ | 4385 | /* Clear rest using the GC of the original non-cursor face. */ |
| 4385 | if (width < s->background_width) | 4386 | if (width < s->background_width) |
| 4386 | { | 4387 | { |
| 4387 | GC gc = s->face->gc; | ||
| 4388 | int x = s->x + width, y = s->y; | 4388 | int x = s->x + width, y = s->y; |
| 4389 | int w = s->background_width - width, h = s->height; | 4389 | int w = s->background_width - width, h = s->height; |
| 4390 | XRectangle r; | 4390 | XRectangle r; |
| 4391 | GC gc; | ||
| 4391 | 4392 | ||
| 4393 | if (s->row->mouse_face_p | ||
| 4394 | && cursor_in_mouse_face_p (s->w)) | ||
| 4395 | { | ||
| 4396 | x_set_mouse_face_gc (s); | ||
| 4397 | gc = s->gc; | ||
| 4398 | } | ||
| 4399 | else | ||
| 4400 | gc = s->face->gc; | ||
| 4401 | |||
| 4392 | x_get_glyph_string_clip_rect (s, &r); | 4402 | x_get_glyph_string_clip_rect (s, &r); |
| 4393 | XSetClipRectangles (s->display, gc, 0, 0, &r, 1, Unsorted); | 4403 | XSetClipRectangles (s->display, gc, 0, 0, &r, 1, Unsorted); |
| 4394 | 4404 | ||
| 4395 | if (s->face->stipple) | 4405 | if (s->face->stipple) |
| 4396 | { | 4406 | { |
| 4397 | /* Fill background with a stipple pattern. */ | 4407 | /* Fill background with a stipple pattern. */ |
| @@ -11201,6 +11211,35 @@ x_erase_phys_cursor (w) | |||
| 11201 | } | 11211 | } |
| 11202 | 11212 | ||
| 11203 | 11213 | ||
| 11214 | /* Non-zero if physical cursor of window W is within mouse face. */ | ||
| 11215 | |||
| 11216 | static int | ||
| 11217 | cursor_in_mouse_face_p (w) | ||
| 11218 | struct window *w; | ||
| 11219 | { | ||
| 11220 | struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (XFRAME (w->frame)); | ||
| 11221 | int in_mouse_face = 0; | ||
| 11222 | |||
| 11223 | if (WINDOWP (dpyinfo->mouse_face_window) | ||
| 11224 | && XWINDOW (dpyinfo->mouse_face_window) == w) | ||
| 11225 | { | ||
| 11226 | int hpos = w->phys_cursor.hpos; | ||
| 11227 | int vpos = w->phys_cursor.vpos; | ||
| 11228 | |||
| 11229 | if (vpos >= dpyinfo->mouse_face_beg_row | ||
| 11230 | && vpos <= dpyinfo->mouse_face_end_row | ||
| 11231 | && (vpos > dpyinfo->mouse_face_beg_row | ||
| 11232 | || hpos >= dpyinfo->mouse_face_beg_col) | ||
| 11233 | && (vpos < dpyinfo->mouse_face_end_row | ||
| 11234 | || hpos < dpyinfo->mouse_face_end_col | ||
| 11235 | || dpyinfo->mouse_face_past_end)) | ||
| 11236 | in_mouse_face = 1; | ||
| 11237 | } | ||
| 11238 | |||
| 11239 | return in_mouse_face; | ||
| 11240 | } | ||
| 11241 | |||
| 11242 | |||
| 11204 | /* Display or clear cursor of window W. If ON is zero, clear the | 11243 | /* Display or clear cursor of window W. If ON is zero, clear the |
| 11205 | cursor. If it is non-zero, display the cursor. If ON is nonzero, | 11244 | cursor. If it is non-zero, display the cursor. If ON is nonzero, |
| 11206 | where to put the cursor is specified by HPOS, VPOS, X and Y. */ | 11245 | where to put the cursor is specified by HPOS, VPOS, X and Y. */ |