Commit graph

17675 commits

Author SHA1 Message Date
Luc Teirlinck
adb0708c03 (read_minibuf): Allow INITIAL to be a cons of a string and an integer.
Adapt the docstring accordingly.
(Fread_from_minibuffer): Delete code moved into read_minibuf.
Doc fix.
(Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
read_minibuf.
(Fcompleting_read): Delete code moved into read_minibuf.
(Ftest_completion): Make it handle obarrays and hash tables correctly.
2003-12-23 22:22:49 +00:00
Kenichi Handa
2e4d132b1c *** empty log message *** 2003-12-03 08:33:20 +00:00
Kenichi Handa
47dc91adce (decode_coding_iso2022): Fix for preserving UTF-8
encoding sequence.
2003-12-03 08:23:53 +00:00
Kenichi Handa
3999c70516 *** empty log message *** 2003-12-01 13:06:41 +00:00
Kenichi Handa
1ace9906b3 (syms_of_composite): Don't make the compostion hash table week. 2003-12-01 12:33:13 +00:00
Luc Teirlinck
d344ecbbae *** empty log message *** 2003-11-30 17:51:56 +00:00
Luc Teirlinck
47b54808f1 Add EXFUN for Fget_char_property_and_overlay. 2003-11-30 17:12:40 +00:00
Luc Teirlinck
97a1bc6376 (Fget_char_property_and_overlay): New function.
(syms_of_textprop): Defsubr it.
2003-11-30 17:08:28 +00:00
Jan Djärv
019b1f0e33 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
to compile on terminal configuration.
2003-11-29 11:10:07 +00:00
Jan Djärv
03d6484ea4 Add variable use-file-dialog to control use of file dialogs. 2003-11-29 10:44:36 +00:00
Kim F. Storm
442d3fd048 (Qcursor_type, Qbar, Qhbar): Declare extern.
(syms_of_msdos): Don't intern and staticpro them.
2003-11-28 23:07:13 +00:00
Kim F. Storm
0f6a07a85a *** empty log message *** 2003-11-27 21:53:51 +00:00
Kim F. Storm
f65536faef (Vdisplay_pixels_per_inch): New variable.
(Vshow_text_cursor_in_void): New variable.
(glyph_to_pixel_coords): Don't use negative hpos.
(x_y_to_hpos_vpos): Fix for partially visible first glyph.
(append_stretch_glyph): Change ascent arg to be actual value
in pixels rather than ratio to height. Callers changed.
(calc_pixel_width_or_height): New aux function, implementing
pixel based artihmetic for glyph widths and heights.
(produce_stretch_glyph): Use calc_pixel_width_or_height for
:width, :height, :align-to, and :ascent, thus allowing these to
be specified in pixels as well as multiples of characters.
Don't produce stretch glyphs with zero width or height.
(get_specified_cursor_type): Declare static.
(get_window_cursor_type): Declare static.  Add glyph arg to be
able to know when cursor is on an image; always substitute
hollow-box cursor for filled-box cursor on images, to avoid
negative images and flicker when blinking the cursor.
(display_and_set_cursor): Pass glyph to	get_window_cursor_type.
(note_mode_line_or_margin_highlight): Use non-text cursor rather
than vertical scroll-bar cursor in display margins.
(note_mouse_highlight): Use non-text cursor rather than text
cursor in fringes and over images in the text area.
Use non-text cursor when mouse pointer is outside editable text,
i.e. in the void after end-of-line or end-of-buffer; this was
already done for W32, but is now standard for all systems --
user can toggle show-text-cursor-in-void to get old behaviour.
(syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
Vdisplay_pixels_per_inch.
2003-11-27 21:17:23 +00:00
Kim F. Storm
1365f3435e (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines. 2003-11-27 21:16:36 +00:00
Kim F. Storm
45de137aed (make_lispy_position): Add x and y coordinates
relative to the current glyph as 7th element of position.
If glyph is an image, return it in the object element.
(read_key_sequence): Skip checks for keymap property in cases
where POSN_STRING is not a string (e.g. an image).
2003-11-27 21:16:26 +00:00
Kim F. Storm
8cef763f8c (get_specified_cursor_type, get_window_cursor_type):
Remove prototypes.
2003-11-27 21:16:04 +00:00
Kim F. Storm
2d4aac37dc (buffer_posn_from_coords): Calculate and return pixel
coordinates relative to glyph at posn.  If glyph is an image,
return that as object at posn.  Callers changed.
(mode_line_string, marginal_area_string): Calculate and return
pixel coordinates relative to glyph.  Callers changed.
2003-11-27 21:15:53 +00:00
Kim F. Storm
58df72561d (buffer_posn_from_coords, mode_line_string)
(marginal_area_string): Fix prototypes.
(window_box_left_offset, window_box_right_offset): Add prototypes.
2003-11-27 21:12:12 +00:00
Andreas Schwab
00498bfc92 (internal_equal) <case Lisp_Vectorlike>: Declare size as
EMACS_INT to not lose bits.
(Ffillarray): Don't set bits beyond the size of a bool vector.
2003-11-25 12:22:08 +00:00
Kim F. Storm
95e52d8888 (Fredirect_debugging_output) [!GNU_LINUX]: Do not
define this defun on systems that cannot use stderr as lvalue.
2003-11-25 09:48:15 +00:00
Kim F. Storm
edaa824da3 *** empty log message *** 2003-11-25 09:47:57 +00:00
Gerd Moellmann
74d6f539ad (LD_SWITCH_SYSTEM_TEMACS)
[__FreeBSD_version >= 500042]: Define as -znocombreloc because
ld's default is incompatible with unexec.
2003-11-24 13:13:14 +00:00
Kim F. Storm
63dc7c6bf8 *** empty log message *** 2003-11-23 21:47:50 +00:00
Kim F. Storm
e661376d0b (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
(window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
(Fforce_window_update): New defun.
(syms_of_window): Defsubr it.
(Fset_window_margins, Fset_window_fringes): Doc fix.
2003-11-23 21:47:24 +00:00
Kim F. Storm
6a1ff3ba09 (Fredirect_debugging_output): New defun.
(syms_of_print): Defsubr it.
2003-11-23 21:29:45 +00:00
Luc Teirlinck
c541e2a0b9 (Fset_char_table_parent): Doc fix. 2003-11-23 03:12:45 +00:00
Luc Teirlinck
aef109b7d5 *** empty log message *** 2003-11-23 03:10:57 +00:00
Kim F. Storm
72e72a1468 (note_mode_line_or_margin_highlight): Adapt to new
mode_line_string and marginal_area_string parameters.
2003-11-23 00:10:40 +00:00
Kim F. Storm
0de01dfe8a (coordinates_in_window): Remove redundant tests.
Fix returned X pixel value for left-margin.
2003-11-23 00:10:08 +00:00
Kim F. Storm
3d56670718 (make_lispy_position): New function for generating
mouse click positions from frame and pixel coordinates.
Enhanced to return buffer position and actual row/column for
events outside the text area using updated mode_line_string and
marginal_area_string functions.
Return left-fringe and right-fringe clicks as such, rather than
clicks in text area.
(make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
pixel_to_glyph_coords, as we never use the results.
(make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
Eliminate unused code in WHEEL_EVENT handling.
(make_lispy_movement): Use make_lispy_position.
2003-11-23 00:09:39 +00:00
Kim F. Storm
ba922d0c08 (buffer_posn_from_coords): Return actual row/column
for glyph clicked on, rather than (unused) pixel positions.
(mode_line_string, marginal_area_string): Change X and Y args to
pointers for returning actual row/column for glyph clicked on.
Simplify and optimize loops.
2003-11-23 00:09:19 +00:00
Kim F. Storm
50a3403767 (mode_line_string, marginal_area_string): Update prototypes. 2003-11-23 00:09:00 +00:00
Kim F. Storm
63ccbe215a Enhance and consolidate mouse event handling. 2003-11-23 00:08:23 +00:00
Lars Hansen
930a9995bd *** empty log message *** 2003-11-22 23:01:39 +00:00
Lars Hansen
3d19b64595 (struct the_group): Added.
(getgrgid): Added.
2003-11-22 23:01:18 +00:00
Lars Hansen
49e7a2c0b1 (struct my_group): Added.
(getgrgid): Added.
2003-11-22 23:00:59 +00:00
Luc Teirlinck
3dbf3426f2 *** empty log message *** 2003-11-22 14:09:13 +00:00
Luc Teirlinck
aa1b3f2e18 (Fassq, Fassoc, Frassq, Frassoc): Doc fixes. 2003-11-22 03:48:24 +00:00
Luc Teirlinck
ded4064fe9 *** empty log message *** 2003-11-22 03:42:24 +00:00
Lars Hansen
cae8ddbb46 *** empty log message *** 2003-11-21 18:28:07 +00:00
Lars Hansen
0e6195edf7 (Ffile_attributes): Parameter ID-FORMAT added and included in call to file
name handler. Numeric UID and GID optionally translated to strings. Docstring updated.
(directory_files_internal): Parameter ID-FORMAT added.
(Fdirectory_files_and_attributes): Parameter ID-FORMAT added and included in call to
file name handler and call to directory_files_internal. Docstring updated.
(Fdirectory_files): Dummy parameter added in call to directory_files_internal.
2003-11-21 18:27:51 +00:00
Lars Hansen
9ab301de54 (Qinteger): Added.
(Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Removed.
(Ffile_attributes): Parameter added.
2003-11-21 18:27:05 +00:00
Lars Hansen
aae13d3664 (Qinteger): Exported. 2003-11-21 18:26:21 +00:00
Luc Teirlinck
cb8a2fd881 (Freverse): Doc fix.
(Fnreverse): Doc fix.
2003-11-21 15:58:15 +00:00
Luc Teirlinck
2550b848c7 *** empty log message *** 2003-11-21 15:55:07 +00:00
Kim F. Storm
29b3ea63f2 (init_iterator): Initialize it->start to position
before reseating (in case start position is invisible).
(init_to_row_start): Set it->start to row-start.
(redisplay_window): Accept optional_new_start if start position
is invisible (in which case IT_CHARPOS overshoots PT).
(display_line): Setup row->start from it->start (rather than
it->current which is wrong if first char on line is invisible).
When done, reseat it->start to it->current (= start of next row).
(expose_area): Fix exposure of text area when first char (e.g. TAB)
is only partially visible.
2003-11-18 23:44:11 +00:00
Kim F. Storm
674351829a (struct it): New member start. 2003-11-18 23:42:40 +00:00
Kim F. Storm
883800183c *** empty log message *** 2003-11-18 23:42:12 +00:00
Stefan Monnier
a06681266b (make_float, Fcons): Clear the markbit at init time.
(make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
of block_index outside of the macro call.
(Fgarbage_collect): Remove null code.
2003-11-18 00:39:13 +00:00
Stefan Monnier
8d0485fad7 (XPNTR): Don't redefine. 2003-11-18 00:17:42 +00:00