Jim Blandy [Sat, 8 Oct 1994 22:14:04 +0000 (22:14 +0000)]
* indent.c: #include "region-cache.h".
(character_width, disptab_matches_widthtab, recompute_width_table,
width_run_cache_on_off): New functions.
(compute_motion): Call width_run_cache_on_off. If this buffer's
width run cache is enabled, consult it to see if we need to
traverse a region character-by-character; store information in the
cache after doing so. Call find_before_next_newline instead of
writing out an equivalent loop explicitly, to take advantage of
the newline cache.
Doc fixes.
Jim Blandy [Sat, 8 Oct 1994 22:13:15 +0000 (22:13 +0000)]
* cmds.c (Fforward_line): Call scan_buffer with new args.
(Fend_of_line): Replace call to Fforward_line and search loop with
call to find_before_next_newline.
Jim Blandy [Sat, 8 Oct 1994 22:12:12 +0000 (22:12 +0000)]
* buffer.c: #include region-cache.h.
(Fget_buffer_create): Initialize new members of struct buffer.
(Fkill_buffer): Free memory occupied by caches.
(init_buffer_once): Set default value for cache_long_line_scans in
buffer_defaults, and give it a bit in buffer_local_flags.
(syms_of_buffer): Add DEFVAR_PER_BUFFER for cache_long_line_scans.
Jim Blandy [Sat, 8 Oct 1994 22:11:16 +0000 (22:11 +0000)]
* Makefile.in.in (obj) Add region-cache.o to the list of files.
(region-cache.o): New target.
(buffer.o, indent.o, search.o): Depend on region-cache.h.
(test_completion): New function, extracted from do_completion.
(do_completion): Use test_completion.
(Fminibuffer_complete_and_exit): If completion is already
exact, don't try to complete it.
(font-lock-mode): Doc fix; use add/remove-hook, not
setq; removed make-local-variable of font-lock-no-comments.
(font-lock-set-defaults): Do it there, and use:
(font-lock-defaults-alist): Use it to set font-lock-keywords,
font-lock-keywords-case-fold-search and font-lock-no-comments.
(turn-on-font-lock): New function.
(font-lock-fontify-buffer): Made interruptible; deleted messages.
(font-lock-fontify-region): Made syntax state reliable
by widening within new restriction; let cstart and cend for speed;
outputs message.
(font-lock-after-change-function): Remove spurious goto-char and use
forward-line, not 1+ end-of-line, for end of fontification region.
(font-lock-any-properties-p): Removed, use text-property-not-all.
(font-lock-*-face): facename values are themselves.
(font-lock-variable-name-face, font-lock-reference-face): New vars.
(font-lock-doc-string-face): Removed.
(font-lock-keywords): Extended value syntax.
(font-lock-hack-keywords): Cope with it; outputs initial message.
Merged in face-lock.el:
(font-lock-display-type, font-lock-background-mode)
(font-lock-face-attributes): New variables, use it.
(font-lock-make-face): New function, use them.
Karl Heuer [Thu, 6 Oct 1994 22:30:47 +0000 (22:30 +0000)]
(init_buffer_once): Don't use XSETFASTINT when negative.
(reset_buffer_local_variables, Fbuffer_local_variables): Access
buffer_local_flags as Lisp_Object, not int.
Karl Heuer [Thu, 6 Oct 1994 21:29:49 +0000 (21:29 +0000)]
(read1): New argument for returning out-of-band data, obviating the need for
Lisp_Internal datatype.
(read0, read1, read_list): Use that new calling sequence.
* man.el (Man-notify, Man-current-page, Man-page-list,
Man-filter-list, Man-original-frame, Man-arguments,
Man-fontify-manpage-flag, Man-sections-alist, Man-refpages-alist,
Man-uses-untabify-flag, Man-page-mode-string, Man-sed-script):
Added defvar's to keep the compiler quiet.
(Man-getpage-in-background): Start buffer name with "*Man ".
instead of "*man " to avoid conflict with "*mail*".
(Man-match-substring): Defsubst moved before first call.
(Man-build-page-list, Man-strip-page-headers, Man-unindent): Use
defun instead of defsubst, for code clarity purpose.
Karl Heuer [Tue, 4 Oct 1994 16:44:49 +0000 (16:44 +0000)]
(redisplay, mark_window_display_accurate, redisplay_window, try_window,
try_window_id, display_text_line, display_menu_bar, decode_mode_spec,
init_xdisp): Don't use XFASTINT as an lvalue.
Karl Heuer [Tue, 4 Oct 1994 16:14:59 +0000 (16:14 +0000)]
(Fnext_property_change, property_change_between_p,
Fnext_single_property_change, Fprevious_property_change,
Fprevious_single_property_change, copy_text_properties): Don't use XFASTINT as
an lvalue.
Karl Heuer [Tue, 4 Oct 1994 16:10:39 +0000 (16:10 +0000)]
(make_process, list_processes_1, create_process, Faccept_process_output,
wait_reading_process_input, read_process_output, send_process,
sigchld_handler): Don't use XFASTINT as an lvalue.
Karl Heuer [Tue, 4 Oct 1994 16:08:54 +0000 (16:08 +0000)]
(read_minibuf, get_minibuffer, read_minibuf_unwind, Fread_from_minibuffer,
Ftry_completion, Fall_completions, Fcompleting_read, Fminibuffer_prompt_width,
syms_of_minibuf): Don't use XFASTINT as an lvalue.
Karl Heuer [Tue, 4 Oct 1994 16:05:05 +0000 (16:05 +0000)]
(synkey, access_keymap, store_in_keymap, Faccessible_keymaps,
Fkey_description, ascii_sequence_p, Fwhere_is_internal, describe_vector):
Don't use XFASTINT as an lvalue.