diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/progmodes/cc-align.el | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ac56cd8ba79..18242539cca 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2013-03-06 Alan Mackenzie <acm@muc.de> | ||
| 2 | |||
| 3 | Correct the position of point in some line-up functions. | ||
| 4 | * progmodes/cc-align.el (c-lineup-whitesmith-in-block) | ||
| 5 | (c-lineup-assignments, c-lineup-gcc-asm-reg ): take position of | ||
| 6 | point at column 0 rather than at a random place in the line. | ||
| 7 | |||
| 1 | 2013-03-05 Michael Albinus <michael.albinus@gmx.de> | 8 | 2013-03-05 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 9 | ||
| 3 | * net/tramp-compat.el (tramp-compat-delete-directory): Implement | 10 | * net/tramp-compat.el (tramp-compat-delete-directory): Implement |
diff --git a/lisp/progmodes/cc-align.el b/lisp/progmodes/cc-align.el index cdd0561a054..33836f25335 100644 --- a/lisp/progmodes/cc-align.el +++ b/lisp/progmodes/cc-align.el | |||
| @@ -737,7 +737,7 @@ arglist-cont-nonempty." | |||
| 737 | (setq startpos (c-langelem-pos langelem))))) | 737 | (setq startpos (c-langelem-pos langelem))))) |
| 738 | 738 | ||
| 739 | (setq startpos (c-langelem-pos langelem) | 739 | (setq startpos (c-langelem-pos langelem) |
| 740 | endpos (point)) | 740 | endpos (c-point 'bol)) |
| 741 | 741 | ||
| 742 | ;; Find a syntactically relevant and unnested "=" token on the | 742 | ;; Find a syntactically relevant and unnested "=" token on the |
| 743 | ;; current line. equalp is in that case set to the number of | 743 | ;; current line. equalp is in that case set to the number of |
| @@ -1039,6 +1039,7 @@ brace-list-close, brace-list-intro, statement-block-intro, | |||
| 1039 | arglist-intro, arglist-cont-nonempty, arglist-close, and all in* | 1039 | arglist-intro, arglist-cont-nonempty, arglist-close, and all in* |
| 1040 | symbols, e.g. inclass and inextern-lang." | 1040 | symbols, e.g. inclass and inextern-lang." |
| 1041 | (save-excursion | 1041 | (save-excursion |
| 1042 | (beginning-of-line) | ||
| 1042 | (if (and (c-go-up-list-backward) | 1043 | (if (and (c-go-up-list-backward) |
| 1043 | (= (point) (c-point 'boi))) | 1044 | (= (point) (c-point 'boi))) |
| 1044 | nil | 1045 | nil |
| @@ -1191,6 +1192,7 @@ Works with: arglist-cont, arglist-cont-nonempty." | |||
| 1191 | (let ((orig-pos (point)) | 1192 | (let ((orig-pos (point)) |
| 1192 | alignto) | 1193 | alignto) |
| 1193 | (save-excursion | 1194 | (save-excursion |
| 1195 | (beginning-of-line) | ||
| 1194 | (and | 1196 | (and |
| 1195 | c-opt-asm-stmt-key | 1197 | c-opt-asm-stmt-key |
| 1196 | 1198 | ||