[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
improvement for `delete-indentation'
From: |
Dave Love |
Subject: |
improvement for `delete-indentation' |
Date: |
Tue, 06 Jan 2004 16:01:18 +0000 |
User-agent: |
Gnus/5.1005 (Gnus v5.10.5) Emacs/21.2 (gnu/linux) |
This DTRT with continued lines in the style of sh &c and I doubt it
could break anything.
2004-01-06 Dave Love <address@hidden>
* simple.el (delete-indentation): Deal with typical continued
lines.
*** /dl/sr/homes/px/fx/esrc/lisp/simple.el~ Thu Nov 13 20:31:14 2003
--- /dl/sr/homes/px/fx/esrc/lisp/simple.el Tue Jan 6 15:51:23 2004
***************
*** 228,233 ****
--- 228,235 ----
(buffer-substring (point)
(+ (point) (length fill-prefix)))))
(delete-region (point) (+ (point) (length fill-prefix))))
+ (if (eq ?\\ (char-syntax (preceding-char))) ; assume continued line
+ (delete-backward-char))
(fixup-whitespace))))
(defalias 'join-line #'delete-indentation) ; easier to find
- improvement for `delete-indentation',
Dave Love <=