Mercurial > emacs
annotate src/s/irix4-0.h @ 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 | 2d33c2445542 375f2633d815 |
rev | line source |
---|---|
1493 | 1 #include "irix3-3.h" |
2 | |
3 #define USG5_3 | |
3305 | 4 #define IRIX4 |
18759
7b452f99a32f
(XPointer): Define XPointer.
Richard M. Stallman <rms@gnu.org>
parents:
18702
diff
changeset
|
5 /* XPointer is not defined in the older X headers -- JPff@maths.bath.ac.uk */ |
7b452f99a32f
(XPointer): Define XPointer.
Richard M. Stallman <rms@gnu.org>
parents:
18702
diff
changeset
|
6 #define XPointer caddr_t |
1493 | 7 |
3098
6aee2746a385
(C_ALLOCA, alloca): Definitions deleted.
Richard M. Stallman <rms@gnu.org>
parents:
3026
diff
changeset
|
8 #undef NEED_SIOCTL |
1493 | 9 |
10077
ee5e9fbcd051
(NEED_UNISTD_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8892
diff
changeset
|
10 /* Include unistd.h, even though we don't define POSIX. */ |
ee5e9fbcd051
(NEED_UNISTD_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8892
diff
changeset
|
11 #define NEED_UNISTD_H |
ee5e9fbcd051
(NEED_UNISTD_H): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8892
diff
changeset
|
12 |
3111
864024ebf526
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3098
diff
changeset
|
13 /* Make process_send_signal work by "typing" a signal character on the pty. */ |
864024ebf526
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3098
diff
changeset
|
14 #define SIGNALS_VIA_CHARACTERS |
864024ebf526
(SIGNALS_VIA_CHARACTERS): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
3098
diff
changeset
|
15 |
18702
df65a2e6eb4e
(C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents:
10077
diff
changeset
|
16 #ifndef __GNUC__ |
1493 | 17 /* use K&R C */ |
18702
df65a2e6eb4e
(C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents:
10077
diff
changeset
|
18 /* We need to increase the expression tree space with -Wf,-XNh |
df65a2e6eb4e
(C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents:
10077
diff
changeset
|
19 (ghazi@caip.rutgers.edu 7/8/97.) |
df65a2e6eb4e
(C_SWITCH_SYSTEM): Add -Wf,-XNh option.
Richard M. Stallman <rms@gnu.org>
parents:
10077
diff
changeset
|
20 */ |
23843
b250f3dae8d9
(C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
Karl Heuer <kwzh@gnu.org>
parents:
18759
diff
changeset
|
21 #define C_SWITCH_SYSTEM -cckr -Wf,-XNh4000 |
1856
c4768d9b6a2f
(C_SWITCH_MACHINE): Don't define if GCC.
Richard M. Stallman <rms@gnu.org>
parents:
1493
diff
changeset
|
22 #endif |
1493 | 23 |
24 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h | |
25 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead | |
26 we'll just define WNOHANG right here. | |
27 (An implicit decl is good enough for wait3.) */ | |
28 | |
29 #define WNOHANG 0x1 | |
30 | |
31 /* No need to use sprintf to get the tty name--we get that from _getpty. */ | |
2992
8c74c4712164
Changes for SGI from Matthew J Brown <mjb@doc.ic.ac.uk>.
Jim Blandy <jimb@redhat.com>
parents:
2223
diff
changeset
|
32 #undef PTY_TTY_NAME_SPRINTF |
1493 | 33 #define PTY_TTY_NAME_SPRINTF |
34 /* No need to get the pty name at all. */ | |
35 #define PTY_NAME_SPRINTF | |
36 /* We need only try once to open a pty. */ | |
37 #define PTY_ITERATION | |
38 /* Here is how to do it. */ | |
39 /* It is necessary to prevent SIGCHLD signals within _getpty. | |
40 So we block them. */ | |
41 #define PTY_OPEN \ | |
42 { \ | |
43 int mask = sigblock (sigmask (SIGCHLD)); \ | |
44 char *name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \ | |
45 sigsetmask(mask); \ | |
46 if (name == 0) \ | |
47 return -1; \ | |
48 if (fd < 0) \ | |
49 return -1; \ | |
50 if (fstat (fd, &stb) < 0) \ | |
51 return -1; \ | |
52 strcpy (pty_name, name); \ | |
53 } | |
52401 | 54 |
55 /* arch-tag: cfd7e200-a4dc-4f67-9a32-4184c10b0c57 | |
56 (do not change this comment) */ |