🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #969

Arrrrrrrrrrrgh!!! Can't get Tek info stuff to work!!! (Please help :-)

#969
From: Skip Montanaro
Date: Fri, 16 Apr 1993 14:29
80 lines
3705 bytes
I'm using Epoch 4.2. I am having no luck getting the Tek info stuff in the
contrib/tek-* directory working properly. Here's the relevant section from
my ~/.emacs file that initializes stuff:

  (defvar running-epoch (boundp 'epoch::version))

  ;; Epoch
  (if running-epoch
      (progn

	(setq epoch::nonlocal-minibuffer nil)
	(setq load-path (cons "/home/ausable/software/emacs/epoch-lisp"
			      load-path))
	(setq load-path
	      (cons
	       "/home/ausable/software/src/gnu/epoch-4.2/contrib/tek-epoch-stuff"
	       load-path))
	(setq load-path
	      (cons
	       "/home/ausable/software/src/gnu/epoch-4.2/contrib/tek-highlight-2.0"
	       load-path))

	; Set up an autoload for syntax decoding stuff.
	(autoload 'decode-syntax-table "syntax-decode" "autoloadable function" t)

	; Highlight comments in source code
	(require 'tek-src-highlight-setup)

	; Customise the mouse drag style
	(require 'tek-motion-highlight-setup)

	; Set up for highlighting in dired.
	(require 'tek-dired-highlight-setup)

	; Set up for highlighting in info browser
	(require 'tek-info-highlight-setup)

	; Set up for highlighting in gnus.
	(require 'tek-gnus-highlight-setup)

	; Set up for highlighting in VM.
	(require 'tek-vm-highlight-setup)

	; Set up for highlighting under mh-e.
	(require 'tek-mh-e-highlight-setup)

	; Set up for highlighting in info browser
	(require 'tek-info-setup)
	(message "Tek Info setup complete") (sit-for 0)
  ))

At this point, I was able to run info, but nothing was highlighted, and I
got undefined messages for clear-buttons. (I could use the normal Emacs
keyboard bindings, but that was not what I was after.) After poking around a
bit, I found the following code in tek-highlight-2.0/tek-style-utils.el:

    ;; Select appropriate functions for adding and clearing buttons/zones
    (if tek-highlight-use-attributes
	(progn
	  (fset 'add-zone 'add-button)
	  (fset 'clear-zones 'clear-buttons)))

The tek-highlight-use-attributes variable was nil, so the fset's weren't
getting executed. I tried setting tek-highlight-use-attributes to t - still
no good. I eventually changed all the clear-buttons and add-button calls in
.../contrib/tek-* to clear-zones and add-zone, respectively. Now, when I run
info, the references are all highlighted, but when I click on anything with
the mouse, I get an "End of buffer" message.

I could continue this frolic through the ELisp meadow (it is Spring, after
all), but I thought I'd pause and ask for some help before I get too far
afield. Any ideas what I'm doing wrong? I have several hundred man pages for
an internal OO system just converted to Info that I'd like to browse...

Thanks,

--
Skip (montanaro@crd.ge.com)
"Why can't X be this easy?" -- me, after learning about dlopen()
Technical Details
Message-ID: <MONTNARO.93Apr16092926@ausable.crd.ge.com>
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!news.netmbx.de!mailgzrz.TU-Berlin.DE!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!howland.reston.ans.net!noc.near.net!uunet!news.crd.ge.com!nntp!montnaro

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,256815f37c39fefd,start
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1993-04-16 07:17:49 PST
Newsgroups: gnu.epoch.misc
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!news.netmbx.de!mailgzrz.TU-Berlin.DE!math.fu-berlin.de!ira.uka.de!sol.ctr.columbia.edu!howland.reston.ans.net!noc.near.net!uunet!news.crd.ge.com!nntp!montnaro
From: montnaro@ausable.crd.ge.com (Skip Montanaro)
Subject: Arrrrrrrrrrrgh!!! Can't get Tek info stuff to work!!! (Please help :-)
Message-ID: <MONTNARO.93Apr16092926@ausable.crd.ge.com>
Sender: usenet@crdnns.crd.ge.com (USENET News System)
Nntp-Posting-Host: ausable.crd.ge.com
Reply-To: montanaro@ausable.crd.ge.com (Skip Montanaro)
Organization: GE Corporate Research & Development, Schenectady, NY
Distribution: gnu
Date: Fri, 16 Apr 1993 14:29:26 GMT
Lines: 80