* Alternative fringe bitmaps for continuation/truncation
@ 2008-04-27 16:59 Kim F. Storm
2008-04-27 21:02 ` Jason Rumney
2008-05-02 23:48 ` Juri Linkov
0 siblings, 2 replies; 10+ messages in thread
From: Kim F. Storm @ 2008-04-27 16:59 UTC (permalink / raw)
To: emacs-devel
If you don't like the current "fat (curly) arrows" bitmaps used in the
fringe for continuation and truncation lines, the following more
modest bitmaps may be more appealing.
(define-fringe-bitmap 'right-truncation
"\xa9\x02\x04" nil nil 'bottom)
(define-fringe-bitmap 'left-truncation
"\x20\x40\xaa\0\0" nil nil 'bottom)
(define-fringe-bitmap 'right-continuation
"\xa8\0\0" nil nil 'bottom)
(define-fringe-bitmap 'left-continuation
"\x2a\0\0" nil nil 'bottom)
(let ((tr (assoc 'truncation default-fringe-indicator-alist))
(co (assoc 'continuation default-fringe-indicator-alist)))
(if tr (setcdr tr '(left-truncation right-truncation)))
(if co (setcdr co '(left-continuation right-continuation))))
WDYT?
++Kim
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Alternative fringe bitmaps for continuation/truncation
2008-04-27 16:59 Alternative fringe bitmaps for continuation/truncation Kim F. Storm
@ 2008-04-27 21:02 ` Jason Rumney
2008-04-28 4:03 ` Stefan Monnier
2008-05-02 23:48 ` Juri Linkov
1 sibling, 1 reply; 10+ messages in thread
From: Jason Rumney @ 2008-04-27 21:02 UTC (permalink / raw)
To: Kim F. Storm; +Cc: emacs-devel
Kim F. Storm wrote:
> If you don't like the current "fat (curly) arrows" bitmaps used in the
> fringe for continuation and truncation lines, the following more
> modest bitmaps may be more appealing.
>
> WDYT?
>
I think they are likely to invite bug reports about corrupted display if
we make them the default.
I have no objection to including them as an option, perhaps as part of
an overall visual theme.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Alternative fringe bitmaps for continuation/truncation
2008-04-27 21:02 ` Jason Rumney
@ 2008-04-28 4:03 ` Stefan Monnier
2008-04-28 10:18 ` Kim F. Storm
0 siblings, 1 reply; 10+ messages in thread
From: Stefan Monnier @ 2008-04-28 4:03 UTC (permalink / raw)
To: Jason Rumney; +Cc: emacs-devel, Kim F. Storm
>> If you don't like the current "fat (curly) arrows" bitmaps used in the
>> fringe for continuation and truncation lines, the following more
>> modest bitmaps may be more appealing.
>>
> I think they are likely to invite bug reports about corrupted display if we
> make them the default.
> I have no objection to including them as an option, perhaps as part of an
> overall visual theme.
I'd tend to agree, although I must say that with the half-width fringes
I use, these continuation icons look better than the slightly truncated
arrows (because my fringes aren't wide enough).
I'm not convinced by the truncation icons, tho.
Stefan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Alternative fringe bitmaps for continuation/truncation
2008-04-28 4:03 ` Stefan Monnier
@ 2008-04-28 10:18 ` Kim F. Storm
2008-04-28 10:53 ` Jason Rumney
2008-04-28 15:00 ` Stefan Monnier
0 siblings, 2 replies; 10+ messages in thread
From: Kim F. Storm @ 2008-04-28 10:18 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel, Jason Rumney
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> If you don't like the current "fat (curly) arrows" bitmaps used in the
>>> fringe for continuation and truncation lines, the following more
>>> modest bitmaps may be more appealing.
>>>
>> I think they are likely to invite bug reports about corrupted display if we
>> make them the default.
> I'd tend to agree, although I must say that with the half-width fringes
> I use, these continuation icons look better than the slightly truncated
> arrows (because my fringes aren't wide enough).
For the continuation bitmaps I don't expect such bug reports -
the ... idiom is quite well-known, and the curly arrows are so
much in your face that I suppose many users dislike them.
> I'm not convinced by the truncation icons, tho.
I agree that they are a bit too cryptic for general acceptance.
I think these are much better:
(define-fringe-bitmap 'right-truncation
"\x04\x02\xa9\x02\x04" nil nil 'bottom)
(define-fringe-bitmap 'left-truncation
"\x20\x40\xaa\x40\x20" nil nil 'bottom)
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Alternative fringe bitmaps for continuation/truncation
2008-04-28 10:18 ` Kim F. Storm
@ 2008-04-28 10:53 ` Jason Rumney
2008-04-28 15:00 ` Stefan Monnier
1 sibling, 0 replies; 10+ messages in thread
From: Jason Rumney @ 2008-04-28 10:53 UTC (permalink / raw)
To: Kim F. Storm; +Cc: Stefan Monnier, emacs-devel
Kim F. Storm wrote:
> I agree that they are a bit too cryptic for general acceptance.
>
> I think these are much better:
>
> (define-fringe-bitmap 'right-truncation
> "\x04\x02\xa9\x02\x04" nil nil 'bottom)
> (define-fringe-bitmap 'left-truncation
> "\x20\x40\xaa\x40\x20" nil nil 'bottom)
>
Yes, those are obviously arrows, I don't think they will be mistaken for
a bug. I think all of these would look better moved above the baseline
(currently the horizontal lines in all of the bitmaps appear one pixel
below the baseline for me). The truncation bitmaps would look best
centered with respect to the lower case center of gravity (I'm sure this
is not easy to compute reliably so an acceptable alternative might be to
align the bottom of the arrow with or just below the baseline). The
ellipses should be at or slightly above the baseline, particularly for
the left continuation indicator, which may be mistaken for being
associated with the following line with current placement.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Alternative fringe bitmaps for continuation/truncation
2008-04-28 10:18 ` Kim F. Storm
2008-04-28 10:53 ` Jason Rumney
@ 2008-04-28 15:00 ` Stefan Monnier
2008-04-28 17:38 ` Kim F. Storm
1 sibling, 1 reply; 10+ messages in thread
From: Stefan Monnier @ 2008-04-28 15:00 UTC (permalink / raw)
To: Kim F. Storm; +Cc: emacs-devel, Jason Rumney
>>>> If you don't like the current "fat (curly) arrows" bitmaps used in the
>>>> fringe for continuation and truncation lines, the following more
>>>> modest bitmaps may be more appealing.
>>>>
>>> I think they are likely to invite bug reports about corrupted display if we
>>> make them the default.
>> I'd tend to agree, although I must say that with the half-width fringes
>> I use, these continuation icons look better than the slightly truncated
>> arrows (because my fringes aren't wide enough).
> For the continuation bitmaps I don't expect such bug reports -
> the ... idiom is quite well-known, and the curly arrows are so
> much in your face that I suppose many users dislike them.
You might be right.
>> I'm not convinced by the truncation icons, tho.
> I agree that they are a bit too cryptic for general acceptance.
> I think these are much better:
Indeed. Although at this point I wonder: why not make them of
solid lines?
I also agree with Jason about the centering (although I believe true
"centering" is difficult because these are fixed bitmaps that cannot
adapt to the face&font height, but maybe moving them up a couple pixels
would be good enough).
Stefan
PS: Also with my half-width fringes, your right truncation arrow looks
less like an arrow than the default arrows: you may want to make them
a bit shorter.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Alternative fringe bitmaps for continuation/truncation
2008-04-28 15:00 ` Stefan Monnier
@ 2008-04-28 17:38 ` Kim F. Storm
2008-04-28 17:50 ` Jason Rumney
0 siblings, 1 reply; 10+ messages in thread
From: Kim F. Storm @ 2008-04-28 17:38 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel, Jason Rumney
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I think these are much better:
>
> Indeed. Although at this point I wonder: why not make them of
> solid lines?
I like them as dots.
>
> I also agree with Jason about the centering (although I believe true
> "centering" is difficult because these are fixed bitmaps that cannot
> adapt to the face&font height, but maybe moving them up a couple pixels
> would be good enough).
Currently, the alignment of fringe bitmaps can be bottom, center or top.
Maybe would could add something like (- baseline 2) to the alignment
options...
>
>
> Stefan
>
>
> PS: Also with my half-width fringes, your right truncation arrow looks
> less like an arrow than the default arrows: you may want to make them
> a bit shorter.
Well, if you have fringes narrower than 8 bits, you'll get truncation.
Maybe we should have a separate set of bitmaps for, say, 6 bit wide fringes.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Alternative fringe bitmaps for continuation/truncation
2008-04-28 17:38 ` Kim F. Storm
@ 2008-04-28 17:50 ` Jason Rumney
2008-04-28 22:01 ` Kim F. Storm
0 siblings, 1 reply; 10+ messages in thread
From: Jason Rumney @ 2008-04-28 17:50 UTC (permalink / raw)
To: Kim F. Storm; +Cc: Stefan Monnier, emacs-devel
> Currently, the alignment of fringe bitmaps can be bottom, center or top.
>
> Maybe would could add something like (- baseline 2) to the alignment
> options...
>
Even just baseline, as the -2 could be taken care of by padding the image.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Alternative fringe bitmaps for continuation/truncation
2008-04-28 17:50 ` Jason Rumney
@ 2008-04-28 22:01 ` Kim F. Storm
0 siblings, 0 replies; 10+ messages in thread
From: Kim F. Storm @ 2008-04-28 22:01 UTC (permalink / raw)
To: Jason Rumney; +Cc: Stefan Monnier, emacs-devel
Jason Rumney <jasonr@gnu.org> writes:
>> Currently, the alignment of fringe bitmaps can be bottom, center or top.
>>
>> Maybe would could add something like (- baseline 2) to the alignment
>> options...
>>
>
> Even just baseline, as the -2 could be taken care of by padding the image.
By aligning the center of the image with the baseline, that would work yes.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Alternative fringe bitmaps for continuation/truncation
2008-04-27 16:59 Alternative fringe bitmaps for continuation/truncation Kim F. Storm
2008-04-27 21:02 ` Jason Rumney
@ 2008-05-02 23:48 ` Juri Linkov
1 sibling, 0 replies; 10+ messages in thread
From: Juri Linkov @ 2008-05-02 23:48 UTC (permalink / raw)
To: Kim F. Storm; +Cc: emacs-devel
> If you don't like the current "fat (curly) arrows" bitmaps used in the
> fringe for continuation and truncation lines, the following more
> modest bitmaps may be more appealing.
>
> (define-fringe-bitmap 'right-truncation
> "\xa9\x02\x04" nil nil 'bottom)
> (define-fringe-bitmap 'left-truncation
> "\x20\x40\xaa\0\0" nil nil 'bottom)
> (define-fringe-bitmap 'right-continuation
> "\xa8\0\0" nil nil 'bottom)
> (define-fringe-bitmap 'left-continuation
> "\x2a\0\0" nil nil 'bottom)
>
> (let ((tr (assoc 'truncation default-fringe-indicator-alist))
> (co (assoc 'continuation default-fringe-indicator-alist)))
> (if tr (setcdr tr '(left-truncation right-truncation)))
> (if co (setcdr co '(left-continuation right-continuation))))
>
> WDYT?
For a long time I use the bitmaps defined here:
http://thread.gmane.org/gmane.emacs.devel/39264/focus=50919
and they are really nice. Maybe we should add an option
to select them instead of the current default "fat" bitmaps?
--
Juri Linkov
http://www.jurta.org/emacs/
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-05-02 23:48 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-27 16:59 Alternative fringe bitmaps for continuation/truncation Kim F. Storm
2008-04-27 21:02 ` Jason Rumney
2008-04-28 4:03 ` Stefan Monnier
2008-04-28 10:18 ` Kim F. Storm
2008-04-28 10:53 ` Jason Rumney
2008-04-28 15:00 ` Stefan Monnier
2008-04-28 17:38 ` Kim F. Storm
2008-04-28 17:50 ` Jason Rumney
2008-04-28 22:01 ` Kim F. Storm
2008-05-02 23:48 ` Juri Linkov
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).