]> git.eshelyaron.com Git - emacs.git/commit
Introduce new value t for compilation-context-lines to eliminate scrolling
authorAlan Mackenzie <acm@muc.de>
Sun, 25 Aug 2019 10:21:37 +0000 (10:21 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 25 Aug 2019 10:21:37 +0000 (10:21 +0000)
commit29d1c72d7c98ea23d5af434c5af6b39a5bd264d9
tree146965484b9b4424a7921f582a7be4ba7b42ddc9
parent50980ba74e0f9f4c85bde446bb6e42e8998d2060
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.
doc/emacs/building.texi
etc/NEWS
lisp/progmodes/compile.el