diff options
| author | Noam Postavsky | 2017-06-14 00:08:15 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2017-07-05 22:52:35 -0400 |
| commit | e832febfb4089418e0152c805e24dee977a7590d (patch) | |
| tree | e57e94068965c89352d735e48d827b6cba83db41 /etc | |
| parent | 018600f896fbed768e583f6b8ee7fbae713367d1 (diff) | |
| download | emacs-e832febfb4089418e0152c805e24dee977a7590d.tar.gz emacs-e832febfb4089418e0152c805e24dee977a7590d.zip | |
Allow comment-indent-functions to specify exact indentation (Bug#385)
* lisp/newcomment.el (comment-choose-indent): Interpret a cons of two
integers as indicating a range of acceptable indentation.
(comment-indent): Don't apply `comment-inline-offset',
`comment-choose-indent' already does that.
(comment-indent-function):
* doc/emacs/programs.texi (Options for Comments): Document new
acceptable return values.
* etc/NEWS: Announce it.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -405,6 +405,10 @@ display of raw bytes from octal to hex. | |||
| 405 | ** You can now provide explicit field numbers in format specifiers. | 405 | ** You can now provide explicit field numbers in format specifiers. |
| 406 | For example, '(format "%2$s %1$s" "X" "Y")' produces "Y X". | 406 | For example, '(format "%2$s %1$s" "X" "Y")' produces "Y X". |
| 407 | 407 | ||
| 408 | +++ | ||
| 409 | ** 'comment-indent-function' values may now return a cons to specify a | ||
| 410 | range of indentation. | ||
| 411 | |||
| 408 | 412 | ||
| 409 | * Editing Changes in Emacs 26.1 | 413 | * Editing Changes in Emacs 26.1 |
| 410 | 414 | ||