view etc/ms-kermit @ 68953:0ddd5b380ffb

Use allout invisible-text overlays instead of selective display for concealed text. Also, lots of general cleanup, and improved compatibility code. (allout-version) Incremented, corrected, revised, and refined module commentary. (provide 'allout): Moved to the bottom, added a require of overlay. (allout-encrypt-unencrypted-on-saves): Defaults to t instead of `except-current'. (allout-write-file-hook-handler): Minimize delay. (count-trailing-whitespace-region): New function so auto-encryption of current topic can resituate cursor exactly. PGP/GPG encryption trims trailing whitespace from lines, which must be accounted for across encryption then decryption. (allout-command-prefix): Now defaults to "\C-c<space>" rather than just plain "\C-c", to avoid intruding on user's keybinding space. (allout-toggle-current-subtree-encryption): Pass along fetch-pass parameter, so user request to provide a new password is done. (allout-outside-normal-auto-fill-function, allout-auto-fill): Refined mechanism for auto-filling behavior while in allout mode. (allout-mode): Explicitly specify the mode map in the docstring. Clarify provision for various write-file hook var names. Adjusted for invisible-text overlays instead of selective-display. (allout-depth): Really return 0 if not within any topic. This rectifies `allout-beginning-of-level' and sequence numbering errors that occur when cutting and pasting numbered topics. Changed from a in-line subst to a regular function, as well. (allout-pre-next-prefix): Renamed from allout-pre-next-preface. (allout-end-of-subtree, allout-end-of-subtree) (allout-end-of-entry, allout-end-of-current-heading) (allout-next-visible-heading, allout-open-topic, allout-show-entry) (allout-show-children, allout-show-to-offshoot) (allout-hide-current-entry, allout-show-current-entry): Rectified handling of trailing blank lines between items. (allout-line-boundary-regexp, set-allout-regexp, allout-depth) (allout-current-depth, allout-unprotected, allout-hidden-p) (allout-on-current-heading-p, allout-listify-exposed) (allout-chart-subtree, allout-goto-prefix) (allout-back-to-current-heading, allout-get-body-text) (allout-snug-back, allout-flag-current-subtree, allout-show-all) (allout-hide-region-body, allout-toggle-subtree-encryption) (allout-encrypt-string, allout-encrypted-key-info) (allout-next-topic-pending-encryption, allout-encrypt-decrypted) (allout-file-vars-section-data): Adjusted for use with invisible-text overlays instead of selective-display. (allout-kill-line, allout-kill-topic, allout-yank-processing): Reworked for use with invisible text overlays. (allout-current-topic-collapsed-p): New function. (allout-hide-current-subtree): Use allout-current-topic-collapsed-p to know when to close the containing topic. (allout-pre-command-business, allout-post-command-business): Simplify undo-batching and dynamic isearch exposure. (allout-set-overlay-category): New for invisible-text overlays. Sets properties of allout-overlay-category, used by allout-flag-region to set invisible-text overlay properties. (allout-get-invisibility-overlay): Get the first qualifying invisibility overlay, so we can find the extent of it. (allout-back-to-visible-text): Get to just before the beginnining of the current invisibility overlay, if any. (allout-overlay-insert-in-front-handler) (allout-overlay-interior-modification-handler) (allout-before-change-handler, allout-isearch-end-handler): New functions to handle extraordinary actions affecting concealed text. (allout-flag-region): Use overlays instead of selective-display for invisible text - by inheritence from the properties of allout-overlay-category in mainline emacs, and applied property-by-property in xemacs, some recent versions of which don't inherit the properties from the category. Provisions to respond to concealed-text edits simplified drastically. (allout-isearch-rectification, allout-isearch-was-font-lock) (allout-isearch-expose, allout-enwrap-isearch) (allout-isearch-abort, allout-pre-was-isearching) (allout-isearch-prior-pos, allout-isearch-did-quit) (allout-isearch-dynamic-expose) (allout-hide-current-entry-completely): Functions deleted. (allout-undo-aggregation): Explicit undo aggregation no longer necessary due to transition away from selective-display. (set-allout-regexp, allout-up-current-level) (allout-next-visible-heading, allout-forward-current-level) (allout-open-topic, allout-reindent-body, allout-rebullet-topic) (allout-kill-line, allout-yank-processing, allout-show-children) (allout-expose-topic, allout-old-expose-topic) (allout-listify-exposed, allout-insert-latex-header) (allout-toggle-subtree-encryption, allout-encrypt-string) (remove-from-invisibility-spec, allout-hide-current-subtree): Ditched unused variables.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 17 Feb 2006 10:52:30 +0000
parents 695cf19ef79e
children 7b71baed35d7 375f2633d815
line wrap: on
line source

;;; This file is designed for an 8-bit connection.
;;; Use the file ms-7bkermit if you have a 7-bit connection.

;; Meta key mappings for EMACS
;; By Robert Earl (rearl@watnxt3.ucr.edu)
;; May 13, 1990
;;
;; WARNING:
;;  requires an 8-bit path to host.  many dialups and lans won't pass the
;;  eighth bit by default and may require a special command to turn this
;;  off.  `screen' is known to mask the eighth bit of input as well.

set term controls 8-bit
set translation key off

;; control keys
set key \3449 \128	;; m-c-@
set key \3358 \129	;; m-c-a
set key \3376 \130	;; m-c-b
set key \3374 \131	;; m-c-c
set key \3360 \132	;; m-c-d
set key \3346 \133	;; m-c-e
set key \3361 \134	;; m-c-f
set key \3362 \135	;; m-c-g
set key \3342 \136	;; m-bs
set key \3363 \136	;; m-c-h (sends same code as above)
set key \2469 \137	;; m-tab
set key \3351 \137	;; m-c-i (same as above)
set key \3364 \138	;; m-c-j
set key \3365 \139	;; m-c-k
set key \3366 \140	;; m-c-l
;set key \3378 \141	;; m-c-m
set key \2332 \141	;; m-ret (sends same code as above)
set key \3377 \142	;; m-c-n
set key \3352 \143	;; m-c-o
set key \3353 \144	;; m-c-p
set key \3344 \145	;; m-c-q
set key \3347 \146	;; m-c-r
set key \3359 \147	;; m-c-s
set key \3348 \148	;; m-c-t
set key \3350 \149	;; m-c-u
set key \3375 \150	;; m-c-v
set key \3345 \151	;; m-c-w
set key \3373 \152	;; m-c-x
set key \3349 \153	;; m-c-y
set key \3372 \154	;; m-c-z

;; misc keys
;set key \3354 \155	;; m-c-[
set key \2305 \155	;; m-esc (sends same as above)
set key \3371 \156	;; m-c-\
set key \3355 \157	;; m-c-]
set key \3453 \158	;; m-c-^
set key \3458 \159	;; m-c-_

;; \160 is conspicuously missing here--
;; alt-spc doesn't generate a distinct scan code...
;; neither do shift-spc and ctrl-spc.
;; no idea why.

set key \2936 \161	;; m-!
set key \2856 \162	;; m-"
set key \2938 \163	;; m-#
set key \2939 \164	;; m-$
set key \2940 \165	;; m-%
set key \2942 \166	;; m-&
set key \2344 \167	;; m-'
set key \2944 \168	;; m-(
set key \2945 \169	;; m-)
set key \2943 \170	;; m-*
set key \2947 \171	;; m-+
set key \2355 \172	;; m-,
set key \2434 \173	;; m--
set key \2356 \174	;; m-.
set key \2357 \175	;; m-/

;; number keys
set key \2433 \176	;; m-0
set key \2424 \177	;; m-1
set key \2425 \178
set key \2426 \179
set key \2427 \180
set key \2428 \181
set key \2429 \182
set key \2430 \183
set key \2431 \184
set key \2432 \185	;; m-9

set key \2855 \186	;; m-:
set key \2343 \187	;; m-;
set key \2867 \188	;; m-<
set key \2435 \189	;; m-=
set key \2868 \190	;; m->
set key \2869 \191	;; m-?
set key \2937 \192	;; m-@

;; shifted A-Z
set key \2846 \193	;; m-A
set key \2864 \194
set key \2862 \195
set key \2848 \196
set key \2834 \197
set key \2849 \198
set key \2850 \199
set key \2851 \200
set key \2839 \201
set key \2852 \202
set key \2853 \203
set key \2854 \204
set key \2866 \205
set key \2865 \206
set key \2840 \207
set key \2841 \208
set key \2832 \209
set key \2835 \210
set key \2847 \211
set key \2836 \212
set key \2838 \213
set key \2863 \214
set key \2833 \215
set key \2861 \216
set key \2837 \217
set key \2860 \218	;; m-Z

set key \2330 \219	;; m-[
set key \2347 \220	;; m-\
set key \2331 \221	;; m-]
set key \2941 \222	;; m-^
set key \2946 \223	;; m-_
set key \2345 \224	;; m-`

;; lowercase a-z
set key \2334 \225	;; m-a
set key \2352 \226
set key \2350 \227
set key \2336 \228
set key \2322 \229
set key \2337 \230
set key \2338 \231
set key \2339 \232
set key \2327 \233
set key \2340 \234
set key \2341 \235
set key \2342 \236
set key \2354 \237
set key \2353 \238
set key \2328 \239
set key \2329 \240
set key \2320 \241
set key \2323 \242
set key \2335 \243
set key \2324 \244
set key \2326 \245
set key \2351 \246
set key \2321 \247
set key \2349 \248
set key \2325 \249
set key \2348 \250	;; m-z

;; more shifted misc. keys
set key \2842 \251	;; m-{
set key \2859 \252	;; m-|
set key \2843 \253	;; m-}
set key \2857 \254	;; m-~
set key \2318 \255	;; m-del


;;; arch-tag: 93cefb0a-2b07-4d09-ae78-4d807b15645d