Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!fxgrp!ljz From: ljz@fx.com (Lloyd Zusman) Newsgroups: comp.emacs Subject: Two GNU Emacs questions. Message-ID: Date: 14 Feb 89 02:03:14 GMT Sender: ljz@fxgrp.UUCP Distribution: usa Organization: FX Development Group, Inc., Mountain View, California Lines: 63 I'm running GNU Emacs 18.52 under SunOS 3.5 on a network of Sun 3/xxx's, and I have a couple of questions: 1) Is it possible to cause a buffer to *not* recenter itself when it automatically scrolls? I'd like certain buffers (but not every buffer) to scroll so that the line with the point on it ends up at the bottom of the screen instead of the middle. I can do this manually via "(recenter -1)", but I'm talking about the automatic scrolling that occurs when the cursor is on the bottom line and I do a downward cursor motion, and the other automatic scrolling that occurs when an "(insert ...)" is done with text that would print beyond the bottom of the buffer. 2) My next question involves the following Elisp code fragment: (setq my-variable "variable's value") (fset 'my-variable '(lambda () "variable's function return")) If I evaluate my-variable the result is "variable's value", and if I evaluate (my-variable) the result is "variable's function return". This is well and good, but now for my question: Is there any way, through macros, obscure functions, or whatever, for me to do something to "my-variable" so that its function gets evaluated when I type its name without the enclosing parentheses? In other words, I'd like to evaluate my-variable and have it perform the function in its function cell just as if I had evaluated (my-variable) It isn't absolutely necessary for my-variable's function cell to get evaluated ... actually, all I want is for *some* function of my choosing to be evaluated when my-variable is evaluated without any parentheses. The reason I want this is so I can change existing Elisp defvar elements to invoke a function of my choosing when they are evaluated, instead of returning their value cells. Any suggestions? Thanks in advance for your help. -- Lloyd Zusman, Master Byte Software, Los Gatos, California "We take things well in hand." Net access courtesy of FX Development Group, Inc., Mountain View, California Internet: ljz@fxgrp.fx.com uucp: ...!ames!fxgrp!ljz