unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* draw line
@ 2008-03-19 21:00 Jonas Bernoulli
  2008-03-20  7:19 ` David Hansen
  2008-03-20 16:20 ` Kim F. Storm
  0 siblings, 2 replies; 4+ messages in thread
From: Jonas Bernoulli @ 2008-03-19 21:00 UTC (permalink / raw)
  To: help-gnu-emacs

I would like to draw a one-pixel line. I have tried quite a few things
by now but none of them works.

Here are two ways I have tried. Evaluating them should draw a red line
on the next line, which is only one pixel high.

(insert (concat "\n" (propertize "\n" 'face '(:background "red")
'display '(space :height (1)))))

(insert (concat "\n" (propertize "\n" 'face '(:background "red")
'line-height 1)))

This doesn't sound very promissing:

38.11 Line Height
... However, no matter what you specify, the actual line height can
never be less than the default. ...

But I know that some time ago I managed to draw a one-pixel line. I
just don't remember how I did it. So I don't know if I just can't come
up with the proper way of doing it anymore or if this is just not
possible anymore in 23.0. I have tried the expressions above with 22.1
without success also. But I don't know if I used 21 or 22 back when I
managed to draw a one-pixel line.

Anyways, does anyone know of a way to draw a line?

-- Jonas




^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <mailman.9244.1205978497.18990.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2008-03-20 16:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19 21:00 draw line Jonas Bernoulli
2008-03-20  7:19 ` David Hansen
2008-03-20 16:20 ` Kim F. Storm
     [not found] <mailman.9244.1205978497.18990.help-gnu-emacs@gnu.org>
2008-03-20  9:29 ` Johan Bockgård

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).