From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jonas Bernoulli" Newsgroups: gmane.emacs.help Subject: draw line Date: Wed, 19 Mar 2008 22:00:00 +0100 Message-ID: <201bac3a0803191400g2dfed3e1kf40180ac098ccf41@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205978662 14214 80.91.229.12 (20 Mar 2008 02:04:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2008 02:04:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 03:04:52 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JcA9D-0005Hz-01 for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Mar 2008 03:04:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JcA8d-0004Fl-1O for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Mar 2008 22:04:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jc5OL-0001l8-Ez for help-gnu-emacs@gnu.org; Wed, 19 Mar 2008 17:00:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jc5OF-0001fS-Vw for help-gnu-emacs@gnu.org; Wed, 19 Mar 2008 17:00:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jc5OF-0001fH-NW for help-gnu-emacs@gnu.org; Wed, 19 Mar 2008 17:00:03 -0400 Original-Received: from ik-out-1112.google.com ([66.249.90.176]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jc5OF-000449-Gh for help-gnu-emacs@gnu.org; Wed, 19 Mar 2008 17:00:03 -0400 Original-Received: by ik-out-1112.google.com with SMTP id c29so362179ika.2 for ; Wed, 19 Mar 2008 14:00:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=jusiy+3EFIsKQgeuBXNWj6BV9wJkxsbGWV3lfJchV+Q=; b=iRMjghd3JptxK1X8gdnG3UpVztxJvFXAbUPdZPYK0+imhfiV6IowMW/lFtVM3W2hO4z5qKBD2314UBG9EJR7JCLHnpjnxTzyL9KwPsaaQ/i+GrSIofSH8wxhnFDoPKsAbp7sZBdRaWvySteSG9zJliI5gU9VTQ/ZHglLsrm5EKI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=n9qPEvFKcwnHF9vZTprO+NlwNVUwB5Mi0rPIaUxegndYgdc4LJqJiR4f6ZEqSBC2lnvwRsYNKzzhXn8lqbCO4On2+Y7pHG54e0te51YeGVmTzGvTZzjx2MTPY6b/365mQTB5rhX2LN1BU/0ph37kpFHINh4AJ+3kzM8nULPXhsc= Original-Received: by 10.78.206.6 with SMTP id d6mr2329908hug.46.1205960401049; Wed, 19 Mar 2008 14:00:01 -0700 (PDT) Original-Received: by 10.78.124.1 with HTTP; Wed, 19 Mar 2008 14:00:00 -0700 (PDT) Content-Disposition: inline X-Google-Sender-Auth: 28f1534452a75ca9 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Wed, 19 Mar 2008 22:01:32 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52557 Archived-At: 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