GNU bug report logs -
#52676
28.0.50; [PATCH] Rationalize window-text-pixel-size
Previous Next
Reported by: dick <dick.r.chiang <at> gmail.com>
Date: Mon, 20 Dec 2021 02:33:01 UTC
Severity: normal
Tags: patch
Found in version 28.0.50
Done: Po Lu <luangruo <at> yahoo.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
dick <dick.r.chiang <at> gmail.com> writes:
> I am sure there was a way to do what you wanted without resorting to
> what you did. Perhaps I've been too harsh on you. You've gotten a lot
> of poor (but earnest) counsel from emacs-devel.
None of the counsel was "poor". If you have anything real to add to the
discussion, please quit the rhetoric and say what the problem is out
loud.
> (cons (car dims*)
> (- (cdr dims*)
> (save-excursion
> (goto-char to)
> (if (> (line-end-position) (line-beginning-position))
> (line-pixel-height)
> 0))))))))
There goes the part of the performance problem that change was supposed
to solve: if you take a look at `pixel-point-and-height-at-unseen-line'
in its current slow state, that is similar to what is already being done
there. (And once again, your test simply does not work when there is a
line-prefix, unlike `pixel-point-and-height-at-unseen-line'.)
So before you come to the conclusion that it is ok to remove a change,
please take a minute to at least try to understand the logic behind that
change.
This bug report was last modified 3 years and 148 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.