Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!topaz.rutgers.edu!ranga From: ranga@topaz.rutgers.edu (Rangarajan) Newsgroups: comp.emacs Subject: Inverse videoing a region of text in GNU emacs Message-ID: <12497@topaz.rutgers.edu> Date: Sun, 7-Jun-87 14:49:51 EDT Article-I.D.: topaz.12497 Posted: Sun Jun 7 14:49:51 1987 Date-Received: Thu, 11-Jun-87 01:18:34 EDT Organization: Rutgers Univ., New Brunswick, N.J. Lines: 18 Keywords: Inverse-video Is there a command to highlight (reverse video) a region of text? I know that the variable "inverse-video" controls this feature, but it does not seem to work properly in a lisp function. I tried the following (in vain): (defun hilite (from to) ;; Highlight the segment from FROM to TO (kill-region from to) (setq inverse-video t) (goto-char from) (yank) (setq inverse-video nil) ) Any insights? Thanks. --ranga address: rangarajan@ru-aim, ranga@topaz.rutgers.edu