>>>> "SY" == Steve Youngs
<youngs(a)xemacs.org> writes:
SY> |--==> "APA" == Adrian Aichner <aichner(a)ecf.teradyne.com>
writes:
APA> 2001-12-18 Adrian Aichner <adrian(a)xemacs.org>
APA> * calc.el (calc): window and frame width and height fixes by Alan
APA> Wehmann, as posted on comp.emacs.xemacs.
APA> * calc.el (calc-quit): Ditto.
APA> * calc.el (calc-trail-here): Ditto.
SY> Just out of curiosity, what is it that this is supposed to
SY> fix? For me, calc works fine without this patch. And with
SY> this patch, calc dies on startup, complaining about a void
SY> variable 'frame-width'.
SY> Adrian, I don't have access to Usenet so could I ask you to
SY> forward this to the patch's author, if you think we should
SY> take this further.
Hello Alan,
could you please comment on your original patch?
What is the breakage you found without the patch?
To what extent have you tested your patch?
Thanks!
Steve, I don't have any further info than what I forwarded under
From: Adrian.Aichner(a)t-online.de (Adrian Aichner)
Subject: [comp.emacs.xemacs] Calc fixes (for cygwin XEmacs)
To: XEmacs Beta List <xemacs-beta(a)xemacs.org>
Date: 17 Dec 2001 21:57:04 +0100
Organization: The XEmacs Project
Message-ID: <itb5zhsv.fsf(a)mailto.t-online.de>
Best regards,
Adrian
SY> Thanks.
APA> packages Patch (cvs -f -z3 -q diff -u xemacs-packages/calc/calc.el):
APA> Index: xemacs-packages/calc/calc.el
APA> ===================================================================
APA> RCS file: /pack/xemacscvs/XEmacs/packages/xemacs-packages/calc/calc.el,v
APA> retrieving revision 1.7
APA> diff -u -r1.7 calc.el
APA> --- xemacs-packages/calc/calc.el 2001/05/14 06:14:29 1.7
APA> +++ xemacs-packages/calc/calc.el 2001/12/18 09:36:21
APA> @@ -1199,7 +1199,7 @@
APA> (save-excursion
APA> (set-buffer (calc-trail-buffer))
APA> (and calc-display-trail
APA> - (= (window-width) (frame-width))
APA> + (= (window-width) (1+ frame-width))
APA> (calc-trail-display 1 t)))
APA> (message "Welcome to the GNU Emacs Calculator! Press `?' or `h'
for help, `q' to quit.")
APA> (run-hooks 'calc-start-hook)
APA> @@ -1265,7 +1265,7 @@
APA> (delete-windows-on (calc-trail-buffer))
APA> (if (and win
APA> (< (window-height win) (1- (frame-height)))
APA> - (= (window-width win) (frame-width)) ; avoid calc-keypad
APA> + (= (window-width win) (1+ frame-width)) ; avoid calc-keypad
APA> (not (get-buffer-window "*Calc Keypad*")))
APA> (setq calc-window-height (- (window-height win) 2)))
APA> (if calc-was-split
APA> @@ -1541,7 +1541,7 @@
APA> (if win
APA> (progn
APA> (calc-cursor-stack-index 0)
APA> - (vertical-motion (- 2 (window-height win)))
APA> + (vertical-motion (- 3 (window-height win)))
APA> (set-window-start win (point)))))
APA> (calc-cursor-stack-index 0)
APA> (if (looking-at " *\\.$")
APA> @@ -1901,7 +1901,7 @@
APA> (if win
APA> (save-excursion
APA> (forward-line (/ (window-height win) 2))
APA> - (forward-line (- 1 (window-height win)))
APA> + (forward-line (- 2 (window-height win)))
APA> (set-window-start win (point))
APA> (set-window-point win (+ calc-trail-pointer 4))
APA> (set-buffer calc-main-buffer)
SY> --
SY> |---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---|
SY> | XEmacs - It's not just an editor. |
SY> | It's a way of life. |
SY> |------------------------------------<youngs(a)xemacs.org>---|
--
Adrian Aichner
mailto:adrian@xemacs.org
http://www.xemacs.org/