From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: using glyphs by default in perl-mode Date: Fri, 07 Jun 2013 08:48:48 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87wqq6qe6n.fsf@lifelogs.com> References: <87d2sp92vb.fsf@lifelogs.com> <87bo877kf7.fsf@lifelogs.com> <87obbs7cew.fsf@lifelogs.com> <87ip1y54fx.fsf@lifelogs.com> <87ehck6670.fsf@lifelogs.com> <87a9n854tx.fsf@lifelogs.com> <8761xw54rv.fsf@lifelogs.com> <87sj0y4p7h.fsf@lifelogs.com> <87ppw13aky.fsf@lifelogs.com> <874ndc39bt.fsf@lifelogs.com> <83d2ryv0cn.fsf@gnu.org> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1370609349 28108 80.91.229.3 (7 Jun 2013 12:49:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Jun 2013 12:49:09 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 07 14:49:09 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ukw6O-0004fK-F7 for ged-emacs-devel@m.gmane.org; Fri, 07 Jun 2013 14:49:08 +0200 Original-Received: from localhost ([::1]:58156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukw6O-000540-4A for ged-emacs-devel@m.gmane.org; Fri, 07 Jun 2013 08:49:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukw6K-00053j-BN for emacs-devel@gnu.org; Fri, 07 Jun 2013 08:49:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ukw6H-0004e5-NV for emacs-devel@gnu.org; Fri, 07 Jun 2013 08:49:04 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukw6H-0004dr-HM for emacs-devel@gnu.org; Fri, 07 Jun 2013 08:49:01 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ukw6E-0004Xa-FP for emacs-devel@gnu.org; Fri, 07 Jun 2013 14:48:58 +0200 Original-Received: from pool-72-93-26-80.bstnma.east.verizon.net ([72.93.26.80]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jun 2013 14:48:58 +0200 Original-Received: from tzz by pool-72-93-26-80.bstnma.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jun 2013 14:48:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 46 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-72-93-26-80.bstnma.east.verizon.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:g/Zo9Ni6d7zXUyI0FUsgeX/psEA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160210 Archived-At: On Fri, 07 Jun 2013 10:36:24 +0300 Eli Zaretskii wrote: >> "If it is a vector or list, it is a sequence of alternate characters and >> composition rules, where (2N)th elements are characters and (2N+1)th >> elements are composition rules to specify how to compose (2N+2)th >> elements with previously composed N glyphs." >> >> I stared at this for a while then I gave up. It really needs one or two >> examples and an alternate wording, because I have no idea what it says.) EZ> There's a reference to reference-point-alist, which I think has those EZ> details. EZ> As for examples, you can see them in tv-util.el, for example. OK, but read that sentence again. Can you really make sense of it? It needs rewording and an inline example right after this paragraph. It doesn't have to be a complicated example. >> It would be really nice to be able to [...] use an image to create a >> glyph. EZ> I don't understand this: Emacs _can_ display an image, so what can you EZ> possibly mean by "use an image to create a glyph"? What is a "glyph" EZ> in this context? Currently, AFAIK Emacs treats images as a text property. This is convenient but there are many cases where I'd rather have images behave like typed characters: one image == one character == one glyph. I proposed using a virtual, dynamically generated font outside Unicode or perhaps in a reserved Unicode space. The result should be that asking (just an example, not an implementation suggestion): (make-char 'image "/tmp/gnus.png") will produce something that respects font size, can be scaled, and looks like a character to all Emacs functions but like an image visually. In text mode or without image support it would be treated like a character that can't be rendered. I hope that explains things better. Ted