From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: tabulated-list sort icon is reversed Date: Fri, 01 Mar 2019 08:56:24 -0500 Message-ID: References: <87d0v1lsns.fsf@fastmail.fm> <532F6D74-E21C-45A2-B85B-01133DE1E8A1@scratch.space> <6e662c5b-3d04-2157-6712-aadcb6077f2b@gmail.com> <83a7j0pzbh.fsf@gnu.org> <83sgwpm92r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="267457"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 01 15:05:27 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzimv-0017GM-Hl for ged-emacs-devel@m.gmane.org; Fri, 01 Mar 2019 15:05:21 +0100 Original-Received: from localhost ([127.0.0.1]:38432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzimu-00004w-Bx for ged-emacs-devel@m.gmane.org; Fri, 01 Mar 2019 09:05:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzii1-0005Cd-R9 for emacs-devel@gnu.org; Fri, 01 Mar 2019 09:00:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzihv-0001Bz-Cu for emacs-devel@gnu.org; Fri, 01 Mar 2019 09:00:17 -0500 Original-Received: from [195.159.176.226] (port=44226 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gzihp-00015G-Rw for emacs-devel@gnu.org; Fri, 01 Mar 2019 09:00:08 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gzihm-000zu3-3b for emacs-devel@gnu.org; Fri, 01 Mar 2019 15:00:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:hwhSLcbRUFI0NF9vr4LhMOs5bQU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:233730 Archived-At: > Okay I found that it works if I re-eval the whole `defvar > tabulated-list-glyphless-char-display`, but not if I `eval-buffer` the > whole buffer. `eval-buffer` will evaluate (defvar ...) in the normal way, which does *nothing* if the variable is already defined. So I suspect that "re-eval the whole ..." above meant to use C-M-x which has special support for `defvar` to force re-evaluation. > (defvar tabulated-list-glyphless-char-display > (let ((table (make-char-table 'glyphless-char-display nil))) > > Should `make-char-table` purpose really be 'glyphless-char-display? Of course, that's what it's for. This "purpose" should be thought of as a type. Stefan