From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: bug of display-table & make-glyph-code Date: Thu, 06 Sep 2007 01:00:55 -0400 Message-ID: References: <200708271732.22306.zslevin@gmail.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1189055683 27700 80.91.229.12 (6 Sep 2007 05:14:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2007 05:14:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: handa@m17n.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 06 07:14:43 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 1IT9hN-0000Vs-CG for ged-emacs-devel@m.gmane.org; Thu, 06 Sep 2007 07:14:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IT9hK-0001Pl-90 for ged-emacs-devel@m.gmane.org; Thu, 06 Sep 2007 01:14:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IT9UW-0005RD-Rw for emacs-devel@gnu.org; Thu, 06 Sep 2007 01:01:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IT9UR-0005LC-LJ for emacs-devel@gnu.org; Thu, 06 Sep 2007 01:01:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IT9UR-0005KK-1t for emacs-devel@gnu.org; Thu, 06 Sep 2007 01:01:15 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IT9UQ-0004uq-4G for emacs-devel@gnu.org; Thu, 06 Sep 2007 01:01:14 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IT9U7-0005AD-AB; Thu, 06 Sep 2007 01:00:55 -0400 In-Reply-To: <200708271732.22306.zslevin@gmail.com> (message from levin on Mon, 27 Aug 2007 17:32:22 +0800) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:77935 Archived-At: He says this fails in the latest unicode-2 sources. Would you please DTRT? Would someone please DTRT and ack? From: levin To: emacs-devel@gnu.org Date: Mon, 27 Aug 2007 17:32:22 +0800 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="gb18030" Subject: bug of display-table & make-glyph-code 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 _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel