Mercurial > emacs
view lisp/emulation/pc-mode.el @ 11622:eba5c25341ff
(PUSH_FAILURE_INT, POP_FAILURE_INT): Use WIDE_INT.
(WIDE_INT): Defined (two alternate definitions).
(C_ALLOCA): Undef it, if __GNUC__.
(REGEX_ALLOCATE_STACK, REGEX_REALLOCATE_STACK)
(REGEX_FREE_STACK): New macros.
(INIT_FAIL_STACK, DOUBLE_FAIL_STACK, FREE_VARIABLES): Use them.
(re_max_failures) [REL_ALLOC]: Alternative larger initial value.
(re_compile_fastmap): Use REGEX_FREE_STACK.
(re_match_2_internal): Always call FREE_VARIABLES before returning.
Always init regstart, old_regstart, etc. whenever MATCH_MAY_ALLOCATE
is defined.
(FREE_VARIABLES) [REL_ALLOC]: Define non-trivially.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 29 Apr 1995 20:21:41 +0000 |
parents | 6f5c3bb789a5 |
children | afc9c0b4fbb5 |
line wrap: on
line source
(defun pc-bindings-mode () "Set up certain key bindings for PC compatibility. The keys affected are: DELETE (and its variants) delete forward instead of backward. HOME and END move to beginning and end of line C-HOME and C-END move to beginning and end of buffer." (interactive) (define-key function-key-map [delete] "\C-d") (define-key function-key-map [M-delete] [?\M-\C-d]) (global-set-key [C-M-delete] 'kill-sexp) (global-set-key [home] 'beginning-of-line) (global-set-key [end] 'end-of-line) (global-set-key [C-home] 'beginning-of-buffer) (global-set-key [C-end] 'end-of-buffer))