diff options
| author | Glenn Morris | 2009-09-13 02:14:25 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-09-13 02:14:25 +0000 |
| commit | 1e2b6acfd27f40de73c37bdf0d06ba58c4c44700 (patch) | |
| tree | fb846831ba16892187013219daa24f190d959355 | |
| parent | 4f0f48dfc10906f2af1ed35afe8624670f4d7c1a (diff) | |
| download | emacs-1e2b6acfd27f40de73c37bdf0d06ba58c4c44700.tar.gz emacs-1e2b6acfd27f40de73c37bdf0d06ba58c4c44700.zip | |
Replace empty `let's with `progn'.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/ediff-merg.el | 2 | ||||
| -rw-r--r-- | lisp/emulation/ws-mode.el | 40 | ||||
| -rw-r--r-- | lisp/filesets.el | 2 |
4 files changed, 33 insertions, 22 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0165677e7cc..da9f156ab22 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2009-09-13 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * ediff-merg.el (ediff-do-merge): | ||
| 4 | * filesets.el (filesets-run-cmd): | ||
| 5 | * emulation/ws-mode.el (ws-show-markers, ws-move-block, ws-delete-block) | ||
| 6 | (ws-find-marker-0, ws-find-marker-1, ws-find-marker-2, ws-find-marker-3) | ||
| 7 | (ws-find-marker-4, ws-find-marker-5, ws-find-marker-6, ws-find-marker-7) | ||
| 8 | (ws-find-marker-8, ws-find-marker-9, ws-goto-block-begin) | ||
| 9 | (ws-goto-block-end, ws-goto-last-cursorposition, ws-copy-block): | ||
| 10 | Replace empty `let's with `progn'. | ||
| 11 | |||
| 1 | 2009-09-13 Stefan Monnier <monnier@iro.umontreal.ca> | 12 | 2009-09-13 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 13 | ||
| 3 | * mail/sendmail.el (send-mail-function): | 14 | * mail/sendmail.el (send-mail-function): |
diff --git a/lisp/ediff-merg.el b/lisp/ediff-merg.el index ca90e0923f0..971c7636932 100644 --- a/lisp/ediff-merg.el +++ b/lisp/ediff-merg.el | |||
| @@ -226,7 +226,7 @@ Buffer B." | |||
| 226 | ;;(let ((reg-A (ediff-get-region-contents n 'A ediff-control-buffer)) | 226 | ;;(let ((reg-A (ediff-get-region-contents n 'A ediff-control-buffer)) |
| 227 | ;; (reg-B (ediff-get-region-contents n 'B ediff-control-buffer)) | 227 | ;; (reg-B (ediff-get-region-contents n 'B ediff-control-buffer)) |
| 228 | ;; (reg-C (ediff-get-region-contents n 'C ediff-control-buffer))) | 228 | ;; (reg-C (ediff-get-region-contents n 'C ediff-control-buffer))) |
| 229 | (let () | 229 | (progn |
| 230 | 230 | ||
| 231 | ;; if region was edited since it was first set by default | 231 | ;; if region was edited since it was first set by default |
| 232 | (if (or (ediff-merge-changed-from-default-p n) | 232 | (if (or (ediff-merge-changed-from-default-p n) |
diff --git a/lisp/emulation/ws-mode.el b/lisp/emulation/ws-mode.el index ada28e38ba3..ffbe7043d88 100644 --- a/lisp/emulation/ws-mode.el +++ b/lisp/emulation/ws-mode.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; ws-mode.el --- WordStar emulation mode for GNU Emacs | 1 | ;;; ws-mode.el --- WordStar emulation mode for GNU Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1991, 2001, 2002, 2003, 2004, 2005, | 3 | ;; Copyright (C) 1991, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, |
| 4 | ;; 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 4 | ;; 2009 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Juergen Nickelsen <nickel@cs.tu-berlin.de> | 6 | ;; Author: Juergen Nickelsen <nickel@cs.tu-berlin.de> |
| 7 | ;; Version: 0.7 | 7 | ;; Version: 0.7 |
| @@ -457,14 +457,14 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 457 | (if (or ws-block-begin-marker ws-block-end-marker) | 457 | (if (or ws-block-begin-marker ws-block-end-marker) |
| 458 | (save-excursion | 458 | (save-excursion |
| 459 | (if ws-block-begin-marker | 459 | (if ws-block-begin-marker |
| 460 | (let () | 460 | (progn |
| 461 | (goto-char ws-block-begin-marker) | 461 | (goto-char ws-block-begin-marker) |
| 462 | (message "Block begin marker") | 462 | (message "Block begin marker") |
| 463 | (sit-for 2)) | 463 | (sit-for 2)) |
| 464 | (message "Block begin marker not set") | 464 | (message "Block begin marker not set") |
| 465 | (sit-for 2)) | 465 | (sit-for 2)) |
| 466 | (if ws-block-end-marker | 466 | (if ws-block-end-marker |
| 467 | (let () | 467 | (progn |
| 468 | (goto-char ws-block-end-marker) | 468 | (goto-char ws-block-end-marker) |
| 469 | (message "Block end marker") | 469 | (message "Block end marker") |
| 470 | (sit-for 2)) | 470 | (sit-for 2)) |
| @@ -509,7 +509,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 509 | "In WordStar mode: Move block to current cursor position." | 509 | "In WordStar mode: Move block to current cursor position." |
| 510 | (interactive) | 510 | (interactive) |
| 511 | (if (and ws-block-begin-marker ws-block-end-marker) | 511 | (if (and ws-block-begin-marker ws-block-end-marker) |
| 512 | (let () | 512 | (progn |
| 513 | (kill-region ws-block-begin-marker ws-block-end-marker) | 513 | (kill-region ws-block-begin-marker ws-block-end-marker) |
| 514 | (yank) | 514 | (yank) |
| 515 | (save-excursion | 515 | (save-excursion |
| @@ -536,7 +536,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 536 | "In WordStar mode: Delete block." | 536 | "In WordStar mode: Delete block." |
| 537 | (interactive) | 537 | (interactive) |
| 538 | (if (and ws-block-begin-marker ws-block-end-marker) | 538 | (if (and ws-block-begin-marker ws-block-end-marker) |
| 539 | (let () | 539 | (progn |
| 540 | (kill-region ws-block-begin-marker ws-block-end-marker) | 540 | (kill-region ws-block-begin-marker ws-block-end-marker) |
| 541 | (setq ws-block-end-marker nil) | 541 | (setq ws-block-end-marker nil) |
| 542 | (setq ws-block-begin-marker nil)) | 542 | (setq ws-block-begin-marker nil)) |
| @@ -548,7 +548,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 548 | "In WordStar mode: Go to marker 0." | 548 | "In WordStar mode: Go to marker 0." |
| 549 | (interactive) | 549 | (interactive) |
| 550 | (if ws-marker-0 | 550 | (if ws-marker-0 |
| 551 | (let () | 551 | (progn |
| 552 | (setq ws-last-cursorposition (point-marker)) | 552 | (setq ws-last-cursorposition (point-marker)) |
| 553 | (goto-char ws-marker-0)) | 553 | (goto-char ws-marker-0)) |
| 554 | (ws-error "Marker 0 not set"))) | 554 | (ws-error "Marker 0 not set"))) |
| @@ -557,7 +557,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 557 | "In WordStar mode: Go to marker 1." | 557 | "In WordStar mode: Go to marker 1." |
| 558 | (interactive) | 558 | (interactive) |
| 559 | (if ws-marker-1 | 559 | (if ws-marker-1 |
| 560 | (let () | 560 | (progn |
| 561 | (setq ws-last-cursorposition (point-marker)) | 561 | (setq ws-last-cursorposition (point-marker)) |
| 562 | (goto-char ws-marker-1)) | 562 | (goto-char ws-marker-1)) |
| 563 | (ws-error "Marker 1 not set"))) | 563 | (ws-error "Marker 1 not set"))) |
| @@ -566,7 +566,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 566 | "In WordStar mode: Go to marker 2." | 566 | "In WordStar mode: Go to marker 2." |
| 567 | (interactive) | 567 | (interactive) |
| 568 | (if ws-marker-2 | 568 | (if ws-marker-2 |
| 569 | (let () | 569 | (progn |
| 570 | (setq ws-last-cursorposition (point-marker)) | 570 | (setq ws-last-cursorposition (point-marker)) |
| 571 | (goto-char ws-marker-2)) | 571 | (goto-char ws-marker-2)) |
| 572 | (ws-error "Marker 2 not set"))) | 572 | (ws-error "Marker 2 not set"))) |
| @@ -575,7 +575,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 575 | "In WordStar mode: Go to marker 3." | 575 | "In WordStar mode: Go to marker 3." |
| 576 | (interactive) | 576 | (interactive) |
| 577 | (if ws-marker-3 | 577 | (if ws-marker-3 |
| 578 | (let () | 578 | (progn |
| 579 | (setq ws-last-cursorposition (point-marker)) | 579 | (setq ws-last-cursorposition (point-marker)) |
| 580 | (goto-char ws-marker-3)) | 580 | (goto-char ws-marker-3)) |
| 581 | (ws-error "Marker 3 not set"))) | 581 | (ws-error "Marker 3 not set"))) |
| @@ -584,7 +584,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 584 | "In WordStar mode: Go to marker 4." | 584 | "In WordStar mode: Go to marker 4." |
| 585 | (interactive) | 585 | (interactive) |
| 586 | (if ws-marker-4 | 586 | (if ws-marker-4 |
| 587 | (let () | 587 | (progn |
| 588 | (setq ws-last-cursorposition (point-marker)) | 588 | (setq ws-last-cursorposition (point-marker)) |
| 589 | (goto-char ws-marker-4)) | 589 | (goto-char ws-marker-4)) |
| 590 | (ws-error "Marker 4 not set"))) | 590 | (ws-error "Marker 4 not set"))) |
| @@ -593,7 +593,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 593 | "In WordStar mode: Go to marker 5." | 593 | "In WordStar mode: Go to marker 5." |
| 594 | (interactive) | 594 | (interactive) |
| 595 | (if ws-marker-5 | 595 | (if ws-marker-5 |
| 596 | (let () | 596 | (progn |
| 597 | (setq ws-last-cursorposition (point-marker)) | 597 | (setq ws-last-cursorposition (point-marker)) |
| 598 | (goto-char ws-marker-5)) | 598 | (goto-char ws-marker-5)) |
| 599 | (ws-error "Marker 5 not set"))) | 599 | (ws-error "Marker 5 not set"))) |
| @@ -602,7 +602,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 602 | "In WordStar mode: Go to marker 6." | 602 | "In WordStar mode: Go to marker 6." |
| 603 | (interactive) | 603 | (interactive) |
| 604 | (if ws-marker-6 | 604 | (if ws-marker-6 |
| 605 | (let () | 605 | (progn |
| 606 | (setq ws-last-cursorposition (point-marker)) | 606 | (setq ws-last-cursorposition (point-marker)) |
| 607 | (goto-char ws-marker-6)) | 607 | (goto-char ws-marker-6)) |
| 608 | (ws-error "Marker 6 not set"))) | 608 | (ws-error "Marker 6 not set"))) |
| @@ -611,7 +611,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 611 | "In WordStar mode: Go to marker 7." | 611 | "In WordStar mode: Go to marker 7." |
| 612 | (interactive) | 612 | (interactive) |
| 613 | (if ws-marker-7 | 613 | (if ws-marker-7 |
| 614 | (let () | 614 | (progn |
| 615 | (setq ws-last-cursorposition (point-marker)) | 615 | (setq ws-last-cursorposition (point-marker)) |
| 616 | (goto-char ws-marker-7)) | 616 | (goto-char ws-marker-7)) |
| 617 | (ws-error "Marker 7 not set"))) | 617 | (ws-error "Marker 7 not set"))) |
| @@ -620,7 +620,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 620 | "In WordStar mode: Go to marker 8." | 620 | "In WordStar mode: Go to marker 8." |
| 621 | (interactive) | 621 | (interactive) |
| 622 | (if ws-marker-8 | 622 | (if ws-marker-8 |
| 623 | (let () | 623 | (progn |
| 624 | (setq ws-last-cursorposition (point-marker)) | 624 | (setq ws-last-cursorposition (point-marker)) |
| 625 | (goto-char ws-marker-8)) | 625 | (goto-char ws-marker-8)) |
| 626 | (ws-error "Marker 8 not set"))) | 626 | (ws-error "Marker 8 not set"))) |
| @@ -629,7 +629,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 629 | "In WordStar mode: Go to marker 9." | 629 | "In WordStar mode: Go to marker 9." |
| 630 | (interactive) | 630 | (interactive) |
| 631 | (if ws-marker-9 | 631 | (if ws-marker-9 |
| 632 | (let () | 632 | (progn |
| 633 | (setq ws-last-cursorposition (point-marker)) | 633 | (setq ws-last-cursorposition (point-marker)) |
| 634 | (goto-char ws-marker-9)) | 634 | (goto-char ws-marker-9)) |
| 635 | (ws-error "Marker 9 not set"))) | 635 | (ws-error "Marker 9 not set"))) |
| @@ -638,7 +638,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 638 | "In WordStar mode: Go to block begin marker." | 638 | "In WordStar mode: Go to block begin marker." |
| 639 | (interactive) | 639 | (interactive) |
| 640 | (if ws-block-begin-marker | 640 | (if ws-block-begin-marker |
| 641 | (let () | 641 | (progn |
| 642 | (setq ws-last-cursorposition (point-marker)) | 642 | (setq ws-last-cursorposition (point-marker)) |
| 643 | (goto-char ws-block-begin-marker)) | 643 | (goto-char ws-block-begin-marker)) |
| 644 | (ws-error "Block begin marker not set"))) | 644 | (ws-error "Block begin marker not set"))) |
| @@ -665,7 +665,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 665 | "In WordStar mode: Go to block end marker." | 665 | "In WordStar mode: Go to block end marker." |
| 666 | (interactive) | 666 | (interactive) |
| 667 | (if ws-block-end-marker | 667 | (if ws-block-end-marker |
| 668 | (let () | 668 | (progn |
| 669 | (setq ws-last-cursorposition (point-marker)) | 669 | (setq ws-last-cursorposition (point-marker)) |
| 670 | (goto-char ws-block-end-marker)) | 670 | (goto-char ws-block-end-marker)) |
| 671 | (ws-error "Block end marker not set"))) | 671 | (ws-error "Block end marker not set"))) |
| @@ -680,7 +680,7 @@ in ws-last-errormessage for recovery with C-q w." | |||
| 680 | "In WordStar mode: " | 680 | "In WordStar mode: " |
| 681 | (interactive) | 681 | (interactive) |
| 682 | (if ws-last-cursorposition | 682 | (if ws-last-cursorposition |
| 683 | (let () | 683 | (progn |
| 684 | (setq ws-last-cursorposition (point-marker)) | 684 | (setq ws-last-cursorposition (point-marker)) |
| 685 | (goto-char ws-last-cursorposition)) | 685 | (goto-char ws-last-cursorposition)) |
| 686 | (ws-error "No last cursor position available."))) | 686 | (ws-error "No last cursor position available."))) |
| @@ -740,7 +740,7 @@ sWith: " ) | |||
| 740 | "In WordStar mode: Copy block to current cursor position." | 740 | "In WordStar mode: Copy block to current cursor position." |
| 741 | (interactive) | 741 | (interactive) |
| 742 | (if (and ws-block-begin-marker ws-block-end-marker) | 742 | (if (and ws-block-begin-marker ws-block-end-marker) |
| 743 | (let () | 743 | (progn |
| 744 | (copy-region-as-kill ws-block-begin-marker ws-block-end-marker) | 744 | (copy-region-as-kill ws-block-begin-marker ws-block-end-marker) |
| 745 | (yank) | 745 | (yank) |
| 746 | (save-excursion | 746 | (save-excursion |
diff --git a/lisp/filesets.el b/lisp/filesets.el index c15e0231f00..e287c149202 100644 --- a/lisp/filesets.el +++ b/lisp/filesets.el | |||
| @@ -1641,7 +1641,7 @@ Replace <file-name> or <<file-name>> with filename." | |||
| 1641 | (let ((buffer (filesets-find-file this))) | 1641 | (let ((buffer (filesets-find-file this))) |
| 1642 | (when buffer | 1642 | (when buffer |
| 1643 | (goto-char (point-min)) | 1643 | (goto-char (point-min)) |
| 1644 | (let () | 1644 | (progn |
| 1645 | (cond | 1645 | (cond |
| 1646 | ((stringp fn) | 1646 | ((stringp fn) |
| 1647 | (let* ((args | 1647 | (let* ((args |