GNU bug report logs - #79846
Margins broken with left scroll bar

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Sun, 16 Nov 2025 17:15:02 UTC

Severity: normal

To reply to this bug, email your comments to 79846 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to rudalics <at> gmx.at, bug-gnu-emacs <at> gnu.org:
bug#79846; Package emacs. (Sun, 16 Nov 2025 17:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juri Linkov <juri <at> linkov.net>:
New bug report received and forwarded. Copy sent to rudalics <at> gmx.at, bug-gnu-emacs <at> gnu.org. (Sun, 16 Nov 2025 17:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: bug-gnu-emacs <at> gnu.org
Subject: Margins broken with left scroll bar
Date: Sun, 16 Nov 2025 19:12:52 +0200
`./configure --with-x-toolkit=lucid` by default enables the scroll bar
on the left.  This breaks mouse clicks on the left margin.

However, this bug is reproducible on any build after enabling
the scroll bar on the left:

0. emacs -Q
1. Menu -> Options -> Show/Hide -> Scroll Bar -> On the Left
2. Eval:

(progn
  (setq-local left-margin-width 1)
  (set-window-buffer nil (window-buffer))
  (overlay-put
   (make-overlay (point-min) (1+ (point-min)))
   'before-string
   #("!" 0 1
     (display
      ((margin left-margin)
       #("!" 0 1
	 ( face warning
	   keymap
	   (keymap
	    (left-margin
	     . (keymap
		(mouse-1
		 . (lambda ()
		     (interactive)
		     (message "CLICKED %S" last-command-event)))))))))))))

3. Click on the margin indicator:

  <left-margin> <mouse-1> is undefined




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79846; Package emacs. (Mon, 17 Nov 2025 09:54:01 GMT) Full text and rfc822 format available.

Message #8 received at 79846 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Juri Linkov <juri <at> linkov.net>, 79846 <at> debbugs.gnu.org
Subject: Re: bug#79846: Margins broken with left scroll bar
Date: Mon, 17 Nov 2025 10:53:05 +0100
[Message part 1 (text/plain, inline)]
> `./configure --with-x-toolkit=lucid` by default enables the scroll bar
> on the left.  This breaks mouse clicks on the left margin.
>
> However, this bug is reproducible on any build after enabling
> the scroll bar on the left:

Does it work with the attached diff?  Setting col to 0 should work as
well.

martin
[keyboard.c.diff (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79846; Package emacs. (Mon, 17 Nov 2025 17:13:02 GMT) Full text and rfc822 format available.

Message #11 received at 79846 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 79846 <at> debbugs.gnu.org
Subject: Re: bug#79846: Margins broken with left scroll bar
Date: Mon, 17 Nov 2025 19:09:07 +0200
>> `./configure --with-x-toolkit=lucid` by default enables the scroll bar
>> on the left.  This breaks mouse clicks on the left margin.
>>
>> However, this bug is reproducible on any build after enabling
>> the scroll bar on the left:
>
> Does it work with the attached diff?  Setting col to 0 should work as
> well.

Thanks, I confirm this works at least with gtk and lucid toolkits,
and surely with others.




This bug report was last modified today.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.