ell@faron.UUCP (Edward L. Lafferty) (02/22/86)
We are running GNU emacs version 17.49. The new terminal file reading feature is very nice but we think it should not overwrite the users' customized .emacs bindings. Suggestions for future release: 1. Read ../lisp/term/TERMINAL.el before reading .emacs. or 2. Give user the option NOT to have the TERMINAL.el file read at all -- probably a command line option. or 3. Both of the above. Regards, Ed Lafferty ----------------------------------->> External: Internal Mail addresses at MITRE: <ell@mitre-bedford.ARPA> <ell@mbunix> <ell@linus.UUCP> <ell@linus> <ell@mbvm> -- Regards, Ed ----------------------------------->> External: Internal Mail addresses at MITRE: <ell@mitre-bedford.ARPA> <ell@mbunix> <ell@linus.UUCP> <ell@linus> <ell@mbvm>
bzs@bu-cs.UUCP (02/24/86)
>2. Give user the option NOT to have the TERMINAL.el file read at all >-- probably a command line option. I simply added a local feature to check the variable inhibit-terminal-defaults it looks like this in my 17.36 startup.el: ;;; BZS - add a flag to let the user inhibit term def loading (defvar inhibit-terminal-defaults nil "if non-nil prevents loading of default terminal definition at startup") and then later in command-line (the first line should be there already): ;;>> Would be nice if there were a way for user to inhibit this ;;>>>BZS - there is now, set inhibit-terminal-defaults to t in .emacs (if (and (not noninteractive) (not inhibit-terminal-defaults)) (load (concat term-file-prefix (getenv "TERM")) t t)) so as the comment says a user can add the line: (setq inhibit-terminal-defaults t) to their .emacs file and do what they like. I assumed it was so obvious there was a reason this wasn't done so I never sent it in although it was clear my users wanted it. Anyone from GNU Central want to comment? -Barry Shein, Boston University
mly@PREP.AI.MIT.EDU (02/25/86)
From: mly@PREP.AI.MIT.EDU (Richard Mlynarik) From: faron!ell@EDDIE.MIT.EDU (Edward L. Lafferty) Newsgroups: net.emacs Date: Sat, 22-Feb-86 13:58:29 EST We are running GNU emacs version 17.49. The new terminal file reading feature is very nice but we think it should not overwrite the users' customized .emacs bindings. Suggestions for future release: This is possible in emacs 17.49 (thanks for including your version number, unlike so many people) by setting the variable `term-file-prefix' to nil -- see the code in emacs/lisp/startup.el which looks at this variable. Admittedly, this isn't well documented at this point. I notice that the fix for this which Barry Shein sent was for some older version of emacs -- the check for term-file-prefix was put in on the 21st of January, which means that it was in 17.43, if not a couple of versions earlier. 1. Read ../lisp/term/TERMINAL.el before reading .emacs. That wouldn't be desirable -- then the user's .emacs file would have not way to inhibit the loading of that file at all. 2. Give user the option NOT to have the TERMINAL.el file read at all -- probably a command line option. In general, I think it is better to do things via .emacs (and have the user's .emacs lisp code arrange to be as smart or obtrusive as it wants to be about this question) than to add Yet Another Random Unix "-" Switch. But that's just my opinion. A general warning is that unconditionally binding terminal-dependent key-sequences in ~/.emacs without testing `(getenv "TERM")' is a Bad Idea.