diff options
| author | Vibhav Pant | 2015-03-19 06:45:58 +0530 |
|---|---|---|
| committer | Vibhav Pant | 2015-03-19 06:45:58 +0530 |
| commit | f469024eea692a163beb98a824b5cc0a4e8bcda8 (patch) | |
| tree | ca960de8f4190552db79320fbc109c3355476442 | |
| parent | 611a4791a4499eaaa5d1d652e538485b7c15ff0b (diff) | |
| download | emacs-f469024eea692a163beb98a824b5cc0a4e8bcda8.tar.gz emacs-f469024eea692a163beb98a824b5cc0a4e8bcda8.zip | |
Use delete-char instead of delete-backward-char.
* lisp/leim/quail/hangul.el
* lisp/progmodes/cperl-mode.el: Use delete-char instead of
delete-backward-char, fixes compilation warnings.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/leim/quail/hangul.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/cperl-mode.el | 6 |
3 files changed, 11 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index de940c304a9..e75f81ba75a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2015-03-19 Vibhav Pant <vibhavp@gmail.com> | ||
| 2 | |||
| 3 | * lisp/leim/quail/hangul.el | ||
| 4 | * lisp/progmodes/cperl-mode.el: Use delete-char instead of | ||
| 5 | delete-backward-char, fixes compilation warnings. | ||
| 6 | |||
| 1 | 2015-03-18 Michael Albinus <michael.albinus@gmx.de> | 7 | 2015-03-18 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 8 | ||
| 3 | * net/tramp-sh.el (tramp-do-directory-files-and-attributes-with-stat): | 9 | * net/tramp-sh.el (tramp-do-directory-files-and-attributes-with-stat): |
diff --git a/lisp/leim/quail/hangul.el b/lisp/leim/quail/hangul.el index 243fa042571..12d7358841b 100644 --- a/lisp/leim/quail/hangul.el +++ b/lisp/leim/quail/hangul.el | |||
| @@ -351,7 +351,7 @@ Other parts are the same as a `hangul3-input-method-cho'." | |||
| 351 | (aset hangul-queue i 0)) | 351 | (aset hangul-queue i 0)) |
| 352 | (if (notzerop (apply '+ (append hangul-queue nil))) | 352 | (if (notzerop (apply '+ (append hangul-queue nil))) |
| 353 | (hangul-insert-character hangul-queue) | 353 | (hangul-insert-character hangul-queue) |
| 354 | (delete-backward-char 1))) | 354 | (delete-char -1))) |
| 355 | 355 | ||
| 356 | (defun hangul-to-hanja-conversion () | 356 | (defun hangul-to-hanja-conversion () |
| 357 | "Convert the previous hangul character to the corresponding hanja character. | 357 | "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." | |||
| 363 | (if (and (overlayp quail-overlay) (overlay-start quail-overlay)) | 363 | (if (and (overlayp quail-overlay) (overlay-start quail-overlay)) |
| 364 | (progn | 364 | (progn |
| 365 | (setq hanja-character (hangul-to-hanja-char (preceding-char))) | 365 | (setq hanja-character (hangul-to-hanja-char (preceding-char))) |
| 366 | (setq delete-func (lambda () (delete-backward-char 1)))) | 366 | (setq delete-func (lambda () (delete-char -1)))) |
| 367 | (setq hanja-character (hangul-to-hanja-char (following-char))) | 367 | (setq hanja-character (hangul-to-hanja-char (following-char))) |
| 368 | (setq delete-func (lambda () (delete-char 1)))) | 368 | (setq delete-func (lambda () (delete-char 1)))) |
| 369 | (when hanja-character | 369 | (when hanja-character |
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index 3b8742ee842..f207016187d 100644 --- a/lisp/progmodes/cperl-mode.el +++ b/lisp/progmodes/cperl-mode.el | |||
| @@ -2281,8 +2281,8 @@ to nil." | |||
| 2281 | (search-backward ")") | 2281 | (search-backward ")") |
| 2282 | (if (eq last-command-event ?\() | 2282 | (if (eq last-command-event ?\() |
| 2283 | (progn ; Avoid "if (())" | 2283 | (progn ; Avoid "if (())" |
| 2284 | (delete-backward-char 1) | 2284 | (delete-char -1) |
| 2285 | (delete-backward-char -1)))) | 2285 | (delete-char 1)))) |
| 2286 | (if delete | 2286 | (if delete |
| 2287 | (cperl-putback-char cperl-del-back-ch)) | 2287 | (cperl-putback-char cperl-del-back-ch)) |
| 2288 | (if cperl-message-electric-keyword | 2288 | (if cperl-message-electric-keyword |
| @@ -2588,7 +2588,7 @@ Will untabify if `cperl-electric-backspace-untabify' is non-nil." | |||
| 2588 | (delete-region (point) p)) | 2588 | (delete-region (point) p)) |
| 2589 | (if cperl-electric-backspace-untabify | 2589 | (if cperl-electric-backspace-untabify |
| 2590 | (backward-delete-char-untabify arg) | 2590 | (backward-delete-char-untabify arg) |
| 2591 | (delete-backward-char arg))))) | 2591 | (delete-char (- arg)))))) |
| 2592 | 2592 | ||
| 2593 | (put 'cperl-electric-backspace 'delete-selection 'supersede) | 2593 | (put 'cperl-electric-backspace 'delete-selection 'supersede) |
| 2594 | 2594 | ||