]> git.eshelyaron.com Git - emacs.git/commitdiff
Use delete-char instead of delete-backward-char.
authorVibhav Pant <vibhavp@gmail.com>
Thu, 19 Mar 2015 01:15:58 +0000 (06:45 +0530)
committerVibhav Pant <vibhavp@gmail.com>
Thu, 19 Mar 2015 01:15:58 +0000 (06:45 +0530)
* lisp/leim/quail/hangul.el
* lisp/progmodes/cperl-mode.el: Use delete-char instead of
delete-backward-char, fixes compilation warnings.

lisp/ChangeLog
lisp/leim/quail/hangul.el
lisp/progmodes/cperl-mode.el

index de940c304a9c1825433bd3ebf6c51a21e0822cd7..e75f81ba75aeb324339989e34bab1a75de1cb716 100644 (file)
@@ -1,3 +1,9 @@
+2015-03-19  Vibhav Pant  <vibhavp@gmail.com>
+
+       * lisp/leim/quail/hangul.el
+       * lisp/progmodes/cperl-mode.el: Use delete-char instead of
+       delete-backward-char, fixes compilation warnings.
+
 2015-03-18  Michael Albinus  <michael.albinus@gmx.de>
 
        * net/tramp-sh.el (tramp-do-directory-files-and-attributes-with-stat):
index 243fa0425715cae04e7015575cb96837f11da483..12d7358841bd9a88e88a3e6609c804f0e8d68871 100644 (file)
@@ -351,7 +351,7 @@ Other parts are the same as a `hangul3-input-method-cho'."
     (aset hangul-queue i 0))
   (if (notzerop (apply '+ (append hangul-queue nil)))
       (hangul-insert-character hangul-queue)
-    (delete-backward-char 1)))
+    (delete-char -1)))
 
 (defun hangul-to-hanja-conversion ()
   "Convert the previous hangul character to the corresponding hanja character.
@@ -363,7 +363,7 @@ When a Korean input method is off, convert the following hangul character."
     (if (and (overlayp quail-overlay) (overlay-start quail-overlay))
         (progn
          (setq hanja-character (hangul-to-hanja-char (preceding-char)))
-         (setq delete-func (lambda () (delete-backward-char 1))))
+         (setq delete-func (lambda () (delete-char -1))))
       (setq hanja-character (hangul-to-hanja-char (following-char)))
       (setq delete-func (lambda () (delete-char 1))))
     (when hanja-character
index 3b8742ee842f8ba0d1a1e3c14b0f435406a268e5..f207016187d346e84749134c6066c2156bfb40a7 100644 (file)
@@ -2281,8 +2281,8 @@ to nil."
             (search-backward ")")
             (if (eq last-command-event ?\()
                 (progn                 ; Avoid "if (())"
-                  (delete-backward-char 1)
-                  (delete-backward-char -1))))
+                  (delete-char -1)
+                  (delete-char 1))))
           (if delete
               (cperl-putback-char cperl-del-back-ch))
           (if cperl-message-electric-keyword
@@ -2588,7 +2588,7 @@ Will untabify if `cperl-electric-backspace-untabify' is non-nil."
          (delete-region (point) p))
       (if cperl-electric-backspace-untabify
          (backward-delete-char-untabify arg)
-       (delete-backward-char arg)))))
+       (delete-char (- arg))))))
 
 (put 'cperl-electric-backspace 'delete-selection 'supersede)