Changeset 4148 for trunk/lisp/newcomment.el
- Timestamp:
- 08/18/06 08:35:31 (2 years ago)
- Files:
-
- trunk/lisp/newcomment.el (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/newcomment.el
r4079 r4148 600 600 ;; There is a comment and it's in the range: bingo. 601 601 (setq indent other)))))))) 602 ;; Update INDENT to leave at least one space 603 ;; after other nonwhite text on the line. 604 (save-excursion 605 (skip-chars-backward " \t") 606 (unless (bolp) 607 (setq indent (max indent (1+ (current-column)))))) 608 ;; If that's different from comment's current position, change it. 602 609 (unless (= (current-column) indent) 603 ;; If that's different from current, change it.604 610 (delete-region (point) (progn (skip-chars-backward " \t") (point))) 605 (indent-to (if (bolp) indent 606 (max indent (1+ (current-column))))))) 611 (indent-to indent))) 607 612 (goto-char cpos) 608 613 (set-marker cpos nil))))
