mid-15c., "to choke, strangle," possibly imitative or influenced by Old Norse gaghals "with head thrown back." The sense of "stop a person's mouth" is first attested c.1500. Related: Gagged; gagging.
"joke," 1863, probably related to theatrical sense of "matter interpolated in a written piece by the actor" (1847); or from the sense "made-up story" (1805); or from slang verbal sense of "to deceive, take in with talk" (1777), all perhaps on notion of "stuff, fill" (see gag (v.)).
"act of gagging," 1550s, from gag (v.); figurative use from 1620s.
gag (gāg)
v. gagged, gag·ging, gags
To choke, retch, or undergo a regurgitative spasm.
To prevent from talking.
[1864+; fr early 1800s British, ''soldier,'' of unknown origin; perhaps fr the Sierra Leone Creole language Krio galut fr Spanish galeoto, ''galley slave'']
Equivalent to choke, but connotes more disgust. "Hey, this is Fortran code. No wonder the C compiler gagged." See also barf.
[Jargon File]