1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-11 09:20:51 +00:00
Commit Graph

18218 Commits

Author SHA1 Message Date
Richard M. Stallman
123658267c Initial revision 1997-06-15 21:00:32 +00:00
Richard M. Stallman
00049484b8 Fix previous change. 1997-06-15 19:43:01 +00:00
Richard M. Stallman
25fe55afa6 Fix up whitespace. 1997-06-15 19:05:59 +00:00
Richard M. Stallman
766ff6275b (struct re_pattern_buffer): New member multibyte.
(re_match_object): New variable.
1997-06-15 19:02:27 +00:00
Richard M. Stallman
b18215fce4 (PTR_TO_OFFSET): New macro.
(POS_AS_IN_BUFFER): New macro.
(SYNTAX_ENTRY_VIA_PROPERTY): Set to take `syntax-table' text
property into account when doing SYNTAX (c).
(re_compile_fastmap): disable fastmap if any of wordbound
notwordbound wordbeg wordend notsyntaxspec syntaxspec are seen.
(re_search_2): SETUP_SYNTAX_TABLE_FOR_OBJECT at the start.
(re_match_object): New variable.
(re_match_2): SETUP_SYNTAX_TABLE_FOR_OBJECT at the start.
(re_match_2_internal): For any of wordbound notwordbound wordbeg
wordend notsyntaxspec syntaxspec call UPDATE_SYNTAX_TABLE before
doing SYNTAX (c).


[emacs]: Include charset.h and category.h

[!emacs] (BASE_LEADING_CODE_P, WORD_BOUNDARY_P,	CHAR_HEAD_P,
SINGLE_BYTE_CHAR_P, SAME_CHARSET_P, MULTIBYTE_FORM_LENGTH,
STRING_CHAR_AND_LENGTH, GET_CHAR_AFTER_2, GET_CHAR_BEFORE_2):
New dummy macros.

(enum re_opcode_t): New member categoryspec and notcategoryspec.

(STORE_CHARACTER_AND_INCR, EXTRACT_CHARACTER,
CHARSET_LOOKUP_RANGE_TABLE_WITH_COUNT,
CHARSET_LOOKUP_RANGE_TABLE, CHARSET_BITMAP_SIZE,
CHARSET_RANGE_TABLE_EXISTS_P, CHARSET_RANGE_TABLE
CHARSET_PAST_RANGE_TABLE): New macros.

(TRANSLATE): Cast return value to unsigned char, not char.

(struct range_table_work_area): New structure.

(EXTEND_RANGE_TABLE_WORK_AREA, SET_RANGE_TABLE_WORK_AREA,
FREE_RANGE_TABLE_WORK_AREA, CLEAR_RANGE_TABLE_WORK_USED,
RANGE_TABLE_WORK_USED, RANGE_TABLE_WORK_ELT): New macros.

(FREE_STACK_RETURN): Call FREE_RANGE_TABLE_WORK_AREA.

(regex_compile): Declare `c' and `c1' as int to store multibyte characters.
Declare range_table_work and initialize	it.
Initialize bufp->multibyte to 0 if not emacs.
For case '[' and `default', code re-written to handle multibyte characters.
Add code for case 'c' and 'C' to handle category spec.

(re_compile_fastmap): New local variables k, simple_char_max,
and match_any_multibyte_characters.
Use macro CHARSET_BITMAP_SIZE.
Handle multibyte characters in cases charset, charset_not,
wordchar, notwordchar, anychar, syntaxspec, notsyntaxspec,
categoryspec, notcategoryspec.

(STOP_ADDR_VSTRING, POS_ADDR_VSTRING): New macros.

(re_search_2): Code re-written to handle multibyte characters.

(AT_WORD_BOUNDARY): Macro disabled.

(re_match_2_internal): New local variable multibyte.  `d' is
incremented while paying attention to multibyte characters if necessary.
For case charset, charsetnot, wordbound, notwordbound,
wordbeg, wordend, matchsyntax, and matchnotsyntax, code
re-written to handle multibyte characters.
Add code for case categoryspec and notcategoryspec.
Declare c, c1 as unsigned int, not unsigned char.
1997-06-15 19:00:12 +00:00
Richard M. Stallman
06cc857db5 Many doc fixes.
(texinfo-all-menus-update): Check for @detailmenu.
(texinfo-master-menu): Likewise.
(texinfo-multiple-files-update): Likewise.
(texinfo-insert-master-menu-list): Put in @detailmenu if appropriate.
1997-06-15 17:39:13 +00:00
Per Abrahamsen
8697863ab3 Synched with 1.9920. 1997-06-15 15:31:32 +00:00
Per Abrahamsen
9432de85b7 Use booleans. 1997-06-15 15:25:57 +00:00
Richard M. Stallman
91fe8c378e (text-mode): Let all-white lines separate paragraphs. 1997-06-15 07:36:42 +00:00
Richard M. Stallman
9cc92f8bd3 (mail-mode): Let all-white lines separate paragraphs. 1997-06-15 07:36:22 +00:00
Richard M. Stallman
89ada4ddee Initial revision 1997-06-15 07:01:26 +00:00
Richard M. Stallman
5db5751426 Update keywords to show up in finder.
(browse-url-gnudoit-args, browse-url-generic-program)
(browse-url-gnudoit-program, browse-url-generic-args): New variables.
(browse-url-w3-gnudoit): New procedure.
(browse-url-mmm): New location of `remote' file for MMM 0.4.
(browse-url-generic): New procedure.

(browse-url-netscape): Test for w32.

(browse-url-url-at-point): Assume mailto: if URL contains @.
Don't use thingatpt; find the URL here to do it correctly.

(browse-url-at-point, browse-url-of-file, browse-url-at-mouse):
Call browse-url.
(browse-url): Check for list browse-url-browser-function.
(browse-url-choose-browser): New procedure.
(browse-url-browser-function): Allow list value.

(browse-url-process-environment): Call browse-url-emacs-display.
(browse-url-emacs-display): New procedure.
(browse-url-netscape-display): New variable.

(browse-url-of-region): New procedure.
(browse-url-of-buffer): Check for narrowed buffer.

(browse-url-url-at-point): Rewrite to not use cl.el delete-if.
Fix multi-line URL matching.

(browse-url-markedup-regexp): New variable.
(browse-url-xterm-program): New variable.
(browse-url-xterm-args): New variable.
(browse-url-lynx-xterm): Use the above two vars.
(browse-url-url-at-point): Use buffer-substring-no-properties.
(browse-url-grail): Add missing optional arg.
(browse-url-mmm): New procedure.

(browse-url-netscape-startup-arguments): New variable.
1997-06-15 02:49:03 +00:00
Richard M. Stallman
fa1d3816e9 (Fchar_after, Fchar_before): Make arg optional. 1997-06-15 02:41:59 +00:00
Richard M. Stallman
1be5a2845e Don't call icomplete-mode; let the user do that.
(icomplete-show-key-bindings): Doc fix.
(icomplete-mode): Doc fix.
(icomplete-get-keys): Make it actually work.
(icomplete-mode): Doc fix.
(icomplete-completions): Doc fix.
1997-06-15 02:37:58 +00:00
Richard M. Stallman
e51f616fee Many doc fixes.
(view-mode-enable): New function, split from view-mode-enter.
(view-mode-enter): Use view-mode-enable.
(view-mode-disable): New function, split from view-mode-exit.
(view-mode-exit): Use view-mode-disable.
(view-mode): Use view-mode-enable and view-mode-disable;
don't do all of what view-mode-enter and view-mode-exit do.
(change-major-mode-hook): Use view-mode-disable, not view-mode-exit.
1997-06-14 21:41:42 +00:00
Richard M. Stallman
ab7782fc24 Make view mode more similar to `less'.
Changed documentation for most commands.
(view-scroll-auto-exit): New variable, replaces view-mode-auto-exit.
(view-mode-auto-exit): Variable deleted.
(view-mode): Doesn't only toggle `view-mode', it also calls
view-mode-enter or view-mode-exit.
(view-buffer, view-buffer-other-window): New argument exit-action.
(view-file, view-file-other-window, view-buffer-other-window)
(view-buffer, view-mode-enter): Changed method used to restore
windows when leaving view mode.
(view-mode-exit): New function.
(view-return-to-alist): New variable.
(view-return-here, view-exit-position): Variables deleted.
(view-remove-frame-by-deleting, view-exit-all-windows-at-exit):
New option variables.
(view-page-size, view-half-page-size): New variables.
(view-scroll-size): Var deleted; replaced by the previous two.
(view-mode-map): Make the bindings inside defvar.
Added new commands and new key bindings.
Added view-mode-exit to `change-major-mode-hook' to always leave
view mode when changing major mode.
(view-file-other-frame,	view-buffer-other-frame): New commands.
(View-leave, View-kill-and-leave, View-exit, View-exit-and-edit)
(View-quit, View-quit-all): new commands for leaving view mode.
(view-exit): Function deleted.
(View-goto-percent, View-scroll-to-buffer-end): New commands.
(view-try-extend-at-buffer-end): New option variable.

(View-scroll-page-forward, View-scroll-page-backward)
(View-scroll-page-forward-set-page-size)
(View-scroll-page-backward-set-page-size, View-scroll-line-forward)
(View-scroll-line-backward, View-scroll-half-page-forward)
(View-scroll-half-page-backward)
(View-revert-buffer-scroll-page-forward): New commands.

(View-scroll-lines-forward, View-scroll-lines-backward)
(View-scroll-lines-forward-set-scroll-size)
(View-scroll-one-more-line): Commands deleted.

(view-scroll-lines, view-end-message, view-page-size-default)
(view-set-half-page-size-default, view-really-at-end)
(view-recenter): New functions.
(view-scroll-size): Variable deleted.

(View-search-regexp-forward, View-search-regexp-backward)
(View-search-last-regexp-forward, View-search-last-regexp-backward)
(view-search): ! and @ are special at beginning of regexp.
(view-search-no-match-lines): New function.
1997-06-14 21:06:09 +00:00
Richard M. Stallman
12ef05f47b Update copyright year. 1997-06-14 18:45:38 +00:00
Richard M. Stallman
55fe21fc27 (bibtex-delete-whitespace, bibtex-current-line)
(bibtex-assoc-of-regexp, bibtex-skip-to-valid-entry)
(bibtex-map-entries):
Renamed from delete-whitespace, current-line, assoc-of-regexp,
skip-to-valid-bibtex-entry, and map-bibtex-entries, respectively.
1997-06-14 17:30:43 +00:00
Richard M. Stallman
f80f7bc21f (vc-annotate-mode-variables): Init vc-annotate-mode-menu
and put it into vc-annotate-mode-map.
(vc-annotate-add-menu): Don't init vc-annotate-mode-menu,
just add the bindings to it.  Display progress messages.
(vc-annotate-mode-menu): New defvar.
(vc-annotate-ratio): Move defvar, add initial value.
(vc-annotate-display-default): Display progress messages.
(vc-annotate-display): Use vc-annotate-color-map.
1997-06-14 17:29:10 +00:00
Richard M. Stallman
80402f2518 (Bread_char): Deleted.
(Bsave_current_buffer_1): New byte code.
(Fbyte_code): Delete handling Bread_char.
Handle Bsave_current_buffer_1 like Bsave_current_buffer.
1997-06-14 17:08:59 +00:00
Per Abrahamsen
6aaedd1230 Synched with 1.9914. 1997-06-14 10:21:01 +00:00
Richard M. Stallman
996169356b (Latin-2): List Croatian as alternative name for Serbo-Croatian. 1997-06-14 06:33:29 +00:00
Richard M. Stallman
01b1bb4524 Delete Serbo-Croatian. 1997-06-14 06:28:15 +00:00
Karl Heuer
f00ed1332d (point): Obsolete macro deleted in favor of PT. 1997-06-14 04:53:00 +00:00
Karl Heuer
c71d37d59d (Fprevious_char): Use PT, not point. 1997-06-14 04:51:21 +00:00
Karl Heuer
5bfb66e31d (internal_self_insert): Use PT, not point. 1997-06-14 04:50:37 +00:00
Karl Heuer
5326c1d687 (readline): Terminate buffer properly when EOF seen.
Test for valid pointer before dereferencing it.
1997-06-14 04:36:44 +00:00
Richard M. Stallman
12e36cdba6 (hideshow): Added a :prefix.
(hs-isearch-open): New variable.
(hs-flag-region): Use that variable.
Changed the semantics of the FLAG parameter and updated the docs.
(hs-isearch-open-invisible): New function to be set as a
`isearch-pent-invisible' property for hidden overlays, so that
isearch can use it.
(hs-hide-block-at-point): Tell if we are hiding a comment or a block.
1997-06-13 21:31:25 +00:00
Richard M. Stallman
0352b20571 (isearch-hide-immediately): New variable.
(isearch-close-unecessary-overlays): New function.
(isearch-range-invisible): Use them.

(search-invisible): Changed the semantics,
the default value and updated the doc string.
(isearch-opened-overlays): New variable.
(isearch-mode): Initialize it.
(isearch-switch-frame-handler): Call isearch-clean-overlays.
(isearch-exit, isearch-cancel, isearch-abort): Likewise.
(isearch-other-meta-char, isearch-search):
Support the new meaning for search-invisible.
(isearch-open-necessary-overlays, isearch-open-overlay-temporary)
(isearch-clean-overlays): New functions.
(isearch-range-invisible): If we are inside overlays that can be
opened, open them, add them to isearch-opened-overlays and say
that the range is visible.
1997-06-13 21:30:38 +00:00
Richard M. Stallman
1e7963c7f9 (Fcall_process): Use setsid to disconnect child
process from controlling terminal.
1997-06-13 05:49:57 +00:00
Richard M. Stallman
21cffb834a Add make-face-bold/italic and unbold/unitalic. 1997-06-13 00:52:37 +00:00
Richard M. Stallman
f9045d14d3 Latin-5 is ISO-8859-9, not ISO-8859-5. 1997-06-13 00:51:01 +00:00
Richard M. Stallman
ac567c9517 (init_sys_modes): Enable VSTART and VSTOP if flow_control. 1997-06-13 00:49:50 +00:00
Richard M. Stallman
303b5b3f0f (kbd_buffer_get_event): When wait_reading_process_input
returns, check Vunread_command_events.
1997-06-13 00:46:33 +00:00
Richard M. Stallman
69645afc53 (wait_reading_process_input): Return if unread events appear. 1997-06-13 00:45:19 +00:00
Richard M. Stallman
536d3fc556 (fill-context-prefix): Don't crash if RESULT is nil when AT-SECOND is t. 1997-06-12 18:42:28 +00:00
Richard M. Stallman
48cd9fe9ec Require `format'.
(iso-translate-conventions): Take bounds as args.
(iso-spanish, iso-german): Take bounds as args.
(iso-iso2tex, iso-tex2iso, iso-gtex2iso, iso-iso2gtex): Likewise.
(iso-iso2duden-trans-tab): New variable.
(iso-iso2duden): New command.
(iso-cvt-read-only, iso-cvt-write-only): New commands.
(is-german-tex-p): Function deleted.
(iso-fix-iso2tex, iso-fix-tex2iso): Functions deleted.
(iso-cvt-ffh, iso-cvt-wfh, iso-cvt-ash): Functions deleted.
(iso-cvt-define-menu): New function.
1997-06-12 05:22:15 +00:00
Richard M. Stallman
a984234637 (mail-mode): Change paragraph-start and
paragraph-separate not to match leading spaces.
1997-06-12 04:32:29 +00:00
Richard M. Stallman
5acc847d85 (finder-mode): Don't switch buffers or change text here.
(finder-by-keyword): Don't call finder-mode here.
(finder-list-matches): Call finder-mode here.
Switch to a buffer called *Finder Category*.
(finder-list-keywords): Call finder-mode here.
Switch to the buffer *Finder*.
If the buffer already exists, don't reinitialize it or move point.
1997-06-12 03:51:53 +00:00
Richard M. Stallman
04bed6f76c (esc-map): Delete spurious wrong binding for M-TAB. 1997-06-12 02:52:57 +00:00
Richard M. Stallman
b70a6198cf Comment change. 1997-06-12 00:50:08 +00:00
Richard M. Stallman
a92f7abb62 (forms-mode, forms--process-format-list)
(forms--make-parser-elt, forms-search-forward, forms-search-backward):
Fix error messages.

(forms-save-buffer):
Do not run the `write-file-filter' hooks
explicitly since they are run via `local-write-file-hooks'.
(forms-search-forward, forms-search-backward):
Wrap the search.  Use `error' to signal failure.
1997-06-11 21:07:22 +00:00
Richard M. Stallman
946340aed2 (paragraph-indent-text-mode): Renamed from spaced-text-mode.
(text-mode-map): Bind TAB to indent-relative.
(indented-text-mode-map): Variable deleted.
(indented-text-mode): Now an alias for text-mode.
1997-06-11 19:02:06 +00:00
Richard M. Stallman
849f04e14d (fill-context-prefix): If we get a prefix from the
second line of the paragraph, verify the first line has it too.

(adaptive-fill-regexp): Allow - and |;
allow spaces within the prefix.  Allow numeric headings.
(adaptive-fill-first-line-regexp): New variable.
(fill-context-prefix): Use adaptive-fill-first-line-regexp.
If prefix from first line seems unreasonable, use whitespace instead.
Reject it entirely only if it is a paragraph-starter.
1997-06-11 06:51:29 +00:00
Richard M. Stallman
f52b232edd (tex-main-file, outline-minor-mode): Add defvars. 1997-06-11 04:51:57 +00:00
Richard M. Stallman
025bb6359e Updated documentation at several points in the file.
(reftex-label-alist-builtin): New default environment subfigure.
(reftex-find-duplicate-labels): Temporary buffer is now
"*Duplicate Labels*" instead of "*Help*".
(reftex-bibtex-selection-callback): Renamed variable found-list.
(reftex-found-list): Added defvar for this variable.
(TeX-master): Added defvar for this variable.
(reftex-reset-mode): Kill temporary buffers associated with RefTeX.
1997-06-11 04:45:34 +00:00
Richard M. Stallman
54dfb86c80 (unexec): Call update_dynamic_symbols unconditionally.
(update_dynamic_symbols): Define unconditionally, but do nothing
if __linux__or __NetBSD__.
1997-06-11 01:13:32 +00:00
Kenichi Handa
95fa03b4fb (view-hello-file): Adjusted for the changes of
coding system names.
1997-06-11 00:38:09 +00:00
Karl Heuer
b50c87ee6e (pc-select-selection-keys-only): New variable.
(pc-select-meta-moves-sexps): New variable.
(exchange-point-and-mark-nomark): New function.
(forward-sexp-mark, forward-sexp-nomark): New functions.
(backward-sexp-mark, backward-sexp-nomark): New functions.
(pc-selection-mode): Doc fix.
Bind exchange-point-and-mark-nomark, C-escape.
Honor pc-select-meta-moves-sexps, pc-select-selection-keys-only.
Unset highlight-nonselected-windows.
1997-06-10 19:44:44 +00:00
Karl Heuer
38bd9da2df Use `error' where possible to signal errors.
Remove (beep)s for warnings.
Change comment about the iif hook to reflect the actual reason.
Correct error in field numbering.

(forms-mode): Make `forms--elements' local before calling
`forms--process-format-list'.

(forms-save-buffer): `forms-write-file-filter' and
`forms-read-file-filter' were not called correctly.
1997-06-10 18:32:33 +00:00