diff options
author | Alan Mackenzie <acm@muc.de> | 2019-08-25 10:21:37 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2019-08-25 10:21:37 +0000 |
commit | 29d1c72d7c98ea23d5af434c5af6b39a5bd264d9 (patch) | |
tree | 146965484b9b4424a7921f582a7be4ba7b42ddc9 /lisp/emacs-lisp/cl-lib.el | |
parent | 50980ba74e0f9f4c85bde446bb6e42e8998d2060 (diff) | |
download | emacs-29d1c72d7c98ea23d5af434c5af6b39a5bd264d9.tar.gz emacs-29d1c72d7c98ea23d5af434c5af6b39a5bd264d9.tar.bz2 emacs-29d1c72d7c98ea23d5af434c5af6b39a5bd264d9.zip |
Introduce new value t for compilation-context-lines to eliminate scrolling
In particular, to prevent scrolling in a window lacking a left fringe.
Instead, a visible arrow "=>" is inserted before column zero. This fixes
bug #36832.
* lisp/progmodes/compile.el (compilation-context-lines): Add the new value t.
(compilation-set-window): Amend to handle compilation-context-lines being t.
(overlay-arrow-overlay): New variable holding an overlay with before-string
property "=>".
(compilation-set-overlay-arrow): New function which manipulates
overlay-arrow-overlay.
(compilation-goto-locus, compilation-find-file): In addition to calling
compilation-set-window, also call compilation-set-overlay-arrow.
* doc/emacs/building.texi (Compilation Mode): Document the new value t which
compilation-context-lines can take.
* etc/NEWS: Add an entry for this change.
Diffstat (limited to 'lisp/emacs-lisp/cl-lib.el')
0 files changed, 0 insertions, 0 deletions