Mercurial > emacs
comparison lisp/newcomment.el @ 47400:2885b5553da7
(uncomment-region): Fix let/let* use.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Wed, 11 Sep 2002 09:31:55 +0000 |
parents | 408ecff0939b |
children | c5035e184eba |
comparison
equal
deleted
inserted
replaced
47399:59f6bc9d4bc8 | 47400:2885b5553da7 |
---|---|
620 (comment-normalize-vars) | 620 (comment-normalize-vars) |
621 (if (> beg end) (let (mid) (setq mid beg beg end end mid))) | 621 (if (> beg end) (let (mid) (setq mid beg beg end end mid))) |
622 (save-excursion | 622 (save-excursion |
623 (goto-char beg) | 623 (goto-char beg) |
624 (setq end (copy-marker end)) | 624 (setq end (copy-marker end)) |
625 (let ((numarg (prefix-numeric-value arg)) | 625 (let* ((numarg (prefix-numeric-value arg)) |
626 (ccs comment-continue) | 626 (ccs comment-continue) |
627 (srei (comment-padright ccs 're)) | 627 (srei (comment-padright ccs 're)) |
628 (sre (and srei (concat "^\\s-*?\\(" srei "\\)"))) | 628 (sre (and srei (concat "^\\s-*?\\(" srei "\\)"))) |
629 spt) | 629 spt) |
630 (while (and (< (point) end) | 630 (while (and (< (point) end) |
631 (setq spt (comment-search-forward end t))) | 631 (setq spt (comment-search-forward end t))) |
632 (let* ((ipt (point)) | 632 (let ((ipt (point)) |
633 ;; Find the end of the comment. | 633 ;; Find the end of the comment. |
634 (ept (progn | 634 (ept (progn |
635 (goto-char spt) | 635 (goto-char spt) |
636 (unless (comment-forward) | 636 (unless (comment-forward) |
637 (error "Can't find the comment end")) | 637 (error "Can't find the comment end")) |
638 (point))) | 638 (point))) |
639 (box nil) | 639 (box nil) |
640 (box-equal nil)) ;Whether we might be using `=' for boxes. | 640 (box-equal nil)) ;Whether we might be using `=' for boxes. |
641 (save-restriction | 641 (save-restriction |
642 (narrow-to-region spt ept) | 642 (narrow-to-region spt ept) |
643 | 643 |
644 ;; Remove the comment-start. | 644 ;; Remove the comment-start. |
645 (goto-char ipt) | 645 (goto-char ipt) |