Merge from origin/emacs-29

2550e8bb0b Fix mule-tests under en_US.UTF-8 locale
3279530993 Move block closer above declaration_list rule (bug#61531)
b18754bb17 Minor improvements in c-ts-mode and docs
3c6b726a7b Add super node as a keyword
1917c51fe6 ; Prevent ERC-induced false positive in JUnit report
b16965ef7e Delete perplexing paragraph from Gnus manual
43c62a4732 ; Fix typo
This commit is contained in:
Stefan Kangas 2023-02-16 06:30:22 +01:00
commit 314f12630a
8 changed files with 22 additions and 22 deletions

View file

@ -619,15 +619,18 @@ declaration (@code{c-indent-defun} in CC mode,
@kindex C-M-q @r{(C mode)}
@findex c-indent-exp
@findex prog-indent-sexp
Reindent each line in the balanced expression that follows point. In
CC mode, this invokes @code{c-indent-exp}; in tree-sitter based
@code{c-ts-mode} this invokes a more general @code{prog-indent-sexp}.
A prefix argument inhibits warning messages about invalid syntax.
Reindent each line in the balanced expression (@pxref{Expressions}),
also known as ``sexp'', that follows point. In CC mode, this invokes
@code{c-indent-exp}; in tree-sitter based @code{c-ts-mode} this
invokes a more general @code{prog-indent-sexp}. A prefix argument
inhibits warning messages about invalid syntax.
@item @key{TAB}
@findex c-indent-line-or-region
Reindent the current line, active region, or block starting on this
line (@code{c-indent-line-or-region}).
line (@code{c-indent-line-or-region}). With prefix argument, rigidly
reindent the balanced expression which starts on the current line, if
the current line needs reindentation.
@vindex c-tab-always-indent
If @code{c-tab-always-indent} is @code{t}, this command always reindents

View file

@ -3853,15 +3853,6 @@ The dribble file will be saved, though (@pxref{Auto Save}).
@code{gnus-after-exiting-gnus-hook} is called as the final item when
exiting Gnus.
Note:
@quotation
Miss Lisa Cannifax, while sitting in English class, felt her feet go
numbly heavy and herself fall into a hazy trance as the boy sitting
behind her drew repeated lines with his pencil across the back of her
plastic chair.
@end quotation
@node Group Topics
@section Group Topics

View file

@ -2544,6 +2544,7 @@ This function is intended to be added to `auto-coding-functions'."
;; coding-system-equal, since it isn't a
;; coding-system. So test that up front.
(not (equal sym-type 'charset))
(not (equal bfcs-type 'charset))
(coding-system-equal 'utf-8 sym-type)
(coding-system-equal 'utf-8 bfcs-type))
buffer-file-coding-system

View file

@ -267,15 +267,15 @@ MODE is either `c' or `cpp'."
((query "(for_statement update: (_) @indent)") parent-bol 5)
((query "(call_expression arguments: (_) @indent)") parent c-ts-mode-indent-offset)
((parent-is "call_expression") parent 0)
;; Closing bracket. This should be before initializer_list
;; (and probably others) rule because that rule (and other
;; similar rules) will match the closing bracket. (Bug#61398)
((node-is "}") point-min c-ts-common-statement-offset)
,@(when (eq mode 'cpp)
'(((node-is "access_specifier") parent-bol 0)
;; Indent the body of namespace definitions.
((parent-is "declaration_list") parent-bol c-ts-mode-indent-offset)))
;; Closing bracket. This should be before initializer_list
;; (and probably others) rule because that rule (and other
;; similar rules) will match the closing bracket. (Bug#61398)
((node-is "}") point-min c-ts-common-statement-offset)
;; int[5] a = { 0, 0, 0, 0 };
((parent-is "initializer_list") parent-bol c-ts-mode-indent-offset)
@ -738,7 +738,8 @@ the semicolon. This function skips the semicolon."
:doc "Keymap for C and C-like languages with tree-sitter"
:parent prog-mode-map
"C-c C-q" #'c-ts-mode-indent-defun
"C-c ." #'c-ts-mode-set-style)
"C-c ." #'c-ts-mode-set-style
"C-c C-c" #'comment-region)
;;;###autoload
(define-derived-mode c-ts-base-mode prog-mode "C"

View file

@ -162,7 +162,8 @@
:override t
:feature 'keyword
`([,@java-ts-mode--keywords
(this)] @font-lock-keyword-face
(this)
(super)] @font-lock-keyword-face
(labeled_statement
(identifier) @font-lock-keyword-face))
:language 'java

View file

@ -293,7 +293,7 @@
'((field_identifier) @font-lock-property-face
(shorthand_field_initializer (identifier) @font-lock-property-face))
;; Must be under type, otherwise some imports can be highlighted as consants.
;; Must be under type, otherwise some imports can be highlighted as constants.
:language 'rust
:feature 'constant
`((boolean_literal) @font-lock-constant-face

View file

@ -21,6 +21,9 @@
(require 'ert-x)
(eval-and-compile
(when (and (getenv "EMACS_TEST_DIRECTORY")
(getenv "EMACS_TEST_JUNIT_REPORT"))
(setq ert-load-file-name (or (macroexp-file-name) buffer-file-name)))
(let ((load-path (cons (expand-file-name "erc-d" (ert-resource-directory))
load-path)))
(load "erc-d-tests" nil 'silent)))

View file

@ -99,7 +99,7 @@ provide HTML fragments. Some tests override those variables."
(ert-deftest sgml-html-meta-utf-8 ()
"Baseline: UTF-8."
(should (eq 'utf-8 (sgml-html-meta-run "utf-8"))))
(should (eq 'utf-8 (coding-system-base (sgml-html-meta-run "utf-8")))))
(ert-deftest sgml-html-meta-windows-hebrew ()
"A non-Unicode charset."