Merge from origin/emacs-29
946d4aad1d
Avoid errors in Info-search-case-sensitively in DIR buffersfbf6830299
Add test for previous change (bug#70023)bcf6dd6e26
Add typescript-ts-mode indentation for interface bodies (...
This commit is contained in:
commit
87be53846b
3 changed files with 16 additions and 1 deletions
|
@ -2174,7 +2174,7 @@ If DIRECTION is `backward', search in the reverse direction."
|
|||
(re-search-forward regexp nil t))
|
||||
(signal 'user-search-failed (list regexp))))))
|
||||
|
||||
(if (and bound (not found))
|
||||
(if (and (or bound (not Info-current-subfile)) (not found))
|
||||
(signal 'user-search-failed (list regexp)))
|
||||
|
||||
(unless (or found bound)
|
||||
|
|
|
@ -124,6 +124,7 @@ Argument LANGUAGE is either `typescript' or `tsx'."
|
|||
((parent-is "object_type") parent-bol typescript-ts-mode-indent-offset)
|
||||
((parent-is "enum_body") parent-bol typescript-ts-mode-indent-offset)
|
||||
((parent-is "class_body") parent-bol typescript-ts-mode-indent-offset)
|
||||
((parent-is "interface_body") parent-bol typescript-ts-mode-indent-offset)
|
||||
((parent-is "arrow_function") parent-bol typescript-ts-mode-indent-offset)
|
||||
((parent-is "parenthesized_expression") parent-bol typescript-ts-mode-indent-offset)
|
||||
((parent-is "binary_expression") parent-bol typescript-ts-mode-indent-offset)
|
||||
|
|
|
@ -110,3 +110,17 @@ const foo = (props) => {
|
|||
);
|
||||
}
|
||||
=-=-=
|
||||
|
||||
Name: Interface body fields are indented
|
||||
|
||||
=-=
|
||||
interface Foo {
|
||||
foo: string;
|
||||
bar?: boolean;
|
||||
}
|
||||
=-=
|
||||
interface Foo {
|
||||
foo: string;
|
||||
bar?: boolean;
|
||||
}
|
||||
=-=-=
|
||||
|
|
Loading…
Add table
Reference in a new issue