From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: The display margin Date: Sun, 25 May 2003 17:22:29 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <16080.60869.212521.952911@nick.uklinux.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1053879978 24845 80.91.224.249 (25 May 2003 16:26:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 25 May 2003 16:26:18 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun May 25 18:26:14 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19JyK6-0006Rz-00 for ; Sun, 25 May 2003 18:26:14 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19JyWu-00082M-00 for ; Sun, 25 May 2003 18:39:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19JyLS-0001j6-W8 for emacs-devel@quimby.gnus.org; Sun, 25 May 2003 12:27:39 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19JyL5-0001XE-8h for emacs-devel@gnu.org; Sun, 25 May 2003 12:27:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19JyKz-0001Pf-Ni for emacs-devel@gnu.org; Sun, 25 May 2003 12:27:12 -0400 Original-Received: from bts-0337.dialup.zetnet.co.uk ([194.247.49.81] helo=nick.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.20) id 19JyKo-0000qq-C2 for emacs-devel@gnu.org; Sun, 25 May 2003 12:27:01 -0400 Original-Received: by nick.uklinux.net (Postfix, from userid 501) id 9CECA75FDD; Sun, 25 May 2003 17:22:33 +0100 (BST) Original-To: emacs-devel@gnu.org X-Mailer: VM 6.97 under Emacs 21.2.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:14238 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14238 Following Kim's changes, I thought it might be timely to ask a question about the display margin. When a breakpoint is set, using M-x gdba as debugger, an icon is placed in the margin. The toolbar can be used to do this but the cursor must be placed on the appropriate line beforehand. I would like to be able to do this directly with a binding like: (define-key gud-minor-mode-map [left-margin mouse-1] 'gud-break) This does work but currently only if cursor is placed on the appropriate line beforehand as with the toolbar. Q: Could this binding be made to work, so that the breakpoint is set where the click is made in the margin, regardless of the location of the cursor? Nick