From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: levin Newsgroups: gmane.emacs.devel Subject: bug of display-table & make-glyph-code Date: Mon, 27 Aug 2007 17:32:22 +0800 Message-ID: <200708271732.22306.zslevin@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="gb18030" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1188207225 4371 80.91.229.12 (27 Aug 2007 09:33:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2007 09:33:45 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 27 11:33:41 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IPayZ-00072M-Qk for ged-emacs-devel@m.gmane.org; Mon, 27 Aug 2007 11:33:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPayZ-0004jW-3P for ged-emacs-devel@m.gmane.org; Mon, 27 Aug 2007 05:33:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IPayU-0004jR-3v for emacs-devel@gnu.org; Mon, 27 Aug 2007 05:33:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IPayO-0004cx-Kp for emacs-devel@gnu.org; Mon, 27 Aug 2007 05:33:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPayO-0004cg-Dj for emacs-devel@gnu.org; Mon, 27 Aug 2007 05:33:28 -0400 Original-Received: from wa-out-1112.google.com ([209.85.146.180]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IPayN-00015P-VP for emacs-devel@gnu.org; Mon, 27 Aug 2007 05:33:28 -0400 Original-Received: by wa-out-1112.google.com with SMTP id j4so1955317wah for ; Mon, 27 Aug 2007 02:33:21 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:mime-version:content-disposition:content-type:content-transfer-encoding:message-id; b=m1/sKiNVy+09pAe3Vbs26JpjSsKfJ1VBPEcEu0ZIw0O5slRFRPTZqZ0ez9h+Q4TIGCSp5yMPopm03Z2sqfjBYGOygz1Hsyrl/g7rlCJZJta9P2SlHYdoISMkpxe3hvziYqIWkanZx1GJYJcUA6PmsIovsLVvaTHee3vtGRg2H1s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:mime-version:content-disposition:content-type:content-transfer-encoding:message-id; b=uDjzSQmWrVLqZam7WgWTD5PxRycNkauq0mWFTeBZefbPq3gQHUzylb8BVx0p4+hxFT9K1mL+DTHQYyRQ7Sgq1XbAocRUeLf0DUS3d7u11RKRdVtusuR4xwke+Gat6KevXbPC48M+bZC0X80sZRghZ+sMynNbk9gWhaZ20HvlyH8= Original-Received: by 10.115.17.1 with SMTP id u1mr1189043wai.1188207200734; Mon, 27 Aug 2007 02:33:20 -0700 (PDT) Original-Received: from levcom ( [61.234.125.31]) by mx.google.com with ESMTPS id k2sm15741092rvb.2007.08.27.02.33.16 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Aug 2007 02:33:18 -0700 (PDT) User-Agent: KMail/1.9.7 Content-Disposition: inline X-Detected-Kernel: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:77271 Archived-At: To reinvent this bug, please follow: 1. Please save the text below as glyph.org, visit it, and `M-x org-mode' to turn on org mode. 2. Keep the first headline collapsed by pressing TAB (if neccessary) on it. 3. you can expand the second/third headline by press TAB on it. 4. eval the lisp code in the second headline, this CANNOT change "..." display. 5. eval the lisp code in the third headline, this CAN change "..." display. I find out that if make-glyph-code returns a negative int, then the display table does not take effect on "..." display. --------8<-------------8<-------- * Please keep me collapsed by pressing TAB (if neccessary) some info to hide * please eval me, this CANNOT change "..." display (describe-face 'org-warning) (face-id 'org-warning) # mine is 77 here (unless buffer-display-table (setq buffer-display-table (make-display-table))) (set-display-table-slot buffer-display-table 'selective-display (vconcat (mapcar (lambda (c) (make-glyph-code c 'org-warning)) "..."))) * please eval me, this can change ellipse display (describe-face 'tooltip) (face-id 'tooltip) # mine is 54 here (unless buffer-display-table (setq buffer-display-table (make-display-table))) (set-display-table-slot buffer-display-table 'selective-display (vconcat (mapcar (lambda (c) (make-glyph-code c 'tooltip)) "..."))) --------8<-------------8<-------- My environment: In GNU Emacs 23.0.0.2 (i686-pc-linux-gnu) of 2007-08-27 on MagicLinux configured using `configure '--with-x-toolkit=no'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: zh_CN.GB18030 value of $XMODIFIERS: nil locale-coding-system: chinese-gb18030-unix default-enable-multibyte-characters: t Major mode: Org Minor modes in effect: encoded-kbd-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-compression-mode: t line-number-mode: t -- Levin