1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-14 23:40:39 -08:00
Commit graph

27686 commits

Author SHA1 Message Date
Dave Love
852eeeafd2 2000-09-01 Didier Verna <didier@xemacs.org>
* rect.el (replace-rectangle): New function.
2000-03-09 22:50:30 +00:00
Gerd Moellmann
d1221ea91d *** empty log message *** 2000-03-09 20:28:18 +00:00
Gerd Moellmann
1853aa6bc9 (mouse-drag-region): Don't run up-event handler
if hscroll has changed.
2000-03-09 20:08:49 +00:00
Richard M. Stallman
f74bbbbf55 *** empty log message *** 2000-03-09 13:59:23 +00:00
Gerd Moellmann
80460654af *** empty log message *** 2000-03-09 13:40:34 +00:00
Gerd Moellmann
eff9591695 (Fy_or_n_p): Cancel busy-cursor. 2000-03-09 13:34:34 +00:00
Dave Love
e27e5e075f Update maintainer address. 2000-03-09 13:32:23 +00:00
Gerd Moellmann
cb41203e13 (octave-font-lock-keywords): To font-lock the
builtin operators, use `font-lock-builtin-face' for Emacs and
`font-lock-preprocessor-face' otherwise.
2000-03-09 13:29:44 +00:00
Gerd Moellmann
11b42ef4cd (lisp-font-lock-keywords-1): Highlight
`(defun (setf foo)' differently.
2000-03-09 13:28:42 +00:00
Stefan Monnier
c00562751d Update copyright and leading comment.
(regexp-opt): Update comment and adapt the code the new meaning of the
`paren' argument of regex-opt-group for shy-groups.
(regexp-opt-depth): Handle shy groups as well as backslashed backslashes.
(regexp-opt-group): Turn the leading comment into a docstring.
Allow `paren' to be a string (the string to use to open a group).
Remove open-presuf and close-presuf.
Instead of checking for `all one-char' and then later on check for
`several one-char', handle both cases close together.
Also apply a more generic algorithm for suffixes (the mirror image
of the algorithm used for prefixes).
Use shy-groups.
\Use nreverse rather than reverse.
(regexp-opt-try-suffix): Removed.
2000-03-09 00:45:15 +00:00
Stefan Monnier
e3f9c7f8fc (inferior-scheme-mode-map): Define it independently
from comint-mode-map, so we can just inherit from it.  Also, move the
initialization into the `defvar' since there's no docstring anyway
and it's fairly short.
(inferior-scheme-mode): Define it as derived-mode: the code is shorter
and this way we inherit from comint-mode-map rather than copying it.
2000-03-08 23:55:36 +00:00
Stefan Monnier
a9853251a3 (replace-regexps-in-string): Properly handle the case where
we match an empty string.
2000-03-08 23:49:09 +00:00
Stefan Monnier
433d16a196 (comint-exec-1): Add the current-dir to the exec-path when
the command has a directory component (such as "./testml").
Also fix a typo in the comment.
2000-03-08 23:46:09 +00:00
Stefan Monnier
95cd4c403d *** empty log message *** 2000-03-08 23:26:00 +00:00
Stefan Monnier
505bde11b0 This is a big redesign of failure-stack and register handling, prompted
by bugs revealed when trying to add shy-groups.  Overall, what happened
is that loops are now structured a little differently, groups can be
shy and the code is a little simpler.

(enum re_opcode_t): Remove jump_past_alt, maybe_pop_jump,
push_dummy_failure and dumy_failure_jump.
Add on_failure_jump_(exclusive, loop and smart).
Also fix the comment for (start|stop)_memory since they now only take
one argument (the second has becomes unnecessary).
(print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
(print_compiled_pattern): Use %ld to printf long ints and flush to make
debugging a little easier.
(union fail_stack_elt): Make the integer unsigned.
(struct fail_stack_type): Add a `frame' element.
(INIT_FAIL_STACK): Init `frame' as well.
(POP_PATTERN_OP): New macro for re_compile_fastmap.
(DEBUG_PUSH, DEBUG_POP): Remove.
(NUM_REG_ITEMS): Remove.
(NUM_NONREG_ITEMS): Adjust.
(FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE, TOP_FAILURE_HANDLE):
New macros for the cycle detection.
(ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
(PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New macros.
(PUSH_FAILURE_POINT): Don't push registers any more.
The pattern address pushed is not the destination of the jump
but the source of it instead.
(NUM_FAILURE_ITEMS): Remove.
(POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
registers before the actual failure point).
Don't hardcode any meaning for str==NULL anymore.
(union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
(MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED): Remove.
(REG_UNSET_VALUE): Use NULL (why not?).
(compile_range): Remove declaration since it doesn't exist.
(struct compile_stack_elt_t): Remove inner_group_offset.
(old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
(regex_grow_registers): Remove dead code.
(FIXUP_ALT_JUMP): New macro.
(regex_compile): Add shy-groups
Change loops to use	on_failure_jump_smart&jump instead of
on_failure_jump&maybe_pop_jump.
Change + loops to eliminate the initial (dummy_failure_)jump.
Remove c1_base (looks like unused variable to me).
Use `jump' instead of `jump_past_alt' and don't bother with
push_dummy_failure in alternatives since it is now unnecessary.
Use FIXUP_ALT_JUMP.
Eliminate a useless `#ifdef emacs' for (re)allocating the stack.
(re_compile_fastmap): Remove dead variables i and num_regs.
Exit from loop when bufp->can_be_null rather than jumping to `done'.
Avoid jumping backwards so as to ensure termination.
Use PATTERN_STACK_EMPTY and POP_PATTERN_OP.
Improved handling of backreferences.
Remove dead code in handling of `anychar'.
(skip_noops, mutually_exclusive_p): New functions taken from the
handling of `maybe_pop_jump' in re_match_2_internal.
Slightly improve mutually_exclusive_p to handle ".+\n".
((lowest|highest)_active_reg, NO_(LOWEST|HIGHEST)_ACTIVE_REG)
Remove.
(re_match_2_internal): Use %p instead of 0x%x when printf'ing ptrs.
Don't SET_REGS_MATCHED anymore.  Remove many dead variables.
Push register (in `start_memory') on the stack rather than storing it
in old_reg(start|end).
Remove the cycle detection from `stop_memory', replaced by the use
of on_failure_jump_loop for greedy loops.
Add code for the new on_failure_jump_<foo>.
Remove ad-hoc code in `on_failure_jump' to push more registers
in the case of a loop.
Take out code from `maybe_pop_jump' into separate functions and
adapt it to the semantics of `on_failure_jump_smart'.
Remove jump_past_alt, dummy_failure_jump and push_dummy_failure.
Remove dummy_failure handling and handling of `failures to jump
to on_failure_jump' (this last one was already dead code, it seems).
((group|alt|common_op)_match_null_string_p): Remove.
2000-03-08 23:25:41 +00:00
Stefan Monnier
dd52d9705c Update the copyright.
(RE_SHY_GROUPS): New value.
(RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
(RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
2000-03-08 23:24:54 +00:00
Dave Love
7397acc494 (liblw.a): Don't bother testing for ranlib failing
since configure sets it up.
2000-03-08 19:10:01 +00:00
Dave Love
eea0252e83 Use PROTOTYPES. 2000-03-08 18:55:10 +00:00
Dave Love
b369fa6568 (find_handler_clause): Use PROTOTYPES. 2000-03-08 18:53:12 +00:00
Dave Love
8bbffb1392 Use POINTER_TYPE. 2000-03-08 18:49:46 +00:00
Dave Love
9043c90a5e (P_): Define based on PROTOTYPES, not __STDC__.
(memory_warnings): Declare using POINTER_TYPE.
2000-03-08 18:46:21 +00:00
Dave Love
3f5b097c6d Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
POINTER_TYPE.
2000-03-08 18:40:13 +00:00
Dave Love
308a47937d Don't depend on __STDC__ for volatile.
Add POINTER_TYPE, PTR, PROTOTYPES.
2000-03-08 18:37:20 +00:00
Gerd Moellmann
feab4fba81 *** empty log message *** 2000-03-08 14:49:11 +00:00
Gerd Moellmann
08ac855487 (x_set_cursor_type): If ARG is nil, give frame no cursor. 2000-03-08 14:48:16 +00:00
Gerd Moellmann
8256e31b78 (compile-files): Compile files one by one because
that's the only way to ensure a clean compilation environment for
each individual file.
2000-03-08 13:56:00 +00:00
Gerd Moellmann
25edb08f89 (display_echo_area): Temporarily inhibit garbage collection. 2000-03-08 13:55:23 +00:00
Gerd Moellmann
5e91ff9eff *** empty log message *** 2000-03-07 23:32:47 +00:00
Gerd Moellmann
9af0f4cde5 (other-frame): Call x-focus-frame. 2000-03-07 23:31:17 +00:00
Gerd Moellmann
3decc1e7f5 Remove a buch of really old code in #if 0.
(Fx_focus_frame): New function.
2000-03-07 23:29:38 +00:00
Dave Love
f64ce78896 (recentf-keep-non-readable-files-p): Add :set,
:require to defcustom.
2000-03-07 20:31:06 +00:00
Dave Love
7fb918904b (Extra Features for Dired): Fix xref. 2000-03-07 20:04:42 +00:00
Dave Love
76162e12c8 Remove references to rassoc, delete, expt. 2000-03-07 19:45:56 +00:00
Dave Love
a599ac7c8f Remove expt, delete, rassoc from autoloads
lists.
2000-03-07 19:41:12 +00:00
Gerd Moellmann
e9b4e5ff0c *** empty log message *** 2000-03-07 14:21:40 +00:00
Gerd Moellmann
f6ee1260dd (Fdocumentation_property): If value is not a string,
and doesn't refer to etc/DOC, evaluate it to obtain a string.
2000-03-07 14:19:23 +00:00
Gerd Moellmann
f7daf1e10f Change maintainer to `none'. 2000-03-07 12:41:05 +00:00
Gerd Moellmann
17d7ad5951 (recentf-keep-non-readable-files-p): Quote args
to remove-hook and add-hook.
2000-03-07 12:34:58 +00:00
Gerd Moellmann
baaa1f1913 (mail-send-nonascii): Add a new value 'mime and use
it as the default.
(mail-send): Test mail-send-nonascii also for the new 'mime value.
(sendmail-send-it): Conditionaly add MIME headers specifying the
used character set.
2000-03-07 12:33:39 +00:00
Gerd Moellmann
2e465cddf9 (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
close the display with XtCloseDisplay.  This caused a bus error
on OpenWindows.
2000-03-07 12:25:28 +00:00
Dave Love
ae3d47c61a (auto-mode-alist): Add configure.in. 2000-03-07 12:17:34 +00:00
Dave Love
c926a73b2b *** empty log message *** 2000-03-07 12:02:52 +00:00
Gerd Moellmann
9994cc693b (Fminibuffer_complete): Move point to ZV when input is
complete but not unique.
2000-03-07 10:31:12 +00:00
Dave Love
63f6b2c46d Fix keywords, autoload cookies. Split
eval-when-compile form to avoid compilation failure.
2000-03-07 10:10:40 +00:00
Kenichi Handa
fa42c37fe3 Add comments on coding-category-utf-8,
coding-category-utf-16-be, and coding-category-utf-16-le.
(coding_category_name): Include "coding-category-utf-8",
"coding-category-utf-16-be", and "coding-category-utf-16-le".
(UTF_8_1_OCTET_P) (UTF_8_EXTRA_OCTET_P) (UTF_8_2_OCTET_LEADING_P)
(UTF_8_3_OCTET_LEADING_P) (UTF_8_4_OCTET_LEADING_P)
(UTF_8_5_OCTET_LEADING_P) (UTF_8_6_OCTET_LEADING_P): New macros.
(detect_coding_utf_8): New function.
(UTF_16_INVALID_P) (TF_16_HIGH_SURROGATE_P)
(UTF_16_LOW_SURROGATE_P): New macros.
(detect_coding_utf_16): New function.
(detect_coding_mask): Fix bug of returning wrong mask bits in the
case that detect_coding_XXX returns a mask not set in
priorities[i].
(detect_eol_type_in_2_octet_form): New function.
(detect_eol): If cooding->category_idx is for UTF-16, call
detect_eol_type_in_2_octet_form instead of dectect_eol_type.
(detect_coding_system): Don't include `nil' coding-system in the
result.
(Fupdate_coding_systems_internal): Update all coding-categories.
2000-03-07 06:17:54 +00:00
Kenichi Handa
62537270d9 (CODING_CATEGORY_IDX_UTF_8)
(CODING_CATEGORY_IDX_UTF_16_BE)
(CODING_CATEGORY_IDX_UTF_16_LE): New macros
(CODING_CATEGORY_IDX_RAW_TEXT) (CODING_CATEGORY_IDX_BINARY)
(CODING_CATEGORY_IDX_MAX): Re-numbered.
(CODING_CATEGORY_MASK_UTF_8) (CODING_CATEGORY_MASK_UTF_16_BE)
(CODING_CATEGORY_MASK_UTF_16_LE): New macros.
(CODING_CATEGORY_MASK_ANY): Include them.
(CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
2000-03-07 06:17:10 +00:00
Kenichi Handa
2c7794b0bc (coding-category-utf-8,
coding-category-utf-16-be, coding-category-utf-16-le): New coding
categories.  Include them in the argument for set-coding-priority.
2000-03-07 06:16:30 +00:00
Kenichi Handa
9bfcd26931 (reset-language-environment): Include
coding-category-utf-8, coding-category-utf-16-be, and
coding-category-utf-16-le in the argument for set-coding-priority.
(reset-language-environment): Initialize coding-category-utf-8,
coding-category-utf-16-be, and coding-category-utf-16-le to nil.
2000-03-07 06:16:04 +00:00
Kenichi Handa
1b46a680d5 Modify comment about coding system
property `coding-category'.
(make-coding-system): New argument EOL-TYPE.  Pay attention to
coding-category property of PROPERTIES.
2000-03-07 06:15:36 +00:00
Kenichi Handa
8330e2f914 *** empty log message *** 2000-03-07 06:14:45 +00:00