1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 11:21:04 -08:00
Commit graph

9604 commits

Author SHA1 Message Date
Eli Zaretskii
5033894e97 (last_clipboard_text, clipboard_storage_size): New
static variables.
(set_clipboard_data): Save a copy of the text we put into
clipboard in last_clipboard_text.
(get_clipboard_data): If the clipboard text is identical to what
last_clipboard_text holds, pretend there's no data in the
clipboard.
1999-02-04 15:53:37 +00:00
Richard M. Stallman
fc9b48d7f3 (NLIST_STRUCT): Add #undef. 1999-02-04 04:48:24 +00:00
Eli Zaretskii
ba92a4701a Fix last change. 1999-02-03 16:40:32 +00:00
Eli Zaretskii
c759462781 (Fw16_set_clipboard_data): When the text needs to be
encoded, set its pointer and size as returned by encode_coding.
1999-02-03 14:53:47 +00:00
Kenichi Handa
2db66414f1 (Fset_char_table_default): To handle the case that CH is
an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
1999-02-03 02:20:53 +00:00
Andrew Innes
247be83704 (syms_of_w32fns): Change default value of w32-mouse-move-interval to
0, so that the mouse wheel/rocker on some mice works properly.
1999-02-02 14:03:10 +00:00
Eli Zaretskii
0236e3f151 (set_clipboard_data): Correctly null-terminate the
string to be put into the Windows clipboard.  Use xbuf_addr.
1999-02-02 13:43:14 +00:00
Geoff Voelker
e6c0f51910 Use full path to temacs.exe when dumping. 1999-02-02 02:59:29 +00:00
Richard M. Stallman
6e553d5e6c (Fset_buffer_multibyte): Error if buffer is multibyte. 1999-02-01 11:17:41 +00:00
Andrew Innes
7fef47a389 (ROUND_UP_DST_AND_ZERO): New macro.
(copy_executable_and_dump_data): Use it to ensure alignment slop
is zeroed.
1999-01-31 21:53:14 +00:00
Richard M. Stallman
e90c4fe62a (Fset_window_point): If WINDOW is selected but the
current buffer is not its buffer, don't use Fgoto_char.
1999-01-30 23:45:54 +00:00
Andrew Innes
aa7b87b0b2 (init_environment): Change argv[0] to contain the full path to Emacs. 1999-01-30 18:48:57 +00:00
Andrew Innes
a3a58294d8 (main): Pass argv to init_environment. 1999-01-30 18:47:52 +00:00
Kenichi Handa
d5749adb29 (x_load_font): For the height of font, if normarl ascent and
descent value are larger than those in max_bounds field, use the
former.
1999-01-30 02:37:14 +00:00
Kenichi Handa
715a159be2 (x_new_fontset): For ASCII font, don't use the font name
returned by x_new_font (the resolved one) but use the font name
set in the fontset specification.
1999-01-30 01:46:35 +00:00
Eli Zaretskii
302f2b38d0 (decode_mode_spec_coding): Fix previous change. 1999-01-28 16:30:23 +00:00
Geoff Voelker
5ca0cd71d3 (w32_load_system_font): Do not load unlisted fonts if
list was reliable.
(enum_fontex_cb1, enum_fontex_cb2): New functions.
(w32_list_bdf_fonts): New parameter; max_names.  Callers updated.
(w32_list_synthesized_fonts): New function.
(w32_list_fonts): Use maxnames.  Use EnumFontFamiliesEx when
available instead of EnumFontFamilies.  List synthesized fonts if
Vw32_enable_italics is non-nil.
1999-01-28 04:52:02 +00:00
Richard M. Stallman
5878523b19 (x_set_frame_parameters): gcpro as needed. 1999-01-28 04:01:44 +00:00
Richard M. Stallman
35fc36a16b (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Don't complain if ttcompat does not exist.
1999-01-28 03:49:39 +00:00
Andrew Innes
576ba81cd4 (w32_wnd_proc): Fix bug introduced by previous change;
the lwindow, rwindow and apps keys could not be used as function
keys, because they were being passed to TranslateMessage which
ignores them.  Also, key was being changed to SPC.
1999-01-27 21:53:27 +00:00
Andrew Innes
27d3ec7f87 Do make version comparison as strings. 1999-01-27 21:49:57 +00:00
Eli Zaretskii
20ee919eb4 eol-mnemonic-* variables are now strings, not characters. 1999-01-27 10:09:55 +00:00
Eli Zaretskii
7722baf9b3 (syms_of_coding): eol-mnemonic-* variables are now
strings, not characters.
1999-01-27 10:08:13 +00:00
Eli Zaretskii
d24715e869 (decode_mode_spec_coding): Display the EOL type as a string. 1999-01-27 10:06:21 +00:00
Richard M. Stallman
7e8e59d0cd (main): Up-date copyright. 1999-01-26 22:09:40 +00:00
Dave Love
94c7a21474 (syms_of_coding): Doc fix for inhibit-eol-conversion. 1999-01-25 19:00:50 +00:00
Andreas Schwab
bfa8ca433a (Fsignal): Move comment to avoid confusing make-docfile. 1999-01-25 09:20:43 +00:00
Richard M. Stallman
7589a1d97e (x_set_frame_parameters): gcpro as needed. 1999-01-25 01:37:58 +00:00
Dave Love
c0218e1b54 Comment about unibyte. 1999-01-24 22:37:36 +00:00
Richard M. Stallman
0afc861ba9 (read_key_sequence): Fix previous change. 1999-01-24 20:08:10 +00:00
Richard M. Stallman
cf591cc18b (same_x_server): Detect treat ":0" and "unix:0"
as the same.  Treat "myname:0" as the same as those two.
1999-01-24 20:07:05 +00:00
Richard M. Stallman
e18e6130fa (x_handle_selection_clear): Don't clear the
selection if Emacs still owns it through a different display.
1999-01-24 20:06:34 +00:00
Karl Heuer
ccf89641df (scan_sexps_forward): Delete duplicate code
to set prev_from_syntax, above start of main loop.
At startinstring, check syntax when checking for a match.
1999-01-22 21:57:43 +00:00
Geoff Voelker
33d52f9c45 (Vw32_bdf_filename_alist): New variable.
(x_destroy_bitmap): Returns void not int.
(x_set_border_pixel): Returns void.
(w32_load_bdf_font): New function.
(w32_load_system_font): New function, was w32_load_font.  List
fonts before loading.  Explicitly set encoding for SJIS fonts.
Set default_ascent to 0 as comment indicates.
(w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
(w32_unload_font): Support BDF fonts.
(w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
Autodetect whether to use koi8-r instead of iso8859-5.
Associate "ksc5601.1987" with HANGUEL_CHARSET.
Associate "ksc5601.1992" with JOHAB_CHARSET.
(x_to_w32_charset): Make consistent with w32_to_x_charset.
(w32_to_x_font): Add resolution.
(x_to_w32_font): Use font resolution to calculate height if supplied.
(w32_font_match): Handle wildcards anywhere within field.
(enumfont_t): Remove unused head pointer.
(enum_font_cb2): Dereference elfLogFont.
(w32_list_bdf_fonts): New function.
(w32_list_fonts): Use one_w32_dispay_info instead of insisting on
valid frame.  Remove MessageBox.  Support BDF fonts.
(Fw32_find_bdf_fonts): New function.
(syms_of_w32fns): Add Vw32_bdf_filename_alist and
Sw32_find_bdf_fonts.
1999-01-22 19:59:22 +00:00
Geoff Voelker
65c4903c49 (W32_TEXTOUT): New macro.
(dumpglyphs): Support BDF fonts.  Use W32_TEXTOUT macro.
Simplify baseline calculation.  Detect SJIS by font, not glyph.
Call SetTextAlign.
(syms_of_w32term): Remove "jisx0212-sjis" from
w32-charset-to-codepage-alist.
Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
Add "ksc5601.1992' to w32-charset-to-codepage-alist.
1999-01-22 19:58:37 +00:00
Geoff Voelker
25d9ec8cc4 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
Support BDF fonts.
1999-01-22 19:58:23 +00:00
Geoff Voelker
640ea3c512 Include w32bdf.h.
(W32FontStruct) Add bdf element.
1999-01-22 19:58:10 +00:00
Geoff Voelker
f0cd15b5cd Add w32bdf.c and w32bdf.h. 1999-01-22 19:58:01 +00:00
Geoff Voelker
7b416d4284 Initial revision 1999-01-22 19:42:26 +00:00
Andrew Innes
15682d2416 (temacs): Use del to delete file, not rm. 1999-01-21 12:12:24 +00:00
Geoff Voelker
a1b9438c25 Remove codepage macros. Remove redundant BIG5 macros.
(dumpglyphs): Move definitions out of block containing goto.
Remove redundant code for BIG5.
Use w32_codepage_for_font instead of
w32_codepage_for_charset.  Add cast to int where float
operation is assigned to int.
(Vw32_charset_to_codepage_alist): New variable.
(w32_codepage_for_charset): Removed.
(w32_codepage_for_font): New function, replacing
w32_codepage_for_charset.
(syms_of_w32term): Add and initialize
w32-charset-to-codepage-alist.
1999-01-19 22:25:33 +00:00
Geoff Voelker
a4e691eeeb (x_to_w32_charset): Add iso8859-9.
(w32_to_x_charset): Fix charset mappings.
1999-01-19 22:25:08 +00:00
Richard M. Stallman
27c3b45d28 (re_match_2_internal) [WINDOWSNT & emacs]: Insert QUIT at various places. 1999-01-19 03:24:03 +00:00
Andrew Innes
a7325b562f (w32_executable_type): Relax the check to identify
cygwin-compiled applications, because the exact dll name varies
with release.  Now only require the name to start "cygwin".
1999-01-17 19:24:42 +00:00
Andrew Innes
a5352d98bb (ROUND_UP):
(ROUND_DOWN): New macros.
(need_to_recreate_heap): Renamed to using_dynamic_heap.
(init_heap): New extern.
(data_region_size):
(recreate_heap):
(read_in_bss):
(map_in_heap):
(round_to_next):
(w32_fatal_reload_error):
(get_section_size): Obsolete externs removed.
1999-01-17 19:23:52 +00:00
Andrew Innes
30d2b1c27b (RVA_TO_PTR): Redefine to convert RVA to address in
current process.
(round_to_next): Obsolete function removed.
(preload_heap_section): New variable.
(data_region_size): Obsolete variable removed.
(allocate_heap): Modified to determine end of static heap section
used during preload, and use that as initial base address for
dynamic heap instead of hard-coded value.
(sbrk): Remove call to allocate_heap; handled by init_heap.  Skip
calls to commit or decommit pages when allocating from static heap
section during preload.
(recreate_heap): Obsolete function removed.
(init_heap): New function to initialize internal sbrk heap
variables.  Uses static heap section during preload, otherwise
calls allocate_heap to reserve a heap region dynamically.
(round_heap): Use ROUND_UP macro instead of round_to_next.
1999-01-17 19:22:55 +00:00
Andrew Innes
5b79dba5b9 Major rewrite to support cleaner method of dumping; a
static "bss" section is used for heap space during preload, and
bss data is now written to the proper section area when dumping.
(need_to_recreate_heap): Renamed to using_dynamic_heap.
(heap_index_in_executable): Obsolete variable removed.
(data_section): New variable.
(data_start_va): Renamed to data_start.
(data_start_file): Obsolete variable removed.
(bss_section):
(extra_bss_size):
(bss_section_static):
(bss_start_static):
(bss_size_static):
(extra_bss_size_static):
(heap_section): New variables.
(_start): Remove code based on old unexec method.  Call init_heap
to initialize sbrk heap.
(close_file_data): Update size of file when closing, so that
unexec doesn't have to work out exact size in advance.
(get_bss_info_from_map_file):
(get_section_size): Obsolete functions removed.
(rva_to_section): Fix minor bug, and add a work-around for a bug
in very old linkers.
(offset_to_section):
(relocate_offset): New functions.
(OFFSET_TO_RVA):
(RVA_TO_OFFSET):
(RVA_TO_SECTION_OFFSET):
(PTR_TO_RVA):
(PTR_TO_OFFSET):
(OFFSET_TO_PTR): New macros.
(get_section_info): Modify to support new unexec method;
determines address ranges in process that need dumping, and COFF
sections where data will be dumped.  Allows for static and global
bss data to be in separate ranges.  No longer relies on knowledge
of section names.
(copy_executable_and_dump_data_section): Renamed
copy_executable_and_dump_data.  Completely rewritten to copy
executable section by section, so that raw data areas can be
expanded to hold dumped data as necessary.  Allows for bss data to
be in same section as initialized data.  Reduces size of static
heap section to that used during preload.
(dump_bss_and_heap):
(w32_fatal_reload_error):
(read_in_bss):
(map_in_heap): Obsolete functions removed.
(unexec): Rounds off preload heap to nearest page rather than
virtual allocation unit.  Modified to match other changes.
1999-01-17 19:21:24 +00:00
Andrew Innes
3bc2366f3c (get_lim_data): Use reserved_heap_size instead of
data_region_size.
1999-01-17 19:18:38 +00:00
Andrew Innes
ea01f00222 (TEMACS_TMP): New macro.
($(TEMACS)): Output to TEMACS_TMP from link, use post-link
processor to add static heap section in support of new unexec.
1999-01-17 19:17:43 +00:00
Andrew Innes
cfe8de4370 Include config.h to pick up data layout pragmas.
[WINDOWSNT]: Remove explicit pragma.
1999-01-17 19:16:08 +00:00