diff options
| author | Juanma Barranquero | 2007-09-26 00:06:05 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-09-26 00:06:05 +0000 |
| commit | c740ee8b90df32d7cb9f7d5c5a3149a0e82e3032 (patch) | |
| tree | 02842302a6f92d6903853c9e1cec49127e5d1aa7 | |
| parent | e80155aa0a7ebfe262d960712e7e2115a46c5a89 (diff) | |
| download | emacs-c740ee8b90df32d7cb9f7d5c5a3149a0e82e3032.tar.gz emacs-c740ee8b90df32d7cb9f7d5c5a3149a0e82e3032.zip | |
(calc-full-help): Use `mapc' rather than `mapcar'.
| -rw-r--r-- | lisp/calc/calc-help.el | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/lisp/calc/calc-help.el b/lisp/calc/calc-help.el index 871f281aa5e..ed1c93e8694 100644 --- a/lisp/calc/calc-help.el +++ b/lisp/calc/calc-help.el | |||
| @@ -321,11 +321,11 @@ C-w Describe how there is no warranty for Calc." | |||
| 321 | (defun calc-describe-function (&optional func) | 321 | (defun calc-describe-function (&optional func) |
| 322 | (interactive) | 322 | (interactive) |
| 323 | (unless calc-help-function-list | 323 | (unless calc-help-function-list |
| 324 | (setq calc-help-function-list | 324 | (setq calc-help-function-list |
| 325 | (calc-help-index-entries "Function" "Command"))) | 325 | (calc-help-index-entries "Function" "Command"))) |
| 326 | (or func | 326 | (or func |
| 327 | (setq func (completing-read "Describe function: " | 327 | (setq func (completing-read "Describe function: " |
| 328 | calc-help-function-list | 328 | calc-help-function-list |
| 329 | nil t))) | 329 | nil t))) |
| 330 | (if (string-match "\\`calc-." func) | 330 | (if (string-match "\\`calc-." func) |
| 331 | (calc-describe-thing func "Command Index") | 331 | (calc-describe-thing func "Command Index") |
| @@ -334,7 +334,7 @@ C-w Describe how there is no warranty for Calc." | |||
| 334 | (defun calc-describe-variable (&optional var) | 334 | (defun calc-describe-variable (&optional var) |
| 335 | (interactive) | 335 | (interactive) |
| 336 | (unless calc-help-variable-list | 336 | (unless calc-help-variable-list |
| 337 | (setq calc-help-variable-list | 337 | (setq calc-help-variable-list |
| 338 | (calc-help-index-entries "Variable"))) | 338 | (calc-help-index-entries "Variable"))) |
| 339 | (or var | 339 | (or var |
| 340 | (setq var (completing-read "Describe variable: " | 340 | (setq var (completing-read "Describe variable: " |
| @@ -419,49 +419,49 @@ C-w Describe how there is no warranty for Calc." | |||
| 419 | (princ "Or type `h i' to read the full Calc manual on-line.\n\n") | 419 | (princ "Or type `h i' to read the full Calc manual on-line.\n\n") |
| 420 | (princ "Basic keys:\n") | 420 | (princ "Basic keys:\n") |
| 421 | (let* ((calc-full-help-flag t)) | 421 | (let* ((calc-full-help-flag t)) |
| 422 | (mapcar (function (lambda (x) (princ (format " %s\n" x)))) | 422 | (mapc (function (lambda (x) (princ (format " %s\n" x)))) |
| 423 | (nreverse (cdr (reverse (cdr (calc-help)))))) | 423 | (nreverse (cdr (reverse (cdr (calc-help)))))) |
| 424 | (mapcar (function (lambda (prefix) | 424 | (mapc (function (lambda (prefix) |
| 425 | (let ((msgs (condition-case err | 425 | (let ((msgs (condition-case err |
| 426 | (funcall prefix) | 426 | (funcall prefix) |
| 427 | (error nil)))) | 427 | (error nil)))) |
| 428 | (if (car msgs) | 428 | (if (car msgs) |
| 429 | (princ | 429 | (princ |
| 430 | (if (eq (nth 2 msgs) ?v) | 430 | (if (eq (nth 2 msgs) ?v) |
| 431 | "\n`v' or `V' prefix (vector/matrix) keys: \n" | 431 | "\n`v' or `V' prefix (vector/matrix) keys: \n" |
| 432 | (if (nth 2 msgs) | 432 | (if (nth 2 msgs) |
| 433 | (format | 433 | (format |
| 434 | "\n`%c' prefix (%s) keys:\n" | 434 | "\n`%c' prefix (%s) keys:\n" |
| 435 | (nth 2 msgs) | 435 | (nth 2 msgs) |
| 436 | (or (cdr (assq (nth 2 msgs) | 436 | (or (cdr (assq (nth 2 msgs) |
| 437 | calc-help-long-names)) | 437 | calc-help-long-names)) |
| 438 | (nth 1 msgs))) | 438 | (nth 1 msgs))) |
| 439 | (format "\n%s-modified keys:\n" | 439 | (format "\n%s-modified keys:\n" |
| 440 | (capitalize (nth 1 msgs))))))) | 440 | (capitalize (nth 1 msgs))))))) |
| 441 | (mapcar (function (lambda (x) | 441 | (mapcar (function (lambda (x) |
| 442 | (princ (format " %s\n" x)))) | 442 | (princ (format " %s\n" x)))) |
| 443 | (car msgs))))) | 443 | (car msgs))))) |
| 444 | '(calc-inverse-prefix-help | 444 | '(calc-inverse-prefix-help |
| 445 | calc-hyperbolic-prefix-help | 445 | calc-hyperbolic-prefix-help |
| 446 | calc-inv-hyp-prefix-help | 446 | calc-inv-hyp-prefix-help |
| 447 | calc-a-prefix-help | 447 | calc-a-prefix-help |
| 448 | calc-b-prefix-help | 448 | calc-b-prefix-help |
| 449 | calc-c-prefix-help | 449 | calc-c-prefix-help |
| 450 | calc-d-prefix-help | 450 | calc-d-prefix-help |
| 451 | calc-f-prefix-help | 451 | calc-f-prefix-help |
| 452 | calc-g-prefix-help | 452 | calc-g-prefix-help |
| 453 | calc-h-prefix-help | 453 | calc-h-prefix-help |
| 454 | calc-j-prefix-help | 454 | calc-j-prefix-help |
| 455 | calc-k-prefix-help | 455 | calc-k-prefix-help |
| 456 | calc-m-prefix-help | 456 | calc-m-prefix-help |
| 457 | calc-r-prefix-help | 457 | calc-r-prefix-help |
| 458 | calc-s-prefix-help | 458 | calc-s-prefix-help |
| 459 | calc-t-prefix-help | 459 | calc-t-prefix-help |
| 460 | calc-u-prefix-help | 460 | calc-u-prefix-help |
| 461 | calc-v-prefix-help | 461 | calc-v-prefix-help |
| 462 | calc-shift-Y-prefix-help | 462 | calc-shift-Y-prefix-help |
| 463 | calc-shift-Z-prefix-help | 463 | calc-shift-Z-prefix-help |
| 464 | calc-z-prefix-help))) | 464 | calc-z-prefix-help))) |
| 465 | (print-help-return-message))) | 465 | (print-help-return-message))) |
| 466 | 466 | ||
| 467 | (defun calc-h-prefix-help () | 467 | (defun calc-h-prefix-help () |