From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: How to draw pixel ? Date: Wed, 11 Feb 2009 09:03:57 -0800 Message-ID: <001c01c98c6a$c7d532f0$c2b22382@us.oracle.com> References: <87eiy5ne3n.fsf@debian.domain><001901c98c67$ec830760$c2b22382@us.oracle.com> <878wocoqvn.fsf@debian.domain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1234372332 32749 80.91.229.12 (11 Feb 2009 17:12:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Feb 2009 17:12:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "'Andy Stewart'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 11 18:13:26 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 1LXIeE-0001y2-81 for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Feb 2009 18:13:19 +0100 Original-Received: from localhost ([127.0.0.1]:39905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXIct-0000gf-9T for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Feb 2009 12:11:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LXIVi-0002nG-5x for help-gnu-emacs@gnu.org; Wed, 11 Feb 2009 12:04:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXIVg-0002kg-Ef for help-gnu-emacs@gnu.org; Wed, 11 Feb 2009 12:04:29 -0500 Original-Received: from [199.232.76.173] (port=50041 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXIVg-0002kW-A4 for help-gnu-emacs@gnu.org; Wed, 11 Feb 2009 12:04:28 -0500 Original-Received: from rcsinet12.oracle.com ([148.87.113.124]:22428 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LXIVf-0008Hq-PW for help-gnu-emacs@gnu.org; Wed, 11 Feb 2009 12:04:27 -0500 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n1BH3u7o025113 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 11 Feb 2009 17:03:57 GMT Original-Received: from acsmt706.oracle.com (acsmt706.oracle.com [141.146.40.84]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n1BH4Lgm027429; Wed, 11 Feb 2009 17:04:22 GMT Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 11 Feb 2009 17:04:19 +0000 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 In-Reply-To: <878wocoqvn.fsf@debian.domain> Thread-Index: AcmMaaVU1lzfpWqSTamUir7AIoCEhAAAD/9g X-Source-IP: acsmt706.oracle.com [141.146.40.84] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.49930516.016B:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:62062 Archived-At: > >> 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 attached screenshot for describe this problem. > Then you will see the problem. I probably can't help with this - I'm no expert on multi-byte stuff, character composition, or use of graphics with Emacs. But make sure of one thing: did you first set option `vline-style' to `compose'? If it is not `compose', then a face is simply applied to the existing character. If it is `compose', then the existing character is composed with character ?|. The latter effect is of drawing a thin vertical line through the character. Your screenshot looks like what one gets when the option has value `face' instead. (But maybe that's just a coincidence, and the appearance is due here to multi-byte characters.)