Thread View: gnu.epoch.misc
1 messages
1 total messages
Started by Ron M. Shapiro
Tue, 16 Jul 1991 16:05
A gem in exchange for an answer...
Author: Ron M. Shapiro
Date: Tue, 16 Jul 1991 16:05
Date: Tue, 16 Jul 1991 16:05
32 lines
1822 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads