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: Tue, 04 Sep 2007 12:45:52 -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 1188925566 3793 80.91.229.12 (4 Sep 2007 17:06:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2007 17:06:06 +0000 (UTC) Cc: levin To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 04 19:06:04 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 1ISbcz-0000L9-Of for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2007 18:51:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISbcy-0007B9-E4 for ged-emacs-devel@m.gmane.org; Tue, 04 Sep 2007 12:51:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISbXW-0007Ku-0I for emacs-devel@gnu.org; Tue, 04 Sep 2007 12:46:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISbXV-0007Jb-5y for emacs-devel@gnu.org; Tue, 04 Sep 2007 12:46:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISbXU-0007JQ-Vm for emacs-devel@gnu.org; Tue, 04 Sep 2007 12:46:09 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ISbXU-0007Rz-BW for emacs-devel@gnu.org; Tue, 04 Sep 2007 12:46:08 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1ISbXE-0007BG-MZ; Tue, 04 Sep 2007 12:45:52 -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:77756 Archived-At: [I sent this message a week ago but did not get a response.] 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