Reuben Thomas <rrt(a)sc3d.org> wrote:
Sometimes when I close a calc session using "q", it gives
an error
that "window-edges" is void. This is true, and Lispref info agrees
(though it too curiously still mentions window-edges on the page
before it says that it no longer exists).
As a stop-gap you could try:
(defun window-edges (&optional window)
"I wanna lose!"
(let* ((pixel-edges (window-pixel-edges window))
(pixel-height (face-height 'default))
(pixel-width (face-width 'default))
(left (/ (car pixel-edges) pixel-width))
(top (/ (cadr pixel-edges) pixel-height))
(right (/ (caddr pixel-edges) pixel-width))
(bottom (/ (cadddr pixel-edges) pixel-height)))
(list left top right bottom)))
I have the latest calc xemacs package.
Now that Calc has been incorporated into GNU Emacs, under Colin
Walters' maintainership, it may need synching up (although it still
uses window-edges).
--
John Paul Wallington