HDTenEightyP/NetNews huggingface dataset:
From: hm342st@unidui.uni-duisburg.de (Michael Staats)
Newsgroups: comp.emacs
Subject: Re: Demacs + aucTeX = problem?
Date: 5 Nov 1992 10:38:39 +0100
Organization: Universitaet Duisburg GH
NNTP-Posting-Host: unidui.uni-duisburg.de

In <1992Nov4.213628.1777@kakwa.ucs.ualberta.ca> niu@prancer.eche.ualberta.ca (Shaohua Niu) writes:

>Hi, everybody. I got a problem with Demacs 1.20 and hope somebody there
>can help me. I installed Demacs 1.20 on my 486 machine running DOS5.0,
>I set the termcap to ibmpc and I got the correct key-bindings (e.g., 
>the arrow keys worked). However, when I combine AucTeX with demacs, 
>(I appended the AucTeX init file to _emacs), all the functions provided
>by AucTeX seem to be working properly. However, when I quit demacs and 
>come back to DOS, the function keys and arrow keys on the keyboard are
>completely changed, e.g., the upper arrow is changed to ^P. Does anyboby
>know the reason?


I'd say this no no problem with auc-tex but with your ibmpc.el.
On startup demacs uses ansi sequences to redefine some keys. If
everything is installed correctly and your ibmpc.el is not corrupted
these definitions are "undone" if you leave demacs.
Maybe you accidently destroyed some important thing while installing
auc-tex. (I have demacs under MSDOS 5.0 with auc-tex running without
problems.)

>BTW, demacs has another weird problem with line wraping. Whenever the 
>last word in a line contains a letter z, Demacs will wrap the line at 
>the position of the letter z, i.e., it breaks the word that contains 
>the letter z into two lines. Anybody has an idea?

That's a known bug, it will hopefully be fixed in the next version.

Hope I helped you a little,
Michael
-- 
Michael Staats, Student of Theoretical Physics, Uni-GH Duisburg 
BTW: I'm looking for a Makefile which takes physical model, applied methods,
expected results and literature references as input and generates a master
thesis in Theoretical Physics to save time for reading news. Help me, please!
From: Charlie Rosenberg <crosenberg@igc.apc.org>
Newsgroups: comp.emacs
Date: 12 Nov 92 21:59 PST
Subject: Re: help building 3.11 under xenix
Nf-ID: #R:cdp:1346900004:cdp:1346900007:000:174
Nf-From: cdp.UUCP!crosenberg    Nov 12 21:59:00 1992



I am looking for ndir.c to compile 3.11 as recommended but archie
just shows scandir.c and it don't seem to work.

thanks,

(still patience) Charlie (but losing it fast :-)

Newsgroups: comp.emacs
From: jack@multimedia.news.cc.gatech.edu (Tom Rodriguez)
Subject: Other buffer switching stuff - next-similar-buffer
Organization: Software Research Center / Georgia Tech
Distribution: usa
Date: Mon, 9 Nov 1992 23:20:03 GMT


;;; --------------------------------------------------------------------------
;;; Author: Tom Rodriguez (jack@cc.gatech.edu)
;;; Copyright (C) 1992.
;;; Here are some functions i find useful that are related to buffer
;;; switching in emacs.  They allow you to keep several buffers around
;;; with names like foo, foo<2>, foo<3> and cycle through them.  You
;;; can also push and pop foo, changing foo to foo<2> and foo<2> to
;;; foo, respectively.  I find these very useful with multiple shells
;;; compiles, and man pages.
;;;
;;;  
;;;  Here are the key bindings I normally use.
;;; (define-key global-map "\C-x4n" 'next-similar-buffer)
;;; (define-key global-map "\C-x4p" 'push-buffer-name)
;;; (define-key global-map "\C-x4t" 'pop-buffer-to-top)
;;;
;;; this function renames a buffer to an unused name so that 
;;; buffers that are reused by packages can be stuffed away
;;; to be used later.

(defun push-buffer-name (&optional name)
  (interactive)
  (if name
      (if (not (stringp name))
	  (setq name (buffer-name name)))
      (setq name (buffer-name)))
  (save-excursion
    (set-buffer name)
    (let (new-buffer new-buffer-name)
      (setq new-buffer (generate-new-buffer 
			(buffer-basename name)))
      (setq new-buffer-name (buffer-name new-buffer))
      (kill-buffer new-buffer)
      (rename-buffer new-buffer-name)
      (set-buffer-modified-p (buffer-modified-p)))))


(defun pop-buffer-to-top (&optional name)
  (interactive)
  (if name
      (if (not (stringp name))
	  (setq name (buffer-name name)))
      (setq name (buffer-name)))
  (let ((basename (buffer-basename name)))
    (if (not (eq basename (buffer-name)))
	(progn 
	  (if (get-buffer basename)
	      (progn
		;; push it so that the old buffer goes where this one is
		(push-buffer-name)
		;; push the other buffer out of the way
		(save-excursion
		  (switch-to-buffer basename)
		(push-buffer-name))))
	  ;; push this one into place
	  (push-buffer-name)))))


(defun next-similar-buffer ()
"Switch to the next buffer in the buffer-list with a name similar to
current buffer.  Similar in this case means that it has the same base
and may end with <[2-9]>."
  (interactive)
  (defun next-match (regex blist)
    (cond ((null blist) nil)
	  ((string-match regex (car blist))
	   (switch-to-buffer (car blist)))
	  (t (next-match regex (cdr blist)))))

  (defun buffer-basename (name)
    (if (string-match "\\(<[2-9]+>\\)$" name)
	(substring name 0 (match-beginning 0))
      name))

  (let ((case-fold-search nil))	
    (next-match
     (concat "^" (regexp-quote
		  (buffer-basename (buffer-name (current-buffer)))))
     (reverse (cdr (mapcar (function buffer-name) (buffer-list)))))))




--
Tom Rodriguez  (jack@cc.gatech.edu)
Multimedia Computing Group - GVU Lab
Georgia Institute of Technology
Atlanta, Georgia 30332-0280
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.emacs
Subject: Re: ELISP help needed
Date: 11 Nov 1992 20:22:44 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
NNTP-Posting-Host: telecaster.think.com
Keywords: find-file-hooks write-file-hooks

In article <1992Nov10.213638.11986@ims.com> gerdh@ims.com (Gerd Hoeren) writes:
>And I do an:
>
>      (setq find-file-hooks 'xyzzy)
>
>Then, the next find-file will complain about:
>
>      Wrong type argument: sequencep, xyzzy
>
>If I do the same with the write-file-hooks, I get:
>
>      Wrong type argument: listp, xyzzy

Notice that the names of the variables are -hooks, plural.  As it says in
the built-in documentation (viewable with describe-variable, "C-h v"),
these should contain a "list of functions".  Therefore you should do

(setq find-file-hooks (cons 'xyzzy find-file-hooks))
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
Newsgroups: comp.emacs
From: elias@fitz.TC.Cornell.EDU (Doug Elias)
Subject: insuring that functionality is always present
Organization: Software and Consulting Support Group, Cornell Theory Center,
	C.U.
Distribution: comp
Date: Fri, 6 Nov 1992 17:43:38 GMT

Hiya...

i recently grabbed a copy of Ajay Shekhawat's <ajay@cs.Buffalo.EDU>
"linenumbers.el" from archive.cis.ohio-state.edu, and have been trying
ever since to get it to always be invoked whenever i create a new
buffer -- i've got it explicitly loaded in my .emacs, but i still have
to explicitly (load-file) it within every buffer in order to have it
present...why?


doug
--
#  ____    |Internet:   elias@tc.cornell.edu
#dr _|_)oug|USmail:     Sci.Comp.Support/Cornell Theory Center
#  (_|     |            737 TheoryCtrBldg/C.U./Ithaca/N.Y./14853-3801
#  (_|__   |MaBelle:    607-254-8686   Fax: 607-254-8888
From: Charlie Rosenberg <crosenberg@igc.apc.org>
Newsgroups: comp.emacs
Date: 10 Nov 92 14:26 PST
Subject: help building 3.11 under xenix
Nf-ID: #N:cdp:1346900004:000:1120
Nf-From: cdp.UUCP!crosenberg    Nov 10 14:26:00 1992


Any suggestions here?


make -f makexenx
        cc -O -I. -c bind.c
bind.c
epath.h(8) : error 54: expected '(' to follow 'include'
epath.h(8) : error 59: syntax error : 'constant'
bind.c(32) : error 65: 'pathname' : undefined
bind.c(35) : error 65: 'TEXT12' : undefined
bind.c(69) : error 65: 'TEXT13' : undefined
bind.c(104) : error 65: 'TEXT15' : undefined
bind.c(107) : error 65: 'TEXT16' : undefined
bind.c(166) : error 65: 'TEXT17' : undefined
bind.c(204) : error 65: 'TEXT215' : undefined
bind.c(209) : error 65: 'TEXT215' : undefined
bind.c(217) : error 65: 'TEXT130' : undefined
bind.c(251) : error 65: 'TEXT17' : undefined
bind.c(279) : error 65: 'TEXT18' : undefined
bind.c(293) : error 65: 'TEXT19' : undefined
bind.c(364) : error 65: 'TEXT20' : undefined
bind.c(386) : error 65: 'TEXT21' : undefined
bind.c(389) : error 65: 'TEXT22' : undefined
bind.c(395) : error 65: 'TEXT23' : undefined
bind.c(587) : error 65: 'pathname' : undefined
bind.c(708) : error 65: 'pathname' : undefined
bind.c(709) : error 65: 'pathname' : undefined
bind.c(1033) : error 65: 'TEXT16' : undefined
*** Error code 22

Stop.
72% 

Newsgroups: comp.emacs
From: bob@morningstar.com (Bob Sutterfield)
Subject: "rnews" with threading?
Organization: The Ohio State University Department of Computer and Information Science
Date: Wed, 11 Nov 1992 04:41:36 GMT

   Date: Wed, 11 Nov 1992 14:36:34 +1300
   From: An Inquirer <ai@some.where>
   Newsgroups: comp.emacs

   In article <BOB.92Nov8205208@roughy.MorningStar.Com> you write:
   > Don't bother with rnews.  Get
   > archive.cis.ohio-state.edu:pub/gnu/emacs/elisp-archive/packages/gnus-3.14.1.tar.Z
   > instead.  It has fairly useful threading capabilities.

   Is there any way you can email me this file as I cant ftp.

You can get it via a direct anonymous UUCP call, from either osu-cis
(write to uucp@cis.ohio-state.edu for instructions) or uunet (write to
uucp@uunet.uu.net for instructions).
Newsgroups: comp.emacs
From: oshins@wolf.cs.washington.edu (Jake Oshins)
Subject: DEMACS setup
Organization: /homes/iws/oshins/.organization
Distribution: comp
Date: 11 Nov 92 23:33:16


Hello,
  I have installed Demacs on my 386 machine and it is telling me that
I need to set the value of the environment variable TERM (see tset)
which is clearly already set to 'ibmpc'.  This is really frustrating.
Does anyone know what the real problem is?

Thank you,
Jake Oshins
oshins@cs.washington.edu
Newsgroups: comp.emacs
From: newton@wilbur.psu.edu (Cynthia Newton)
Subject: Help! Compiling emacs on RS/6000.
Organization: Penn State University, Center for Academic Computing
Date: Sat, 07 Nov 92 07:38:42 GMT

I tried to compile emacs 18.59 on RS/6000 running AIX v3.
But it gives error at line 202 of crt0.c.
Please help!!!

Thanks.
-- 
C Newton
From: Charlie Rosenberg <crosenberg@igc.apc.org>
Newsgroups: comp.emacs
Date: 09 Nov 92 08:35 PST
Subject: Re: using wordwrap with uemacs
Nf-ID: #R:cdp:1346900001:cdp:1346900003:000:432
Nf-From: cdp.UUCP!crosenberg    Nov  9 08:35:00 1992



Thanks, set-global-mode-wra in the .emacsrc file works fine, except
you have to put one in the home directory of each user. 

I did not try David's macro yet.  Someone else wrote that you can use
the $modeflag = False in 3.11 to turn off the mode line.  (though I admit
I can't figure out how to make that work - oops, ever mind, I need to
update to 3.11.  Anyone now where a .tar version rather than a .arc version
is available?
From: osynw@gemini.oscs.montana.edu (Nate Williams)
Newsgroups: comp.emacs
Subject: Re: Micro-Emacs Source?
Keywords: n
Date: 12 Nov 92 03:46:12 GMT
Article-I.D.: coe.1992Nov12.034612.2722
Organization: Montana State University

In article <1346900005@igc.apc.org> Charlie Rosenberg <crosenberg@igc.apc.org> writes:
>
>
>midas.mgmt.purdue.edu  has microEMACS 3.11
>
>as does:
>
>ftp.th-darmstadt.de in the directory pub/editors

The most current patch that is USABLE has been uploaded to simtel20,
in the directory msdos.uemacs, so I would recommend getting it there
before anything else.  Daniel's diffs are kind of messed up with
respect to everyone else diff program, so patch has a hard time
putting them in the correct place.

Nate
-- 
osynw@terra.oscs.montana.edu |  A hacker w/out a home. 
work: (406) 994-5991         |  Keeper of the Unofficial 386BSD Bug Report
home: (406) 586-0579         |  Please send bugs and/or fixes you find.
From: brooksby@brigham.NoSubdomain.NoDomain (G Brooksby)
Newsgroups: comp.emacs
Subject: Micro-Emacs Source?
Date: 10 Nov 92 17:29:34 GMT
Organization: GE Corporate R&D Center

I'm new to the group and the FAQ has been removed from my server.
Could someone tell me if there is an anonymouse FTP site
where I could get the most recent version of Micro-Emacs?

Thanks in advance

GB
Organization: Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.emacs
Date: Tue, 10 Nov 1992 20:16:24 -0500 
From: Steven Robert Bates <sb41+@andrew.cmu.edu>
Subject: Re: emacs over a modem on a mac keyboard

Excerpts from netnews.comp.emacs: 10-Nov-92 emacs over a modem on a
mac.. Edward J. Hartnett@khons (1577)

> But when I
> tried that same thing with C-h it wouldn't accept C-h by itself, it
> wanted some other key to be pressed afterwards. When I hit C-h emacs
> showed that as C-h-  and waited for another key. It's hard to explain,
> but try it and see. Can anyone explain this strange behavior to me?

Yes.  C-h is what is called a prefix command.  Prefix commands are
basicly keymaps.  In the case of help-command it is an alist of the help
keys and their functions.  The way it works is when a prefix command in
envoked
the next key's function binding is taken for the prefix command's
keymap.  This is how C-x C-c work.  If you want to change the binding of
C-h, it looks like you have to either to add the following to your
.emacs:

(global-set-key "\C-h" 'backward-delete-char)  ; note no more help key

You will probaly want to bind the symbol help-command to some other key,
so can still get help.

Or you can do an "esc esc" or M-x eval-expression and type the same line
as you would add to your .emacs.

Hope this helps.
Steven Robert Bates
Student User Consultant
Cluster Manager Wean 5209
	
	sb41@andrew.cmu.edu
	R746SB41@VB.CC.CMU.EDU
	cevin@CMU.EDU

It has to warm up...     So it can kill you!
	-Gomez Adams
From: Charlie Rosenberg <crosenberg@igc.apc.org>
Newsgroups: comp.emacs
Date: 07 Nov 92 11:05 PST
Subject: using wordwrap with uemacs
Nf-ID: #N:cdp:1346900001:000:424
Nf-From: cdp.UUCP!crosenberg    Nov  7 11:05:00 1992


Following the uemacs manul, (I am using 3.9), I entered
Esc M and at the global-mode-add prompt, I type wrap and press Enter.
The cursor goes to the first line position, global-mode-add stays
on the screen and I don't have any wordwrap.  What am I doing wrong?

Is there a way to start uemacs so that wordwrap will be the default?

Is there a way to turn off the status line at the bottom of the screen?

thanks,
Charlie
From: gmribeir@david.wheaton.edu (Glauber)
Newsgroups: comp.emacs
Subject: Adding new modes to FREE EMACS: is it possible?
Date: 4 Nov 92 18:00:32 GMT
Article-I.D.: wheaton.1992Nov4.180032.23004
Reply-To: gmribeir@david.wheaton.edu
Organization: (n.) Body of persons united for a specific purpose.

I have copied Free Emacs 1.6 off a simtel CDROM, and for the
first time i got interested in an emacs editor. This is a
very nice implementation.

One thing that's missing IMHO is manuals. Well, it's free,
so i'm not compalining, but i'm wondering how the text modes
are implemented (since there is no source code for the modes
libraries) and if it is possible for a mortal to implement a
"Clipper mode" for editing Clipper source code.

Thank you for any help. Please post, because the site i'm in
hsn't received email from outside for quite a while...


						Glauber


-- 
Glauber Ribeiro - Wheaton College, IL  (USA)
                  glauber@david.wheaton.edu 
		  "Wheaton College: always at the biting edge of technology"
Newsgroups: comp.emacs
From: ejh@khonshu.colorado.edu (Edward J. Hartnett)
Subject: Re: setting mode hook to call two minor modes, how?
Organization: CIRES, University of Colorado
Date: 10 Nov 92 13:28:09

In article <EJH.92Nov10114732@khonshu.colorado.edu> ejh@khonshu.colorado.edu (Edward J. Hartnett) writes:

   I'm using GNU EMACS 18.57 on a Sun running SunOS4.1.1

   I'm trying to do a little lisp work in emacs, but my lisp is quite
   rusty. One thing that I want to do is call two minor modes from the
   fortran mode hook. Here's what I have in my .emacs now:

   (setq fortran-mode-hook '(lambda () (abbrev-mode 1)))

   I know there's a way to add the auto-fill mode, but how? (I'm trying
   to get the auto-fill mode to automatically continue a line that runs
   beyond column 72).

   Any help or ideas would be appreciated.

   --
   Edward Hartnett			ejh@khonshu.colorado.edu


Well, I posted this a while ago and then went back and reread my elisp
manual chapter 11, section 2, Lambda Expressions, and it made a lot
more sense than the last time I read it, and I see that the answer to
the above question is now obvious to me. I'll cancel the original
article and, as a pennance, and with the thought that there might be a
few other beginning elisp programs out there who are interested,
here's the answer. But since I just figured this out, there's a good
chance my explanation is wrong.

(setq fortran-mode-hook '(lambda () 
	(abbrev-mode 1) (auto-fill-mode 1)))

The reason is that a lambda expression consists of the following:
(lambda (ARG-VARIABLES...)
 [DOCUMENTATION STRING]
 [INTERACTIVE-DECLARATION]
BODY-FORMS...)

This means that the whole thing is a list, with the special symbol
lambda as the car of the list, the next element is another list, which
will contain the arguments to the function, then there's two optional
list items, the documentation string, which tells what the function
does, and the interactive declaration, which allows the funtion to ask
the user to input the arguments in a friendly way. The rest of the
list are lists which are themselves function calls. So to add another
function to the fortran hook, I add another element to the list, and
the element I add is the list (auto-fill-mode 1) which turns on
auto-fill mode. 

What I don't quite understand is why some functions (like the one
called by fortran-mode-hook) are lambda expressions, and others, like
auto-fill-mode don't. I guess either one or the other is not really a
function? Any expert care to clarify?

PS - while looking into the fortran.el for more clues I found that in
this newest version abbrev-mode is supposed to be turned on by default
anyway, so I shouldn't need it in my fortran-mode-hook anyway.











--
Edward Hartnett			ejh@khonshu.colorado.edu
From: danodom@matt.ksu.ksu.edu (Dan Odom)
Newsgroups: comp.emacs
Subject: Re: How to order Emacs manuals?
Date: 13 Nov 92 02:37:17 GMT
Organization: Kansas State University
NNTP-Posting-Host: matt.ksu.ksu.edu

Print format is available for U.S. $20.00 from

Free Software Foundation, Inc.
675 Mass. Ave
Cambridge, MA 02139
617.876.3296

An Emacs LISP manual is U.S. $50.00

-- 
Dan Odom
Kansas State University
danodom@matt.ksu.ksu.edu
From: ethanb@ptolemy.astro.washington.edu (Ethan Bradford)
Newsgroups: comp.emacs
Subject: Setting file-hooks (was Re: ELISP help needed)
Date: 12 Nov 92 05:39:26 GMT
Article-I.D.: ptolemy.ETHANB.92Nov11213926
Organization: U. of Washington
To: gerdh@ims.com (Gerd Hoeren)

The variables find-file-hooks and write-file-hooks expect their values
to be *lists* of functions.  Thus, 

      (defun xyzzy ()
        (message "hello"))

      (setq find-file-hooks '(xyzzy))

Will do what you were attempting, except that it will eliminate any
other functions you already had in that variable.  It is better to do

  (setq find-file-hooks (cons 'xyzzy find-file-hooks))

to add your new function.

In article <1992Nov10.213638.11986@ims.com> gerdh@ims.com (Gerd Hoeren) wrote:

   I'd like to connect an elisp function to the find-file-hooks and
   write-file-hooks.  I seem to be missing something in my elisp syntax
   though.

   Suppose my function is just:

	 (defun xyzzy ()
	   (message "hello"))

   And I do an:

	 (setq find-file-hooks 'xyzzy)

   Then, the next find-file will complain about:

	 Wrong type argument: sequencep, xyzzy

   If I do the same with the write-file-hooks, I get:

	 Wrong type argument: listp, xyzzy

   I've tried a number of variations on this syntax, but I'm not winning.
   Thanks in advance for the help!

   --------------------------------------
   Gerd Hoeren
     Integrated Measurement Systems, Inc.
     Voice: (503) 626-7117
     Fax:   (503) 644-6969
     Email: gerdh@ims.com
   --------------------------------------
From: rhurwitz@hfglobe.intel.com (Roger Hurwitz)
Newsgroups: comp.emacs
Subject: C program indenting question
Date: 6 Nov 92 17:08:00 GMT
Followup-To: rhurwitz@mstuux.intel.com
Organization: Intel Corporation

I apologize if this turns out to be trivial, but here
goes.  I am new to emacs, and although I find the C
language indentation features to be handy, there is
one formatting convention that I don't like and can't
seem to disable.  Specifically, does anyone know how
to *prevent* indent-region from changing this:

    foo_bar_func_call(p1,
	p2,
	p3);

into this:

    foo_bar_func_call(p1,
		      p2,
		      p3);

I have tried fooling with the c-indent variable settings,
but to no avail.

P.S.
I know virtually nothing about LISP programming!

Thanks,
	Roger Hurwitz
	rhurwitz@mstuux.intel.com
Newsgroups: comp.emacs
From: rob@fosters.med.utah.edu (Rob Sargent)
Subject: URGENT: scrolling past '$' boundary with 'truncate-lines' non-nil
Organization: University of Utah
Distribution: comp.emacs
Date: 9 Nov 92 11:18:31


I couldn't find a way to make C-f get over the $ that appears on
trucated lines. Is this do-able? Basically hoping for
auto-scroll-right hook.
rjs

--
Rob Sargent                      s-mail: Dept. of Human Genetics    
e-mail: rob@fosters.med.utah.edu         U. of Utah Medical School     
				         Eccles Genetics Bldg
				         Salt Lake City, Utah  84112
From: gon@FibHaifa.com (Gon Nivron)
Newsgroups: gnu.emacs,comp.emacs
Subject: enhanced etags - does the beast exist ?
Keywords: tags etags emacs
Date: 11 Nov 92 10:25:40 GMT
Followup-To: mark@FibHaifa.com
Organization: Fibronics Ltd., Haifa - ISRAEL


 I am interested in something stronger than etags for producing a
 better TAGS file for emacs editor:

 The tags file should include not only function names, macros and typedefs,
 it should also include all #define symbols (macros and constants) as well
 as all global variables.

 If you know of any such program please let me know (send it directly to me
 since I am not a regular reader of this news conference.

 Thanks in advance,

   
 -Gon Niv-Ron
 gon@FibHaifa.com

-- 

  Mark Sterin
  mark@FibHaifa.com       
  Fibronics Ltd.
  M.T.M. Industrial Park.
  Haifa, 31905, Israel.
  Fax:   Intl.+972-4-550-266
  Voice: Intl.+972-4-313-645

The reason computer chips are so small is computers don't eat much.
From: kgallagh@digi.lonestar.org (Kevin Gallagher)
Newsgroups: comp.emacs
Subject: Re: ELISP help needed
Keywords: find-file-hooks write-file-hooks
Date: 11 Nov 92 15:35:03 GMT
Organization: DSC Communications Corp, Plano, TX

In article <1992Nov10.213638.11986@ims.com> gerdh@ims.com (Gerd Hoeren) writes:
>I'd like to connect an elisp function to the find-file-hooks and
>write-file-hooks.  I seem to be missing something in my elisp syntax
>though.
>
>Suppose my function is just:
>
>      (defun xyzzy ()
>        (message "hello"))
>
>And I do an:
>
>      (setq find-file-hooks 'xyzzy)

Some hooks are simple variables and some are lists.  The variable
find-file-hooks is plural, implying it is a list.  The built-in documentation
for find-file-hooks confirms this:

    List of functions to be called after a buffer is loaded from a file.
    The buffer's local variables (if any) will have been processed before the
    functions are called.

This means that you can have find-file execute one or more functions with the
single hook.  However, even if you specify only ONE function, it must be
assigned to the hook variable in list syntax.

The correct syntax is:

    (setq find-file-hooks '(xyzzy))

To specify two functions to execute:

    (setq find-file-hooks '(xyzzy xyzbq))

-- 
----------------------------------------------------------------------------
Kevin Gallagher        kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh
DSC Communications Corporation   Addr: MS 152, 1000 Coit Rd, Plano, TX 75075
----------------------------------------------------------------------------