diff options
| -rw-r--r-- | lisp/progmodes/c-mode.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el index 429d0bf2292..ebab0c77130 100644 --- a/lisp/progmodes/c-mode.el +++ b/lisp/progmodes/c-mode.el | |||
| @@ -1314,10 +1314,12 @@ definition and conveniently use this command." | |||
| 1314 | 1314 | ||
| 1315 | (defun c-delete-backslash () | 1315 | (defun c-delete-backslash () |
| 1316 | (end-of-line) | 1316 | (end-of-line) |
| 1317 | (forward-char -1) | 1317 | (or (bolp) |
| 1318 | (if (looking-at "\\\\") | 1318 | (progn |
| 1319 | (delete-region (1+ (point)) | 1319 | (forward-char -1) |
| 1320 | (progn (skip-chars-backward " \t") (point))))) | 1320 | (if (looking-at "\\\\") |
| 1321 | (delete-region (1+ (point)) | ||
| 1322 | (progn (skip-chars-backward " \t") (point))))))) | ||
| 1321 | 1323 | ||
| 1322 | (defun c-up-conditional (count) | 1324 | (defun c-up-conditional (count) |
| 1323 | "Move back to the containing preprocessor conditional, leaving mark behind. | 1325 | "Move back to the containing preprocessor conditional, leaving mark behind. |