-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlessmore.kex
21 lines (19 loc) · 1.3 KB
/
lessmore.kex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'set novalue on' /* force KEXX and its way of SIGNAL ON NOVALUE */
/* Usage: [MACRO] LESSMORE command [operand(s)] */
/* Examples: LESSMORE LESS /target/ = normal LESS */
/* LESSMORE MORE TAG /target/ = normal MORE TAG */
/* LESSMORE LESS TAG = LESS TAGged ok. */
/* LESSMORE MORE = MORE (error 3) */
/* Options: SYNONYM LESS 4 MACRO LESSMORE LESS */
/* SYNONYM MORE 4 MACRO LESSMORE MORE */
/* Purpose: LESSMORE executes a specified command with all */
/* operands, but if the operand string matches TAG */
/* it's replaced by TAGGED. This bypasses error 3 */
/* "too few operands" (rc 5) for the commands LESS */
/* and MORE. Define SYNonyms for LESS and MORE as */
/* shown above. */
/* Bugs: 16 lines are comments, 3 lines contain the code */
/* See also: KHELP LESS, KHELP MORE, KHELP TARGET, KHELP TAG */
/* Requires: Kedit 5.0 (Frank Ellermann, 2002) */
arg COMMAND OPERAND /* address KEDIT arg( 1 ) */
if OPERAND == 'TAG' then COMMAND 'TAGged' ; else arg( 1 )