home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.bug
- Path: sparky!uunet!cis.ohio-state.edu!expo.lcs.mit.edu!gildea
- From: gildea@expo.lcs.mit.edu (Stephen Gildea)
- Subject: local variables "put" command
- Message-ID: <9209141812.AA13097@alex.lcs.mit.edu>
- Sender: gnulists@ai.mit.edu
- Organization: X Consortium, MIT Laboratory for Computer Science
- Distribution: gnu
- Date: Mon, 14 Sep 1992 18:12:10 GMT
- Approved: bug-gnu-emacs@prep.ai.mit.edu
- Lines: 29
-
- When an Emacs Lisp source file defines macros, it is often convenient
- to put a lisp-indent-hook property on the symbol in a local variables
- page at the end of the file. But using eval for this, as one must,
- seems in the same league as an atomic fly swatter.
-
- So I propose a new special local variables keyword "put" for this purpose.
-
- Old syntax:
- ;;; eval: (put 'my-macro 'lisp-indent-hook 1)
-
- New syntax:
- ;;; put: (my-macro lisp-indent-hook 1)
-
- This feature adds two lines to hack-local-variables in files.el from 18.58:
-
- ;; Set the variable. Variables mode, put and eval are funny.
- (cond ((eq var 'mode)
- (funcall (intern (concat (downcase (symbol-name val))
- "-mode"))))
- ((eq var 'put)
- (put (car val) (car (cdr val)) (car (cdr (cdr val)))))
- ((eq var 'eval)
- ...
-
- Seem reasonable?
-
- < Stephen
- MIT X Consortium
-
-