(decode_mode_spec): New arg spec_width.
Use pint2str for %l and %c. New code to output ??.
(display_mode_element): New var minendcol.
Pass new arg to decode_mode_spec.
(pint2str): New function.
(font-lock-defaults): New variable.
(nroff-mode-syntax-table): New variable to provide comment syntax
for font-lock; I'm not sure if this is (or should be) necessary in
19.29 with font-lock-defaults.
(nroff-font-lock-keywords): New variable.
(nroff-mode): Install nroff syntax table and font lock keywords.
Comment about comments in filling and line-counting.
(mouse-extend-internal): Select space in between "things" when
extending selection, ie. we are extending to "thing" boundaries.
Use x-lost-selection-hooks to handle loss of selection.
(mouse-sel-lost-selection-hook): New function.
(mouse-sel-selection-owner-p-function): Variable removed.
(mouse-sel-selection-owner-p): Function removed.
(mouse-sel-validate-selection): Function removed.
(vc-do-command): Added parameter BUFFER (the default,
if nil, is *vc*). Updated all callers.
(vc-next-action-on-file, vc-diff, vc-version-diff, vc-backend-diff):
Use buffer *vc-diff* for diff output instead of *vc*.
(ada-ident-re): Doc fix.
(ada-end-stmt-re): Corrected serious pb of wrong parentheses.
(ada-subprog-start-re): Removed 'body' from the list.
(ada-format-paramlist): Simplified a regexp.
(ada-indent-current): On first line of the buffer, indent to column 0.
Don't reindent if new position is the same as the old one. Thus, a
correcly indended line is not modified.
(ada-get-indent-subprog): Simplified a regexp.
(ada-goto-matching-decl-start): Distinguish between normal type
declaration and protected types, which are more like procedures.
(ada-remove-trailing-spaces): Use save-match-data, save-restriction
and widen when removing whitespace.
(ada-font-lock-keywords-1): Add 'pragma' as keyword.
(ada-font-lock-keywords-2): Allow *qualified* idents after 'end'.
(x-create-frame-with-faces):
Specify frame arg to x-color-values and frame-parameters.
(set-face-background): Pass background-p arg to face-color-supported-p.
Karl Heuer [Mon, 17 Jul 1995 23:42:42 +0000 (23:42 +0000)]
(mouse_moved): Variable deleted.
(kbd_buffer_get_event, readable_events):
Check mouse_moved in all frames.
Check do_mouse_tracking for non-nil ness.
(Ftrack_mouse): Set do_mouse_tracking to t.
(kbd_buffer_get_event): Discard a selection_clear_event
before processing it.
Karl Heuer [Mon, 17 Jul 1995 23:19:51 +0000 (23:19 +0000)]
(bookmark-make): Strip text properties off name.
(bookmark-make-cell): Use `buffer-substring-no-properties'.
(bookmark-yank-word): Use buffer-substring-no-properties.
Karl Heuer [Mon, 17 Jul 1995 23:09:48 +0000 (23:09 +0000)]
(electric-buffer-list): Save point before
finding the first buffer line, and use that saved point to
determine the buffer to use, if it is a reasonable value.
Karl Heuer [Mon, 17 Jul 1995 23:03:53 +0000 (23:03 +0000)]
(shell-command): Use save-match-data.
Put the buffer in shell mode, don't use shell-command-filter.
(shell-command-filter): Deleted.
(shell-command-sentinel): Don't reset the mode line.
Don't test the buffer name--what was that for, anyway?.
(column-number-mode): New variable and new command.
Karl Heuer [Mon, 17 Jul 1995 22:57:32 +0000 (22:57 +0000)]
(x-create-frame-with-faces): Set background-mode
and display-type frame parameters.
(x-frob-font-slant, x-frob-font-weight):
Replace the adstyle field with *, if we can find it.
(set-face-background): Use face-color-supported-p.
(face-color-gray-p): New function.
(face-default-stipple): New variable.
(set-face-background): Use face-default-stipple for all grays.
(set-face-stipple): Change arg name.
(face-color-supported-p): Use face-color-gray-p.
Karl Heuer [Mon, 17 Jul 1995 22:56:28 +0000 (22:56 +0000)]
(vc-mode-line): Don't write-protect a
VC-Log buffer. Better mode line text for initial comments.
Streamlined the function.
(vc-locking-user): Consider a cvs file "locked"
if its status is either 'locally-modified or 'needs-merge.
(vc-workfile-version): Catch 'found when calling vc-find-cvs-master.
(vc-fetch-master-properties): Handle cvs status "Needs Checkout".
This is intended for future use.
(vc-fetch-master-properties): Shrink the window
that displays the error message.
Karl Heuer [Mon, 17 Jul 1995 22:50:30 +0000 (22:50 +0000)]
(canonically-space-region): Doc fix.
(fill-region-as-paragraph): In adaptive-fill-mode,
if paragraph has one line, take the fill prefix from it.
(adaptive-fill-regexp): Doc fix.
(fill-individual-paragraphs): Use `adaptive-fill-regexp'
to determine `fill-prefix' if `adaptive-fill-mode' is non-nil.
Karl Heuer [Mon, 17 Jul 1995 22:44:40 +0000 (22:44 +0000)]
(add-log-current-defun): Handle C struct definitions.
(add-change-log-entry): Use case-sensitive search for file name.
Find first blank line correctly.
Karl Heuer [Mon, 17 Jul 1995 22:20:01 +0000 (22:20 +0000)]
(lispsource): Renamed from lispdir.
(TAGS): Use etags from build dir, but make TAGS
file in source dir.
(${lispsource}TAGS): Renamed from ../lisp/TAGS. Deps changed too.
(tags): Corresponding changes.
(lisptagsfiles): Delete the term/*.el files.
Karl Heuer [Mon, 17 Jul 1995 22:19:07 +0000 (22:19 +0000)]
(last_overlay_modification_hooks): New variable.
(last_overlay_modification_hooks_used): Likewise.
(syms_of_buffer): Init last_overlay_modification_hooks.
(add_overlay_mod_hooklist): New function.
(call_overlay_mod_hooks): Call add_overlay_mod_hooklist.
(report_overlay_modification): When AFTER is non-nil,
call the functions recorded in last_overlay_modification_hooks.
Karl Heuer [Mon, 17 Jul 1995 22:12:45 +0000 (22:12 +0000)]
[HAVE_X11XTR6]: Include locale.h
(x_term_init) [HAVE_X11XTR6]: Set LC_NUMERIC and LC_TIME back to C.
(note_mouse_movement): Set mouse_moved in the x_display_info.
(XTmouse_position, x_scroll_bar_note_movement): Likewise.
(x_scroll_bar_report_motion): Likewise.
(x_draw_box, x_display_box_cursor, x_display_bar_cursor):
New args x, y. Don't use curs_x or curs_y here. Callers changed.
Simon Marshall [Sun, 9 Jul 1995 13:26:41 +0000 (13:26 +0000)]
Do all cleanups in font-lock-fontify-region and font-lock-hack-keywords inside
their unwind-protect UNWINDFORMS. Also eval inside font-lock-set-defaults, not
font-lock-choose-keywords.
Paul Eggert [Sat, 8 Jul 1995 18:44:04 +0000 (18:44 +0000)]
(datearg): Separate date from time with comma, not space,
to avoid CVS 1.5 bug.
(CVSROOT): Don't abort if unset and if repository is an absolute pathname.
Karl Heuer [Fri, 7 Jul 1995 20:01:01 +0000 (20:01 +0000)]
Symbols renamed to be like mode-line indicator.
Supposed to now also work for Lucid.
(2C-mode-map): New name for `tc-mode-map'. Additionally bound to [f2].
(2C-minor-mode-map) New variable.
(2C-mode): New name for `tc-other'.
(2C-mode-line-format): New name for `tc-mode-line-format'.
(2C-other-buffer-hook): New variable.
(2C-separator): New name for `tc-separator'.
(2C-window-width): New name for `tc-window-width'.
(2C-beyond-fill-column): New name for `tc-beyond-fill-column'.
(2C-autoscroll, 2C-autoscroll-start): New variables.
(2C-other): New name for `tc-other'.
(2C-mode): New name for `tc-mode', `tc-two-columns'.
(2C-two-columns): New function.
(2C-associate-buffer): New name for `tc-associate-buffer'.
(2C-split): New name for `tc-split'.
(2C-dissociate): New name for `tc-dissociate'.
(2C-merge): New name for `tc-merge'.
(2C-associated-buffer): New name for `tc-associated-buffer'.
(2C-toggle-autoscroll, 2C-autoscroll): New functions.
(tc-scroll-line, tc-scroll-up, tc-scroll-down, tc-recenter): Deleted
functions.
Karl Heuer [Fri, 7 Jul 1995 19:48:24 +0000 (19:48 +0000)]
restructured, largely rewritten without the bugs and
extended to cover over 15 shells. Most variables can now work as a
lookup table, and, unless set by user, do.
(sh-mode-syntax-table): Possibly multiple tables.
(sh-shell): Set initially so shell or other libraries may use features.
(sh-assignment-regexp): Replaces `sh-assignment-space'.
(sh-here-document-word): Set to more common "EOF".
(sh-variables): Changed semantics.
(sh-font-lock-keywords): Much nicer.
(sh-ancestor-alist, sh-alias-alist, sh-shells, sh-abbrevs)
(sh-dynamic-complete-functions, sh-require-final-newline)
(sh-comment-prefix, sh-indentation, sh-header-marker, sh-builtins)
(sh-leading-keywords): New variables.
(sh-use-prefix, sh-find-file-modifies, sh-query-for-magic)
(sh-magicless-file-regexp, magic-number-alist, sh-executable)
(sh-chmod-argument, sh-shell-is-csh, sh-tab-width)
(sh-sh-font-lock-keywords, sh-ksh-font-lock-keywords)
(sh-bash-font-lock-keywords, sh-csh-font-lock-keywords)
(sh-tcsh-font-lock-keywords): Variables deleted, see also executable.el.
(sh-mode): Shell dependent code moved to `sh-set-shell'.
(sh-feature, sh-abbrevs, sh-syntax-table, sh-append, sh-modify): New
functions.
(sh-execute-region): New command.
(sh-indexed-loop): Far more efficient code generated for sh.
(sh-repeat, sh-tmp-file, sh-while-getopts): New skeletons.
(sh-or-other-mode, define-sh-skeleton, sh-executable, sh-chmod)
(sh-query-for-variable): Command deleted.