]> git.eshelyaron.com Git - emacs.git/commit
* lisp/calc/calc-yank.el (calc-edit-mode): Make it into a proper major mode
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 4 Jan 2021 05:01:58 +0000 (00:01 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 4 Jan 2021 05:01:58 +0000 (00:01 -0500)
commit535a25164b5d656874b06fcc3a81f1bbd39b442a
tree161535df29802a4145c6a8b8a2c04805d8bc6681
parentd8d223e7ef1d5ad2768662d114767f35601a0e87
* lisp/calc/calc-yank.el (calc-edit-mode): Make it into a proper major mode

Also make `calc-edit-handler` hold a function instead of an expression.

(calc-original-buffer, calc-return-buffer, calc-one-window)
(calc-edit-handler, calc-restore-trail, calc-allow-ret)
(calc-edit-top): Give them a default value.
(calc--edit-mode): New function extracted from old `calc-edit-mode`.
(calc-edit-return, calc-edit-finish): Don't need to test `boundp` any more.
(calc-edit-finish): Allow `calc-edit-handler` to be a function.

(calc-edit, calc-alg-edit):

* lisp/calc/calc-prog.el (calc-edit-user-syntax, calc-user-define-edit):
* lisp/calc/calc-embed.el (calc-embedded-edit):
* lisp/calc/calc-sel.el (calc-edit-selection):
* lisp/calc/calc-store.el (calc-edit-variable):
Use `calc--edit-mode` and make first arg into a function.

* lisp/calc/calc-ext.el (calc-init-extensions): Autoload `calc--edit-mode`
instead of `calc-edit-mode`.
lisp/calc/calc-embed.el
lisp/calc/calc-ext.el
lisp/calc/calc-prog.el
lisp/calc/calc-sel.el
lisp/calc/calc-store.el
lisp/calc/calc-yank.el