🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #1930

A gem in exchange for an answer...

#1930
From: Ron M. Shapiro
Date: Tue, 16 Jul 1991 16:05
32 lines
1822 bytes
Hi.  I thought that I might try this sig first to find an answer because those
who use epoch are generally the wisest people, and also because things have
been a little quiet on this mail list!

But first, I offer a little gem that we have found quite nice here.  It 
highlights all of the comments in a file when that file is visited.  It is
designed to find LISP comments, but it is a simple matter to
convert it to other language formats.  It is based on the code provided by
Heinz Schmidt some time ago.

(set-attribute-global 10 "blue" "white")  ; hilight will be blue on white

(defun mark-comments ()
  (interactive)
  (while (re-search-forward ";.*$" (point-max) t)  ;anything after ';' 
    (add-button (match-beginning 0) (point) 10)))

(setq lisp-mode-hook 'mark-comments)


Short and sweet.  Hope that it is of some use.

Now the question:  When I run the 'basicwin' Xlib example on a Sun4 I cannot
get the keyboard to cause an event (2).  The mouse buttons work fine.  The 
same code running on an apollo (unfortunately) works fine, and keys are seen
as expected.  I believe that I am unaware of something that must be done in the
sun environment to read the keyboard.  Any help would be greatly appreciated!


Thanks.

Ron Shapiro
Technical Details
Message-ID: <9107161605.AA01490@apollo.srl.ford.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!cae1.srl.ford.com!rms

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,e8ca7c0f52b15aab,start
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1991-07-16 15:21:33 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!cae1.srl.ford.com!rms
From: rms@cae1.srl.ford.com (Ron M. Shapiro)
Newsgroups: gnu.epoch.misc
Subject: A gem in exchange for an answer...
Message-ID: <9107161605.AA01490@apollo.srl.ford.com>
Date: 16 Jul 91 16:05:29 GMT
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 32