all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* The display margin
@ 2003-05-25 16:22 Nick Roberts
  2003-05-25 16:36 ` Stefan Monnier
  0 siblings, 1 reply; 26+ messages in thread
From: Nick Roberts @ 2003-05-25 16:22 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: The display margin
@ 2003-11-28 12:47 David PONCE
  0 siblings, 0 replies; 26+ messages in thread
From: David PONCE @ 2003-11-28 12:47 UTC (permalink / raw)
  Cc: emacs-devel

Hi Kim,

> Finally, when you use a block cursor, images are no longer shown in
> "negative" when your window cursor is a filled block cursor (only
> the border of the image is highlighted now).  So clicking on an
> image no longer makes it "unreadable"...

That's very nice!  However when using a bar cursor the image is
still shown in "negative".  Perhaps it would make sense to use an
hollow cursor in that case too.

Another possibility could be to just draw the bar in that case (a la
"Open Office").

To do the latter I applied the following patch to xterm.c:

Index: src/xterm.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xterm.c,v
retrieving revision 1.822
diff -c -r1.822 xterm.c
*** src/xterm.c	17 Nov 2003 06:06:24 -0000	1.822
--- src/xterm.c	28 Nov 2003 12:43:35 -0000
***************
*** 7335,7340 ****
--- 7335,7341 ----
    if (cursor_glyph == NULL)
      return;
  
+ #if 0
    /* If on an image, draw like a normal cursor.  That's usually better
       visible than drawing a bar, esp. if the image is large so that
       the bar might not be in the window.  */
***************
*** 7345,7350 ****
--- 7346,7352 ----
        draw_phys_cursor_glyph (w, row, DRAW_CURSOR);
      }
    else
+ #endif
      {
        Display *dpy = FRAME_X_DISPLAY (f);
        Window window = FRAME_X_WINDOW (f);


I am not sure what solution is the best.

David

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2003-12-29 11:54 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-25 16:22 The display margin Nick Roberts
2003-05-25 16:36 ` Stefan Monnier
2003-05-26 23:42   ` Nick Roberts
2003-11-23  2:08     ` Kim F. Storm
2003-11-23 22:53       ` Nick Roberts
2003-11-23 23:12         ` David Kastrup
2003-11-24  9:52           ` Kim F. Storm
2003-11-24 15:33             ` Kim F. Storm
2003-11-27 23:08           ` Kim F. Storm
2003-11-27 22:30             ` David Kastrup
2003-11-27 23:17               ` Stefan Monnier
2003-11-28 11:09               ` Kim F. Storm
2003-11-28 10:53                 ` David Kastrup
2003-11-28 14:23                   ` Thien-Thi Nguyen
2003-11-28 16:02                     ` David Kastrup
2003-11-28 17:01                       ` Thien-Thi Nguyen
2003-11-29  3:15                   ` Kim F. Storm
2003-11-29 11:37                     ` David Kastrup
2003-12-01 10:15                       ` Kim F. Storm
2003-12-01 13:08                         ` David Kastrup
2003-12-28  1:43                           ` Kim F. Storm
2003-12-29 11:54                             ` Richard Stallman
2003-11-24  0:09         ` Kim F. Storm
2003-11-25 21:11           ` Nick Roberts
2003-11-25 22:42             ` Kim F. Storm
  -- strict thread matches above, loose matches on Subject: below --
2003-11-28 12:47 David PONCE

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.