Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
af32d76e
Commit
af32d76e
authored
Nov 13, 2001
by
Eli Zaretskii
Browse files
(calc-do-embedded): Call `y-or-n-p' with
correct number of arguments.
parent
4db56602
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lisp/calc/calc-embed.el
lisp/calc/calc-embed.el
+4
-4
No files found.
lisp/calc/calc-embed.el
View file @
af32d76e
;; Calculator for GNU Emacs, part II [calc-embed.el]
;; Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
;; Copyright (C) 1990, 1991, 1992, 1993
, 2001
Free Software Foundation, Inc.
;; Written by Dave Gillespie, daveg@synaptics.com.
;; This file is part of GNU Emacs.
...
...
@@ -202,8 +202,8 @@ This is not required to be present for user-written mode annotations.")
(
if
(
buffer-name
(
aref
calc-embedded-info
0
))
(
save-excursion
(
set-buffer
(
aref
calc-embedded-info
0
))
(
or
(
y-or-n-p
"Cancel Calc Embedded mode in buffer %s? "
(
buffer-name
))
(
or
(
y-or-n-p
(
format
"Cancel Calc Embedded mode in buffer %s? "
(
buffer-name
))
)
(
keyboard-quit
))
(
calc-embedded
nil
)))
(
calc-embedded
arg
end
obeg
oend
)))
...
...
@@ -308,7 +308,7 @@ This is not required to be present for user-written mode annotations.")
(
error
(
nth
2
(
aref
info
8
)))))
(
calc-wrapper
(
setq
str
(
math-showing-full-precision
(
math-format-nice-expr
(
aref
info
8
)
(
screen
-width
))))
(
math-format-nice-expr
(
aref
info
8
)
(
frame
-width
))))
(
calc-edit-mode
(
list
'calc-embedded-finish-edit
info
))
(
insert
str
"\n"
)))
(
calc-show-edit-buffer
)
...
...
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