master ca44dce1ec1: In Edebug, don't setup a margin for fringe users

Eli Zaretskii <[email protected]>
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: master
commit ca44dce1ec1f8dc6208a2f78a80711b22978735c
Author: Manuel Giraud <[email protected]>
Commit: Eli Zaretskii <[email protected]>

    In Edebug, don't setup a margin for fringe users
    
    * lisp/emacs-lisp/edebug.el (edebug--display-1): Prevent setting
    up a left margin when the user already has a left fringe.
    (Bug#81109)
---
 lisp/emacs-lisp/edebug.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el
index d938e39b30b..d7645f7c91e 100644
--- a/lisp/emacs-lisp/edebug.el
+++ b/lisp/emacs-lisp/edebug.el
@@ -2721,8 +2721,10 @@ when edebug becomes active."
                               edebug-function)
                 ))
 
-          ;; Margin setup for overlay arrow.
-          (edebug-prepare-margin)
+          ;; Margin setup for overlay arrow when there is no left
+          ;; fringe.
+          (when (zerop (car (window-fringes)))
+            (edebug-prepare-margin))
 
           ;; Make sure we bind those in the right buffer (bug#16410).
           (let ((overlay-arrow-position overlay-arrow-position)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.