diff options
| author | Mauro Aranda | 2019-09-26 17:16:28 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-09-26 17:16:28 +0200 |
| commit | 45524b9702b4a6face2cf453eb02ddf10a496b45 (patch) | |
| tree | bd97db6a79a4e364c7fb140a168bdab539feaaf3 /lisp | |
| parent | 08fbe91dfebf023bb45f1485fb432e9118ef5abb (diff) | |
| download | emacs-45524b9702b4a6face2cf453eb02ddf10a496b45.tar.gz emacs-45524b9702b4a6face2cf453eb02ddf10a496b45.zip | |
Don't indent unrelated widgets following widget of type 'other
* lisp/wid-edit.el (widget 'other): Use \n instead of the %n escape in the
:format property of this widget. If %n is used at the end of the
format string, unrelated widgets get indented. (Bug#12533)
* test/wid-edit-tests.el (widget-test-indentation-after-%n)
(widget-test-indentation-after-newline)
(widget-test-newline-and-indent-same-widget): New tests.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/wid-edit.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index 52b75325673..916d41af252 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el | |||
| @@ -3063,7 +3063,7 @@ as in (other DEFAULT) or (other :tag \"NAME\" DEFAULT). | |||
| 3063 | If the user selects this alternative, that specifies DEFAULT | 3063 | If the user selects this alternative, that specifies DEFAULT |
| 3064 | as the value." | 3064 | as the value." |
| 3065 | :tag "Other" | 3065 | :tag "Other" |
| 3066 | :format "%t%n" | 3066 | :format "%t\n" |
| 3067 | :value 'other) | 3067 | :value 'other) |
| 3068 | 3068 | ||
| 3069 | (defvar widget-string-prompt-value-history nil | 3069 | (defvar widget-string-prompt-value-history nil |