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
1c671d65
Commit
1c671d65
authored
Aug 21, 2015
by
Eli Zaretskii
Browse files
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
parents
c1402c58
1a38259b
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
89 additions
and
77 deletions
+89
-77
lisp/calc/calc-aent.el
lisp/calc/calc-aent.el
+2
-2
lisp/calc/calc-embed.el
lisp/calc/calc-embed.el
+6
-4
lisp/calc/calc-ext.el
lisp/calc/calc-ext.el
+7
-7
lisp/calc/calc-graph.el
lisp/calc/calc-graph.el
+1
-1
lisp/calc/calc-help.el
lisp/calc/calc-help.el
+18
-12
lisp/calc/calc-lang.el
lisp/calc/calc-lang.el
+20
-19
lisp/calc/calc-misc.el
lisp/calc/calc-misc.el
+1
-1
lisp/calc/calc-mode.el
lisp/calc/calc-mode.el
+8
-8
lisp/calc/calc-prog.el
lisp/calc/calc-prog.el
+2
-2
lisp/calc/calc-store.el
lisp/calc/calc-store.el
+1
-1
lisp/calc/calc-units.el
lisp/calc/calc-units.el
+11
-8
lisp/calc/calc-vec.el
lisp/calc/calc-vec.el
+6
-6
lisp/calc/calc-yank.el
lisp/calc/calc-yank.el
+2
-2
lisp/calc/calc.el
lisp/calc/calc.el
+4
-4
No files found.
lisp/calc/calc-aent.el
View file @
1c671d65
...
@@ -1121,7 +1121,7 @@ If the current Calc language does not use placeholders, return nil."
...
@@ -1121,7 +1121,7 @@ If the current Calc language does not use placeholders, return nil."
(
math-read-expr-list
))))
(
math-read-expr-list
))))
(
if
(
not
(
or
(
equal
math-expr-data
calc-function-close
)
(
if
(
not
(
or
(
equal
math-expr-data
calc-function-close
)
(
eq
math-exp-token
'end
)))
(
eq
math-exp-token
'end
)))
(
throw
'syntax
"Expected
`)'
"
))
(
throw
'syntax
"Expected
‘)’
"
))
(
math-read-token
)
(
math-read-token
)
(
if
(
and
(
memq
calc-language
(
if
(
and
(
memq
calc-language
calc-lang-parens-are-subscripts
)
calc-lang-parens-are-subscripts
)
...
@@ -1246,7 +1246,7 @@ If the current Calc language does not use placeholders, return nil."
...
@@ -1246,7 +1246,7 @@ If the current Calc language does not use placeholders, return nil."
(
if
(
not
(
or
(
equal
math-expr-data
")"
)
(
if
(
not
(
or
(
equal
math-expr-data
")"
)
(
and
(
equal
math-expr-data
"]"
)
(
eq
(
car-safe
exp
)
'intv
))
(
and
(
equal
math-expr-data
"]"
)
(
eq
(
car-safe
exp
)
'intv
))
(
eq
math-exp-token
'end
)))
(
eq
math-exp-token
'end
)))
(
throw
'syntax
"Expected
`)'
"
))
(
throw
'syntax
"Expected
‘)’
"
))
(
math-read-token
)
(
math-read-token
)
exp
))
exp
))
((
eq
math-exp-token
'string
)
((
eq
math-exp-token
'string
)
...
...
lisp/calc/calc-embed.el
View file @
1c671d65
...
@@ -330,10 +330,12 @@
...
@@ -330,10 +330,12 @@
(
if
calc-embedded-firsttime-formula
(
if
calc-embedded-firsttime-formula
(
run-hooks
'calc-embedded-new-formula-hook
))
(
run-hooks
'calc-embedded-new-formula-hook
))
(
or
(
eq
calc-embedded-quiet
t
)
(
or
(
eq
calc-embedded-quiet
t
)
(
message
"Embedded Calc mode enabled; %s to return to normal"
(
message
(
concat
(
if
calc-embedded-quiet
"Embedded Calc mode enabled; "
"Type `C-x * x'"
(
if
calc-embedded-quiet
"Give this command again"
)))))
"Type ‘C-x * x’"
"Give this command again"
)
" to return to normal"
)))))
(
scroll-down
0
))
; fix a bug which occurs when truncate-lines is changed.
(
scroll-down
0
))
; fix a bug which occurs when truncate-lines is changed.
...
...
lisp/calc/calc-ext.el
View file @
1c671d65
...
@@ -1097,10 +1097,10 @@ calc-tan calc-tanh calc-to-degrees calc-to-radians)
...
@@ -1097,10 +1097,10 @@ calc-tan calc-tanh calc-to-degrees calc-to-radians)
(
"calc-mode"
calc-alg-simplify-mode
calc-algebraic-mode
(
"calc-mode"
calc-alg-simplify-mode
calc-algebraic-mode
calc-always-load-extensions
calc-auto-recompute
calc-auto-why
calc-always-load-extensions
calc-auto-recompute
calc-auto-why
calc-basic-simplify-mode
calc-bin-simplify-mode
calc-break-vectors
calc-basic-simplify-mode
calc-bin-simplify-mode
calc-break-vectors
calc-center-justify
calc-default-simplify-mode
calc-display-raw
calc-center-justify
calc-default-simplify-mode
calc-display-raw
calc-eng-notation
calc-ext-simplify-mode
calc-fix-notation
calc-eng-notation
calc-ext-simplify-mode
calc-fix-notation
calc-full-trail-vectors
calc-full-vectors
calc-get-modes
calc-group-char
calc-full-trail-vectors
calc-full-vectors
calc-get-modes
calc-group-char
calc-group-digits
calc-infinite-mode
calc-left-justify
calc-left-label
calc-group-digits
calc-infinite-mode
calc-left-justify
calc-left-label
calc-line-breaking
calc-line-numbering
calc-matrix-brackets
calc-line-breaking
calc-line-numbering
calc-matrix-brackets
calc-matrix-center-justify
calc-matrix-left-justify
calc-matrix-mode
calc-matrix-center-justify
calc-matrix-left-justify
calc-matrix-mode
...
@@ -1177,7 +1177,7 @@ calc-trail-scroll-right calc-trail-yank)
...
@@ -1177,7 +1177,7 @@ calc-trail-scroll-right calc-trail-yank)
(
"calc-undo"
calc-last-args
calc-redo
)
(
"calc-undo"
calc-last-args
calc-redo
)
(
"calc-units"
calc-autorange-units
calc-base-units
(
"calc-units"
calc-autorange-units
calc-base-units
calc-convert-temperature
calc-convert-units
calc-convert-temperature
calc-convert-units
calc-convert-exact-units
calc-define-unit
calc-convert-exact-units
calc-define-unit
calc-enter-units-table
calc-explain-units
calc-extract-units
calc-enter-units-table
calc-explain-units
calc-extract-units
calc-get-unit-definition
calc-permanent-units
calc-quick-units
calc-get-unit-definition
calc-permanent-units
calc-quick-units
...
@@ -1957,7 +1957,7 @@ calc-kill calc-kill-region calc-yank))))
...
@@ -1957,7 +1957,7 @@ calc-kill calc-kill-region calc-yank))))
(
desc
(
desc
(
if
(
symbolp
func
)
(
if
(
symbolp
func
)
(
if
(
=
(
logand
kind
3
)
0
)
(
if
(
=
(
logand
kind
3
)
0
)
(
format
"
`
%c
'
= %s"
key
name
)
(
format
"
‘
%c
’
= %s"
key
name
)
(
if
pos
(
if
pos
(
format
"%s%c%s"
(
format
"%s%c%s"
(
downcase
(
substring
name
0
pos
))
(
downcase
(
substring
name
0
pos
))
...
@@ -1988,7 +1988,7 @@ calc-kill calc-kill-region calc-yank))))
...
@@ -1988,7 +1988,7 @@ calc-kill calc-kill-region calc-yank))))
"kbd-macros: [ (if), : (else), | (else-if), ] (end-if)"
"kbd-macros: [ (if), : (else), | (else-if), ] (end-if)"
"kbd-macros: < > (repeat), ( ) (for), { } (loop)"
"kbd-macros: < > (repeat), ( ) (for), { } (loop)"
"kbd-macros: / (break)"
"kbd-macros: / (break)"
"kbd-macros: ` (save), ' (restore)"
)
"kbd-macros:
\\=
` (save), ' (restore)"
)
"user"
?Z
))
"user"
?Z
))
...
...
lisp/calc/calc-graph.el
View file @
1c671d65
...
@@ -958,7 +958,7 @@ This \"dumb\" driver will be present in Gnuplot 3.0."
...
@@ -958,7 +958,7 @@ This \"dumb\" driver will be present in Gnuplot 3.0."
(
define-key
calc-dumb-map
"\C-c\C-c"
'exit-recursive-edit
)))
(
define-key
calc-dumb-map
"\C-c\C-c"
'exit-recursive-edit
)))
(
use-local-map
calc-dumb-map
)
(
use-local-map
calc-dumb-map
)
(
setq
truncate-lines
t
)
(
setq
truncate-lines
t
)
(
message
"Type
`q'
or
`
C-c C-c
'
to return to Calc"
)
(
message
"Type
‘q’
or
‘
C-c C-c
’
to return to Calc"
)
(
recursive-edit
)
(
recursive-edit
)
(
bury-buffer
"*Gnuplot Trail*"
)))
(
bury-buffer
"*Gnuplot Trail*"
)))
...
...
lisp/calc/calc-help.el
View file @
1c671d65
...
@@ -240,7 +240,7 @@ C-w Describe how there is no warranty for Calc."
...
@@ -240,7 +240,7 @@ C-w Describe how there is no warranty for Calc."
(
if
(
string-match
"\\` +"
prompts
)
(
if
(
string-match
"\\` +"
prompts
)
(
setq
prompts
(
substring
prompts
(
match-end
0
))))
(
setq
prompts
(
substring
prompts
(
match-end
0
))))
(
setq
msg
(
format
(
setq
msg
(
format
"%s: %s%s
`
%s
'
%s%s %s%s"
"%s: %s%s
‘
%s
’
%s%s %s%s"
(
if
(
string-match
(
if
(
string-match
"\\`\\(calc-[-a-zA-Z0-9]+\\) *\\(.*\\)\\'"
"\\`\\(calc-[-a-zA-Z0-9]+\\) *\\(.*\\)\\'"
cmd
)
cmd
)
...
@@ -345,7 +345,7 @@ C-w Describe how there is no warranty for Calc."
...
@@ -345,7 +345,7 @@ C-w Describe how there is no warranty for Calc."
(
calc-describe-thing
var
"Variable Index"
))
(
calc-describe-thing
var
"Variable Index"
))
(
defun
calc-describe-thing
(
thing
where
&optional
target
not-quoted
)
(
defun
calc-describe-thing
(
thing
where
&optional
target
not-quoted
)
(
message
"Looking for
`
%s
'
in %s..."
thing
where
)
(
message
"Looking for
‘
%s
’
in %s..."
thing
where
)
(
let
((
savewin
(
current-window-configuration
)))
(
let
((
savewin
(
current-window-configuration
)))
(
calc-info-goto-node
where
)
(
calc-info-goto-node
where
)
(
or
(
let
((
case-fold-search
nil
))
(
or
(
let
((
case-fold-search
nil
))
...
@@ -361,7 +361,7 @@ C-w Describe how there is no warranty for Calc."
...
@@ -361,7 +361,7 @@ C-w Describe how there is no warranty for Calc."
(
if
Info-history
(
if
Info-history
(
Info-last
))
(
Info-last
))
(
set-window-configuration
savewin
)
(
set-window-configuration
savewin
)
(
error
"Can't find
`
%s
'
in %s"
thing
where
)))
(
error
"Can't find
‘
%s
’
in %s"
thing
where
)))
(
let
(
Info-history
)
(
let
(
Info-history
)
(
Info-goto-node
(
buffer-substring
(
match-beginning
1
)
(
match-end
1
))))
(
Info-goto-node
(
buffer-substring
(
match-beginning
1
)
(
match-end
1
))))
(
let*
((
string-target
(
or
target
thing
))
(
let*
((
string-target
(
or
target
thing
))
...
@@ -380,7 +380,7 @@ C-w Describe how there is no warranty for Calc."
...
@@ -380,7 +380,7 @@ C-w Describe how there is no warranty for Calc."
(
re-search-forward
quoted
nil
t
)
(
re-search-forward
quoted
nil
t
)
(
search-forward
string-target
nil
t
)))))
(
search-forward
string-target
nil
t
)))))
(
beginning-of-line
)
(
beginning-of-line
)
(
message
"Found
`
%s
'
in %s"
thing
where
)))
(
message
"Found
‘
%s
’
in %s"
thing
where
)))
(
defun
calc-view-news
()
(
defun
calc-view-news
()
(
interactive
)
(
interactive
)
...
@@ -400,11 +400,13 @@ C-w Describe how there is no warranty for Calc."
...
@@ -400,11 +400,13 @@ C-w Describe how there is no warranty for Calc."
(
princ
"GNU Emacs Calculator.\n"
)
(
princ
"GNU Emacs Calculator.\n"
)
(
princ
" By Dave Gillespie.\n"
)
(
princ
" By Dave Gillespie.\n"
)
(
princ
(
format
" %s\n\n"
emacs-copyright
))
(
princ
(
format
" %s\n\n"
emacs-copyright
))
(
princ
"Type
`
h s
'
for a more detailed summary.\n"
)
(
princ
(
format
"Type
‘
h s
’
for a more detailed summary.\n"
)
)
(
princ
"Or type
`
h i
'
to read the full Calc manual on-line.\n\n"
)
(
princ
(
format
"Or type
‘
h i
’
to read the full Calc manual on-line.\n\n"
)
)
(
princ
"Basic keys:\n"
)
(
princ
"Basic keys:\n"
)
(
let*
((
calc-full-help-flag
t
))
(
let*
((
calc-full-help-flag
t
))
(
mapc
(
function
(
lambda
(
x
)
(
princ
(
format
" %s\n"
x
))))
(
mapc
(
function
(
lambda
(
x
)
(
princ
(
format
" %s\n"
(
substitute-command-keys
x
)))))
(
nreverse
(
cdr
(
reverse
(
cdr
(
calc-help
))))))
(
nreverse
(
cdr
(
reverse
(
cdr
(
calc-help
))))))
(
mapc
(
function
(
lambda
(
prefix
)
(
mapc
(
function
(
lambda
(
prefix
)
(
let
((
msgs
(
condition-case
err
(
let
((
msgs
(
condition-case
err
...
@@ -413,18 +415,22 @@ C-w Describe how there is no warranty for Calc."
...
@@ -413,18 +415,22 @@ C-w Describe how there is no warranty for Calc."
(
if
(
car
msgs
)
(
if
(
car
msgs
)
(
princ
(
princ
(
if
(
eq
(
nth
2
msgs
)
?v
)
(
if
(
eq
(
nth
2
msgs
)
?v
)
"\n`v' or `V' prefix (vector/matrix) keys: \n"
(
format
"\n‘v’ or ‘V’ prefix (vector/matrix) keys: \n"
)
(
if
(
nth
2
msgs
)
(
if
(
nth
2
msgs
)
(
format
(
format
"\n
`
%c
'
prefix (%s) keys:\n"
"\n
‘
%c
’
prefix (%s) keys:\n"
(
nth
2
msgs
)
(
nth
2
msgs
)
(
or
(
cdr
(
assq
(
nth
2
msgs
)
(
or
(
cdr
(
assq
(
nth
2
msgs
)
calc-help-long-names
))
calc-help-long-names
))
(
nth
1
msgs
)))
(
nth
1
msgs
)))
(
format
"\n%s-modified keys:\n"
(
format
"\n%s-modified keys:\n"
(
capitalize
(
nth
1
msgs
)))))))
(
capitalize
(
nth
1
msgs
)))))))
(
mapcar
(
function
(
lambda
(
x
)
(
mapcar
(
function
(
princ
(
format
" %s\n"
x
))))
(
lambda
(
x
)
(
princ
(
format
" %s\n"
(
substitute-command-keys
x
)))))
(
car
msgs
)))))
(
car
msgs
)))))
'
(
calc-inverse-prefix-help
'
(
calc-inverse-prefix-help
calc-hyperbolic-prefix-help
calc-hyperbolic-prefix-help
...
@@ -539,7 +545,7 @@ C-w Describe how there is no warranty for Calc."
...
@@ -539,7 +545,7 @@ C-w Describe how there is no warranty for Calc."
'
(
"Select, Additional, Once; eVal, Formula; Rewrite"
'
(
"Select, Additional, Once; eVal, Formula; Rewrite"
"More, Less, 1-9, Next, Previous"
"More, Less, 1-9, Next, Previous"
"Unselect, Clear; Display; Enable; Breakable"
"Unselect, Clear; Display; Enable; Breakable"
"' (replace), ` (edit), +, -, *, /, RET (grab), DEL"
"' (replace),
\\=
` (edit), +, -, *, /, RET (grab), DEL"
"SHIFT + swap: Left, Right; maybe: Select, Once"
"SHIFT + swap: Left, Right; maybe: Select, Once"
"SHIFT + Commute, Merge, Distrib, jump-Eqn, Isolate"
"SHIFT + Commute, Merge, Distrib, jump-Eqn, Isolate"
"SHIFT + Negate, & (invert); Unpack"
)
"SHIFT + Negate, & (invert); Unpack"
)
...
...
lisp/calc/calc-lang.el
View file @
1c671d65
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
(
interactive
)
(
interactive
)
(
calc-wrapper
(
calc-wrapper
(
calc-set-language
'c
)
(
calc-set-language
'c
)
(
message
"
`C'
language mode"
)))
(
message
"
‘C’
language mode"
)))
(
put
'c
'math-oper-table
(
put
'c
'math-oper-table
'
(
(
"u!"
calcFunc-lnot
-1
1000
)
'
(
(
"u!"
calcFunc-lnot
-1
1000
)
...
@@ -387,7 +387,7 @@
...
@@ -387,7 +387,7 @@
math-exp-token
'end
math-exp-token
'end
math-expr-data
"\000"
)
math-expr-data
"\000"
)
x
)
x
)
(
throw
'syntax
"Unmatched closing
`/'
"
)))
(
throw
'syntax
"Unmatched closing
‘/’
"
)))
(
defun
math-parse-fortran-subscr
(
sym
args
)
(
defun
math-parse-fortran-subscr
(
sym
args
)
(
setq
sym
(
math-build-var-name
sym
))
(
setq
sym
(
math-build-var-name
sym
))
...
@@ -695,7 +695,7 @@
...
@@ -695,7 +695,7 @@
(
defun
math-parse-tex-sum
(
f
val
)
(
defun
math-parse-tex-sum
(
f
val
)
(
let
(
low
high
save
)
(
let
(
low
high
save
)
(
or
(
equal
math-expr-data
"_"
)
(
throw
'syntax
"Expected
`_'
"
))
(
or
(
equal
math-expr-data
"_"
)
(
throw
'syntax
"Expected
‘_’
"
))
(
math-read-token
)
(
math-read-token
)
(
setq
save
math-exp-old-pos
)
(
setq
save
math-exp-old-pos
)
(
setq
low
(
math-read-factor
))
(
setq
low
(
math-read-factor
))
...
@@ -703,7 +703,7 @@
...
@@ -703,7 +703,7 @@
(
progn
(
progn
(
setq
math-exp-old-pos
(
1+
save
))
(
setq
math-exp-old-pos
(
1+
save
))
(
throw
'syntax
"Expected equation"
)))
(
throw
'syntax
"Expected equation"
)))
(
or
(
equal
math-expr-data
"^"
)
(
throw
'syntax
"Expected
`^'
"
))
(
or
(
equal
math-expr-data
"^"
)
(
throw
'syntax
"Expected
‘^’
"
))
(
math-read-token
)
(
math-read-token
)
(
setq
high
(
math-read-factor
))
(
setq
high
(
math-read-factor
))
(
list
(
nth
2
f
)
(
math-read-factor
)
(
nth
1
low
)
(
nth
2
low
)
high
)))
(
list
(
nth
2
f
)
(
math-read-factor
)
(
nth
1
low
)
(
nth
2
low
)
high
)))
...
@@ -1165,14 +1165,14 @@
...
@@ -1165,14 +1165,14 @@
(
while
(
assoc
math-expr-data
'
((
"ccol"
)
(
"lcol"
)
(
"rcol"
)))
(
while
(
assoc
math-expr-data
'
((
"ccol"
)
(
"lcol"
)
(
"rcol"
)))
(
math-read-token
)
(
math-read-token
)
(
or
(
equal
math-expr-data
calc-function-open
)
(
or
(
equal
math-expr-data
calc-function-open
)
(
throw
'syntax
"Expected
`{'
"
))
(
throw
'syntax
"Expected
‘{’
"
))
(
math-read-token
)
(
math-read-token
)
(
setq
vec
(
cons
(
cons
'vec
(
math-read-expr-list
))
vec
))
(
setq
vec
(
cons
(
cons
'vec
(
math-read-expr-list
))
vec
))
(
or
(
equal
math-expr-data
calc-function-close
)
(
or
(
equal
math-expr-data
calc-function-close
)
(
throw
'syntax
"Expected
`}'
"
))
(
throw
'syntax
"Expected
‘}’
"
))
(
math-read-token
))
(
math-read-token
))
(
or
(
equal
math-expr-data
calc-function-close
)
(
or
(
equal
math-expr-data
calc-function-close
)
(
throw
'syntax
"Expected
`}'
"
))
(
throw
'syntax
"Expected
‘}’
"
))
(
math-read-token
)
(
math-read-token
)
(
math-transpose
(
cons
'vec
(
nreverse
vec
)))))
(
math-transpose
(
cons
'vec
(
nreverse
vec
)))))
...
@@ -1187,7 +1187,7 @@
...
@@ -1187,7 +1187,7 @@
(
math-read-expr-list
))))
(
math-read-expr-list
))))
(
if
(
not
(
or
(
equal
math-expr-data
calc-function-close
)
(
if
(
not
(
or
(
equal
math-expr-data
calc-function-close
)
(
eq
math-exp-token
'end
)))
(
eq
math-exp-token
'end
)))
(
throw
'syntax
"Expected
`)'
"
))
(
throw
'syntax
"Expected
‘)’
"
))
(
math-read-token
)
(
math-read-token
)
(
cons
(
intern
(
format
"calcFunc-%s'"
(
nth
1
x
)))
args
)))
(
cons
(
intern
(
format
"calcFunc-%s'"
(
nth
1
x
)))
args
)))
(
list
'var
(
list
'var
...
@@ -1211,7 +1211,7 @@
...
@@ -1211,7 +1211,7 @@
(
interactive
)
(
interactive
)
(
calc-wrapper
(
calc-wrapper
(
calc-set-language
'yacas
)
(
calc-set-language
'yacas
)
(
message
"
`
Yacas
'
language mode"
)))
(
message
"
‘
Yacas
’
language mode"
)))
(
put
'yacas
'math-vector-brackets
"{}"
)
(
put
'yacas
'math-vector-brackets
"{}"
)
...
@@ -1427,7 +1427,7 @@
...
@@ -1427,7 +1427,7 @@
(
interactive
)
(
interactive
)
(
calc-wrapper
(
calc-wrapper
(
calc-set-language
'maxima
)
(
calc-set-language
'maxima
)
(
message
"
`
Maxima
'
language mode"
)))
(
message
"
‘
Maxima
’
language mode"
)))
(
put
'maxima
'math-oper-table
(
put
'maxima
'math-oper-table
'
((
"+"
+
100
100
)
'
((
"+"
+
100
100
)
...
@@ -1625,7 +1625,7 @@
...
@@ -1625,7 +1625,7 @@
(
interactive
)
(
interactive
)
(
calc-wrapper
(
calc-wrapper
(
calc-set-language
'giac
)
(
calc-set-language
'giac
)
(
message
"
`
Giac
'
language mode"
)))
(
message
"
‘
Giac
’
language mode"
)))
(
put
'giac
'math-oper-table
(
put
'giac
'math-oper-table
'
(
(
"["
(
math-read-giac-subscr
)
250
-1
)
'
(
(
"["
(
math-read-giac-subscr
)
250
-1
)
...
@@ -2237,7 +2237,7 @@ order to Calc's."
...
@@ -2237,7 +2237,7 @@ order to Calc's."
(
if
(
=
sep
?\.
)
(
if
(
=
sep
?\.
)
(
setq
h
(
1+
h
)))
(
setq
h
(
1+
h
)))
(
if
(
=
sep
?\]
)
(
if
(
=
sep
?\]
)
(
math-read-big-error
(
1-
h
)
v
"Expected
`)'
"
))
(
math-read-big-error
(
1-
h
)
v
"Expected
‘)’
"
))
(
if
(
=
sep
?\)
)
(
if
(
=
sep
?\)
)
(
setq
p
(
math-read-big-rec
(
setq
p
(
math-read-big-rec
(
1+
math-rb-h1
)
math-rb-v1
(
1-
h
)
math-rb-v2
v
))
(
1+
math-rb-h1
)
math-rb-v1
(
1-
h
)
math-rb-v2
v
))
...
@@ -2252,7 +2252,7 @@ order to Calc's."
...
@@ -2252,7 +2252,7 @@ order to Calc's."
0
1
)
0
1
)
p
))))
p
))))
((
=
(
math-read-big-char
(
1-
h
)
v
)
?\]
)
((
=
(
math-read-big-char
(
1-
h
)
v
)
?\]
)
(
math-read-big-error
(
1-
h
)
v
"Expected
`)'
"
))
(
math-read-big-error
(
1-
h
)
v
"Expected
‘)’
"
))
((
=
sep
?\,
)
((
=
sep
?\,
)
(
or
(
and
(
math-realp
(
car
p
))
(
math-realp
(
nth
1
p
)))
(
or
(
and
(
math-realp
(
car
p
))
(
math-realp
(
nth
1
p
)))
(
math-read-big-error
(
math-read-big-error
...
@@ -2280,7 +2280,7 @@ order to Calc's."
...
@@ -2280,7 +2280,7 @@ order to Calc's."
(
setq
h
(
math-read-big-balance
(
1+
hleft
)
v
"["
))
(
setq
h
(
math-read-big-balance
(
1+
hleft
)
v
"["
))
(
if
hright
(
if
hright
(
or
(
=
h
hright
)
(
or
(
=
h
hright
)
(
math-read-big-error
hright
v
"Expected
`]'
"
))
(
math-read-big-error
hright
v
"Expected
‘]’
"
))
(
setq
hright
h
))
(
setq
hright
h
))
(
setq
p
(
cons
(
math-read-big-rec
(
setq
p
(
cons
(
math-read-big-rec
hleft
v
h
(
1+
v
))
p
))
hleft
v
h
(
1+
v
))
p
))
...
@@ -2293,7 +2293,7 @@ order to Calc's."
...
@@ -2293,7 +2293,7 @@ order to Calc's."
(
setq
h
(
1+
h
)))
(
setq
h
(
1+
h
)))
(
and
(
=
(
math-read-big-char
h
v
)
?\]
)
(
and
(
=
(
math-read-big-char
h
v
)
?\]
)
(
setq
h
(
1+
h
))))
(
setq
h
(
1+
h
))))
(
math-read-big-error
(
1-
h
)
v
"Expected
`]'
"
))
(
math-read-big-error
(
1-
h
)
v
"Expected
‘]’
"
))
(
if
(
=
(
math-read-big-char
h
vtop
)
?\,
)
(
if
(
=
(
math-read-big-char
h
vtop
)
?\,
)
(
setq
h
(
1+
h
)))
(
setq
h
(
1+
h
)))
(
math-read-big-emptyp
math-rb-h1
(
1+
v
)
(
1-
h
)
math-rb-v2
nil
t
)
(
math-read-big-emptyp
math-rb-h1
(
1+
v
)
(
1-
h
)
math-rb-v2
nil
t
)
...
@@ -2317,7 +2317,7 @@ order to Calc's."
...
@@ -2317,7 +2317,7 @@ order to Calc's."
(
setq
widest
(
math-read-big-char
(
1-
h
)
v
))
(
setq
widest
(
math-read-big-char
(
1-
h
)
v
))
(
if
(
or
(
memq
widest
'
(
?\;
?\)
))
(
if
(
or
(
memq
widest
'
(
?\;
?\)
))
(
and
(
eq
widest
?\.
)
(
cdr
p
)))
(
and
(
eq
widest
?\.
)
(
cdr
p
)))
(
math-read-big-error
(
1-
h
)
v
"Expected
`]'
"
))
(
math-read-big-error
(
1-
h
)
v
"Expected
‘]’
"
))
(
if
(
=
widest
?\.
)
(
if
(
=
widest
?\.
)
(
setq
h
(
1+
h
)
(
setq
h
(
1+
h
)
widest
(
math-read-big-balance
h
v
"["
)
widest
(
math-read-big-balance
h
v
"["
)
...
@@ -2369,7 +2369,7 @@ order to Calc's."
...
@@ -2369,7 +2369,7 @@ order to Calc's."
h
widest
)
h
widest
)
(
=
(
math-read-big-char
(
1-
h
)
v
)
?\,
)))
(
=
(
math-read-big-char
(
1-
h
)
v
)
?\,
)))
(
or
(
=
(
math-read-big-char
(
1-
h
)
v
)
?\)
)
(
or
(
=
(
math-read-big-char
(
1-
h
)
v
)
?\)
)
(
math-read-big-error
(
1-
h
)
v
"Expected
`)'
"
))
(
math-read-big-error
(
1-
h
)
v
"Expected
‘)’
"
))
(
setq
p
(
cons
line
(
nreverse
p
))))
(
setq
p
(
cons
line
(
nreverse
p
))))
(
setq
p
(
list
'var
(
setq
p
(
list
'var
(
intern
(
math-remove-dashes
p
))
(
intern
(
math-remove-dashes
p
))
...
@@ -2432,7 +2432,8 @@ order to Calc's."
...
@@ -2432,7 +2432,8 @@ order to Calc's."
(
let
((
y
(
math-read-big-rec
h
math-rb-v1
math-rb-h2
(
let
((
y
(
math-read-big-rec
h
math-rb-v1
math-rb-h2
math-rb-v2
baseline
nil
t
)))
math-rb-v2
baseline
nil
t
)))
(
or
(
=
(
math-read-big-char
math-read-big-h2
baseline
)
?\:
)
(
or
(
=
(
math-read-big-char
math-read-big-h2
baseline
)
?\:
)
(
math-read-big-error
math-read-big-h2
baseline
"Expected `:'"
))
(
math-read-big-error
math-read-big-h2
baseline
"Expected ‘:’"
))
(
setq
p
(
list
(
nth
1
widest
)
p
y
(
setq
p
(
list
(
nth
1
widest
)
p
y
(
math-read-big-rec
(
math-read-big-rec
(
1+
math-read-big-h2
)
math-rb-v1
math-rb-h2
math-rb-v2
(
1+
math-read-big-h2
)
math-rb-v1
math-rb-h2
math-rb-v2
...
@@ -2507,7 +2508,7 @@ order to Calc's."
...
@@ -2507,7 +2508,7 @@ order to Calc's."
(
while
(
>
count
0
)
(
while
(
>
count
0
)
(
if
(
>=
h
len
)
(
if
(
>=
h
len
)
(
if
what
(
if
what
(
math-read-big-error
nil
v
(
format
"Unmatched
`
%s
'
"
what
))
(
math-read-big-error
nil
v
(
format
"Unmatched
‘
%s
’
"
what
))
(
setq
count
0
))
(
setq
count
0
))
(
if
(
memq
(
aref
line
h
)
'
(
?\(
?\[
))
(
if
(
memq
(
aref
line
h
)
'
(
?\(
?\[
))
(
setq
count
(
1+
count
))
(
setq
count
(
1+
count
))
...
...
lisp/calc/calc-misc.el
View file @
1c671d65
...
@@ -225,7 +225,7 @@ Calc user interface as before (either C-x * C or C-x * K; initially C-x * C).
...
@@ -225,7 +225,7 @@ Calc user interface as before (either C-x * C or C-x * K; initially C-x * C).
"Letter keys: SHIFT + Num-eval; More-recn; eXec-kbd-macro; Keep-args"
"Letter keys: SHIFT + Num-eval; More-recn; eXec-kbd-macro; Keep-args"
"Other keys: +, -, *, /, ^, \\ (int div), : (frac div)"
"Other keys: +, -, *, /, ^, \\ (int div), : (frac div)"
"Other keys: & (1/x), | (concat), % (modulo), ! (factorial)"
"Other keys: & (1/x), | (concat), % (modulo), ! (factorial)"
"Other keys: ' (alg-entry), = (eval), ` (edit); M-RET (last-args)"
"Other keys: ' (alg-entry), = (eval),
\\=
` (edit); M-RET (last-args)"
"Other keys: SPC/RET (enter/dup), LFD (over); < > (scroll horiz)"
"Other keys: SPC/RET (enter/dup), LFD (over); < > (scroll horiz)"
"Other keys: DEL (drop), M-DEL (drop-above); { } (scroll vert)"
"Other keys: DEL (drop), M-DEL (drop-above); { } (scroll vert)"
"Other keys: TAB (swap/roll-dn), M-TAB (roll-up)"
"Other keys: TAB (swap/roll-dn), M-TAB (roll-up)"
...
...
lisp/calc/calc-mode.el
View file @
1c671d65
...
@@ -110,11 +110,11 @@
...
@@ -110,11 +110,11 @@
(
setq
n
(
and
(
not
(
eq
calc-auto-why
t
))
(
if
calc-auto-why
t
1
))))
(
setq
n
(
and
(
not
(
eq
calc-auto-why
t
))
(
if
calc-auto-why
t
1
))))
(
calc-change-mode
'calc-auto-why
n
nil
)
(
calc-change-mode
'calc-auto-why
n
nil
)
(
cond
((
null
n
)
(
cond
((
null
n
)
(
message
"User must press
`w'
to explain unsimplified results"
))
(
message
"User must press
‘w’
to explain unsimplified results"
))
((
eq
n
t
)
((
eq
n
t
)
(
message
"Automatically doing
`w'
to explain unsimplified results"
))
(
message
"Automatically doing
‘w’
to explain unsimplified results"
))
(
t
(
t
(
message
"Automatically doing
`w'
only for unusual messages"
)))))
(
message
"Automatically doing
‘w’
only for unusual messages"
)))))
(
defun
calc-group-digits
(
n
)
(
defun
calc-group-digits
(
n
)
(
interactive
"P"
)
(
interactive
"P"
)
...
@@ -272,7 +272,7 @@
...
@@ -272,7 +272,7 @@
(
vals
(
mapcar
(
function
(
lambda
(
v
)
(
symbol-value
(
car
v
))))
(
vals
(
mapcar
(
function
(
lambda
(
v
)
(
symbol-value
(
car
v
))))
calc-mode-var-list
)))
calc-mode-var-list
)))
(
unless
calc-settings-file
(
unless
calc-settings-file
(
error
"No
`
calc-settings-file
'
specified"
))
(
error
"No
‘
calc-settings-file
’
specified"
))
(
set-buffer
(
find-file-noselect
(
substitute-in-file-name
(
set-buffer
(
find-file-noselect
(
substitute-in-file-name
calc-settings-file
)))
calc-settings-file
)))
(
goto-char
(
point-min
))
(
goto-char
(
point-min
))
...
@@ -410,7 +410,7 @@
...
@@ -410,7 +410,7 @@
((
=
n
4
)
'global
)
((
=
n
4
)
'global
)
((
=
n
5
)
'save
)
((
=
n
5
)
'save
)
(
t
'local
)))
(
t
'local
)))
(
message
"%s"
(
message
"%s"
(
cond
((
and
(
eq
calc-mode-save-mode
'local
)
calc-embedded-info
)
(
cond
((
and
(
eq
calc-mode-save-mode
'local
)
calc-embedded-info
)
"Recording mode changes with [calc-mode: ...]"
)
"Recording mode changes with [calc-mode: ...]"
)
((
eq
calc-mode-save-mode
'edit
)
((
eq
calc-mode-save-mode
'edit
)
...
@@ -478,7 +478,7 @@
...
@@ -478,7 +478,7 @@
(
cond
((
eq
arg
0
)
'scalar
)
(
cond
((
eq
arg
0
)
'scalar
)
((
<
(
prefix-numeric-value
arg
)
1
)
((
<
(
prefix-numeric-value
arg
)
1
)
(
and
(
<
(
prefix-numeric-value
arg
)
-1
)
'matrix
))
(
and
(
<
(
prefix-numeric-value
arg
)
-1
)
'matrix
))
(
arg
(
arg
(
if
(
consp
arg
)
'sqmatrix
(
if
(
consp
arg
)
'sqmatrix
(
prefix-numeric-value
arg
)))
(
prefix-numeric-value
arg
)))
((
eq
calc-matrix-mode
'matrix
)
'scalar
)
((
eq
calc-matrix-mode
'matrix
)
'scalar
)
...
@@ -572,8 +572,8 @@
...
@@ -572,8 +572,8 @@
(
calc-change-mode
'calc-auto-recompute
arg
nil
t
)
(
calc-change-mode
'calc-auto-recompute
arg
nil
t
)
(
calc-refresh-evaltos
)
(
calc-refresh-evaltos
)
(
message
(
if
calc-auto-recompute
(
message
(
if
calc-auto-recompute
"Automatically recomputing
`
=>
'
forms when necessary"
"Automatically recomputing
‘
=>
’
forms when necessary"
"Not recomputing
`
=>
'
forms automatically"
))))
"Not recomputing
‘
=>
’
forms automatically"
))))
(
defun
calc-working
(
n
)
(
defun
calc-working
(
n
)
(
interactive
"P"
)
(
interactive
"P"
)
...
...
lisp/calc/calc-prog.el
View file @
1c671d65
...
@@ -673,7 +673,7 @@
...
@@ -673,7 +673,7 @@
(
or
last-kbd-macro
(
or
last-kbd-macro
(
error
"No keyboard macro defined"
))
(
error
"No keyboard macro defined"
))
(
setq
calc-invocation-macro
last-kbd-macro
)
(
setq
calc-invocation-macro
last-kbd-macro
)
(
message
"Use
`
C-x * Z
'
to invoke this macro"
))
(
message
"Use
‘
C-x * Z
’
to invoke this macro"
))
(
defun
calc-user-define-edit
()
(
defun
calc-user-define-edit
()
(
interactive
)
; but no calc-wrapper!
(
interactive
)
; but no calc-wrapper!
...
@@ -1899,7 +1899,7 @@ Redefine the corresponding command."
...
@@ -1899,7 +1899,7 @@ Redefine the corresponding command."
`
((
and
`
((
and
(
,
chk
,
var
)
(
,
chk
,
var
)
(
math-reject-arg
,
var
',qual
)))))
(
math-reject-arg
,
var
',qual
)))))
(
error
"Unknown qualifier
`
%s
'
"
qual-name
))))))))
(
error
"Unknown qualifier
‘
%s
’
"
qual-name
))))))))