Show
Ignore:
Timestamp:
05/18/06 16:19:18 (3 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/progmodes/cc-subword.el

    r4073 r4085  
    168168    (point)))) 
    169169 
     170(put 'c-forward-subword 'CUA 'move) 
     171 
    170172(defun c-backward-subword (&optional arg) 
    171173  "Do the same as `backward-word' but on subwords. 
     
    194196          nil t)))) 
    195197 
     198(put 'c-backward-subword 'CUA 'move) 
     199 
    196200(defun c-kill-subword (arg) 
    197201  "Do the same as `kill-word' but on subwords. 
     
    223227        (direction (if (< 0 arg) 1 -1))) 
    224228    (dotimes (i count) 
    225       (when (re-search-forward  
     229      (when (re-search-forward 
    226230             (concat "[" c-alpha "]") 
    227231             nil t) 
     
    254258(defun c-forward-subword-internal () 
    255259  (if (and 
    256        (save-excursion  
     260       (save-excursion 
    257261         (let ((case-fold-search nil)) 
    258            (re-search-forward  
     262           (re-search-forward 
    259263            (concat "\\W*\\(\\([" c-upper "]*\\W?\\)[" c-lower c-digit "]*\\)") 
    260264            nil t))) 
     
    262266                                  ; "word-constituent" which isn't c-upper, 
    263267                                  ; c-lower or c-digit 
    264       (goto-char  
     268      (goto-char 
    265269       (cond 
    266270        ((< 1 (- (match-end 2) (match-beginning 2))) 
     
    272276 
    273277(defun c-backward-subword-internal () 
    274   (if (save-excursion  
    275         (let ((case-fold-search nil))  
     278  (if (save-excursion 
     279        (let ((case-fold-search nil)) 
    276280          (re-search-backward 
    277281           (concat 
    278282            "\\(\\(\\W\\|[" c-lower c-digit "]\\)\\([" c-upper "]+\\W*\\)" 
    279             "\\|\\W\\w+\\)")  
     283            "\\|\\W\\w+\\)") 
    280284           nil t))) 
    281       (goto-char  
    282        (cond  
     285      (goto-char 
     286       (cond 
    283287        ((and (match-end 3) 
    284288              (< 1 (- (match-end 3) (match-beginning 3)))