Show
Ignore:
Timestamp:
2006年09月09日 16時30分10秒 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/newcomment.el

    r4148 r4161  
    300300      ;; Hasn't been necessary yet. 
    301301      ;; (unless (string-match comment-start-skip comment-continue) 
    302       ;;      (kill-local-variable 'comment-continue)) 
     302      ;;      (kill-local-variable 'comment-continue)) 
    303303      ) 
    304304    ;; comment-skip regexps 
     
    603603        ;; after other nonwhite text on the line. 
    604604        (save-excursion 
    605           (skip-chars-backward " \t")  
     605          (skip-chars-backward " \t") 
    606606          (unless (bolp) 
    607607            (setq indent (max indent (1+ (current-column)))))) 
     
    770770        (save-restriction 
    771771          (narrow-to-region spt ept) 
    772                  
     772 
    773773          ;; Remove the comment-start. 
    774774          (goto-char ipt) 
     
    799799              ;; a comment-start any more, just remove it. 
    800800              (delete-region (point-min) (point)))) 
    801                  
     801 
    802802          ;; Remove the end-comment (and leading padding and such). 
    803803          (goto-char (point-max)) (comment-enter-backward) 
     
    10631063       (nth 3 style)))))) 
    10641064 
     1065;;;###autoload 
    10651066(defun comment-box (beg end &optional arg) 
    10661067  "Comment out the BEG .. END region, putting it inside a box. 
     
    10681069end- comment markers additionally to what `comment-add' already specifies." 
    10691070  (interactive "*r\np") 
     1071  (comment-normalize-vars) 
    10701072  (let ((comment-style (if (cadr (assoc comment-style comment-styles)) 
    10711073                           'box-multi 'box)))