home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / m / me_cd25.zip / MUTT2.ZIP / ME2.H < prev    next >
Text File  |  1992-11-09  |  4KB  |  131 lines

  1. ;; -*-mutt-*-
  2. ;; me2.h : ME2 Mutt constants 
  3. ;; C Durland    Public Domain
  4.  
  5. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  6. ;;;;;;;;;;;;;; Mutt Machine Variable Types ;;;;;;;;;;;;;;;;;;;;;;;;;
  7. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  8.  
  9. (const
  10.   NUMBER    0x03
  11.   BOOLEAN    0x05
  12.   STRING    0x08
  13.   LIST        0x09
  14.   CHARACTER    0x0A
  15. )
  16.  
  17. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  18. ;;;;;;;;;;;;;; Mark constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  19. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  20.  
  21. (const
  22.   THE-DOT  0
  23.   THE-MARK 1
  24. )
  25.  
  26. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  27. ;;;;;;;;;;;; Buffer constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  28. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  29.  
  30. (const        ;;; Buffer flags
  31.     ;; ME2 buffer flags
  32.   BFModified    0x0001    ;; 1 if the buffer has been modified since last save.
  33.   BFNoCare    0x0002    ;; Don't care about buffer contents.
  34.   BFHidden    0x0004    ;; Buffer is hidden from user.
  35.   BFUndo    0x0008  ;; Undo bit.  Set => undo is on for buffer
  36.   BFMode    0x0010    ;; Tickle bit: force (modeline-hook) to be called
  37.   BFImmortal    0x0020    ;; Not a temporary buffer
  38.   BFInteractive 0x0040    ;; A buffer for humans
  39.  
  40.     ;; Mutt extended buffer flags
  41.   BFHidden2    0x0100  ;; Additional hidden flag for temp hiding
  42.  
  43.     ;; Buffer flags I use a lot
  44.   BFGone    0x0006    ;; Hidden, no care and not modified
  45.   BFHooHum    0x0026    ;; Immortal, hidden, no care and not modified
  46.   BFFoo        0x0022    ;; Immortal, no care and not modified
  47. )
  48.  
  49. (const        ;;; Buffer names
  50.   scratch-buffer "*Scratch*"
  51. )
  52.  
  53. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  54. ;;;;;;;;;;;; Region constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  55. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  56.  
  57. (const
  58.   DOT-ON-SAME-LINE-AS-MARK    1
  59.   DOT-ABOVE-MARK        2
  60.   MARK-ABOVE-DOT        3
  61. )
  62.  
  63. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  64. ;;;;;;;;;;;; Bag constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  65. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  66.  
  67. (const
  68.     ;; Bag types:
  69.   BAG-IS-TEXT        0
  70.   BAG-IS-RECTANGLE    1
  71.  
  72.     ;; Bags allocated by ME2:
  73.   CUT-BUFFER        0
  74.  
  75.     ;; append-to-bag constants
  76.   APPEND-TEXT        0
  77.   APPEND-REGION        2
  78.   APPEND-CHARACTERS    1
  79.   APPEND-RECTANGLE    3
  80. )
  81.  
  82. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  83. ;;;;;;;;;;;; Key codes ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  84. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  85.  
  86. (const
  87.   Enter-key    0x014D
  88.   Space-bar    0x0020
  89. )
  90.  
  91. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  92. ;;;;;;;;;;;; Command completion constants ;;;;;;;;;;;;;;;;;;;;;;;;;;
  93. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  94.  
  95. (const
  96.   CC_SYS    0x01        ;; system keywords
  97.   CC_PGM    0x02        ;; pgms
  98.   CC_MUTT    0x04        ;; Mutt keywords
  99.   CC_BUF    0x08        ;; buffer names
  100.   CC_SYSVAR    0x10        ;; sys vars
  101.   CC_FNAME    0x20        ;; file names
  102. )
  103.  
  104. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  105. ;;;;;;;;;;;;;;;;;;;; Hook Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  106. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  107.  
  108.     ;; Constants used for register-hook (in hook.mut)
  109. (const
  110.    BUFFER-CREATED-HOOK    0
  111.   IBUFFER-CREATED-HOOK    1    ;; interactive (buffer-created-hook)
  112.    READ-FILE-HOOK    2
  113.   IREAD-FILE-HOOK    3    ;; interactive (read-file-hook)
  114.   ENTER-ME-HOOK        4
  115.   LEAVE-ME-HOOK        5
  116.   PROCESS-HOOK        6
  117. )
  118.  
  119. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  120. ;;;;;;;;;;;;;;;;;;;; Process-hook Constants ;;;;;;;;;;;;;;;;;;;;;;;;
  121. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  122.  
  123. (const
  124.     ;; event types
  125.   PROCESS-DONE        0
  126.   OUTPUT-STDOUT        1
  127.   OUTPUT-STDERR        2
  128.   PERROR        3
  129.   CLIENT-MSG        5
  130. )
  131.