Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a2baa908
Commit
a2baa908
authored
Nov 05, 2008
by
Jay Belanger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(calc-quit): Use `window-full-width-p' to check window width.
parent
d9bf544c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/calc/calc.el
lisp/calc/calc.el
+4
-1
No files found.
lisp/ChangeLog
View file @
a2baa908
2008-11-05 Jay Belanger <jay.p.belanger@gmail.com>
* calc/calc.el (calc-quit): Use `window-full-width-p' to check
window width.
2008-11-05 Chong Yidong <cyd@stupidchicken.com>
* server.el (server-process-filter): Only default to emacsclient's
...
...
lisp/calc/calc.el
View file @
a2baa908
...
...
@@ -1424,9 +1424,12 @@ commands given here will actually operate on the *Calculator* stack."
(
win
(
get-buffer-window
(
current-buffer
)))
(
kbuf
(
get-buffer
"*Calc Keypad*"
)))
(
delete-windows-on
(
calc-trail-buffer
))
;; The next few lines will set `calc-window-height' so that the
;; next time Calc is called, the window will be the same size
;; as the current window.
(
if
(
and
win
(
<
(
window-height
win
)
(
1-
(
frame-height
)))
(
=
(
window-width
win
)
(
frame-width
))
; avoid calc-keypad
(
window-
full-
width
-p
win
)
; avoid calc-keypad
(
not
(
get-buffer-window
"*Calc Keypad*"
)))
(
setq
calc-window-height
(
-
(
window-height
win
)
2
)))
(
progn
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment