Changeset 4085 for trunk/lisp/progmodes/cc-subword.el
- Timestamp:
- 05/18/06 16:19:18 (3 years ago)
- Files:
-
- trunk/lisp/progmodes/cc-subword.el (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/progmodes/cc-subword.el
r4073 r4085 168 168 (point)))) 169 169 170 (put 'c-forward-subword 'CUA 'move) 171 170 172 (defun c-backward-subword (&optional arg) 171 173 "Do the same as `backward-word' but on subwords. … … 194 196 nil t)))) 195 197 198 (put 'c-backward-subword 'CUA 'move) 199 196 200 (defun c-kill-subword (arg) 197 201 "Do the same as `kill-word' but on subwords. … … 223 227 (direction (if (< 0 arg) 1 -1))) 224 228 (dotimes (i count) 225 (when (re-search-forward 229 (when (re-search-forward 226 230 (concat "[" c-alpha "]") 227 231 nil t) … … 254 258 (defun c-forward-subword-internal () 255 259 (if (and 256 (save-excursion 260 (save-excursion 257 261 (let ((case-fold-search nil)) 258 (re-search-forward 262 (re-search-forward 259 263 (concat "\\W*\\(\\([" c-upper "]*\\W?\\)[" c-lower c-digit "]*\\)") 260 264 nil t))) … … 262 266 ; "word-constituent" which isn't c-upper, 263 267 ; c-lower or c-digit 264 (goto-char 268 (goto-char 265 269 (cond 266 270 ((< 1 (- (match-end 2) (match-beginning 2))) … … 272 276 273 277 (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)) 276 280 (re-search-backward 277 281 (concat 278 282 "\\(\\(\\W\\|[" c-lower c-digit "]\\)\\([" c-upper "]+\\W*\\)" 279 "\\|\\W\\w+\\)") 283 "\\|\\W\\w+\\)") 280 284 nil t))) 281 (goto-char 282 (cond 285 (goto-char 286 (cond 283 287 ((and (match-end 3) 284 288 (< 1 (- (match-end 3) (match-beginning 3)))
