emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: please use ?\u2014 instead of the unicode character inbuff-menu.el


From: Lennart Borgman (gmail)
Subject: Re: please use ?\u2014 instead of the unicode character inbuff-menu.el
Date: Mon, 19 Feb 2007 23:17:35 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666

Drew Adams wrote:
I don't think this a real life problem that is worth making
the code less readable over.
I agree. There are more simple solutions.


Please explain why 1) is more readable than 2):

1) ;; Use U+2014 (EM DASH) to underline if possible, else U+002D
(HYPHEN-MINUS)
   (if (char-displayable-p ?-) ?- ?-)))

2) (if (char-displayable-p ?\u2014) ?\u2014 ?-)))


I have no good comment on that except that I find both unreadable ;-)

2 needs a comment too in my opinion. But this is a very clear way to describe the problem I believe this began with.

I tend to agree with you that 2 is more easy to understand (with a comment).




reply via email to

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