Commit graph

151673 commits

Author SHA1 Message Date
Xi Lu
22fb5ff512 Fix ruby-mode.el local command injection vulnerability (bug#60268)
* lisp/progmodes/ruby-mode.el
(ruby-find-library-file): Fix local command injection vulnerability.

(cherry picked from commit 9a3b08061f)
2023-02-17 11:20:10 +01:00
Xi Lu
807d2d5b3a Fix htmlfontify.el command injection vulnerability.
* lisp/htmlfontify.el (hfy-text-p): Fix command injection
vulnerability.  (Bug#60295)

(cherry picked from commit 1b4dc4691c)
2023-02-17 11:20:09 +01:00
Eli Zaretskii
ae9bfed50d Fix storing email into nnmail by Gnus
Backporting suggested by Florian Weimer, since this is
a denial-of-service issue.
* lisp/gnus/nnml.el (nnml--encode-headers): Wrap
'rfc2047-encode-string' calls with 'ignore-errors', to avoid
disrupting email workflows due to possibly-invalid headers.
Reported by Florian Weimer <fweimer@redhat.com>.

(cherry picked from commit 23f7c9c2a9)
2022-12-19 12:49:59 -05:00
Eli Zaretskii
0636e1066b ; Don't unnecessarily use non-ASCII characters in Texinfo
* doc/emacs/custom.texi (Init Rebinding, Examining, Keymaps):
Use Texinfo directives instead of literal non-ASCII characters.
2022-11-16 16:27:10 +02:00
Robert Pluim
56026242e4 Explain how to bind keys to non-ASCII sequences
* doc/emacs/custom.texi (Init Rebinding): Explain how to use `kbd'
when binding keys to non-ASCII sequences.
2022-11-14 17:16:40 +01:00
Eli Zaretskii
7d592db0ab Document that 'transient-mark-mode' is off in batch mode
* doc/emacs/mark.texi (Mark, Disabled Transient Mark): Document,
belatedly, that 'transient-mark-mode' is turned on by default only
in interactive sessions.  (Bug#59201)
2022-11-12 13:10:24 +02:00
Eli Zaretskii
70fb03a49a ; * doc/emacs/search.texi (Lax Search): Improve suggestion. (Bug#58992) 2022-11-04 17:21:58 +02:00
Eli Zaretskii
5779df0c5b ; * doc/lispref/searching.texi: Remove reference to Posix. (Bug#58992) 2022-11-04 16:02:48 +02:00
Eli Zaretskii
46929f6b73 ; Improve documentation of character classes in regexps
* doc/lispref/searching.texi (Char Classes): Add notes about the
dependence of character classes on case and syntax tables specific
to buffers and modes.  (Bug#58992)
2022-11-04 15:12:29 +02:00
Eli Zaretskii
8cae9d8bd8 ; * doc/emacs/search.texi (Lax Search): Improve wording. (Bug#58992) 2022-11-03 20:02:00 +02:00
Eli Zaretskii
e01e8a8f84 ; * lisp/dired-aux.el (dired-show-file-type): Doc fix. 2022-11-03 11:59:30 +02:00
Eli Zaretskii
1862df834c ; * src/search.c (Fmatch_data): Doc fix. 2022-10-30 19:57:14 +02:00
Eli Zaretskii
15fc5225b1 ; * lisp/whitespace.el (whitespace-trailing): Fix a typo. 2022-10-29 15:40:31 +03:00
Matt Armstrong
9f3c896f7c ; * doc/emacs/text.texi (Quotation Marks): Typo fix. (Bug#58822) 2022-10-29 10:34:11 +03:00
Eli Zaretskii
510020d30d ; Improve doc strings in whitespace.el
* lisp/whitespace.el (whitespace-hspace-regexp)
(whitespace-space-regexp, whitespace-tab-regexp)
(whitespace-trailing-regexp, whitespace-space-before-tab-regexp)
(whitespace-indentation-regexp, whitespace-empty-at-bob-regexp)
(whitespace-empty-at-eob-regexp)
(whitespace-space-after-tab-regexp)
(whitespace-big-indent-regexp, whitespace-line-column)
(whitespace-display-mappings, whitespace-global-modes)
(whitespace-action, whitespace-style, whitespace-space)
(whitespace-hspace, whitespace-tab, whitespace-trailing)
(whitespace-space-before-tab, whitespace-indentation)
(whitespace-big-indent, whitespace-empty)
(whitespace-space-after-tab): Doc fixes.
2022-10-27 10:28:34 +03:00
Matt Armstrong
f1f4a0c9d2 ; * doc/lispref/display.texi (Progress): Correct typo. (Bug#58674) 2022-10-21 21:22:50 +03:00
Harald Jörg
ee9a9fbf0f ; cperl-mode.el: Fix one match-count in my commit 2021-09-14
* lisp/progmodes/cperl-mode.el (cperl-init-faces): Matching group needs
to be adjusted according to the regexp change in my previous commit

(cherry picked from commit a25e91593d)
2022-10-20 21:00:34 +02:00
Eli Zaretskii
626525c29f ; Remove reference to non-existent Flymake function from manual
* doc/emacs/building.texi (Flymake): Replace reference to a delete
command 'flymake-display-err-menu-for-current-line' with existing
equivalents.   (Bug#58649)
2022-10-20 08:59:18 +03:00
Eli Zaretskii
4b2c83eeaf ; * doc/lispref/modes.texi (Defining Minor Modes): Explain TURN-ON. 2022-10-19 14:50:23 +03:00
Manuel Giraud
efd3ef3ceb ; * src/window.c: Fix some comments. (Bug#58550) 2022-10-17 13:51:39 +03:00
Eli Zaretskii
067361f3a2 ; Improve documentation of 'C-M-i'
* doc/emacs/programs.texi (Symbol Completion): Remove redundant
text, rephrase, and improve indexing and markup.
2022-10-16 09:10:14 +03:00
Eli Zaretskii
fdb6f7cf26 ; Fix documentation of 'comp-enable-subr-trampolines'
* src/comp.c (syms_of_comp) <comp-enable-subr-trampolines>:
Explain better what it means to disable trampoline synthesis.
2022-10-15 12:15:17 +03:00
Eli Zaretskii
be30369e01 ; Avoid incorrect indentation in an @example.
* doc/lispref/modes.texi (Search-based Fontification): Avoid
incorrect indentation in an @example.  Reported by Akib Azmain
Turja <akib@disroot.org>.
2022-10-15 10:44:12 +03:00
Eli Zaretskii
4bd3dd505e Document how to control where the *.eln files are written
* doc/lispref/compile.texi (Native Compilation): Document the
trick of pointing $HOME to a non-existent directory.
(Native-Compilation Variables): Document the role of
'native-comp-eln-load-path' in determining where *.eln files are
written.
2022-10-14 21:57:18 +03:00
Robert Pluim
b7d7c2d9e9 Add cross-reference to alternative syntaxes for Unicode
These alternative syntaxes allow you to specify Unicode codepoints
using only ASCII, which helps avoid decoding issues.

* doc/emacs/custom.texi (Init Non-ASCII): Add cross reference to
"General Escape Syntax" in the Emacs Lisp Reference Manual.
2022-10-14 17:14:32 +02:00
Bill Wohler
85e47d9a9e ; Continued cleanup of "-hooks"
* doc/misc/mh-e.texi: Replace mh-kill-folder-suppress-prompt-hook with
mh-kill-folder-suppress-prompt-functions.
2022-10-13 09:52:25 -07:00
Stefan Kangas
4b4b093ab3 ; * admin/make-tarball.txt: Fix typo. 2022-10-13 04:46:32 +02:00
Eli Zaretskii
3787d0b11a ; * doc/lispref/windows.texi (Window Hooks): Fix markup (bug#58445). 2022-10-11 20:20:44 +03:00
Eli Zaretskii
32ef7550ed ; Improve documentation of 'file-in-directory-p'
* lisp/files.el (file-in-directory-p): Clarify doc string.

* doc/lispref/files.texi (Truenames): Move the documentation of
'file-in-directory-p' from here...
(Contents of Directories): ...to here.  Add index entries.
(Bug#58364)
2022-10-08 14:13:50 +03:00
Lars Ingebrigtsen
cfb1e21844 Update name of hs-mouse-toggle-hiding in Emacs manual
* doc/emacs/programs.texi (Hideshow): Update the name of
hs-mouse-toggle-hiding (bug#58331).
2022-10-07 14:40:48 +02:00
Stefan Kangas
5f8849425c Fix typo in `(emacs) Lisp Doc'
* doc/emacs/programs.texi (Lisp Doc): Fix reference to
'eldoc-echo-area-display-truncation-message'.  (Bug#58324)
2022-10-06 09:32:02 +02:00
Stefan Kangas
f0a06364fb Fix references to 'default-indent-new-line'
* doc/emacs/programs.texi (Comment Commands)
(Multi-Line Comments): Fix references to
'default-indent-new-line'.  (Bug#58325)
2022-10-06 09:25:42 +02:00
Andreas Schwab
a78af3018e * src/emacs.c (load_pdump): Propery handle case when executable
wasn't found.
2022-10-04 18:32:53 +02:00
Eli Zaretskii
b560ce3560 Avoid assertion violations in STRING_CHAR
* src/xdisp.c (handle_composition_prop):
* src/editfns.c (styled_format): Don't call 'STRING_CHAR' on
unibyte strings.  This avoids assertion violation in
'string_char_and_length'.

(cherry picked from commit d52d6e1e10)
2022-10-04 14:24:46 +03:00
Eli Zaretskii
78c262e1c2 ; * lisp/progmodes/glasses.el (glasses-face): Expand the doc string. 2022-10-04 10:32:06 +03:00
Stefan Kangas
992611b10a Fix documentation of 'TAB' in cc-mode
* doc/emacs/programs.texi (C Indent): Fix documentation of 'TAB'
in cc-mode.  (Bug#58258)
2022-10-03 02:28:26 +02:00
Stefan Kangas
08e485a2a5 Fix 'org-export-dispatch' command name in manual
* doc/emacs/text.texi (Org Authoring): Fix 'org-export-dispatch'
command name.  (Bug#58260)
2022-10-03 02:21:07 +02:00
Andreas Schwab
e5a49f44ff * src/emacs.c (load_pdump): Fix use of xpalloc. 2022-10-02 12:20:09 +02:00
Eli Zaretskii
7ff5207624 Avoid assertion violation in 'xpalloc'
* src/emacs.c (load_pdump): Ensure the 3rd argument of xpalloc is
always positive.  (Bug#58232)
2022-10-02 12:58:04 +03:00
Stefan Kangas
6c46aa2116 ; Auto-commit of loaddefs files. 2022-10-01 20:31:44 +02:00
Michael Albinus
be3eac3929 ; * etc/NEWS: Fix typos. 2022-09-30 21:54:05 +02:00
Michael Albinus
99a8c53247 Fix connection property incompatibility in Tramp
* lisp/net/tramp.el (tramp-get-remote-tmpdir): Remove obsolete
connection property "tmpdir".  (Bug#57800)
2022-09-30 21:53:52 +02:00
Eli Zaretskii
64e8cc14b5 ; * lisp/image.el (create-image): Fix last change in doc string. 2022-09-29 16:27:59 +03:00
Lars Ingebrigtsen
f3e3632394 Update some Gnus documentation in the Emacs manual
* doc/emacs/misc.texi (Gnus Group Buffer, Gnus Summary Buffer):
Update documentation (bug#58145).
2022-09-29 13:05:47 +02:00
Eli Zaretskii
cf38e1c393 Clarify image file search
* doc/lispref/display.texi (Defining Images, Image Descriptors):
* lisp/image.el (create-image): Clarify that non-absolute image
files are searched along 'image-load-path'.  (Bug#52931)
2022-09-28 22:03:27 +03:00
Stefan Kangas
fc212364ce ; Fix typo. 2022-09-28 17:18:49 +02:00
Stefan Kangas
8033947fe2 .mailcap: Some additional fixes. 2022-09-28 16:23:09 +02:00
Eli Zaretskii
b1e92c59ed Avoid assertion violations in 'pop_it'
* src/xdisp.c (pop_it): Avoid assertion violations when handling
lists or vectors of display properties.  (Bug#58122)
2022-09-28 16:46:39 +03:00
Stefan Kangas
72aac80184 ; Fix typo 2022-09-28 15:22:51 +02:00
Stefan Kangas
c54a64491f Add .mailmap for proper git log output
This file is used to fix a few misspelled names in various git
listings (e.g., "git log").  This can be used to fix incorrect
attribution, poor display, or names showing up more than once.
It also allows updating an old email addresses to a new one.
See "man git-shortlog" for more information on the format.

* .mailmap: New file.
2022-09-28 15:16:57 +02:00