charles@hp-pcd.UUCP (charles) (08/09/84)
My thanks to the several people who cheerfully helped me. Now it is obvious that it was in the manual all along. I guess I expected to find it under bind-* or define-* or something like that. from: hp-pcd!charles aka: Charles (somewhat embarrased) Brown c/o Hewlett Packard Corvallis, Oregon
charles@hp-pcd.UUCP (charles) (08/13/84)
subject: How to bind a variable globally? from: hp-pcd!charles aka: Charles Brown c/o Hewlett Packard Corvallis, Oregon I am glad to see the posting for how to execute a function after a pause. I have a question of about the same level of difficulty: How do you bind a variable so that it is global? If I bind a variable with defun it is only available to that function.
gnu@sun.uucp (John Gilmore) (08/16/84)
Charles Brown, could you please read the Emacs manual before you ask questions that it answers? Or use ESC-? followed by ESC-X Describe-Command from inside Emacs. You bind a global with (declare-global foo). I'm not saying "Go away dumb novice", I'm saying "Don't bother us for things that you can look up yourself". OK? If you have a bootleg Emacs with no manuals, shell out $400 for binary or $1000 for source to Unipress. HP can certainly afford it. Or look around online -- all the manuals come in machine readable form, which is where ESC-? and Describe-command get them.
bjorn@dataio.UUCP (Bjorn Benson) (08/20/84)
To James Gilmore and others, Having read the UniPress Emacs manual myself from cover to cover I can understand why someone might not be able to find something they are looking for. Their "complete" index is not, and is even wrong! The organization of the manual is less than consistent, and so on and so on. Thus I can see why Charles Brown could not find out how to globally bind a variable. This net category is used for communication between EMACS users and helping newcomers figure out how to use it is one of it's functions. Perhaps instead politely insulting him, you could explain the usefulness of ESC-?, and execute-mlisp-buffer. Remember, this net has been built by us to help us, so let's use it that way. Bjorn Benson 'Bikes, Boats and Better Computers' ...!ucbvax!lbl-unix!uw-beaver!teltone!dataio!bjorn