diff options
| author | Eli Zaretskii | 2015-08-21 16:33:46 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2015-08-21 16:33:46 +0300 |
| commit | 1c671d650ce8da0b09494fb43987c9449331ed63 (patch) | |
| tree | dbbbf394eed98c19133d68217f4b840f8905580a /lisp | |
| parent | c1402c58710c62b07aaa1e6cdee34ff20dfd4e8a (diff) | |
| parent | 1a38259bbc5aea962a295e49c4d79f89ddeda709 (diff) | |
| download | emacs-1c671d650ce8da0b09494fb43987c9449331ed63.tar.gz emacs-1c671d650ce8da0b09494fb43987c9449331ed63.zip | |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/calc/calc-aent.el | 4 | ||||
| -rw-r--r-- | lisp/calc/calc-embed.el | 10 | ||||
| -rw-r--r-- | lisp/calc/calc-ext.el | 14 | ||||
| -rw-r--r-- | lisp/calc/calc-graph.el | 2 | ||||
| -rw-r--r-- | lisp/calc/calc-help.el | 30 | ||||
| -rw-r--r-- | lisp/calc/calc-lang.el | 39 | ||||
| -rw-r--r-- | lisp/calc/calc-misc.el | 2 | ||||
| -rw-r--r-- | lisp/calc/calc-mode.el | 16 | ||||
| -rw-r--r-- | lisp/calc/calc-prog.el | 4 | ||||
| -rw-r--r-- | lisp/calc/calc-store.el | 2 | ||||
| -rw-r--r-- | lisp/calc/calc-units.el | 19 | ||||
| -rw-r--r-- | lisp/calc/calc-vec.el | 12 | ||||
| -rw-r--r-- | lisp/calc/calc-yank.el | 4 | ||||
| -rw-r--r-- | lisp/calc/calc.el | 8 |
14 files changed, 89 insertions, 77 deletions
diff --git a/lisp/calc/calc-aent.el b/lisp/calc/calc-aent.el index cc048ebc223..2fa8f19163d 100644 --- a/lisp/calc/calc-aent.el +++ b/lisp/calc/calc-aent.el | |||
| @@ -1121,7 +1121,7 @@ If the current Calc language does not use placeholders, return nil." | |||
| 1121 | (math-read-expr-list)))) | 1121 | (math-read-expr-list)))) |
| 1122 | (if (not (or (equal math-expr-data calc-function-close) | 1122 | (if (not (or (equal math-expr-data calc-function-close) |
| 1123 | (eq math-exp-token 'end))) | 1123 | (eq math-exp-token 'end))) |
| 1124 | (throw 'syntax "Expected `)'")) | 1124 | (throw 'syntax "Expected ‘)’")) |
| 1125 | (math-read-token) | 1125 | (math-read-token) |
| 1126 | (if (and (memq calc-language | 1126 | (if (and (memq calc-language |
| 1127 | calc-lang-parens-are-subscripts) | 1127 | calc-lang-parens-are-subscripts) |
| @@ -1246,7 +1246,7 @@ If the current Calc language does not use placeholders, return nil." | |||
| 1246 | (if (not (or (equal math-expr-data ")") | 1246 | (if (not (or (equal math-expr-data ")") |
| 1247 | (and (equal math-expr-data "]") (eq (car-safe exp) 'intv)) | 1247 | (and (equal math-expr-data "]") (eq (car-safe exp) 'intv)) |
| 1248 | (eq math-exp-token 'end))) | 1248 | (eq math-exp-token 'end))) |
| 1249 | (throw 'syntax "Expected `)'")) | 1249 | (throw 'syntax "Expected ‘)’")) |
| 1250 | (math-read-token) | 1250 | (math-read-token) |
| 1251 | exp)) | 1251 | exp)) |
| 1252 | ((eq math-exp-token 'string) | 1252 | ((eq math-exp-token 'string) |
diff --git a/lisp/calc/calc-embed.el b/lisp/calc/calc-embed.el index fcb4b032096..3f6e83e0c6d 100644 --- a/lisp/calc/calc-embed.el +++ b/lisp/calc/calc-embed.el | |||
| @@ -330,10 +330,12 @@ | |||
| 330 | (if calc-embedded-firsttime-formula | 330 | (if calc-embedded-firsttime-formula |
| 331 | (run-hooks 'calc-embedded-new-formula-hook)) | 331 | (run-hooks 'calc-embedded-new-formula-hook)) |
| 332 | (or (eq calc-embedded-quiet t) | 332 | (or (eq calc-embedded-quiet t) |
| 333 | (message "Embedded Calc mode enabled; %s to return to normal" | 333 | (message (concat |
| 334 | (if calc-embedded-quiet | 334 | "Embedded Calc mode enabled; " |
| 335 | "Type `C-x * x'" | 335 | (if calc-embedded-quiet |
| 336 | "Give this command again"))))) | 336 | "Type ‘C-x * x’" |
| 337 | "Give this command again") | ||
| 338 | " to return to normal"))))) | ||
| 337 | (scroll-down 0)) ; fix a bug which occurs when truncate-lines is changed. | 339 | (scroll-down 0)) ; fix a bug which occurs when truncate-lines is changed. |
| 338 | 340 | ||
| 339 | 341 | ||
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el index 67d0c2701d2..1c40188d2b2 100644 --- a/lisp/calc/calc-ext.el +++ b/lisp/calc/calc-ext.el | |||
| @@ -1097,10 +1097,10 @@ calc-tan calc-tanh calc-to-degrees calc-to-radians) | |||
| 1097 | 1097 | ||
| 1098 | ("calc-mode" calc-alg-simplify-mode calc-algebraic-mode | 1098 | ("calc-mode" calc-alg-simplify-mode calc-algebraic-mode |
| 1099 | calc-always-load-extensions calc-auto-recompute calc-auto-why | 1099 | calc-always-load-extensions calc-auto-recompute calc-auto-why |
| 1100 | calc-basic-simplify-mode calc-bin-simplify-mode calc-break-vectors | 1100 | calc-basic-simplify-mode calc-bin-simplify-mode calc-break-vectors |
| 1101 | calc-center-justify calc-default-simplify-mode calc-display-raw | 1101 | calc-center-justify calc-default-simplify-mode calc-display-raw |
| 1102 | calc-eng-notation calc-ext-simplify-mode calc-fix-notation | 1102 | calc-eng-notation calc-ext-simplify-mode calc-fix-notation |
| 1103 | calc-full-trail-vectors calc-full-vectors calc-get-modes calc-group-char | 1103 | calc-full-trail-vectors calc-full-vectors calc-get-modes calc-group-char |
| 1104 | calc-group-digits calc-infinite-mode calc-left-justify calc-left-label | 1104 | calc-group-digits calc-infinite-mode calc-left-justify calc-left-label |
| 1105 | calc-line-breaking calc-line-numbering calc-matrix-brackets | 1105 | calc-line-breaking calc-line-numbering calc-matrix-brackets |
| 1106 | calc-matrix-center-justify calc-matrix-left-justify calc-matrix-mode | 1106 | calc-matrix-center-justify calc-matrix-left-justify calc-matrix-mode |
| @@ -1177,7 +1177,7 @@ calc-trail-scroll-right calc-trail-yank) | |||
| 1177 | ("calc-undo" calc-last-args calc-redo) | 1177 | ("calc-undo" calc-last-args calc-redo) |
| 1178 | 1178 | ||
| 1179 | ("calc-units" calc-autorange-units calc-base-units | 1179 | ("calc-units" calc-autorange-units calc-base-units |
| 1180 | calc-convert-temperature calc-convert-units | 1180 | calc-convert-temperature calc-convert-units |
| 1181 | calc-convert-exact-units calc-define-unit | 1181 | calc-convert-exact-units calc-define-unit |
| 1182 | calc-enter-units-table calc-explain-units calc-extract-units | 1182 | calc-enter-units-table calc-explain-units calc-extract-units |
| 1183 | calc-get-unit-definition calc-permanent-units calc-quick-units | 1183 | calc-get-unit-definition calc-permanent-units calc-quick-units |
| @@ -1957,7 +1957,7 @@ calc-kill calc-kill-region calc-yank)))) | |||
| 1957 | (desc | 1957 | (desc |
| 1958 | (if (symbolp func) | 1958 | (if (symbolp func) |
| 1959 | (if (= (logand kind 3) 0) | 1959 | (if (= (logand kind 3) 0) |
| 1960 | (format "`%c' = %s" key name) | 1960 | (format "‘%c’ = %s" key name) |
| 1961 | (if pos | 1961 | (if pos |
| 1962 | (format "%s%c%s" | 1962 | (format "%s%c%s" |
| 1963 | (downcase (substring name 0 pos)) | 1963 | (downcase (substring name 0 pos)) |
| @@ -1988,7 +1988,7 @@ calc-kill calc-kill-region calc-yank)))) | |||
| 1988 | "kbd-macros: [ (if), : (else), | (else-if), ] (end-if)" | 1988 | "kbd-macros: [ (if), : (else), | (else-if), ] (end-if)" |
| 1989 | "kbd-macros: < > (repeat), ( ) (for), { } (loop)" | 1989 | "kbd-macros: < > (repeat), ( ) (for), { } (loop)" |
| 1990 | "kbd-macros: / (break)" | 1990 | "kbd-macros: / (break)" |
| 1991 | "kbd-macros: ` (save), ' (restore)") | 1991 | "kbd-macros: \\=` (save), ' (restore)") |
| 1992 | "user" ?Z)) | 1992 | "user" ?Z)) |
| 1993 | 1993 | ||
| 1994 | 1994 | ||
diff --git a/lisp/calc/calc-graph.el b/lisp/calc/calc-graph.el index 20b0249ec1a..8378b23c0eb 100644 --- a/lisp/calc/calc-graph.el +++ b/lisp/calc/calc-graph.el | |||
| @@ -958,7 +958,7 @@ This \"dumb\" driver will be present in Gnuplot 3.0." | |||
| 958 | (define-key calc-dumb-map "\C-c\C-c" 'exit-recursive-edit))) | 958 | (define-key calc-dumb-map "\C-c\C-c" 'exit-recursive-edit))) |
| 959 | (use-local-map calc-dumb-map) | 959 | (use-local-map calc-dumb-map) |
| 960 | (setq truncate-lines t) | 960 | (setq truncate-lines t) |
| 961 | (message "Type `q' or `C-c C-c' to return to Calc") | 961 | (message "Type ‘q’ or ‘C-c C-c’ to return to Calc") |
| 962 | (recursive-edit) | 962 | (recursive-edit) |
| 963 | (bury-buffer "*Gnuplot Trail*"))) | 963 | (bury-buffer "*Gnuplot Trail*"))) |
| 964 | 964 | ||
diff --git a/lisp/calc/calc-help.el b/lisp/calc/calc-help.el index 7a1a983e6b3..01ab49510cd 100644 --- a/lisp/calc/calc-help.el +++ b/lisp/calc/calc-help.el | |||
| @@ -240,7 +240,7 @@ C-w Describe how there is no warranty for Calc." | |||
| 240 | (if (string-match "\\` +" prompts) | 240 | (if (string-match "\\` +" prompts) |
| 241 | (setq prompts (substring prompts (match-end 0)))) | 241 | (setq prompts (substring prompts (match-end 0)))) |
| 242 | (setq msg (format | 242 | (setq msg (format |
| 243 | "%s: %s%s`%s'%s%s %s%s" | 243 | "%s: %s%s‘%s’%s%s %s%s" |
| 244 | (if (string-match | 244 | (if (string-match |
| 245 | "\\`\\(calc-[-a-zA-Z0-9]+\\) *\\(.*\\)\\'" | 245 | "\\`\\(calc-[-a-zA-Z0-9]+\\) *\\(.*\\)\\'" |
| 246 | cmd) | 246 | cmd) |
| @@ -345,7 +345,7 @@ C-w Describe how there is no warranty for Calc." | |||
| 345 | (calc-describe-thing var "Variable Index")) | 345 | (calc-describe-thing var "Variable Index")) |
| 346 | 346 | ||
| 347 | (defun calc-describe-thing (thing where &optional target not-quoted) | 347 | (defun calc-describe-thing (thing where &optional target not-quoted) |
| 348 | (message "Looking for `%s' in %s..." thing where) | 348 | (message "Looking for ‘%s’ in %s..." thing where) |
| 349 | (let ((savewin (current-window-configuration))) | 349 | (let ((savewin (current-window-configuration))) |
| 350 | (calc-info-goto-node where) | 350 | (calc-info-goto-node where) |
| 351 | (or (let ((case-fold-search nil)) | 351 | (or (let ((case-fold-search nil)) |
| @@ -361,7 +361,7 @@ C-w Describe how there is no warranty for Calc." | |||
| 361 | (if Info-history | 361 | (if Info-history |
| 362 | (Info-last)) | 362 | (Info-last)) |
| 363 | (set-window-configuration savewin) | 363 | (set-window-configuration savewin) |
| 364 | (error "Can't find `%s' in %s" thing where))) | 364 | (error "Can't find ‘%s’ in %s" thing where))) |
| 365 | (let (Info-history) | 365 | (let (Info-history) |
| 366 | (Info-goto-node (buffer-substring (match-beginning 1) (match-end 1)))) | 366 | (Info-goto-node (buffer-substring (match-beginning 1) (match-end 1)))) |
| 367 | (let* ((string-target (or target thing)) | 367 | (let* ((string-target (or target thing)) |
| @@ -380,7 +380,7 @@ C-w Describe how there is no warranty for Calc." | |||
| 380 | (re-search-forward quoted nil t) | 380 | (re-search-forward quoted nil t) |
| 381 | (search-forward string-target nil t))))) | 381 | (search-forward string-target nil t))))) |
| 382 | (beginning-of-line) | 382 | (beginning-of-line) |
| 383 | (message "Found `%s' in %s" thing where))) | 383 | (message "Found ‘%s’ in %s" thing where))) |
| 384 | 384 | ||
| 385 | (defun calc-view-news () | 385 | (defun calc-view-news () |
| 386 | (interactive) | 386 | (interactive) |
| @@ -400,11 +400,13 @@ C-w Describe how there is no warranty for Calc." | |||
| 400 | (princ "GNU Emacs Calculator.\n") | 400 | (princ "GNU Emacs Calculator.\n") |
| 401 | (princ " By Dave Gillespie.\n") | 401 | (princ " By Dave Gillespie.\n") |
| 402 | (princ (format " %s\n\n" emacs-copyright)) | 402 | (princ (format " %s\n\n" emacs-copyright)) |
| 403 | (princ "Type `h s' for a more detailed summary.\n") | 403 | (princ (format "Type ‘h s’ for a more detailed summary.\n")) |
| 404 | (princ "Or type `h i' to read the full Calc manual on-line.\n\n") | 404 | (princ (format "Or type ‘h i’ to read the full Calc manual on-line.\n\n")) |
| 405 | (princ "Basic keys:\n") | 405 | (princ "Basic keys:\n") |
| 406 | (let* ((calc-full-help-flag t)) | 406 | (let* ((calc-full-help-flag t)) |
| 407 | (mapc (function (lambda (x) (princ (format " %s\n" x)))) | 407 | (mapc (function (lambda (x) (princ (format |
| 408 | " %s\n" | ||
| 409 | (substitute-command-keys x))))) | ||
| 408 | (nreverse (cdr (reverse (cdr (calc-help)))))) | 410 | (nreverse (cdr (reverse (cdr (calc-help)))))) |
| 409 | (mapc (function (lambda (prefix) | 411 | (mapc (function (lambda (prefix) |
| 410 | (let ((msgs (condition-case err | 412 | (let ((msgs (condition-case err |
| @@ -413,18 +415,22 @@ C-w Describe how there is no warranty for Calc." | |||
| 413 | (if (car msgs) | 415 | (if (car msgs) |
| 414 | (princ | 416 | (princ |
| 415 | (if (eq (nth 2 msgs) ?v) | 417 | (if (eq (nth 2 msgs) ?v) |
| 416 | "\n`v' or `V' prefix (vector/matrix) keys: \n" | 418 | (format |
| 419 | "\n‘v’ or ‘V’ prefix (vector/matrix) keys: \n") | ||
| 417 | (if (nth 2 msgs) | 420 | (if (nth 2 msgs) |
| 418 | (format | 421 | (format |
| 419 | "\n`%c' prefix (%s) keys:\n" | 422 | "\n‘%c’ prefix (%s) keys:\n" |
| 420 | (nth 2 msgs) | 423 | (nth 2 msgs) |
| 421 | (or (cdr (assq (nth 2 msgs) | 424 | (or (cdr (assq (nth 2 msgs) |
| 422 | calc-help-long-names)) | 425 | calc-help-long-names)) |
| 423 | (nth 1 msgs))) | 426 | (nth 1 msgs))) |
| 424 | (format "\n%s-modified keys:\n" | 427 | (format "\n%s-modified keys:\n" |
| 425 | (capitalize (nth 1 msgs))))))) | 428 | (capitalize (nth 1 msgs))))))) |
| 426 | (mapcar (function (lambda (x) | 429 | (mapcar (function |
| 427 | (princ (format " %s\n" x)))) | 430 | (lambda (x) |
| 431 | (princ (format | ||
| 432 | " %s\n" | ||
| 433 | (substitute-command-keys x))))) | ||
| 428 | (car msgs))))) | 434 | (car msgs))))) |
| 429 | '(calc-inverse-prefix-help | 435 | '(calc-inverse-prefix-help |
| 430 | calc-hyperbolic-prefix-help | 436 | calc-hyperbolic-prefix-help |
| @@ -539,7 +545,7 @@ C-w Describe how there is no warranty for Calc." | |||
| 539 | '("Select, Additional, Once; eVal, Formula; Rewrite" | 545 | '("Select, Additional, Once; eVal, Formula; Rewrite" |
| 540 | "More, Less, 1-9, Next, Previous" | 546 | "More, Less, 1-9, Next, Previous" |
| 541 | "Unselect, Clear; Display; Enable; Breakable" | 547 | "Unselect, Clear; Display; Enable; Breakable" |
| 542 | "' (replace), ` (edit), +, -, *, /, RET (grab), DEL" | 548 | "' (replace), \\=` (edit), +, -, *, /, RET (grab), DEL" |
| 543 | "SHIFT + swap: Left, Right; maybe: Select, Once" | 549 | "SHIFT + swap: Left, Right; maybe: Select, Once" |
| 544 | "SHIFT + Commute, Merge, Distrib, jump-Eqn, Isolate" | 550 | "SHIFT + Commute, Merge, Distrib, jump-Eqn, Isolate" |
| 545 | "SHIFT + Negate, & (invert); Unpack") | 551 | "SHIFT + Negate, & (invert); Unpack") |
diff --git a/lisp/calc/calc-lang.el b/lisp/calc/calc-lang.el index 066d781cc95..9d5020df038 100644 --- a/lisp/calc/calc-lang.el +++ b/lisp/calc/calc-lang.el | |||
| @@ -94,7 +94,7 @@ | |||
| 94 | (interactive) | 94 | (interactive) |
| 95 | (calc-wrapper | 95 | (calc-wrapper |
| 96 | (calc-set-language 'c) | 96 | (calc-set-language 'c) |
| 97 | (message "`C' language mode"))) | 97 | (message "‘C’ language mode"))) |
| 98 | 98 | ||
| 99 | (put 'c 'math-oper-table | 99 | (put 'c 'math-oper-table |
| 100 | '( ( "u!" calcFunc-lnot -1 1000 ) | 100 | '( ( "u!" calcFunc-lnot -1 1000 ) |
| @@ -387,7 +387,7 @@ | |||
| 387 | math-exp-token 'end | 387 | math-exp-token 'end |
| 388 | math-expr-data "\000") | 388 | math-expr-data "\000") |
| 389 | x) | 389 | x) |
| 390 | (throw 'syntax "Unmatched closing `/'"))) | 390 | (throw 'syntax "Unmatched closing ‘/’"))) |
| 391 | 391 | ||
| 392 | (defun math-parse-fortran-subscr (sym args) | 392 | (defun math-parse-fortran-subscr (sym args) |
| 393 | (setq sym (math-build-var-name sym)) | 393 | (setq sym (math-build-var-name sym)) |
| @@ -695,7 +695,7 @@ | |||
| 695 | 695 | ||
| 696 | (defun math-parse-tex-sum (f val) | 696 | (defun math-parse-tex-sum (f val) |
| 697 | (let (low high save) | 697 | (let (low high save) |
| 698 | (or (equal math-expr-data "_") (throw 'syntax "Expected `_'")) | 698 | (or (equal math-expr-data "_") (throw 'syntax "Expected ‘_’")) |
| 699 | (math-read-token) | 699 | (math-read-token) |
| 700 | (setq save math-exp-old-pos) | 700 | (setq save math-exp-old-pos) |
| 701 | (setq low (math-read-factor)) | 701 | (setq low (math-read-factor)) |
| @@ -703,7 +703,7 @@ | |||
| 703 | (progn | 703 | (progn |
| 704 | (setq math-exp-old-pos (1+ save)) | 704 | (setq math-exp-old-pos (1+ save)) |
| 705 | (throw 'syntax "Expected equation"))) | 705 | (throw 'syntax "Expected equation"))) |
| 706 | (or (equal math-expr-data "^") (throw 'syntax "Expected `^'")) | 706 | (or (equal math-expr-data "^") (throw 'syntax "Expected ‘^’")) |
| 707 | (math-read-token) | 707 | (math-read-token) |
| 708 | (setq high (math-read-factor)) | 708 | (setq high (math-read-factor)) |
| 709 | (list (nth 2 f) (math-read-factor) (nth 1 low) (nth 2 low) high))) | 709 | (list (nth 2 f) (math-read-factor) (nth 1 low) (nth 2 low) high))) |
| @@ -1165,14 +1165,14 @@ | |||
| 1165 | (while (assoc math-expr-data '(("ccol") ("lcol") ("rcol"))) | 1165 | (while (assoc math-expr-data '(("ccol") ("lcol") ("rcol"))) |
| 1166 | (math-read-token) | 1166 | (math-read-token) |
| 1167 | (or (equal math-expr-data calc-function-open) | 1167 | (or (equal math-expr-data calc-function-open) |
| 1168 | (throw 'syntax "Expected `{'")) | 1168 | (throw 'syntax "Expected ‘{’")) |
| 1169 | (math-read-token) | 1169 | (math-read-token) |
| 1170 | (setq vec (cons (cons 'vec (math-read-expr-list)) vec)) | 1170 | (setq vec (cons (cons 'vec (math-read-expr-list)) vec)) |
| 1171 | (or (equal math-expr-data calc-function-close) | 1171 | (or (equal math-expr-data calc-function-close) |
| 1172 | (throw 'syntax "Expected `}'")) | 1172 | (throw 'syntax "Expected ‘}’")) |
| 1173 | (math-read-token)) | 1173 | (math-read-token)) |
| 1174 | (or (equal math-expr-data calc-function-close) | 1174 | (or (equal math-expr-data calc-function-close) |
| 1175 | (throw 'syntax "Expected `}'")) | 1175 | (throw 'syntax "Expected ‘}’")) |
| 1176 | (math-read-token) | 1176 | (math-read-token) |
| 1177 | (math-transpose (cons 'vec (nreverse vec))))) | 1177 | (math-transpose (cons 'vec (nreverse vec))))) |
| 1178 | 1178 | ||
| @@ -1187,7 +1187,7 @@ | |||
| 1187 | (math-read-expr-list)))) | 1187 | (math-read-expr-list)))) |
| 1188 | (if (not (or (equal math-expr-data calc-function-close) | 1188 | (if (not (or (equal math-expr-data calc-function-close) |
| 1189 | (eq math-exp-token 'end))) | 1189 | (eq math-exp-token 'end))) |
| 1190 | (throw 'syntax "Expected `)'")) | 1190 | (throw 'syntax "Expected ‘)’")) |
| 1191 | (math-read-token) | 1191 | (math-read-token) |
| 1192 | (cons (intern (format "calcFunc-%s'" (nth 1 x))) args))) | 1192 | (cons (intern (format "calcFunc-%s'" (nth 1 x))) args))) |
| 1193 | (list 'var | 1193 | (list 'var |
| @@ -1211,7 +1211,7 @@ | |||
| 1211 | (interactive) | 1211 | (interactive) |
| 1212 | (calc-wrapper | 1212 | (calc-wrapper |
| 1213 | (calc-set-language 'yacas) | 1213 | (calc-set-language 'yacas) |
| 1214 | (message "`Yacas' language mode"))) | 1214 | (message "‘Yacas’ language mode"))) |
| 1215 | 1215 | ||
| 1216 | (put 'yacas 'math-vector-brackets "{}") | 1216 | (put 'yacas 'math-vector-brackets "{}") |
| 1217 | 1217 | ||
| @@ -1427,7 +1427,7 @@ | |||
| 1427 | (interactive) | 1427 | (interactive) |
| 1428 | (calc-wrapper | 1428 | (calc-wrapper |
| 1429 | (calc-set-language 'maxima) | 1429 | (calc-set-language 'maxima) |
| 1430 | (message "`Maxima' language mode"))) | 1430 | (message "‘Maxima’ language mode"))) |
| 1431 | 1431 | ||
| 1432 | (put 'maxima 'math-oper-table | 1432 | (put 'maxima 'math-oper-table |
| 1433 | '(("+" + 100 100) | 1433 | '(("+" + 100 100) |
| @@ -1625,7 +1625,7 @@ | |||
| 1625 | (interactive) | 1625 | (interactive) |
| 1626 | (calc-wrapper | 1626 | (calc-wrapper |
| 1627 | (calc-set-language 'giac) | 1627 | (calc-set-language 'giac) |
| 1628 | (message "`Giac' language mode"))) | 1628 | (message "‘Giac’ language mode"))) |
| 1629 | 1629 | ||
| 1630 | (put 'giac 'math-oper-table | 1630 | (put 'giac 'math-oper-table |
| 1631 | '( ( "[" (math-read-giac-subscr) 250 -1 ) | 1631 | '( ( "[" (math-read-giac-subscr) 250 -1 ) |
| @@ -2237,7 +2237,7 @@ order to Calc's." | |||
| 2237 | (if (= sep ?\.) | 2237 | (if (= sep ?\.) |
| 2238 | (setq h (1+ h))) | 2238 | (setq h (1+ h))) |
| 2239 | (if (= sep ?\]) | 2239 | (if (= sep ?\]) |
| 2240 | (math-read-big-error (1- h) v "Expected `)'")) | 2240 | (math-read-big-error (1- h) v "Expected ‘)’")) |
| 2241 | (if (= sep ?\)) | 2241 | (if (= sep ?\)) |
| 2242 | (setq p (math-read-big-rec | 2242 | (setq p (math-read-big-rec |
| 2243 | (1+ math-rb-h1) math-rb-v1 (1- h) math-rb-v2 v)) | 2243 | (1+ math-rb-h1) math-rb-v1 (1- h) math-rb-v2 v)) |
| @@ -2252,7 +2252,7 @@ order to Calc's." | |||
| 2252 | 0 1) | 2252 | 0 1) |
| 2253 | p)))) | 2253 | p)))) |
| 2254 | ((= (math-read-big-char (1- h) v) ?\]) | 2254 | ((= (math-read-big-char (1- h) v) ?\]) |
| 2255 | (math-read-big-error (1- h) v "Expected `)'")) | 2255 | (math-read-big-error (1- h) v "Expected ‘)’")) |
| 2256 | ((= sep ?\,) | 2256 | ((= sep ?\,) |
| 2257 | (or (and (math-realp (car p)) (math-realp (nth 1 p))) | 2257 | (or (and (math-realp (car p)) (math-realp (nth 1 p))) |
| 2258 | (math-read-big-error | 2258 | (math-read-big-error |
| @@ -2280,7 +2280,7 @@ order to Calc's." | |||
| 2280 | (setq h (math-read-big-balance (1+ hleft) v "[")) | 2280 | (setq h (math-read-big-balance (1+ hleft) v "[")) |
| 2281 | (if hright | 2281 | (if hright |
| 2282 | (or (= h hright) | 2282 | (or (= h hright) |
| 2283 | (math-read-big-error hright v "Expected `]'")) | 2283 | (math-read-big-error hright v "Expected ‘]’")) |
| 2284 | (setq hright h)) | 2284 | (setq hright h)) |
| 2285 | (setq p (cons (math-read-big-rec | 2285 | (setq p (cons (math-read-big-rec |
| 2286 | hleft v h (1+ v)) p)) | 2286 | hleft v h (1+ v)) p)) |
| @@ -2293,7 +2293,7 @@ order to Calc's." | |||
| 2293 | (setq h (1+ h))) | 2293 | (setq h (1+ h))) |
| 2294 | (and (= (math-read-big-char h v) ?\]) | 2294 | (and (= (math-read-big-char h v) ?\]) |
| 2295 | (setq h (1+ h)))) | 2295 | (setq h (1+ h)))) |
| 2296 | (math-read-big-error (1- h) v "Expected `]'")) | 2296 | (math-read-big-error (1- h) v "Expected ‘]’")) |
| 2297 | (if (= (math-read-big-char h vtop) ?\,) | 2297 | (if (= (math-read-big-char h vtop) ?\,) |
| 2298 | (setq h (1+ h))) | 2298 | (setq h (1+ h))) |
| 2299 | (math-read-big-emptyp math-rb-h1 (1+ v) (1- h) math-rb-v2 nil t) | 2299 | (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 | (setq widest (math-read-big-char (1- h) v)) | 2317 | (setq widest (math-read-big-char (1- h) v)) |
| 2318 | (if (or (memq widest '(?\; ?\))) | 2318 | (if (or (memq widest '(?\; ?\))) |
| 2319 | (and (eq widest ?\.) (cdr p))) | 2319 | (and (eq widest ?\.) (cdr p))) |
| 2320 | (math-read-big-error (1- h) v "Expected `]'")) | 2320 | (math-read-big-error (1- h) v "Expected ‘]’")) |
| 2321 | (if (= widest ?\.) | 2321 | (if (= widest ?\.) |
| 2322 | (setq h (1+ h) | 2322 | (setq h (1+ h) |
| 2323 | widest (math-read-big-balance h v "[") | 2323 | widest (math-read-big-balance h v "[") |
| @@ -2369,7 +2369,7 @@ order to Calc's." | |||
| 2369 | h widest) | 2369 | h widest) |
| 2370 | (= (math-read-big-char (1- h) v) ?\,))) | 2370 | (= (math-read-big-char (1- h) v) ?\,))) |
| 2371 | (or (= (math-read-big-char (1- h) v) ?\)) | 2371 | (or (= (math-read-big-char (1- h) v) ?\)) |
| 2372 | (math-read-big-error (1- h) v "Expected `)'")) | 2372 | (math-read-big-error (1- h) v "Expected ‘)’")) |
| 2373 | (setq p (cons line (nreverse p)))) | 2373 | (setq p (cons line (nreverse p)))) |
| 2374 | (setq p (list 'var | 2374 | (setq p (list 'var |
| 2375 | (intern (math-remove-dashes p)) | 2375 | (intern (math-remove-dashes p)) |
| @@ -2432,7 +2432,8 @@ order to Calc's." | |||
| 2432 | (let ((y (math-read-big-rec h math-rb-v1 math-rb-h2 | 2432 | (let ((y (math-read-big-rec h math-rb-v1 math-rb-h2 |
| 2433 | math-rb-v2 baseline nil t))) | 2433 | math-rb-v2 baseline nil t))) |
| 2434 | (or (= (math-read-big-char math-read-big-h2 baseline) ?\:) | 2434 | (or (= (math-read-big-char math-read-big-h2 baseline) ?\:) |
| 2435 | (math-read-big-error math-read-big-h2 baseline "Expected `:'")) | 2435 | (math-read-big-error math-read-big-h2 baseline |
| 2436 | "Expected ‘:’")) | ||
| 2436 | (setq p (list (nth 1 widest) p y | 2437 | (setq p (list (nth 1 widest) p y |
| 2437 | (math-read-big-rec | 2438 | (math-read-big-rec |
| 2438 | (1+ math-read-big-h2) math-rb-v1 math-rb-h2 math-rb-v2 | 2439 | (1+ math-read-big-h2) math-rb-v1 math-rb-h2 math-rb-v2 |
| @@ -2507,7 +2508,7 @@ order to Calc's." | |||
| 2507 | (while (> count 0) | 2508 | (while (> count 0) |
| 2508 | (if (>= h len) | 2509 | (if (>= h len) |
| 2509 | (if what | 2510 | (if what |
| 2510 | (math-read-big-error nil v (format "Unmatched `%s'" what)) | 2511 | (math-read-big-error nil v (format "Unmatched ‘%s’" what)) |
| 2511 | (setq count 0)) | 2512 | (setq count 0)) |
| 2512 | (if (memq (aref line h) '(?\( ?\[)) | 2513 | (if (memq (aref line h) '(?\( ?\[)) |
| 2513 | (setq count (1+ count)) | 2514 | (setq count (1+ count)) |
diff --git a/lisp/calc/calc-misc.el b/lisp/calc/calc-misc.el index 5d5f4ce0c86..e5d4b6b0607 100644 --- a/lisp/calc/calc-misc.el +++ b/lisp/calc/calc-misc.el | |||
| @@ -225,7 +225,7 @@ Calc user interface as before (either C-x * C or C-x * K; initially C-x * C). | |||
| 225 | "Letter keys: SHIFT + Num-eval; More-recn; eXec-kbd-macro; Keep-args" | 225 | "Letter keys: SHIFT + Num-eval; More-recn; eXec-kbd-macro; Keep-args" |
| 226 | "Other keys: +, -, *, /, ^, \\ (int div), : (frac div)" | 226 | "Other keys: +, -, *, /, ^, \\ (int div), : (frac div)" |
| 227 | "Other keys: & (1/x), | (concat), % (modulo), ! (factorial)" | 227 | "Other keys: & (1/x), | (concat), % (modulo), ! (factorial)" |
| 228 | "Other keys: ' (alg-entry), = (eval), ` (edit); M-RET (last-args)" | 228 | "Other keys: ' (alg-entry), = (eval), \\=` (edit); M-RET (last-args)" |
| 229 | "Other keys: SPC/RET (enter/dup), LFD (over); < > (scroll horiz)" | 229 | "Other keys: SPC/RET (enter/dup), LFD (over); < > (scroll horiz)" |
| 230 | "Other keys: DEL (drop), M-DEL (drop-above); { } (scroll vert)" | 230 | "Other keys: DEL (drop), M-DEL (drop-above); { } (scroll vert)" |
| 231 | "Other keys: TAB (swap/roll-dn), M-TAB (roll-up)" | 231 | "Other keys: TAB (swap/roll-dn), M-TAB (roll-up)" |
diff --git a/lisp/calc/calc-mode.el b/lisp/calc/calc-mode.el index be18dcd0349..605084e3f35 100644 --- a/lisp/calc/calc-mode.el +++ b/lisp/calc/calc-mode.el | |||
| @@ -110,11 +110,11 @@ | |||
| 110 | (setq n (and (not (eq calc-auto-why t)) (if calc-auto-why t 1)))) | 110 | (setq n (and (not (eq calc-auto-why t)) (if calc-auto-why t 1)))) |
| 111 | (calc-change-mode 'calc-auto-why n nil) | 111 | (calc-change-mode 'calc-auto-why n nil) |
| 112 | (cond ((null n) | 112 | (cond ((null n) |
| 113 | (message "User must press `w' to explain unsimplified results")) | 113 | (message "User must press ‘w’ to explain unsimplified results")) |
| 114 | ((eq n t) | 114 | ((eq n t) |
| 115 | (message "Automatically doing `w' to explain unsimplified results")) | 115 | (message "Automatically doing ‘w’ to explain unsimplified results")) |
| 116 | (t | 116 | (t |
| 117 | (message "Automatically doing `w' only for unusual messages"))))) | 117 | (message "Automatically doing ‘w’ only for unusual messages"))))) |
| 118 | 118 | ||
| 119 | (defun calc-group-digits (n) | 119 | (defun calc-group-digits (n) |
| 120 | (interactive "P") | 120 | (interactive "P") |
| @@ -272,7 +272,7 @@ | |||
| 272 | (vals (mapcar (function (lambda (v) (symbol-value (car v)))) | 272 | (vals (mapcar (function (lambda (v) (symbol-value (car v)))) |
| 273 | calc-mode-var-list))) | 273 | calc-mode-var-list))) |
| 274 | (unless calc-settings-file | 274 | (unless calc-settings-file |
| 275 | (error "No `calc-settings-file' specified")) | 275 | (error "No ‘calc-settings-file’ specified")) |
| 276 | (set-buffer (find-file-noselect (substitute-in-file-name | 276 | (set-buffer (find-file-noselect (substitute-in-file-name |
| 277 | calc-settings-file))) | 277 | calc-settings-file))) |
| 278 | (goto-char (point-min)) | 278 | (goto-char (point-min)) |
| @@ -410,7 +410,7 @@ | |||
| 410 | ((= n 4) 'global) | 410 | ((= n 4) 'global) |
| 411 | ((= n 5) 'save) | 411 | ((= n 5) 'save) |
| 412 | (t 'local))) | 412 | (t 'local))) |
| 413 | (message "%s" | 413 | (message "%s" |
| 414 | (cond ((and (eq calc-mode-save-mode 'local) calc-embedded-info) | 414 | (cond ((and (eq calc-mode-save-mode 'local) calc-embedded-info) |
| 415 | "Recording mode changes with [calc-mode: ...]") | 415 | "Recording mode changes with [calc-mode: ...]") |
| 416 | ((eq calc-mode-save-mode 'edit) | 416 | ((eq calc-mode-save-mode 'edit) |
| @@ -478,7 +478,7 @@ | |||
| 478 | (cond ((eq arg 0) 'scalar) | 478 | (cond ((eq arg 0) 'scalar) |
| 479 | ((< (prefix-numeric-value arg) 1) | 479 | ((< (prefix-numeric-value arg) 1) |
| 480 | (and (< (prefix-numeric-value arg) -1) 'matrix)) | 480 | (and (< (prefix-numeric-value arg) -1) 'matrix)) |
| 481 | (arg | 481 | (arg |
| 482 | (if (consp arg) 'sqmatrix | 482 | (if (consp arg) 'sqmatrix |
| 483 | (prefix-numeric-value arg))) | 483 | (prefix-numeric-value arg))) |
| 484 | ((eq calc-matrix-mode 'matrix) 'scalar) | 484 | ((eq calc-matrix-mode 'matrix) 'scalar) |
| @@ -572,8 +572,8 @@ | |||
| 572 | (calc-change-mode 'calc-auto-recompute arg nil t) | 572 | (calc-change-mode 'calc-auto-recompute arg nil t) |
| 573 | (calc-refresh-evaltos) | 573 | (calc-refresh-evaltos) |
| 574 | (message (if calc-auto-recompute | 574 | (message (if calc-auto-recompute |
| 575 | "Automatically recomputing `=>' forms when necessary" | 575 | "Automatically recomputing ‘=>’ forms when necessary" |
| 576 | "Not recomputing `=>' forms automatically")))) | 576 | "Not recomputing ‘=>’ forms automatically")))) |
| 577 | 577 | ||
| 578 | (defun calc-working (n) | 578 | (defun calc-working (n) |
| 579 | (interactive "P") | 579 | (interactive "P") |
diff --git a/lisp/calc/calc-prog.el b/lisp/calc/calc-prog.el index 27114077d15..df2eb764f3b 100644 --- a/lisp/calc/calc-prog.el +++ b/lisp/calc/calc-prog.el | |||
| @@ -673,7 +673,7 @@ | |||
| 673 | (or last-kbd-macro | 673 | (or last-kbd-macro |
| 674 | (error "No keyboard macro defined")) | 674 | (error "No keyboard macro defined")) |
| 675 | (setq calc-invocation-macro last-kbd-macro) | 675 | (setq calc-invocation-macro last-kbd-macro) |
| 676 | (message "Use `C-x * Z' to invoke this macro")) | 676 | (message "Use ‘C-x * Z’ to invoke this macro")) |
| 677 | 677 | ||
| 678 | (defun calc-user-define-edit () | 678 | (defun calc-user-define-edit () |
| 679 | (interactive) ; but no calc-wrapper! | 679 | (interactive) ; but no calc-wrapper! |
| @@ -1899,7 +1899,7 @@ Redefine the corresponding command." | |||
| 1899 | `((and | 1899 | `((and |
| 1900 | (,chk ,var) | 1900 | (,chk ,var) |
| 1901 | (math-reject-arg ,var ',qual))))) | 1901 | (math-reject-arg ,var ',qual))))) |
| 1902 | (error "Unknown qualifier `%s'" qual-name)))))))) | 1902 | (error "Unknown qualifier ‘%s’" qual-name)))))))) |
| 1903 | 1903 | ||
| 1904 | (defun math-do-arg-list-check (args is-opt is-rest) | 1904 | (defun math-do-arg-list-check (args is-opt is-rest) |
| 1905 | (cond ((null args) nil) | 1905 | (cond ((null args) nil) |
diff --git a/lisp/calc/calc-store.el b/lisp/calc/calc-store.el index 91b927aad61..43dc602225e 100644 --- a/lisp/calc/calc-store.el +++ b/lisp/calc/calc-store.el | |||
| @@ -442,7 +442,7 @@ | |||
| 442 | (setq calc-last-edited-variable var) | 442 | (setq calc-last-edited-variable var) |
| 443 | (calc-edit-mode (list 'calc-finish-stack-edit (list 'quote var)) | 443 | (calc-edit-mode (list 'calc-finish-stack-edit (list 'quote var)) |
| 444 | t | 444 | t |
| 445 | (concat "Editing variable `" (calc-var-name var) "'. ")) | 445 | (format "Editing variable ‘%s’" (calc-var-name var))) |
| 446 | (and value | 446 | (and value |
| 447 | (insert (math-format-nice-expr value (frame-width)) "\n"))))) | 447 | (insert (math-format-nice-expr value (frame-width)) "\n"))))) |
| 448 | (calc-show-edit-buffer)) | 448 | (calc-show-edit-buffer)) |
diff --git a/lisp/calc/calc-units.el b/lisp/calc/calc-units.el index f3d02340fe3..d95af9492bd 100644 --- a/lisp/calc/calc-units.el +++ b/lisp/calc/calc-units.el | |||
| @@ -422,7 +422,7 @@ If EXPR is nil, return nil." | |||
| 422 | "Put the units in EXPR in the default units table. | 422 | "Put the units in EXPR in the default units table. |
| 423 | If COMP or STD is non-nil, put that in the units table instead." | 423 | If COMP or STD is non-nil, put that in the units table instead." |
| 424 | (let* ((new-units (or comp std (math-get-units expr))) | 424 | (let* ((new-units (or comp std (math-get-units expr))) |
| 425 | (standard-units (math-get-standard-units | 425 | (standard-units (math-get-standard-units |
| 426 | (cond | 426 | (cond |
| 427 | (comp (math-simplify-units expr)) | 427 | (comp (math-simplify-units expr)) |
| 428 | (std expr) | 428 | (std expr) |
| @@ -457,9 +457,9 @@ If COMP or STD is non-nil, put that in the units table instead." | |||
| 457 | (eq (math-get-standard-units expr) 1)))) | 457 | (eq (math-get-standard-units expr) 1)))) |
| 458 | (let ((uold (or old-units | 458 | (let ((uold (or old-units |
| 459 | (progn | 459 | (progn |
| 460 | (setq uoldname | 460 | (setq uoldname |
| 461 | (if unitscancel | 461 | (if unitscancel |
| 462 | (read-string | 462 | (read-string |
| 463 | "(The expression is unitless when simplified) Old Units: ") | 463 | "(The expression is unitless when simplified) Old Units: ") |
| 464 | (read-string "Old units: "))) | 464 | (read-string "Old units: "))) |
| 465 | (if (equal uoldname "") | 465 | (if (equal uoldname "") |
| @@ -1621,11 +1621,14 @@ If COMP or STD is non-nil, put that in the units table instead." | |||
| 1621 | (insert " " (nth 2 u) "\n") | 1621 | (insert " " (nth 2 u) "\n") |
| 1622 | (while (eq (car (car (setq uptr (cdr uptr)))) 0))) | 1622 | (while (eq (car (car (setq uptr (cdr uptr)))) 0))) |
| 1623 | (insert "\n\n") | 1623 | (insert "\n\n") |
| 1624 | (insert "(**) When in TeX or LaTeX display mode, the TeX specific unit\n" | 1624 | (insert |
| 1625 | "names will not use the `tex' prefix; the unit name for a\n" | 1625 | (format |
| 1626 | "TeX point will be `pt' instead of `texpt', for example.\n" | 1626 | (concat |
| 1627 | "To avoid conflicts, the unit names for pint and parsec will\n" | 1627 | "(**) When in TeX or LaTeX display mode, the TeX specific unit\n" |
| 1628 | "be `pint' and `parsec' instead of `pt' and `pc'.")) | 1628 | "names will not use the ‘tex’ prefix; the unit name for a\n" |
| 1629 | "TeX point will be ‘pt’ instead of ‘texpt’, for example.\n" | ||
| 1630 | "To avoid conflicts, the unit names for pint and parsec will\n" | ||
| 1631 | "be ‘pint’ and ‘parsec’ instead of ‘pt’ and ‘pc’.")))) | ||
| 1629 | (view-mode) | 1632 | (view-mode) |
| 1630 | (message "Formatting units table...done")) | 1633 | (message "Formatting units table...done")) |
| 1631 | (setq math-units-table-buffer-valid t) | 1634 | (setq math-units-table-buffer-valid t) |
diff --git a/lisp/calc/calc-vec.el b/lisp/calc/calc-vec.el index c1ef8954c3c..c7a3e716d61 100644 --- a/lisp/calc/calc-vec.el +++ b/lisp/calc/calc-vec.el | |||
| @@ -1107,7 +1107,7 @@ | |||
| 1107 | (cons 'vec (nreverse (sort (copy-sequence (cdr vec)) 'math-beforep))) | 1107 | (cons 'vec (nreverse (sort (copy-sequence (cdr vec)) 'math-beforep))) |
| 1108 | (math-reject-arg vec 'vectorp))) | 1108 | (math-reject-arg vec 'vectorp))) |
| 1109 | 1109 | ||
| 1110 | ;; The variable math-grade-vec is local to calcFunc-grade and | 1110 | ;; The variable math-grade-vec is local to calcFunc-grade and |
| 1111 | ;; calcFunc-rgrade, but is used by math-grade-beforep, which is called | 1111 | ;; calcFunc-rgrade, but is used by math-grade-beforep, which is called |
| 1112 | ;; by calcFunc-grade and calcFunc-rgrade. | 1112 | ;; by calcFunc-grade and calcFunc-rgrade. |
| 1113 | (defvar math-grade-vec) | 1113 | (defvar math-grade-vec) |
| @@ -1149,7 +1149,7 @@ | |||
| 1149 | (setq bin (math-floor bin))) | 1149 | (setq bin (math-floor bin))) |
| 1150 | (and (natnump bin) | 1150 | (and (natnump bin) |
| 1151 | (< bin n) | 1151 | (< bin n) |
| 1152 | (aset res bin | 1152 | (aset res bin |
| 1153 | (math-add (aref res bin) | 1153 | (math-add (aref res bin) |
| 1154 | (if wvec (car (setq wp (cdr wp))) wts))))) | 1154 | (if wvec (car (setq wp (cdr wp))) wts))))) |
| 1155 | (cons 'vec (append res nil)))) | 1155 | (cons 'vec (append res nil)))) |
| @@ -1167,7 +1167,7 @@ | |||
| 1167 | (while (and tbds (Math-lessp (car tbds) num)) | 1167 | (while (and tbds (Math-lessp (car tbds) num)) |
| 1168 | (setq i (1+ i)) | 1168 | (setq i (1+ i)) |
| 1169 | (setq tbds (cdr tbds))) | 1169 | (setq tbds (cdr tbds))) |
| 1170 | (aset res i | 1170 | (aset res i |
| 1171 | (math-add (aref res i) | 1171 | (math-add (aref res i) |
| 1172 | (if wvec (car (setq wp (cdr wp))) wts)))) | 1172 | (if wvec (car (setq wp (cdr wp))) wts)))) |
| 1173 | (setq vp (cdr vp))) | 1173 | (setq vp (cdr vp))) |
| @@ -1550,7 +1550,7 @@ of two matrices is a matrix." | |||
| 1550 | ;; indirectly) by math-read-brackets. | 1550 | ;; indirectly) by math-read-brackets. |
| 1551 | (defvar math-rb-close) | 1551 | (defvar math-rb-close) |
| 1552 | 1552 | ||
| 1553 | ;; The next few variables are local to math-read-exprs in calc-aent.el | 1553 | ;; The next few variables are local to math-read-exprs in calc-aent.el |
| 1554 | ;; and math-read-expr in calc-ext.el, but are set in functions they call. | 1554 | ;; and math-read-expr in calc-ext.el, but are set in functions they call. |
| 1555 | (defvar math-exp-pos) | 1555 | (defvar math-exp-pos) |
| 1556 | (defvar math-exp-str) | 1556 | (defvar math-exp-str) |
| @@ -1618,13 +1618,13 @@ of two matrices is a matrix." | |||
| 1618 | (if (not (or (equal math-expr-data math-rb-close) | 1618 | (if (not (or (equal math-expr-data math-rb-close) |
| 1619 | (equal math-expr-data ")") | 1619 | (equal math-expr-data ")") |
| 1620 | (eq math-exp-token 'end))) | 1620 | (eq math-exp-token 'end))) |
| 1621 | (throw 'syntax "Expected `]'"))) | 1621 | (throw 'syntax "Expected ‘]’"))) |
| 1622 | (if (equal math-expr-data ";") | 1622 | (if (equal math-expr-data ";") |
| 1623 | (let ((math-exp-keep-spaces space-sep)) | 1623 | (let ((math-exp-keep-spaces space-sep)) |
| 1624 | (setq vals (cons 'vec (math-read-matrix (list vals)))))) | 1624 | (setq vals (cons 'vec (math-read-matrix (list vals)))))) |
| 1625 | (if (not (or (equal math-expr-data math-rb-close) | 1625 | (if (not (or (equal math-expr-data math-rb-close) |
| 1626 | (eq math-exp-token 'end))) | 1626 | (eq math-exp-token 'end))) |
| 1627 | (throw 'syntax "Expected `]'"))) | 1627 | (throw 'syntax "Expected ‘]’"))) |
| 1628 | (or (eq math-exp-token 'end) | 1628 | (or (eq math-exp-token 'end) |
| 1629 | (math-read-token)) | 1629 | (math-read-token)) |
| 1630 | vals))) | 1630 | vals))) |
diff --git a/lisp/calc/calc-yank.el b/lisp/calc/calc-yank.el index 923df5d577f..d4be8ad832d 100644 --- a/lisp/calc/calc-yank.el +++ b/lisp/calc/calc-yank.el | |||
| @@ -603,9 +603,9 @@ To cancel the edit, simply kill the *Calc Edit* buffer." | |||
| 603 | (insert (propertize | 603 | (insert (propertize |
| 604 | (concat | 604 | (concat |
| 605 | (or title title "Calc Edit Mode. ") | 605 | (or title title "Calc Edit Mode. ") |
| 606 | "Press `C-c C-c'" | 606 | (format "Press ‘C-c C-c’") |
| 607 | (if allow-ret "" " or RET") | 607 | (if allow-ret "" " or RET") |
| 608 | " to finish, `C-x k RET' to cancel.\n\n") | 608 | (format " to finish, ‘C-x k RET’ to cancel.\n\n")) |
| 609 | 'font-lock-face 'italic 'read-only t 'rear-nonsticky t 'front-sticky t)) | 609 | 'font-lock-face 'italic 'read-only t 'rear-nonsticky t 'front-sticky t)) |
| 610 | (make-local-variable 'calc-edit-top) | 610 | (make-local-variable 'calc-edit-top) |
| 611 | (setq calc-edit-top (point)))) | 611 | (setq calc-edit-top (point)))) |
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index 52ed5d7eb3d..b0046dcaf4b 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el | |||
| @@ -1474,7 +1474,7 @@ commands given here will actually operate on the *Calculator* stack." | |||
| 1474 | (and calc-display-trail | 1474 | (and calc-display-trail |
| 1475 | (= (window-width) (frame-width)) | 1475 | (= (window-width) (frame-width)) |
| 1476 | (calc-trail-display 1 t))) | 1476 | (calc-trail-display 1 t))) |
| 1477 | (message "Welcome to the GNU Emacs Calculator! Press `?' or `h' for help, `q' to quit") | 1477 | (message "Welcome to the GNU Emacs Calculator! Press ‘?’ or ‘h’ for help, ‘q’ to quit") |
| 1478 | (run-hooks 'calc-start-hook) | 1478 | (run-hooks 'calc-start-hook) |
| 1479 | (and (windowp full-display) | 1479 | (and (windowp full-display) |
| 1480 | (window-point full-display) | 1480 | (window-point full-display) |
| @@ -1622,7 +1622,7 @@ See calc-keypad for details." | |||
| 1622 | (stringp (nth 1 err)) | 1622 | (stringp (nth 1 err)) |
| 1623 | (string-match "max-specpdl-size\\|max-lisp-eval-depth" | 1623 | (string-match "max-specpdl-size\\|max-lisp-eval-depth" |
| 1624 | (nth 1 err))) | 1624 | (nth 1 err))) |
| 1625 | (error "Computation got stuck or ran too long. Type `M' to increase the limit") | 1625 | (error "Computation got stuck or ran too long. Type ‘M’ to increase the limit") |
| 1626 | (setq calc-aborted-prefix nil) | 1626 | (setq calc-aborted-prefix nil) |
| 1627 | (signal (car err) (cdr err))))) | 1627 | (signal (car err) (cdr err))))) |
| 1628 | (when calc-aborted-prefix | 1628 | (when calc-aborted-prefix |
| @@ -2303,7 +2303,7 @@ the United States." | |||
| 2303 | (calc-delete-selection 1) | 2303 | (calc-delete-selection 1) |
| 2304 | (calc-pop-stack nn)))))) | 2304 | (calc-pop-stack nn)))))) |
| 2305 | (if calc-context-sensitive-enter (calc-cursor-stack-index (1- num))))) | 2305 | (if calc-context-sensitive-enter (calc-cursor-stack-index (1- num))))) |
| 2306 | 2306 | ||
| 2307 | 2307 | ||
| 2308 | 2308 | ||
| 2309 | 2309 | ||
| @@ -3856,7 +3856,7 @@ Also looks for the equivalent TeX words, \\gets and \\evalto." | |||
| 3856 | (defun calc-user-invocation () | 3856 | (defun calc-user-invocation () |
| 3857 | (interactive) | 3857 | (interactive) |
| 3858 | (unless calc-invocation-macro | 3858 | (unless calc-invocation-macro |
| 3859 | (error "Use `Z I' inside Calc to define a `C-x * Z' keyboard macro")) | 3859 | (error "Use ‘Z I’ inside Calc to define a ‘C-x * Z’ keyboard macro")) |
| 3860 | (execute-kbd-macro calc-invocation-macro nil)) | 3860 | (execute-kbd-macro calc-invocation-macro nil)) |
| 3861 | 3861 | ||
| 3862 | ;;; User-programmability. | 3862 | ;;; User-programmability. |