diff options
| author | Richard M. Stallman | 1995-01-30 07:46:16 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-01-30 07:46:16 +0000 |
| commit | c52e9f0b084f4be8b1babb2e662c5277f1a9f687 (patch) | |
| tree | 76ca33f5ff1f573d271bf537b8829fcdfb6ca6c8 | |
| parent | 51566783f012d3cfb23c35d9cd71974e05c97659 (diff) | |
| download | emacs-c52e9f0b084f4be8b1babb2e662c5277f1a9f687.tar.gz emacs-c52e9f0b084f4be8b1babb2e662c5277f1a9f687.zip | |
(indent-new-comment-line): Obey the convention
about \(...\) pairs in comment-start-skip.
| -rw-r--r-- | lisp/simple.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 8c946eb31b6..c958736834f 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2316,8 +2316,13 @@ unless optional argument SOFT is non-nil." | |||
| 2316 | (setq win (match-beginning 0))) | 2316 | (setq win (match-beginning 0))) |
| 2317 | ;; Indent this line like what we found. | 2317 | ;; Indent this line like what we found. |
| 2318 | (goto-char win) | 2318 | (goto-char win) |
| 2319 | ;; If comment-start-skip contains a \(...\) pair, | ||
| 2320 | ;; the real comment delimiter starts at the end of that pair. | ||
| 2321 | (if (match-end 1) | ||
| 2322 | (goto-char (match-end 1))) | ||
| 2319 | (setq comcol (current-column)) | 2323 | (setq comcol (current-column)) |
| 2320 | (setq comstart (buffer-substring (point) (match-end 0))))))) | 2324 | (setq comstart |
| 2325 | (buffer-substring (point) (match-end 0))))))) | ||
| 2321 | (if comcol | 2326 | (if comcol |
| 2322 | (let ((comment-column comcol) | 2327 | (let ((comment-column comcol) |
| 2323 | (comment-start comstart) | 2328 | (comment-start comstart) |