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

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

bug#16828: 24.3.50; eval-expression, character representation of integer


From: Katsumi Yamaoka
Subject: bug#16828: 24.3.50; eval-expression, character representation of integer results time-consuming
Date: Tue, 25 Feb 2014 09:42:22 +0900
User-agent: Gnus/5.13001 (真 Gnus v0.10) Emacs/24.3.50 (i686-pc-cygwin)

Achim Gratz wrote:
> Eli Zaretskii writes:
>> I don't think the time this takes is spend _looking_ for a font, I
>> think it's spend loading a font.  But someone will have to trace and
>> profile this, and then come up with an analysis.

> Like Stephen I am fairly certain that most of the time is indeed spent
> looking for a suitable font, based on the disk noises that indicate
> seeking through many directories.

Especially on Cygwin, it's very annoying when edebugging.  Displaying
a character for the number of a point or a result of a calculation is
useless.  I use:

(if (eq system-type 'cygwin)
    (defadvice eval-expression-print-format
        (around dont-try-to-convert-char-to-string-when-edebugging
                (value) activate)
      "Don't try to convert char to string when edebugging."
      (if (and (boundp 'edebug-active) (eval 'edebug-active))
          (if (and (integerp value)
                   (or (eq standard-output t)
                       (zerop (prefix-numeric-value current-prefix-arg))))
              (format " (#o%o, #x%x)" value value))
        ad-do-it)))





reply via email to

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