mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-13 16:38:14 +00:00
(align-areas): Delete whitespace before reindenting, so
that tabs are never placed after spaces.
This commit is contained in:
parent
5ff00c425a
commit
14e32dd339
@ -1,3 +1,8 @@
|
||||
2004-11-06 Paul Pogonyshev <pogonyshev@gmx.net>
|
||||
|
||||
* align.el (align-areas): Delete whitespace before reindenting, so
|
||||
that tabs are never placed after spaces.
|
||||
|
||||
2004-11-06 Alan Shutko <ats@acm.org>
|
||||
|
||||
* macros.el (insert-kbd-macro): Do completions based on macros,
|
||||
|
@ -1212,6 +1212,14 @@ have been aligned. No changes will be made to the buffer."
|
||||
(cond ((< gocol 0) t) ; don't do anything
|
||||
((= cur gocol) t) ; don't need to
|
||||
((< cur gocol) ; just add space
|
||||
;; FIXME: It is stated above that "...the
|
||||
;; whitespace to be modified was already
|
||||
;; deleted by `align-region', all we have
|
||||
;; to do here is indent." However, this
|
||||
;; doesn't seem to be true, so we first
|
||||
;; delete the whitespace to avoid tabs
|
||||
;; after spaces.
|
||||
(delete-horizontal-space t)
|
||||
(indent-to gocol))
|
||||
(t
|
||||
;; This code works around an oddity in the
|
||||
|
Loading…
Reference in New Issue
Block a user