Kenichi Handa [Wed, 25 Oct 2000 11:06:51 +0000 (11:06 +0000)]
(send_process): If OBJECT is t, it means that the data
is from C string, but we should encode it. Before calling
setup_raw_text_coding_system, be sure to flush out data by the
previous coding system.
Miles Bader [Wed, 25 Oct 2000 07:16:44 +0000 (07:16 +0000)]
(widget-field-at): New function.
(widget-at, widget-field-activate): Use it.
(widget-tabable-at): Use `widget-at'.
(widget-specify-field): If the terminating character of the widget
field (which is read-only) is a newline, put it into a special
`boundary' field so that C-n/C-p act more naturally.
(widget-field-end): Also don't subtract one if a special
`boundary' field has been added after the widget field.
Miles Bader [Wed, 25 Oct 2000 05:37:15 +0000 (05:37 +0000)]
(widget-beginning-of-line, widget-end-of-line):
Replace with aliases of the normal emacs b-o-l/e-o-l functions.
(widget-field-keymap, widget-text-keymap):
Don't bind C-a/C-e.
Miles Bader [Wed, 25 Oct 2000 05:21:54 +0000 (05:21 +0000)]
(comint-output-filter, comint-send-input):
Don't bother adding stickiness fields to overlays to fool the field
code, since it should notice the overlay insertion-types now.
Miles Bader [Wed, 25 Oct 2000 05:18:10 +0000 (05:18 +0000)]
(find_field):
Set the field stickiness correctly from overlay fields.
Use renamed `text_property_stickiness'.
(text_property_stickiness):
Renamed from `char_property_stickiness'.
Stefan Monnier [Wed, 25 Oct 2000 04:42:23 +0000 (04:42 +0000)]
Use AREF, ASET and ASIZE macros.
(Fmake_sparse_keymap): Docstring fix.
(synkey): Remove.
(shadow_lookup): Move up.
Handle the case where lookup-key returns an integer.
(where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
(where_is_internal_2): Adapt to fewer args for where_is_internal_1.
(Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
Simplify/rewrite the keymap-finding code.
Add check for command shadowing, using shadow_lookup.
Gerd Moellmann [Tue, 24 Oct 2000 21:17:06 +0000 (21:17 +0000)]
Now there is a column formatting mechanism.
Modified to customization mechanisms convention. Doc fix.
(columns): New group for delim-col.
(delimit-columns-before, delimit-columns-after)
(delimit-columns-format, delimit-columns-extra, delimit-columns-start)
(delimit-columns-end): New vars.
(delimit-columns-customize, delimit-columns-format): New funs.
(delimit-columns-region, delimit-columns-rectangle)
(delimit-columns-rectangle-line): Modified to support column
formatting.
Andrew Innes [Tue, 24 Oct 2000 14:45:36 +0000 (14:45 +0000)]
(directory_files_internal_unwind): New function.
(directory_files_internal): Use it to ensure closedir is called
even if expand-file-name or file-attributes throw, eg. because of
a user interrupt. Also enable immediate_quit while calling
re_search, so that matching can be interrupted as well.
Andrew Innes [Tue, 24 Oct 2000 14:00:55 +0000 (14:00 +0000)]
(IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
NT-Emacs only.
(re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
so that re_search functions only quit when callers expect them to.
Gerd Moellmann [Tue, 24 Oct 2000 12:41:23 +0000 (12:41 +0000)]
(state_protected_p, last_state_size, last_heapinfo)
[GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
(protect_malloc_state) [GC_MALLOC_CHECK &&
GC_PROTECT_MALLOC_STATE]: New function.
(PROTECT_MALLOC_STATE): New macro.
(__malloc_initialize, morecore, _malloc_internal)
(_free_internal) _realloc_internal): Use it to make _heapinfo
read-only outside of gmalloc.
Gerd Moellmann [Tue, 24 Oct 2000 12:27:45 +0000 (12:27 +0000)]
(widget-field-keymap, widget-text-keymap): Define
the tool-bar map as nil, as for the menu-bar. Otherwise, we'll
get duplicate tool-bar entries because we'll see the global ones
on more than one path through keymaps.
Andrew Choi [Mon, 23 Oct 2000 17:49:59 +0000 (17:49 +0000)]
Andrew Choi <akochoi@i-cable.com>
* international/mule-conf.el (mac-roman-lower, mac-roman-upper):
New charsets.
* term/mac-win.el: Remove definitions of mac-roman-lower and
mac-roman-upper, require dired, and define instead of set
mac-ready-for-drag-n-drop to avoid compilation error.
* src/macterm.c (XTread_socket): check whether Lisp variable
mac-ready-for-drag-n-drop is bound rather than non-nil value.
Andrew Innes [Mon, 23 Oct 2000 17:40:16 +0000 (17:40 +0000)]
(make-backup-file-name-1) [windowsnt, ms-dos]: Remove
superfluous calls to subst-char-in-string; instead apply
expand-file-name after convert-standard-filename to ensure
expected directory separators are used.
Dave Love [Mon, 23 Oct 2000 17:24:54 +0000 (17:24 +0000)]
(imenu--create-keymap-2): Build menu with menu-item
using :key-sequence, making it much more usable. Use nconc, not
append.
(imenu--create-keymap-1): Avoid append.
Miles Bader [Mon, 23 Oct 2000 09:16:47 +0000 (09:16 +0000)]
[the following changes fix a bug where `define-minor-mode' didn't
correctly generate :require clauses for defcustoms in compiled files]
(byte-compile-last-logged-file):
New variable.
(byte-compile-log-file, byte-compile-log-1):
Don't set `byte-compile-current-file' to nil.
Instead set `byte-compile-last-logged-file' to it.
Test whether byte-compile-current-file equals byte-compile-last-logged-file
instead of whether its nil.
Miles Bader [Mon, 23 Oct 2000 05:37:24 +0000 (05:37 +0000)]
(woman-italic-face, woman-bold-face, woman-unknown-face):
Add dark-background variants.
(woman-default-faces):
Renamed from `woman-colour-faces'.
Set using the stored defaults, rather than using hard-wired colors.
(woman-monochrome-faces):
Renamed from `woman-black-faces'.
Just make the foreground `unspecified' rather than "black".
(woman-menu):
Rename menu entries accordingly.
Andrew Choi [Sun, 22 Oct 2000 16:50:16 +0000 (16:50 +0000)]
Initial check-in: changes for building Emacs under Mac OS.
2000-10-23 Andrew Choi <akochoi@i-cable.com>
* dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
* dispnew.c [macintosh]: Include macterm.h.
(init_display) [macintosh]: initialization for window system.
* emacs.c (main) [macintosh]: Call syms_of_textprop,
syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
syms_of_search, x_term_init, and init_keyboard before calling
init_window_once. Also, call syms_of_xmenu.
* fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
default fontset to Monaco.
* frame.c [macintosh]: Include macterm.h. Remove declarations of
NewMacWindow and DisposeMacWindow.
(make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
instead of calling NewMacWindow and setting fields of
f->output_data.mac directly. Call init_frame_faces.
(Fdelete_frame) [macintosh]: Remove unused code.
(Fmodify_frame_parameters) [macintosh]: Call
x_set_frame_parameters instead of mac_set_frame_parameters.
* frame.h [macintosh]: Define menu_bar_lines field in struct
frame. Define FRAME_EXTERNAL_MENU_BAR macro.
* keyboard.c [macintosh]: Include macterm.h.
(kbd_buffer_get_event) [macintosh]: Generate delete_window_event
and menu_bar_activate_event type events as for X and NT.
(make_lispy_event) [macintosh]: Construct lisp events of type
MENU_BAR_EVENT as for X and NT.
* sysdep.c [macintosh]: Remove declaration for sys_signal.
Include stdlib.h. Remove definition of Vx_bitmap_file_path.
(sys_subshell) [macintosh]: Remove definition entirely.
(init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
Vwindow_system_version here. Remove initialization of
Vx_bitmap_file_path.
(read_input_waiting): Correct the number of parameters passed to
read_socket_hook.
Move all Macintosh functions to mac/mac.c.
* term.c [macintosh]: Include macterm.h.
* window.c [macintosh]: Include macterm.h.
* xdisp.c [macintosh]: Include macterm.h. Declare
set_frame_menubar and pending_menu_activation.
(echo_area_display) [macintosh]: Do not return if terminal frame
is the selected frame.
(update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
Allow only the selected frame to set menu bar.
(redisplay_window) [macintosh]: Obtain menu bar to redisplay by
calling FRAME_EXTERNAL_MENU_BAR (f).
(display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
* xfaces.c [macintosh]: Include macterm.h. Define x_display_info
and check_x. Declare XCreateGC. Define x_create_gc and
x_free_gc. Initialize font_sort_order.
(x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
but call x_list_fonts instead of w32_list_fonts.
(Finternal_face_x_get_resource) [macintosh]: Do not call
display_x_get_resource.
(prepare_face_for_display) [macintosh]: Set xgcv.font.
(realize_x_face) [macintosh]: Load the font if it is specified in
ATTRS.
(syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
to Qt.
* cus-edit.el (custom-button-face): Use 3D look for mac.
(custom-button-pressed-face): Likewise.
* faces.el (set-face-attributes-from-resources): Handle mac frames
in the same way as x and w32 frames.
(face-valid-attribute-values): Likewise.
(read-face-attribute): Likewise.
(defined-colors): Likewise.
(color-defined-p): Likewise.
(color-values): Likewise.
(display-grayscale-p): Likewise.
(face-set-after-frame-default): Likewise.
(mode-line): Same default face as for x and w32.
(tool-bar): Likewise.
* frame.el: Remove call to frame-notice-user-settings at end of
the file.
* info.el (Info-fontify-node): make underlines invisible for mac
as for x, pc, and w32 frame types.
André Spiegel [Sun, 22 Oct 2000 15:37:51 +0000 (15:37 +0000)]
(vc-checkout): Added `-p' suffix in call to vc-make-version-backups-p;
use vc-make-version-backup to actually make the backup.
(vc-version-other-window, vc-version-backup-file): Handle both
automatic and manual backups.
(vc-revert-file): Use vc-delete-automatic-version-backups to get rid
of all of them.