From ca44dce1ec1f8dc6208a2f78a80711b22978735c Mon Sep 17 00:00:00 2001 From: Manuel Giraud Date: Sun, 14 Jun 2026 11:20:43 +0200 Subject: [PATCH] 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)