summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorMauro Aranda <maurooaranda@gmail.com>2019-09-26 17:16:28 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-09-26 17:16:28 +0200
commit45524b9702b4a6face2cf453eb02ddf10a496b45 (patch)
treebd97db6a79a4e364c7fb140a168bdab539feaaf3 /lisp
parent08fbe91dfebf023bb45f1485fb432e9118ef5abb (diff)
downloademacs-45524b9702b4a6face2cf453eb02ddf10a496b45.tar.gz
emacs-45524b9702b4a6face2cf453eb02ddf10a496b45.tar.bz2
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.el2
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).
If the user selects this alternative, that specifies DEFAULT
as the value."
:tag "Other"
- :format "%t%n"
+ :format "%t\n"
:value 'other)
(defvar widget-string-prompt-value-history nil