From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Stewart Newsgroups: gmane.emacs.help Subject: Re: How to draw pixel ? Date: Thu, 12 Feb 2009 00:59:22 +0800 Message-ID: <874oz0oqol.fsf@debian.domain> References: <87eiy5ne3n.fsf@debian.domain> <001901c98c67$ec830760$c2b22382@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234371613 29770 80.91.229.12 (11 Feb 2009 17:00:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Feb 2009 17:00:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Drew Adams" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 11 18:01:28 2009 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 1LXISc-0004ws-BP for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Feb 2009 18:01:18 +0100 Original-Received: from localhost ([127.0.0.1]:59914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXIRI-0006bG-BE for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Feb 2009 11:59:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LXIQt-0006b9-E2 for help-gnu-emacs@gnu.org; Wed, 11 Feb 2009 11:59:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXIQs-0006ak-3g for help-gnu-emacs@gnu.org; Wed, 11 Feb 2009 11:59:31 -0500 Original-Received: from [199.232.76.173] (port=35722 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXIQr-0006ah-T0 for help-gnu-emacs@gnu.org; Wed, 11 Feb 2009 11:59:29 -0500 Original-Received: from ti-out-0910.google.com ([209.85.142.188]:18182) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LXIQr-0007ig-D0 for help-gnu-emacs@gnu.org; Wed, 11 Feb 2009 11:59:29 -0500 Original-Received: by ti-out-0910.google.com with SMTP id j3so138219tid.10 for ; Wed, 11 Feb 2009 08:59:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=QBoQt8OTKXPcrrTBYN93Ge2dZrfDKba7y7QUYHS/U8E=; b=c3pBLInPF3SZwP85uZmOvPVj94mpOlUCB7UUcgEpQzCbDKdi6VtO2+5Cw8bERdNmNG hWRB+T6f9Vys20U0eDVwX/W4s1C3OdVjn7OJo0X33yt0D8gs5K3gMxow880C7SRlT9WG agwCr6zAuXOjYz7CB1WxioChjnmdUagQ1q7xA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=u3ffQZ3pbRMuPLPZP7Hy9JeaKbpME+X7+h8At4nTQWkh7jXJE5MeJ6+KWxPM2+OP4N TgIR292EmrcMLbQQhddMpF901067+rwZ5NfpVbR379cSMESiz+AcMuLdpj2qAURPWXIK oaiWOsfKJEbYEhShCXK+Y6LeKri92cNmKSqbQ= Original-Received: by 10.110.2.2 with SMTP id 2mr12246073tib.29.1234371566896; Wed, 11 Feb 2009 08:59:26 -0800 (PST) Original-Received: from smtp.gmail.com ([222.212.140.34]) by mx.google.com with ESMTPS id i6sm4837142tid.23.2009.02.11.08.59.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Feb 2009 08:59:26 -0800 (PST) In-Reply-To: <001901c98c67$ec830760$c2b22382@us.oracle.com> (Drew Adams's message of "Wed, 11 Feb 2009 08:43:43 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:62061 Archived-At: Hi Drew, "Drew Adams" writes: >> function to draw pixel vertically line in emacs buffer > > I don't have a direct answer to your question, but you might also take a look at > the code in vline.el. It draws a vertical line using character composition with > the character ?|. > http://www.emacswiki.org/emacs/vline.el I know vline.el. But this overlay have display problem with multi-byte language (such as Chinese), when Chinese character's width is not *two times* of English character's width. I have uploae screenshot for describe this problem. Screenshot at http://www.emacswiki.org/emacs/VlineProblemWithChinese Then you will see the problem. Regards, -- Andy