home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / emacs / bug / 1254 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.3 KB  |  42 lines

  1. Newsgroups: gnu.emacs.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!expo.lcs.mit.edu!gildea
  3. From: gildea@expo.lcs.mit.edu (Stephen Gildea)
  4. Subject: local variables "put" command
  5. Message-ID: <9209141812.AA13097@alex.lcs.mit.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: X Consortium, MIT Laboratory for Computer Science
  8. Distribution: gnu
  9. Date: Mon, 14 Sep 1992 18:12:10 GMT
  10. Approved: bug-gnu-emacs@prep.ai.mit.edu
  11. Lines: 29
  12.  
  13. When an Emacs Lisp source file defines macros, it is often convenient
  14. to put a lisp-indent-hook property on the symbol in a local variables
  15. page at the end of the file.  But using eval for this, as one must,
  16. seems in the same league as an atomic fly swatter.
  17.  
  18. So I propose a new special local variables keyword "put" for this purpose.
  19.  
  20. Old syntax:
  21. ;;; eval: (put 'my-macro 'lisp-indent-hook 1)
  22.  
  23. New syntax:
  24. ;;; put: (my-macro lisp-indent-hook 1)
  25.  
  26. This feature adds two lines to hack-local-variables in files.el from 18.58:
  27.  
  28.         ;; Set the variable.  Variables mode, put and eval are funny.
  29.         (cond ((eq var 'mode)
  30.                (funcall (intern (concat (downcase (symbol-name val))
  31.                         "-mode"))))
  32.               ((eq var 'put)
  33.                (put (car val) (car (cdr val)) (car (cdr (cdr val)))))
  34.               ((eq var 'eval)
  35.                ...
  36.  
  37. Seem reasonable?
  38.  
  39.  < Stephen
  40.    MIT X Consortium
  41.  
  42.