* lisp/electric.el (electric-indent-local-mode): New minor mode.

(electric-indent-functions-without-reindent): New var.
(electric-indent-post-self-insert-function): Use it.
* lisp/emacs-lisp/gv.el (buffer-local-value): Add setter.
This commit is contained in:
Stefan Monnier 2013-11-05 21:10:18 -05:00
parent 798aef0222
commit a35287ea23
3 changed files with 36 additions and 5 deletions

View file

@ -346,6 +346,10 @@ The return value is the last VAL in the list.
(gv-define-simple-setter window-point set-window-point)
(gv-define-simple-setter window-start set-window-start)
(gv-define-setter buffer-local-value (val var buf)
(macroexp-let2 nil v val
`(with-current-buffer ,buf (set (make-local-variable ,var) ,v))))
;;; Some occasionally handy extensions.
;; While several of the "places" below are not terribly useful for direct use,