Karl Heuer [Tue, 11 Oct 1994 07:46:01 +0000 (07:46 +0000)]
(MARKER_BLOCK_SIZE, marker_block, marker_free_list): Now refers to the
superset type, not just markers.
(allocate_misc): New function, extracted from Fmake_marker.
(Fpurecopy): Check the substructure.
(clear_marks, mark_object, gc_sweep): Likewise.
Karl Heuer [Tue, 11 Oct 1994 07:45:20 +0000 (07:45 +0000)]
(Lisp_Misc): new type code, replacing Lisp_Marker (and soon to replace other
type codes as well).
(XMARKER, SETMARKER, MARKERP): Check/set the new type field.
(XMISC, SETMISC, MISCP): New accessor macros for the superset type.
(struct Lisp_Free): New structure.
(Lisp_Misc_Free): Type code for that structure.
Richard M. Stallman [Tue, 11 Oct 1994 00:35:42 +0000 (00:35 +0000)]
(mail-hist-put-headers-into-history)
(mail-hist-current-header-contents, mail-hist-forward-header)
(mail-hist-current-header-name):
Use regexp-quote on mail-header-separator.
Richard M. Stallman [Mon, 10 Oct 1994 21:53:52 +0000 (21:53 +0000)]
(calculate-lisp-indent): Local var
last-sexp renamed to calculate-lisp-indent-last-sexp.
(lisp-indent-function): Use new name of var.
(calculate-lisp-indent-last-sexp): Var defined.
Richard M. Stallman [Mon, 10 Oct 1994 01:01:20 +0000 (01:01 +0000)]
(ispell-highlight-spelling-error):
Have just one definition, which decides what to do.
(ispell-command-loop): New args START and END. Do highlighting
and unhighlighting here.
(ispell-word, ispell-region, ispell-complete-word): Not here.
(ispell-highlight-spelling-error-generic): Bind buffer-undo-list to t.
Jim Blandy [Sat, 8 Oct 1994 22:16:04 +0000 (22:16 +0000)]
* xdisp.c (redisplay_window): Invalidate width_run_cache, if the
buffer's display table doesn't match the width table the cache was
built for.
(display_text_line): Use compute_motion to skip forward to the
left edge of the window when the window is hscrolled; this is
faster than rendering all the characters into the bit bucket when
the hscroll is large.
Doc fixes.
(display_count_lines): Call scan_buffer with new args.
Jim Blandy [Sat, 8 Oct 1994 22:15:15 +0000 (22:15 +0000)]
* search.c: #include "region-cache.h".
(max, min): Make these functions, not macros; we'd like to pass
them arguments that would be bad to evaluate more than once.
(newline_cache_on_off): New function.
(scan_buffer): New argument END. Call newline_cache_on_off. If
this buffer's newline cache is enabled, consult it to see if we
need to scan a region for newlines, and store information in the
cache after doing so.
(find_next_newline): Pass new arg to scan_buffer.
(find_before_next_newline): New function.
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.
Richard M. Stallman [Sat, 8 Oct 1994 09:51:31 +0000 (09:51 +0000)]
(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.
Francesco Potortì [Thu, 6 Oct 1994 10:28:26 +0000 (10:28 +0000)]
* 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.