emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs/lisp ChangeLog subword.el progmodes/cc-cm...


From: Tassilo Horn
Subject: [Emacs-diffs] emacs/lisp ChangeLog subword.el progmodes/cc-cm...
Date: Fri, 20 Nov 2009 18:09:33 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Tassilo Horn <tsdh>     09/11/20 18:09:32

Modified files:
        lisp           : ChangeLog subword.el 
        lisp/progmodes : cc-cmds.el 

Log message:
                * progmodes/cc-cmds.el (c-forward-into-nomenclature)
                (c-backward-into-nomenclature): Adapt to subword renaming.
        
                * subword.el (subword-forward, subword-backward, subword-mark)
                (subword-kill, subword-backward-kill, subword-transpose)
                (subword-downcase, subword-upcase, subword-capitalize)
                (subword-forward-internal, subword-backward-internal): Renamed
                from forward-subword, backward-subword, mark-subword 
kill-subword,
                backward-kill-subword, transpose-subwords, downcase-subword,
                upcase-subword, capitalize-subword forward-subword-internal,
                backward-subword-internal.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/ChangeLog?cvsroot=emacs&r1=1.16689&r2=1.16690
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/subword.el?cvsroot=emacs&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/progmodes/cc-cmds.el?cvsroot=emacs&r1=1.87&r2=1.88

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/emacs/emacs/lisp/ChangeLog,v
retrieving revision 1.16689
retrieving revision 1.16690
diff -u -b -r1.16689 -r1.16690
--- ChangeLog   20 Nov 2009 15:47:28 -0000      1.16689
+++ ChangeLog   20 Nov 2009 18:09:29 -0000      1.16690
@@ -1,7 +1,21 @@
+2009-11-20  Tassilo Horn  <address@hidden>
+
+       * progmodes/cc-cmds.el (c-forward-into-nomenclature)
+       (c-backward-into-nomenclature): Adapt to subword renaming.
+
+       * subword.el (subword-forward, subword-backward, subword-mark)
+       (subword-kill, subword-backward-kill, subword-transpose)
+       (subword-downcase, subword-upcase, subword-capitalize)
+       (subword-forward-internal, subword-backward-internal): Renamed
+       from forward-subword, backward-subword, mark-subword kill-subword,
+       backward-kill-subword, transpose-subwords, downcase-subword,
+       upcase-subword, capitalize-subword forward-subword-internal,
+       backward-subword-internal.
+
 2009-11-20  Thierry Volpiatto  <address@hidden>
 
-       * bookmark.el (bookmark-search-delay, bookmark-search-prompt):
-       New options.
+       * bookmark.el (bookmark-search-delay, bookmark-search-prompt): New
+       options.
        (bookmark-search-pattern, bookmark-search-timer, bookmark-quit-flag):
        New vars.
        (bookmark-read-search-input, bookmark-filtered-alist-by-regexp-only)

Index: subword.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/subword.el,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- subword.el  20 Nov 2009 08:22:35 -0000      1.1
+++ subword.el  20 Nov 2009 18:09:32 -0000      1.2
@@ -50,15 +50,15 @@
 
 ;; Key     Word oriented command      Subword oriented command
 ;; ============================================================
-;; M-f     `forward-word'             `forward-subword'
-;; M-b     `backward-word'            `backward-subword'
-;; M-@     `mark-word'                `mark-subword'
-;; M-d     `kill-word'                `kill-subword'
-;; M-DEL   `backward-kill-word'       `backward-kill-subword'
-;; M-t     `transpose-words'          `transpose-subwords'
-;; M-c     `capitalize-word'          `capitalize-subword'
-;; M-u     `upcase-word'              `upcase-subword'
-;; M-l     `downcase-word'            `downcase-subword'
+;; M-f     `forward-word'             `subword-forward'
+;; M-b     `backward-word'            `subword-backward'
+;; M-@     `mark-word'                `subword-mark'
+;; M-d     `kill-word'                `subword-kill'
+;; M-DEL   `backward-kill-word'       `subword-backward-kill'
+;; M-t     `transpose-words'          `subword-transpose'
+;; M-c     `capitalize-word'          `subword-capitalize'
+;; M-u     `upcase-word'              `subword-upcase'
+;; M-l     `downcase-word'            `subword-downcase'
 ;;
 ;; Note: If you have changed the key bindings for the word oriented
 ;; commands in your .emacs or a similar place, the keys you've changed
@@ -125,7 +125,7 @@
 (define-global-minor-mode global-subword-mode subword-mode
   (lambda () (subword-mode 1)))
 
-(defun forward-subword (&optional arg)
+(defun subword-forward (&optional arg)
   "Do the same as `forward-word' but on subwords.
 See the command `subword-mode' for a description of subwords.
 Optional argument ARG is the same as for `forward-word'."
@@ -134,23 +134,23 @@
   (cond
    ((< 0 arg)
     (dotimes (i arg (point))
-      (forward-subword-internal)))
+      (subword-forward-internal)))
    ((> 0 arg)
     (dotimes (i (- arg) (point))
-      (backward-subword-internal)))
+      (subword-backward-internal)))
    (t
     (point))))
 
-(put 'forward-subword 'CUA 'move)
+(put 'subword-forward 'CUA 'move)
 
-(defun backward-subword (&optional arg)
+(defun subword-backward (&optional arg)
   "Do the same as `backward-word' but on subwords.
 See the command `subword-mode' for a description of subwords.
 Optional argument ARG is the same as for `backward-word'."
   (interactive "p")
-  (forward-subword (- (or arg 1))))
+  (subword-forward (- (or arg 1))))
 
-(defun mark-subword (arg)
+(defun subword-mark (arg)
   "Do the same as `mark-word' but on subwords.
 See the command `subword-mode' for a description of subwords.
 Optional argument ARG is the same as for `mark-word'."
@@ -160,59 +160,59 @@
         (set-mark
          (save-excursion
            (goto-char (mark))
-           (forward-subword arg)
+           (subword-forward arg)
            (point))))
        (t
         (push-mark
          (save-excursion
-           (forward-subword arg)
+           (subword-forward arg)
            (point))
          nil t))))
 
-(put 'backward-subword 'CUA 'move)
+(put 'subword-backward 'CUA 'move)
 
-(defun kill-subword (arg)
+(defun subword-kill (arg)
   "Do the same as `kill-word' but on subwords.
 See the command `subword-mode' for a description of subwords.
 Optional argument ARG is the same as for `kill-word'."
   (interactive "p")
-  (kill-region (point) (forward-subword arg)))
+  (kill-region (point) (subword-forward arg)))
 
-(defun backward-kill-subword (arg)
+(defun subword-backward-kill (arg)
   "Do the same as `backward-kill-word' but on subwords.
 See the command `subword-mode' for a description of subwords.
 Optional argument ARG is the same as for `backward-kill-word'."
   (interactive "p")
-  (kill-subword (- arg)))
+  (subword-kill (- arg)))
 
-(defun transpose-subwords (arg)
+(defun subword-transpose (arg)
   "Do the same as `transpose-words' but on subwords.
 See the command `subword-mode' for a description of subwords.
 Optional argument ARG is the same as for `transpose-words'."
   (interactive "*p")
-  (transpose-subr 'forward-subword arg))
+  (transpose-subr 'subword-forward arg))
 
-(defun downcase-subword (arg)
+(defun subword-downcase (arg)
   "Do the same as `downcase-word' but on subwords.
 See the command `subword-mode' for a description of subwords.
 Optional argument ARG is the same as for `downcase-word'."
   (interactive "p")
   (let ((start (point)))
-    (downcase-region (point) (forward-subword arg))
+    (downcase-region (point) (subword-forward arg))
     (when (< arg 0)
       (goto-char start))))
 
-(defun upcase-subword (arg)
+(defun subword-upcase (arg)
   "Do the same as `upcase-word' but on subwords.
 See the command `subword-mode' for a description of subwords.
 Optional argument ARG is the same as for `upcase-word'."
   (interactive "p")
   (let ((start (point)))
-    (upcase-region (point) (forward-subword arg))
+    (upcase-region (point) (subword-forward arg))
     (when (< arg 0)
       (goto-char start))))
 
-(defun capitalize-subword (arg)
+(defun subword-capitalize (arg)
   "Do the same as `capitalize-word' but on subwords.
 See the command `subword-mode' for a description of subwords.
 Optional argument ARG is the same as for `capitalize-word'."
@@ -226,10 +226,10 @@
                  (concat "[[:alpha:]]")
                  nil t)
                 (goto-char (match-beginning 0)))
-       (backward-subword))
+       (subword-backward))
       (let* ((p (point))
             (pp (1+ p))
-            (np (forward-subword)))
+            (np (subword-forward)))
        (upcase-region p pp)
        (downcase-region pp np)
        (goto-char (if advance np p))))
@@ -241,7 +241,7 @@
 ;;
 ;; Internal functions
 ;;
-(defun forward-subword-internal ()
+(defun subword-forward-internal ()
   (if (and
        (save-excursion
         (let ((case-fold-search nil))
@@ -258,7 +258,7 @@
     (forward-word 1)))
 
 
-(defun backward-subword-internal ()
+(defun subword-backward-internal ()
   (if (save-excursion
        (let ((case-fold-search nil))
          (re-search-backward

Index: progmodes/cc-cmds.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/progmodes/cc-cmds.el,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -b -r1.87 -r1.88
--- progmodes/cc-cmds.el        20 Nov 2009 14:28:57 -0000      1.87
+++ progmodes/cc-cmds.el        20 Nov 2009 18:09:32 -0000      1.88
@@ -1323,23 +1323,23 @@
 
 
 
-(declare-function forward-subword "subword" (&optional arg))
-(declare-function backward-subword "subword" (&optional arg))
+(declare-function subword-forward "subword" (&optional arg))
+(declare-function subword-backward "subword" (&optional arg))
 
 ;; "nomenclature" functions + c-scope-operator.
 (defun c-forward-into-nomenclature (&optional arg)
   "Compatibility alias for `c-forward-subword'."
   (interactive "p")
   (require 'subword)
-  (forward-subword arg))
-(make-obsolete 'c-forward-into-nomenclature 'forward-subword "23.2")
+  (subword-forward arg))
+(make-obsolete 'c-forward-into-nomenclature 'subword-forward "23.2")
 
 (defun c-backward-into-nomenclature (&optional arg)
   "Compatibility alias for `c-backward-subword'."
   (interactive "p")
   (require 'subword)
-  (backward-subword arg))
-(make-obsolete 'c-backward-into-nomenclature 'backward-subword "23.2")
+  (subword-backward arg))
+(make-obsolete 'c-backward-into-nomenclature 'subword-backward "23.2")
 
 (defun c-scope-operator ()
   "Insert a double colon scope operator at point.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]