diff options
author | Mauro Aranda <maurooaranda@gmail.com> | 2023-09-18 09:19:04 -0300 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2023-10-01 01:35:23 +0200 |
commit | 47770b0eca4ba94f6b2a5dd740ff42023c8159c4 (patch) | |
tree | d57513428596b3868cb94216bfb2838a1878b2b6 | |
parent | f8bdc8dff0b6891e536feb60373881a8749f7de4 (diff) | |
download | emacs-47770b0eca4ba94f6b2a5dd740ff42023c8159c4.tar.gz |
Fix term-scroll-to-bottom-on-output :type
* lisp/term.el (term-scroll-to-bottom-on-output): Add missing choices.
Don't advertise the value 'all' in docstring. (Bug#66071)
-rw-r--r-- | lisp/term.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/term.el b/lisp/term.el index 2e719567058..68b1136a0b4 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -486,7 +486,7 @@ Customize this option to nil if you want the previous behavior." (defcustom term-scroll-to-bottom-on-output nil "Controls whether interpreter output causes window to scroll. -If nil, then do not scroll. If t or `all', scroll all windows showing buffer. +If nil, then do not scroll. If t, scroll all windows showing buffer. If `this', scroll only the selected window. If `others', scroll only those that are not the selected window. @@ -494,7 +494,12 @@ The default is nil. See variable `term-scroll-show-maximum-output'. This variable is buffer-local." - :type 'boolean + :type '(choice (const :tag "Don't scroll" nil) + (const :tag "Scroll selected window only" this) + (const :tag "Scroll unselected windows" others) + ;; We also recognize `all', but we don't advertise it + ;; anymore. (Bug#66071) + (other :tag "Scroll all windows" t)) :group 'term) (defcustom term-scroll-snap-to-bottom t |