Merge from origin/emacs-30

3cf177442c ; * lisp/help-at-pt.el (display-local-help): Fix last cha...
02c53b9aab ; * lisp/help-at-pt.el (display-local-help): Doc fix.
130c2a13dc ; * doc/emacs/building.texi (Compilation Mode): Fix last ...
df7f02a795 Add tags to 'compilation-transform-file-match-alist' cust...
7c50e4cc8c Improve 'compilation-transform-file-match-alist' document...
a73d08bb67 Improve 'compilation-hidden-output' docstring
d50293b0f1 ; Improve documentation of 'epa-mail-verify'
This commit is contained in:
Eli Zaretskii 2024-12-07 09:16:18 -05:00
commit 284b6647d2
5 changed files with 43 additions and 17 deletions

View file

@ -310,6 +310,15 @@ error message formats and tells Emacs how to extract the locus from
each. A similar variable, @code{grep-regexp-alist}, tells Emacs how
to parse output from a @code{grep} command (@pxref{Grep Searching}).
@vindex compilation-transform-file-match-alist
@cindex compilation transform file
@cindex compilation find file
Sometimes @code{compilation-error-regexp-alist} doesn't correctly
determine the filename that is the source of the error. Use user option
@code{compilation-transform-file-match-alist} to make any necessary
adjustments, such as adding or changing a directory component, or even
considering certain compiler messages not error messages at all.
@findex compilation-next-error
@findex compilation-previous-error
@findex compilation-next-file

View file

@ -398,7 +398,8 @@ Decrypt OpenPGP armors in the current buffer.
@kindex C-c C-e C-v
@kindex C-c C-e v
@findex epa-mail-verify
Verify OpenPGP cleartext signed messages in the current buffer.
Verify OpenPGP cleartext signed messages in the current buffer. If
verification fails for some reason, this command signals an error.
@item C-c C-e C-s and C-c C-e s
@kindex C-c C-e C-s

View file

@ -90,7 +90,9 @@ The buffer is expected to contain a mail message."
;;;###autoload
(defun epa-mail-verify ()
"Verify OpenPGP cleartext signed messages in the current buffer.
The buffer is expected to contain a mail message."
The buffer is expected to contain a mail message.
If the verification fails, signal an error."
(declare (interactive-only t))
(interactive)
(with-suppressed-warnings ((interactive-only epa-verify-cleartext-in-region))

View file

@ -86,20 +86,20 @@ If this produces no string either, return nil."
;;;###autoload
(defun display-local-help (&optional inhibit-warning describe-button)
"Display local help in the echo area.
This command, by default, displays a short help message, namely
the string produced by the `kbd-help' property at point. If
`kbd-help' does not produce a string, but the `help-echo'
property does, then that string is printed instead.
"Display in the echo area `kbd-help' or `help-echo' text at point.
This command displays the help message which is the string produced
by the `kbd-help' property at point. If `kbd-help' at point does not
produce a string, but the `help-echo' property does, then that string
is displayed instead.
The string is passed through `substitute-command-keys' before it
is displayed.
If INHIBIT-WARNING is non-nil, this prevents display of a message
in case there is no help.
If INHIBIT-WARNING is non-nil, do not display a warning message when
there is no help property at point.
If DESCRIBE-BUTTON in non-nil (interactively, the prefix arg), and
there's a button/widget at point, pop a buffer describing that
there's a button/widget at point, pop up a buffer describing that
button/widget instead."
(interactive (list nil current-prefix-arg))
(let ((help (help-at-pt-kbd-string)))

View file

@ -62,11 +62,25 @@ If nil, use Emacs default."
(defcustom compilation-transform-file-match-alist
'(("/bin/[a-z]*sh\\'" nil))
"Alist of regexp/replacements to alter file names in compilation errors.
If the replacement is nil, the file will not be considered an
error after all. If not nil, it should be a regexp replacement
string."
:type '(repeat (list regexp (choice (const :tag "No replacement" nil)
string)))
If the replacement is nil, the file will not be considered an error
after all. If not nil, it should be a regexp replacement string.
When a replacement regexp is specified, the value of the file name used
to locate the error is changed, but the compilation buffer still
displays the original value.
For example, to prepend a subdirectory \"bar/\" to all file names, add
an entry matching \"\\\\=`\" and a replacement regexp of \"bar/\", i.e.:
(\"\\\\=`\" \"bar/\")
Similarly, to remove a prefix \"bar/\", use:
(\"\\\\=`bar/\" \"\")"
:type '(repeat (list (regexp :tag "Filename that matches")
(radio :tag "Action"
(const :tag "Do not consider as error" nil)
(string :tag "Replace matched filename with"))))
:version "27.1")
(defvar compilation-filter-hook nil
@ -95,8 +109,8 @@ like.
For instance, to hide the verbose output from recursive
makefiles, you can say something like:
(setq compilation-hidden-output
\\='(\"^make[^\n]+\n\"))"
(setopt compilation-hidden-output
\\='(\"^make[^\\n]+\\n\"))"
:type '(choice regexp
(repeat regexp))
:version "29.1")