aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* * xfaces.c (intern_frame_face): Exchange order of arguments, toJim Blandy1993-05-131-11/+30
| | | | | | | | | | | | | make callers correct. * xfaces.c (compute_char_face): Notice the next property change location correctly. * xfaces.c (face_name_id_number): Return 0 (the default face) if the name is undefined. * xfaces.c (Fset_face_attribute_internal): Do nothing unless FRAME is an X frame.
* * xdisp.c (copy_rope, copy_part_of_rope): Add face argument.Jim Blandy1993-05-131-65/+40
| | | | | | | | | (display_text_line): Initialize current_face to zero. Apply it to characters as we write them to the display matrix. (display_string): Pass the new argument to copy_rope. * xdisp.c (display_text_line): Handle the locations of face changes properly.
* * textprop.c (Fnext_single_property_change,Jim Blandy1993-05-131-4/+5
| | | | | Fprevious_single_property_change): Pass arguments to textget in the right order.
* *** empty log message ***Jim Blandy1993-05-131-0/+1
|
* (child_setup): Omit duplicates from new env array.Richard M. Stallman1993-05-131-3/+27
|
* (make_lispy_event): Don't set shift modifier for C-^.Richard M. Stallman1993-05-131-1/+4
|
* (current_minor_maps): Call Findirect_function, so symbolsRichard M. Stallman1993-05-131-1/+1
| | | | can be used in place of actual maps.
* (display_text_line): Use break; to exit loop at eol.Richard M. Stallman1993-05-131-22/+46
| | | | | | Duplicate the short MAKE_GLYPH loop after the main loop. If no display table, do obey selective_display_ellipses. (copy_part_of_rope): Arg FROM is now Lisp_Object *.
* (Faccessible_keymaps): Use whatever size the vector has.Richard M. Stallman1993-05-121-4/+4
| | | | | (Fwhere_is_internal): Likewise. (describe_vector): Likewise.
* (Fx_popup_menu): Add a vector of prefix keys for the panes.Richard M. Stallman1993-05-121-14/+40
| | | | | | (keymap_panes): Allocate that vector. (single_keymap_panes): Fill in that vector. (xmenu_show): Return a list of events, not just one event.
* Initial revisionJim Meyering1993-05-111-0/+466
|
* * xdisp.c (display_text_line): We can't use the FRAME_DEFAULT_FACEJim Blandy1993-05-111-3/+2
| | | | | | | macro here; that's x-specific. Just don't pass the second argument. * xfaces.c (compute_glyph_face): Remove the BASIC_FACE argument; use F's default face.
* * xdisp.c (display_text_line): Make face-handling code conditionalJim Blandy1993-05-111-2/+5
| | | | | | | | | | | on HAVE_X_WINDOWS macro. Perhaps this isn't the best approach, but it'll do for now. * xdisp.c (display_text_line): We can't use the FRAME_DEFAULT_FACE macro here; that's x-specific. Just don't pass the second argument. * xfaces.c (compute_glyph_face): Remove the BASIC_FACE argument; use F's default face.
* * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for theJim Blandy1993-05-112-2/+36
| | | | | | filesystem being ro, since Solaris 2.1 doesn't. (file-writable-p): Call ro_fsys. * s/sol2.h (SOLARIS_BROKEN_ACCESS): Define this.
* * systime.h: Use the strategy from getdate.y to include the properJim Blandy1993-05-111-17/+3
| | | | combination of <time.h> and <sys/time.h>.
* * xfns.c (Fx_create_frame): Use an XLFD name for the default font,Jim Blandy1993-05-101-1/+6
| | | | instead of "9x15" or whatever it was.
* * s/template.h: Explain the relative significance of the SIGIO andJim Blandy1993-05-101-2/+6
| | | | INTERRUPT_INPUT macros.
* * s/sunos4shr.h: Apply changes from David J. Mackenzie; this isn'tJim Blandy1993-05-101-9/+3
| | | | | | | | | used by any configuration right now, but he's trying to make it work. #include "sunos4-1.h" instead of "bsd4-2.h". (O_NDELAY): Don't define this. (SYSTEM_MALLOC): Don't define this, either. (LD_SWITCH_SYSTEM): Remove the definition for this.
* * xdisp.c (display_text_line): Apply faces to charactersJim Blandy1993-05-101-101/+109
| | | | | | | | | | | | | | | | according to overlays and text properties; use compute_char_face and compute_glyph_face to figure out what face to use, and where a new face starts. * xterm.c (dumpglyphs): Use the upper bits of the glyphs to decide which frame face to use. Call GLYPH_FOLLOW_ALIASES to make sure we're implementing the glyph table properly. If we're not using the default or mode line face, call intern_face to find a display face for the frame face selected by the glyph code. Implement underlining. Remove the `font' argument; we have to derive this from the frame and face anyway. Change all callers. * disptab.h (GLYPH_FOLLOW_ALIASES): New macro. * xterm.c (x_destroy_window): Call free_frame_faces.
* * xfns.c (x_make_gc): After building the GC's for the frame, callJim Blandy1993-05-101-0/+2
| | | | | | | | init_frame_faces to set up the first two faces. * xfaces.c (init_frame_faces): Don't just try to copy the default and mode line faces from some other random frame; instead, consult the normal_gc and reverse_gc members of the frame, and build the faces based on their parameters.
* * xfaces.c (Fmake_face_internal): Do nothing for non-X frames.Jim Blandy1993-05-101-291/+423
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dispextern.h (struct face): Add cached_index member. * xfaces.c (get_cached_face): Use it to avoid unnecessary searches of face_vector. * xfaces.c (intern_face): Renamed from get_display_face. * xfns.c (x_make_gc): After building the GC's for the frame, call init_frame_faces to set up the first two faces. * xfaces.c (init_frame_faces): Don't just try to copy the default and mode line faces from some other random frame; instead, consult the normal_gc and reverse_gc members of the frame, and build the faces based on their parameters. Adjust the face computation functions to return frame face ID's, not pointers to display faces; since we call these functions during display construction, we don't want the display faces yet. * xfaces.c (intern_frame_face): New function. (compute_char_face, compute_glyph_face): Apply intern_frame_face to the computed face, and return the frame face's ID, instead of calling intern_face and returning a pointer to a display frame. * xfaces.c: Describe the facial data structures. It took me a while to figure them out; perhaps this will save someone else the trouble. * xfaces.c (get_display_face): Use face_eql instead of writing it out.
* Arrange to tell redisplay about changes in overlays.Jim Blandy1993-05-101-15/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | * xdisp.c (redisplay_region): New function. * buffer.c (Fmove_overlay): Call redisplay_region on the areas the overlay has enclosed or left. (Fdelete_overlay): Call redisplay_region on the area the overlay used to occupy. (Foverlay_put): Call redisplay_region on the area the overlay now occupies; we may have put a face property on it. * xdisp.c (redisplay): If we're doing a thorough redisplay (all windows on all frames involved), go ahead and flush the GC cache - call clear_face_vector. * xdisp.c (display_text_line): Apply faces to characters according to overlays and text properties; use compute_char_face and compute_glyph_face to figure out what face to use, and where a new face starts. * xterm.c (dumpglyphs): Use the upper bits of the glyphs to decide which frame face to use. Call GLYPH_FOLLOW_ALIASES to make sure we're implementing the glyph table properly. If we're not using the default or mode line face, call intern_face to find a display face for the frame face selected by the glyph code. Implement underlining. Remove the `font' argument; we have to derive this from the frame and face anyway. Change all callers. * disptab.h (GLYPH_FOLLOW_ALIASES): New macro.
* * config.h.in: Remove mention of GLYPH datatype; that shouldn't beJim Blandy1993-05-101-0/+22
| | | | | a user option. * lisp.h (GLYPH, MAKE_GLYPH, GLYPH_CHAR, GLYPH_FACE): New macros.
* * keymap.c (Fwhere_is_internal): If FIRSTONLY is non-nil, avoidJim Blandy1993-05-101-7/+50
| | | | | returning a non-ascii key sequence unless FIRSTONLY is the symbol `non-ascii'.
* * blockinput.h (UNBLOCK_INPUT): We cannot assume that SIGIO isJim Blandy1993-05-101-2/+18
| | | | | | | | | | | defined everywhere this file is #included; merge the two definitions for defined (SIGIO) and ! defined (SIGIO) into one, which calls reinvoke_input_signal if interrupt_input_pending is set. * keyboard.c (reinvoke_input_signal): New function. * keyboard.c (syms_of_keyboard): Doc fix for extra-keyboard-modifiers.
* * xdisp.c (display_text_line): Apply faces to characters accordingJim Blandy1993-05-101-0/+6
| | | | | | | | | | | | | to overlays and text properties; use compute_char_face to figure out what face to use, and where a new face starts. * xterm.c (dumpglyphs): Use the upper bits of the glyphs to decide which frame face to use. Call GLYPH_FOLLOW_ALIASES to make sure we're implementing the glyph table properly. If we're not using the default or mode line face, call intern_face to find a display face for the frame face selected by the glyph code. Implement underlining. Remove the `font' argument; we have to derive this from the frame and face anyway. Change all callers. * disptab.h (GLYPH_FOLLOW_ALIASES): New macro.
* * dispextern.h (struct face): Add cached_index member.Jim Blandy1993-05-101-0/+7
| | | | | * xfaces.c (get_cached_face): Use it to avoid unnecessary searches of face_vector.
* * config.h.in: Adjust this for use by autoconf's AC_CONFIG_HEADER,Jim Blandy1993-05-101-61/+32
| | | | | | | | instead of AC_OUTPUT. * config.h.in: Remove mention of GLYPH datatype; that shouldn't be a user option. * lisp.h (GLYPH, MAKE_GLYPH, GLYPH_CHAR, GLYPH_FACE): New macros.
* Arrange to tell redisplay about changes in overlays.Jim Blandy1993-05-101-1/+45
| | | | | | | | | | | | * xdisp.c (redisplay_region): New function. * buffer.c (Fmove_overlay): Call redisplay_region on the areas the overlay has enclosed or left. (Fdelete_overlay): Call redisplay_region on the area the overlay used to occupy. (Foverlay_put): Call redisplay_region on the area the overlay now occupies; we may have put a face property on it. * buffer.c (Fmove_overlay): Doc fix.
* * blockinput.h (UNBLOCK_INPUT): We cannot assume that SIGIO isJim Blandy1993-05-101-10/+15
| | | | | | | | defined everywhere this file is #included; merge the two definitions for defined (SIGIO) and ! defined (SIGIO) into one, which calls reinvoke_input_signal if interrupt_input_pending is set. * keyboard.c (reinvoke_input_signal): New function.
* * Makefile.in (DEFS): Remove this; we have configure build aJim Blandy1993-05-101-5/+6
| | | | | | | | | | | | config.h file directly, instead of having lots of -D flags. * Makefile.in (CFLAGS): Don't make this carry DEFS from the configure script; the coding standards say that CFLAGS should be left for the user to tweak. * Makefile.in (LN_S): New variable, edited by top Makefile. (SUBMAKEFILE): New variable, containing all flags to pass to recursive makes.
* * keyboard.c (read_char): Exit kbd macro if Vexecuting_macro is t.Jim Blandy1993-05-101-4/+17
| | | | | | | * keyboard.c (do_mouse_tracking): Now static. * keyboard.c (read_char_menu_prompt): Expect Fx_popup_menu to return a list of events. Don't lose any of them.
* [SCO]: Include time.h.Richard M. Stallman1993-05-091-2/+2
|
* (Fx_get_mouse_event, Fx_mouse_events): Code deleted.Richard M. Stallman1993-05-081-213/+0
|
* (Vmouse_event): Var deleted.Richard M. Stallman1993-05-081-18/+0
| | | | (syms_of_window): Don't make it Lisp var.
* (read_avail_input): If meta_key is 2, let 8 bits thru.Richard M. Stallman1993-05-081-6/+15
| | | | (Fset_input_mode): Set meta_key to 2 if META arg isn't t or nil.
* (x_get_arg): Call Fintern, not intern.Richard M. Stallman1993-05-071-1/+1
|
* *** empty log message ***Jim Blandy1993-05-061-0/+3
|
* Initial revisionJim Blandy1993-05-061-0/+74
|
* Comment change.Richard M. Stallman1993-05-061-1/+1
|
* (main): Handle -display like -d.Richard M. Stallman1993-05-061-1/+1
|
* (Fdisplay_buffer): Add space to prompt.Richard M. Stallman1993-05-041-1/+1
|
* * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER, CHAR_SHIFT, CHAR_CTL,Jim Blandy1993-05-041-7/+10
| | | | CHAR_META): Shift these all up one bit, back to where they were.
* Implement extra_keyboard_modifiers properly.Jim Blandy1993-05-041-17/+24
| | | | | | | | | | | | | | | | | | * keyboard.c (syms_of_keyboard): Doc fix for extra-keyboard-modifiers; use the same modifier bits as we do for characters. (read_char): Apply all the modifiers in extra_keyboard_modifiers to the input characters, so you can get hyper, super, and the rest of the gang. * xterm.c (x_emacs_to_x_modifiers): New function. (x_convert_modifiers): Renamed to x_x_to_emacs_modifiers, for consistency. Callers changed. (XTread_socket): Apply x_emacs_to_x_modifiers to extra_keyboard_modifiers before setting the state member of the event; this will get all the modifiers on ASCII characters. * xterm.c (x_text_icon): Don't call XSetIconName; it should be unnecessary, and perhaps it's killing the icon pixmap.
* Changes for Emacs 19 from Thorsten Ohl <[email protected]>:Jim Blandy1993-05-041-9/+6
| | | | | | | | | | | | | | | | | | | | * s/mach2.h: copied from the Emacs 18.59 distribution. Don't define NO_REMAP, define START_FILES as `pre-crt0.o' instead. Define LIB_MATH as `-lm', to override the default `-lm -lc' (there is no libc on the NeXT). * ymakefile (STARTFILES): Allow config.h to set this value even if ORDINARY_LINK is defined. * unexnext.c: Fix subdirectories for the machine dependent include files for NeXTStep 3.0; #include <mach/mach.h> and <mach-o/loader.h> instead of <mach.h> and <sys/loader.h>. (getsectbyname): Remove prototype for this; the system #include files take care of that. (malloc_cookie): New variable. (unexec_doit): Set malloc_cookie to the result returned by malloc_freezedry. * emacs.c (main): Declare malloc_cookie to be extern, so that we can get the value set when we dumped and pass it to malloc_jumpstart. * systime.h: The NeXT has a timezone function.
* * lisp.h (CHAR_ALT, CHAR_SUPER, CHAR_HYPER): New constants, inJim Blandy1993-05-041-12/+22
| | | | | | | | | | | | | | | | | | | case we need them. * termhooks.h (alt_modifier, super_modifier, hyper_modifier, shift_modifier, ctrl_modifier, meta_modifier): Define these in terms of the CHAR_mumble macros, to avoid having the same thing defined in two places. Make the modifier manipulation functions more robust. The old way caused a bug once, and probably would again. * termhooks.h (alt_modifier, super_modifier, hyper_modifier, shift_modifier, ctrl_modifier, meta_modifier): Shift these all down one bit in value, to avoid sign extension problems. * lisp.h (CHAR_META, CHAR_CTL, CHAR_SHIFT): Fix these definitions too. * keyboard.c (lispy_modifier_list): Ignore modifier bits beyond what our table of modifier names can handle. (apply_modifiers): Don't abort if you see extra modifier bits, just remove them.
* * systty.h (EMACS_GET_TTY, EMACS_SET_TTY): Move these intoJim Blandy1993-05-041-68/+6
| | | | | functions in sysdep.c. * sysdep.c (emacs_get_tty, emacs_set_tty): Here they are.
* * systime.h: Doc fix.Jim Blandy1993-05-041-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | (EMACS_SET_USECS): Remember that a `usec' is a microsecond, not a millisecond. What's three orders of magnitude between friends? * dispnew.c (Fsit_for, Fsleep_for): Remember to multiply the `milliseconds' argument by 1000 to get microseconds. Changes for Emacs 19 from Thorsten Ohl <[email protected]>: * s/mach2.h: copied from the Emacs 18.59 distribution. Don't define NO_REMAP, define START_FILES as `pre-crt0.o' instead. Define LIB_MATH as `-lm', to override the default `-lm -lc' (there is no libc on the NeXT). * ymakefile (STARTFILES): Allow config.h to set this value even if ORDINARY_LINK is defined. * unexnext.c: Fix subdirectories for the machine dependent include files for NeXTStep 3.0; #include <mach/mach.h> and <mach-o/loader.h> instead of <mach.h> and <sys/loader.h>. (getsectbyname): Remove prototype for this; the system #include files take care of that. (malloc_cookie): New variable. (unexec_doit): Set malloc_cookie to the result returned by malloc_freezedry. * emacs.c (main): Declare malloc_cookie to be extern, so that we can get the value set when we dumped and pass it to malloc_jumpstart. * systime.h: The NeXT has a timezone function.
* * systty.h (EMACS_GET_TTY, EMACS_SET_TTY): Move these intoJim Blandy1993-05-041-0/+138
| | | | | | | | functions in sysdep.c. * sysdep.c (emacs_get_tty, emacs_set_tty): Here they are. * sysdep.c (emacs_set_tty): Call tcsetattr over and over again until it does all of what we ask it to, or returns an error.
* * search.c (Freplace_match): Arrange for markers sitting at theJim Blandy1993-05-041-9/+17
| | | | | beginning or end of the original text to float to the corresponding position in the replacement text.