Richard M. Stallman [Thu, 11 Mar 1993 07:48:36 +0000 (07:48 +0000)]
(x_frame_parms): Add elts for visibility and menu-bar-lines.
(enum x_frame_parm): Likewise.
(x_set_menu_bar_lines, x_set_menu_bar_lines_1): New functions.
(x_set_visibility): New function.
(Fx_create_frame): Handle menu-bar-lines parm.
(Fframe_parameters): Report menu-bar-lines parm.
(syms_of_frame): Set up Qmenu_bar_lines.
Jim Blandy [Thu, 11 Mar 1993 07:17:54 +0000 (07:17 +0000)]
* textprop.c (Fadd_text_properties): Initialize the modified flag.
Use a "for (;;)" loop at the end of the function, to indicate that
all exiting is taken care of inside the loop.
(Fremove_text_properties): Same.
Jim Blandy [Thu, 11 Mar 1993 07:16:39 +0000 (07:16 +0000)]
* syssignal.h (sigunblock): Add definition which works under SYSVr4.
* emacs.c (fatal_error_signal): Unblock the signal which we're
handling using sigunblock.
Jim Blandy [Thu, 11 Mar 1993 07:13:06 +0000 (07:13 +0000)]
* emacs.c (__do_global_ctors, __do_global_ctors_aux,
__do_global_dtors, __CTOR_LIST__, __DTOR_LIST__, __main): Don't
define these if ORDINARY_LINK is #defined; in that case, the
standard linking procedure will find definitions for these.
* emacs.c (main): SIGIOT isn't defined on all systems; don't set
its signal handler unless it is.
Jim Blandy [Thu, 11 Mar 1993 07:11:06 +0000 (07:11 +0000)]
* s/usg5-4.h: Changes from Eric Raymond:
If we're doing ordinary linking, define LIB_STANDARD appropriately.
Give LIBS_DEBUG a null definition; usg5-4 has no -lg.
#define LIBS_STANDARD as "-lc"; usg5-4 has no -lPW.
#define NSIG, if it's not already defined.
#define HAVE_TERMIOS instead of HAVE_TCATTR.
Provide our own definition of LIB_X11_LIB.
Jim Blandy [Thu, 11 Mar 1993 07:05:23 +0000 (07:05 +0000)]
* simple.el (yank, yank-pop): Always return nil; don't rely on
exchange-point-and-mark to return nil.
* fill.el (justify-current-line): Return nil, to be sure to
conform with documentation.
Jim Blandy [Thu, 11 Mar 1993 07:04:44 +0000 (07:04 +0000)]
* files.el (basic-save-buffer): If file-precious-flag is set, and
we write the buffer to a temp file and then rename it, don't
neglect to set the new file's modes properly.
Jim Blandy [Thu, 11 Mar 1993 07:03:57 +0000 (07:03 +0000)]
* calendar.el (hebrew-calendar-yahrzeit): Change reference to
nonexistent function last-month-of-hebrew-year to the correct
function hebrew-calendar-last-month-of-year.
Jim Blandy [Thu, 11 Mar 1993 07:01:17 +0000 (07:01 +0000)]
* term/x-win.el: Disable suspending under X windows by setting
suspend-hooks, not suspend-hook. The latter is an obsolete name.
Use add-hook instead of setting suspend-hooks directly.
Richard M. Stallman [Wed, 10 Mar 1993 05:34:06 +0000 (05:34 +0000)]
Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
(struct emacs_tty): Separate the struct decl
from the EMACS_..._TTY... macro definitions.
Use HAVE_TCATTR to decide whether to use `struct termios'.
Richard M. Stallman [Wed, 10 Mar 1993 05:24:42 +0000 (05:24 +0000)]
(Fdefine_key): Use proper meta-bit to clear.
(access_keymap): Handle ints beyond the ASCII range.
(store_in_keymap): Likewise.
(Faccessible_keymaps): Use meta_modifier.
Use vectors for the key sequences.
(Fwhere_is_internal): Use meta_modifier.
(append_key): Always return a vector.
Richard M. Stallman [Tue, 9 Mar 1993 08:08:52 +0000 (08:08 +0000)]
(rmail-update-summary): New function.
(rmail-new-summary): New arg redo-form. Considerable rewrite
of how and when buffers are selected.
(rmail-summary-mode): New local vars rmail-summary-redo,
revert-buffer-function, post-command-hook, rmail-current-message.
(rmail-summary-expunge): Use rmail-update-summary.
(rmail-summary-get-new-mail): Likewise.
(rmail-summary-expunge-and-save): Likewise.
(rmail-summary-input): Don't update summary at all.
(rmail-summary-reply): Do the work inside save-window-excursion,
then switch to the mail buffer.
(rmail-summary-retry-failure): Likewise.
(rmail-summary-edit-current-message): Delete spurious autoload.
(rmail-summary-summary): Function deleted.
Use plain rmail-summary on h and C-M-h.
(rmail-summary-rmail-update): New function.
Richard M. Stallman [Tue, 9 Mar 1993 08:08:13 +0000 (08:08 +0000)]
(rmail-delete-forward): Go to summary buf to change D mark.
Always do the motion in the rmail buffer; let that handle summary.
(rmail-undelete-previous-message): Likewise.
(rmail-select-summary): New macro.
(rmail-show-message): Use rmail-select-summary.
(rmail-get-new-mail): Likewise.
(rmail-expunge): Likewise.
(rmail-bury): Record Rmail buffer to bury it later.
Major changes from Bob Weiner <weiner@pts.mot.com>
Handle some Emacs 18 function names to run in 18.
This is to facilitate working with Weiner.
(rmail-reply-prefix): New variable.
(rmail-reply): Use that variable to add to subject.
(rmail-retry-failure): Change binding to M-m.
(rmail-forward): Look for >From as well as for From.
Handle case where neither is found.
(rmail-last-regexp): New variable.
(rmail-mode): Make rmail-last-regexp local.
(rmail): Don't update rmail-mode data for old buffer
if it's not in rmail mode.
Error if in Rmail Edit mode.
(rmail-bury): New command, plus key binding.
(rmail-summary-by-topic): New key binding.
(rmail-insert-inbox-text): Check for pop case earlier.
(rmail-convert-to-babyl-format): Handle Content-Length field.
(rmail-maybe-display-summary): New function.
(rmail-redisplay-summary): New user option.
(rmail-undelete-previous-message, rmail-delete-forward):
(rmail-get-new-mail, rmail-show-message): Update summary buffer if any.
Call rmail-maybe-display-summary to put it back on screen.
(rmail-only-expunge): Renamed from rmail-expunge.
(rmail-expunge): New function.
(rmail-message-recipients-p, rmail-message-regexp-p): New functions.
(rmail-summary-exists, rmail-summary-displayed): New functions.
Richard M. Stallman [Mon, 8 Mar 1993 08:08:23 +0000 (08:08 +0000)]
(Fframe_char_height, Fframe_char_width):
(Fframe_pixel_height, Fframe_pixel_width):
New functions, two versions of each.
[MULTI_FRAME] (syms_of_frame): Make them Lisp functions.
[!MULTI_FRAME] (syms_of_frame): Likewise. Also Fselected_frame.
Richard M. Stallman [Sun, 7 Mar 1993 23:32:54 +0000 (23:32 +0000)]
Include termhooks.h.
(push_key_description): Handle all modifiers.
Handle large character codes.
(Fkey_description): Move the meta bit, if arg is string.
(Fsingle_key_description): Don't alter integer value.
Make tem long enough.
(Flookup_key): Use meta_modifier as meta-bit if from vector.
(Fdefine_key): Likewise.
Richard M. Stallman [Sun, 7 Mar 1993 20:17:27 +0000 (20:17 +0000)]
(isearch-other-meta-char): Call listify-key-sequence.
(isearch-unread): Don't call it here.
(isearch-mode-map): Bind the ASCII-equivalent function keys.
Paul Eggert [Sun, 7 Mar 1993 18:20:54 +0000 (18:20 +0000)]
(vc-update-change-log): Check that ChangeLog is writable
before starting the expensive rcs2log process.
Use call-process instead of shell-command to invoke rcs2log;
this avoids undesired shell escapes and is more robust about errors.
Put mark at point-min, so that the new insertion is in the region.
(vc-checkin-hook): Fix `runs-hooks' typo.
(vc-checkout-writeable-buffer-hook): New var.
(vc-next-action): Fix bug: initial checkin was botched when C-x v v
was applied to a new file while vc-initial-comment was non-nil.
(vc-register): Don't barf when registering a new, empty buffer.
(vc-directory): The `No files are currently registered'
message was wrongly worded, because sometimes the message talks
about locked files, not registered files.
(vc-file-tree-walk): Change (apply 'funcall ...) to (apply
...), since the 'funcall is redundant.
When traversing a directory tree, message
"Traversing directory XXX" so that the user can see what progress is
being made. Traversal can take a long time. Omit first argument,
since it is always the current directory. All callers changed.
(vc-file-tree-walk-internal): New function.
(vc-do-command, vc-diff, vc-version-diff, vc-backend-diff):
Remove redundant calls to `format'.
(vc-diff): Remove unused variable `old'.
(vc-version-diff): When recursively generating a difference
listing, don't append the latest output unless diff was actually run;
otherwise, you'll get the output from the previous file by mistake.
Richard M. Stallman [Sun, 7 Mar 1993 09:34:39 +0000 (09:34 +0000)]
(verify_interval_modification): Handle insertions
specially. For non-insertions, check only the chars being changed.
`modification-hooks' property is now a list of functions.
(set_point): Ignore chars outside current restriction.
Richard M. Stallman [Sun, 7 Mar 1993 09:32:22 +0000 (09:32 +0000)]
(save_excursion_save): Save mark_active of buffer.
(save_excursion_restore): Restore mark_active of buffer.
Run activate-mark-hook if it's on, or deactivate-mark-hook if it turns off.
(region_limit): Error if mark inactive, if transient-mark-mode.
Richard M. Stallman [Sun, 7 Mar 1993 09:30:31 +0000 (09:30 +0000)]
(x_alt_mod_mask, x_super_mod_mask, x_hyper_mod_mask): New variables.
(x_find_modifier_meanings): Set them.
(x_convert_modifiers): Check for them.
(XTread_socket): Handle BackSpace, etc, function keys.
Richard M. Stallman [Sun, 7 Mar 1993 09:27:28 +0000 (09:27 +0000)]
(follow_key): Downcase shift_modifier as well as ASCII.
(command_loop_1): Run pre-command-hook and post-command-hook.
Set this_command before running pre-command-hook.
(syms_of_keyboard): Set up vars for those hooks.
(syms_of_keyboard): Handle gaps in modifier_names.
(modifier_names): Reorder to match termhooks.h.
(parse_modifiers_uncached): Detect `s-', not `super-'.
(apply_modifiers_uncached): Make `s-', not `super-'.
(lispy_function_keys): Add codes starting at 0xff00
and running through 0xffff.
(read_char): Move metabit when fetching from string macro.
(command_loop_1): Clear Vdeactivate_mark before cmd.
Clear mark_active if command set Vdeactivate_mark.
Run deactivate-mark-hook at that time, or activate-mark-hook.
(syms_of_keyboard): Define variable deactivate-mark.
(syms_of_keyboard): New lisp var unread-command-char.
(Finput_pending_p): Test unread_command_char.
(Fdiscard_input, quit_throw_to_read_char, init_keyboard): Set it.
(read_char): Fetch from it.
(Fthis_command_keys, Fread_key_sequence):
Fix calls to make_event_array.
(make_lispy_event): Put meta and shift modifiers
into an integer.
(read_avail_input): Set the modifiers field in the events read.
(kbd_buffer_get_event): Pass thru integer event untruncated.
(read_char): Likewise.
(read_key_sequence, read_char): Only -1 means EOF.
(kbd_buffer_store_event): Don't ignore 0200 bit in quit char.
(follow_key): Use new meta bit flag.
Richard M. Stallman [Sun, 7 Mar 1993 09:25:28 +0000 (09:25 +0000)]
(syms_of_lread): Set up Qascii_character.
(Fread_char, Fread_char_exclusive): Use that property
to convert symbols like tab, return, M-return,... to ASCII.
Include termhooks.h.
(read_escape): Handle \H, \A, \s. Use ..._modifier.