[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cursor on images not visible

From: Juri Linkov
Subject: Re: Cursor on images not visible
Date: Tue, 14 Feb 2006 03:42:19 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

>     If we ever want to make a full web browser in emacs, we definitely
>     need to be able to "glue" images together without any margins around
>     them.  (I have some ideas how to modify the redisplay engine to allow
>     this, but that for emacs 24.x)...
> Ok, so that solution is out.
> Should we change some specific packages now to add some margins?

The file that needs this the most is wid-edit.el.  When the cursor type is
`bar', typing TAB repeatedly on a column of checkboxes for face attributes
in the face customization buffer has no visual feedback at all.  I propose
the patch below to add 1-pixel margin around checkbox images.

Another place where I noticed this problem is thumbnail packages.
This will be fixed soon separately.

Index: lisp/wid-edit.el
RCS file: /sources/emacs/emacs/lisp/wid-edit.el,v
retrieving revision 1.163
diff -c -r1.163 wid-edit.el
*** lisp/wid-edit.el    6 Feb 2006 14:33:35 -0000       1.163
--- lisp/wid-edit.el    14 Feb 2006 01:35:32 -0000
*** 2158,2163 ****
--- 2158,2164 ----
                           :background "grey75" ; like default mode line
                           :foreground "black"
                           :relief -2
+                          :margin 1
                           :ascent 'center)
    :off "[ ]"
    :off-glyph '(create-image (make-string 8 0)
*** 2165,2170 ****
--- 2166,2172 ----
                            :background "grey75"
                            :foreground "black"
                            :relief -2
+                           :margin 1
                            :ascent 'center)
    :help-echo "Toggle this item."
    :action 'widget-checkbox-action)

Juri Linkov

reply via email to

[Prev in Thread] Current Thread [Next in Thread]