emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tabulated-list sort icon is reversed


From: Philippe Vaucher
Subject: Re: tabulated-list sort icon is reversed
Date: Thu, 28 Feb 2019 08:55:47 +0100



On Wed, Feb 27, 2019 at 10:27 PM Stefan Monnier <address@hidden> wrote:
> +(defcustom tabulated-list-sort-icon-asc " ▼"
> +(defcustom tabulated-list-sort-icon-desc " ▲"
> +(defcustom tabulated-list-glyphless-sort-icon-asc "v"
> +(defcustom tabulated-list-glyphless-sort-icon-desc "^"
[...]
> -    (aset table 9650 (cons nil "^"))
> -    (aset table 9660 (cons nil "v"))
> +    (aset table 9650 (cons nil tabulated-list-glyphless-sort-icon-desc))
> +    (aset table 9660 (cons nil tabulated-list-glyphless-sort-icon-asc))

[ 9650 and 9660 should really have been written ?▲ and ?▼.  ]

The above code should be changed so that the table's entries that are
set correspond to the chars configured in tabulated-list-sort-icon-*sc.

Thanks, here attached is a patch doing that.

I noticed a problem: I can customize the unicode char just fine, but whenever I try to customize the glyphless char and use `emacs -nw` it doesn't work, it still uses "^"  or "v". My wild guess is that `glyphless-char-display` is used instead of the custom table... if anyone has an idea...

Regards,
Philippe

Attachment: 0001-Allow-customization-of-sort-indicators-in-tabulated-.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]