🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #676

local variables "put" command

#676
From: Stephen Gildea
Date: Mon, 14 Sep 1992 18:12
28 lines
1328 bytes
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
Technical Details
Message-ID: <9209141812.AA13097@alex.lcs.mit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!expo.lcs.mit.edu!gildea

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug
Path: arc1-ca.pugleaf.net!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