diff options
author | Noam Postavsky <npostavs@gmail.com> | 2018-01-06 19:28:09 -0500 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2018-01-18 22:17:40 -0500 |
commit | 1d50c185f0c857bb1a85945314b522540071f796 (patch) | |
tree | 0917acf47b9dc8a9d53750b17dd596316c10d56d /lisp/term.el | |
parent | 5472568a3c2338856d25380012ee4398e024c806 (diff) | |
download | emacs-1d50c185f0c857bb1a85945314b522540071f796.tar.gz |
Add tests for term.el
* lisp/term.el (term-mode): Add `name' attribute to
window-adjust-process-window-size-function value, so that it can be
removed easily by tests.
* test/lisp/term-tests.el: New tests.
Diffstat (limited to 'lisp/term.el')
-rw-r--r-- | lisp/term.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/term.el b/lisp/term.el index e51b7669e14..0492763854c 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -1145,7 +1145,8 @@ Entry to this mode runs the hooks on `term-mode-hook'." (lambda (size) (when size (term-reset-size (cdr size) (car size))) - size)) + size) + '((name . term-maybe-reset-size))) (add-hook 'read-only-mode-hook #'term-line-mode-buffer-read-only-update nil t) |