Changeset 4161 for trunk/lisp/newcomment.el
- Timestamp:
- 2006年09月09日 16時30分10秒 (2 years ago)
- Files:
-
- trunk/lisp/newcomment.el (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/newcomment.el
r4148 r4161 300 300 ;; Hasn't been necessary yet. 301 301 ;; (unless (string-match comment-start-skip comment-continue) 302 ;; (kill-local-variable 'comment-continue))302 ;; (kill-local-variable 'comment-continue)) 303 303 ) 304 304 ;; comment-skip regexps … … 603 603 ;; after other nonwhite text on the line. 604 604 (save-excursion 605 (skip-chars-backward " \t") 605 (skip-chars-backward " \t") 606 606 (unless (bolp) 607 607 (setq indent (max indent (1+ (current-column)))))) … … 770 770 (save-restriction 771 771 (narrow-to-region spt ept) 772 772 773 773 ;; Remove the comment-start. 774 774 (goto-char ipt) … … 799 799 ;; a comment-start any more, just remove it. 800 800 (delete-region (point-min) (point)))) 801 801 802 802 ;; Remove the end-comment (and leading padding and such). 803 803 (goto-char (point-max)) (comment-enter-backward) … … 1063 1063 (nth 3 style)))))) 1064 1064 1065 ;;;###autoload 1065 1066 (defun comment-box (beg end &optional arg) 1066 1067 "Comment out the BEG .. END region, putting it inside a box. … … 1068 1069 end- comment markers additionally to what `comment-add' already specifies." 1069 1070 (interactive "*r\np") 1071 (comment-normalize-vars) 1070 1072 (let ((comment-style (if (cadr (assoc comment-style comment-styles)) 1071 1073 'box-multi 'box)))
