Stephen Gildea
00556cf805
; tramp-auto-save-directory: set mode atomically when creating
...
* lisp/net/tramp.el (tramp-handle-make-auto-save-file-name):
Use with-file-modes around make-directory. We can do this because
Tramp now honors default file modes in make-directory.
2021-09-24 21:59:17 -07:00
Lars Ingebrigtsen
9bc2ac4a95
Add new user option ispell-help-timeout
...
* lisp/textmodes/ispell.el (ispell-help-timeout): New user option.
(ispell-help): Use it.
2021-09-25 04:56:28 +02:00
Stefan Kangas
dc9d0da3c2
Set :type of suggest-key-bindings to natnum
...
* lisp/simple.el (suggest-key-bindings): Set :type to
natnum. (Bug#15809)
2021-09-25 04:15:22 +02:00
Stefan Kangas
f1071bf08e
New :type natnum for defcustom
...
* lisp/wid-edit.el (natnum): New widget type. (Bug#15809)
* doc/lispref/customize.texi (Simple Types): Document it.
2021-09-25 04:15:22 +02:00
Stefan Kangas
988428df7d
* lisp/dired-aux.el (dired-do-chmod): Simplify docstring.
2021-09-25 04:00:37 +02:00
Stefan Kangas
0917919337
Add support for man page hyperlinks in doc strings
...
* lisp/help-mode.el (help-man): New button type.
(help-xref-man-regexp): New const.
(help-make-xrefs): Use them to allow making man page buttons.
* doc/lispref/tips.texi (Documentation Tips): Document the new
hyperlink type. (Bug#39215)
2021-09-25 04:00:37 +02:00
Lars Ingebrigtsen
0b2596432d
Fix some instances in the Emacs manual with misleading prefix syntax
...
* doc/emacs/msdos.texi (Windows Keyboard):
* doc/emacs/misc.texi (Editing Binary Files):
* doc/emacs/macos.texi (Mac / GNUstep Events):
* doc/emacs/kmacro.texi (Basic Keyboard Macro):
* doc/emacs/glossary.texi (Glossary):
* doc/emacs/fixit.texi (Spelling): Fix some instances where the
syntax seems to imply we're talking about a prefix key (bug#50792).
2021-09-25 03:59:42 +02:00
Manuel Giraud
f6f87917fc
Make 'C-u C-x v v' handle unregistered files.
...
* lisp/vc/vc.el (vc-next-action): Make 'C-u C-x v v' handle
unregistered files (bug#50602).
2021-09-25 03:39:39 +02:00
Daniel Martín
67a0eee727
Mention the 'r' key in ask-user-about-supersession-help
...
* lisp/userlock.el (ask-user-about-supersession-help): Replace "n, and
then M-x revert-buffer" in the help message with "r", which does the
same thing. (Bug#50780)
2021-09-25 03:38:21 +02:00
akater
38037e04cb
Indent bodies of local function definitions properly in elisp-mode
...
* lisp/emacs-lisp/lisp-mode.el (lisp-indent-function): Check for
local defforms (`cl-flet' and `cl-labels').
(lisp--local-defform-body): New auxiliary function (bug#9622).
2021-09-25 03:34:37 +02:00
Stefan Kangas
c748164702
Clarify where to find CONTRIBUTE
...
* doc/emacs/trouble.texi (Contributing): Say that CONTRIBUTE is
found in the development version of Emacs. (Bug#37414)
2021-09-25 03:24:56 +02:00
Lars Ingebrigtsen
f9071a23a9
Use gzip to uncompess .xz files on MacOS
...
* lisp/jka-cmpr-hook.el (jka-compr-compression-info-list): Use
gzip to uncompess .xz files on MacOS (bug#29235).
2021-09-25 03:05:27 +02:00
Lars Ingebrigtsen
7a72358994
Use temporary-file-directory' in with-existing-directory'
...
* lisp/subr.el (with-existing-directory): Use
`temporary-file-directory' over TMPDIR.
2021-09-25 02:55:55 +02:00
Stefan Kangas
2767c89db7
Fix alignment on font size change in tabulated-list-mode
...
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print-col): Fix
bug where the columns didn't align correctly when using
'text-scale-mode' to decrease the font size. (Bug#48639)
2021-09-25 00:33:21 +02:00
Stefan Kangas
d03995197d
Doc fix; cl-random is only pseudo-random
...
* lisp/emacs-lisp/cl-extra.el (cl-random): Doc fix; say it's only
pseudo-random.
2021-09-25 00:05:55 +02:00
Stefan Kangas
79a9b50621
checkdoc: Don't ask to disambiguate mode names
...
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
Don't ask to disambiguate mode names. (Bug#4110)
2021-09-24 23:42:08 +02:00
Stefan Kangas
f17fb37c51
Fix recently introduced bug in checkdoc
...
* lisp/emacs-lisp/checkdoc.el (checkdoc-in-abbreviation-p): Fix
recently introduced bug where some abbreviations weren't recognized.
* test/lisp/emacs-lisp/checkdoc-tests.el
(checkdoc-tests-in-abbrevation-p/basic-case): Extend test.
2021-09-24 23:00:57 +02:00
Stefan Kangas
2ee5c80ff5
Revert change to use seq-random-elt in Tramp test
...
* test/lisp/net/tramp-tests.el (tramp-test44-asynchronous-requests):
Revert change to use seq-random-elt, as Tramp needs to be compatible
with Emacs 25, and the function was only added in 26.1.
2021-09-24 22:19:22 +02:00
Stefan Kangas
54cfadd92f
checkdoc: Improve wide line warning to decrease false positives
...
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
Respect 'byte-compile-docstring-max-column' if it is set. Allow the
first line to be three characters longer than the others to account
for indentation and the opening string character.
2021-09-24 22:04:55 +02:00
Stefan Kangas
0da8118dcb
Use command substitution instead of raw keys in more places
...
* admin/authors.el (authors):
* lisp/abbrev.el (abbrev-suggest-show-report):
* lisp/calc/calc.el (calc-display-trail, calc):
* lisp/completion.el (completion-locate-db-error):
* lisp/dired-x.el (dired-extra-startup):
* lisp/emacs-lisp/package.el (package-install-selected-packages):
* lisp/emulation/viper.el (viper-mode):
* lisp/facemenu.el (list-colors-display):
* lisp/mail/emacsbug.el (report-emacs-bug-hook):
* lisp/mail/sendmail.el (mail):
* lisp/menu-bar.el (menu-bar-mode):
* lisp/org/org.el (org-revert-all-org-buffers):
* lisp/progmodes/antlr-mode.el (antlr-help-rules-intro)
(antlr-insert-makefile-rules):
* lisp/progmodes/gdb-mi.el (gdb--check-interpreter):
* lisp/progmodes/xscheme.el (xscheme-process-sentinel):
* lisp/ps-print.el (ps-font-info-database):
* lisp/recentf.el (recentf-edit-list, recentf-open-files):
* lisp/vc/ediff-util.el (ediff-suspend):
* lisp/vc/pcvs.el (cvs-mode):
* lisp/vc/vc-bzr.el (vc-bzr-dir-extra-headers): Use command
substitution.
2021-09-24 21:26:08 +02:00
Stefan Kangas
35d0675467
Prefer seq-random-elt to nth+random
...
* lisp/emacs-lisp/seq.el (seq-random-elt): Autoload.
* lisp/avoid.el (mouse-avoidance-random-shape):
* lisp/epa-ks.el (epa-ks--query-url):
* lisp/erc/erc-networks.el (erc-server-select):
* lisp/gnus/gnus-fun.el (gnus--random-face-with-type)
(gnus-fun-ppm-change-string):
* lisp/net/soap-inspect.el (soap-sample-value-for-xs-simple-type):
* lisp/obsolete/landmark.el (landmark-random-move):
* lisp/play/mpuz.el (mpuz-build-random-perm):
* lisp/play/zone.el (zone-pgm-stress):
* lisp/vc/add-log.el (add-change-log-entry):
* test/lisp/net/tramp-tests.el
(tramp-test44-asynchronous-requests): Prefer seq-random-elt to
nth+random.
2021-09-24 19:41:03 +02:00
Michael Albinus
8fbf816ccd
Fix auto-revert-test05-global-notify
...
* test/lisp/autorevert-tests.el (auto-revert-test05-global-notify):
Adapt test for killed buffer.
2021-09-24 18:09:49 +02:00
Robert Pluim
68b8f3128f
; * doc/misc/tramp.texi: Grammar fixes for process-connection-type
2021-09-24 13:31:32 +02:00
Robert Pluim
3ced9e30db
; * etc/NEWS: improve some recently added entries
2021-09-24 13:30:10 +02:00
Robert Pluim
6738111ae2
Generate skin tone compositions from emoji-sequences.txt
...
Read skin tone modifier sequences from emoji-sequences.txt and add
them to the per-character composition rules derived from
emoji-zwj-sequences.txt, rather than adding them as lookback rules for
the skin tone modifiers. This avoids an issue with the application of
such lookback rules. See Bug#39799,
specifically
<https://lists.gnu.org/archive/html/bug-gnu-emacs/2021-09/msg01878.html >
for more details.
* admin/unidata/Makefile.in (zwj): Add emoji-sequences.txt as a dependency.
* admin/unidata/emoji-zwj.awk: Match RGI_Emoji_ZWJ_Sequence and
RGI_Emoji_Modifier_Sequence. Remove manual addition of skin tone
composition rules with lookback.
2021-09-24 13:10:48 +02:00
Robert Pluim
184469df13
Add a few more missing emoji overrides
...
* admin/unidata/blocks.awk: Add some more emoji overrides.
2021-09-24 13:10:48 +02:00
Robert Pluim
fdaae2e7be
Move compose-gstring-for-variation-glyph
...
It logically belongs in composite.el, not japanese.el
* lisp/language/japanese.el (compose-gstring-for-variation-glyph):
Remove from here.
* lisp/composite.el (compose-gstring-for-variation-glyph): And add here.
2021-09-24 13:10:48 +02:00
Robert Pluim
04e236044a
Update provenance comment in charscript.el
...
* admin/unidata/blocks.awk: Update comment about sources used to
generate charscript.el.
2021-09-24 13:10:48 +02:00
Eli Zaretskii
c6fc066bcb
; * etc/NEWS: Fix a recently modified entry.
2021-09-24 14:07:15 +03:00
Stefan Kangas
b4cabc06e2
; * etc/NEWS: Fix typo.
2021-09-24 12:28:10 +02:00
Stefan Kangas
2932592469
; * lisp/emacs-lisp/checkdoc.el (checkdoc-in-abbreviation-p): Doc fix.
2021-09-24 12:28:10 +02:00
Michael Albinus
01e17fd4e9
; Instrument autorevert-tests.el
2021-09-24 09:56:02 +02:00
Eli Zaretskii
4e8e2a18da
; * doc/emacs/glossary.texi (Glossary): Improve the "symbol" entry.
2021-09-24 10:25:08 +03:00
Juri Linkov
c18db73f1c
* lisp/gnus/mm-uu.el (mm-uu-type-alist): Add markdown-diff/-emacs-sources
...
(Bug#50763)
2021-09-24 09:44:47 +03:00
Juri Linkov
2abf143f81
New thing-at-point target 'string' used in context-menu-region
...
* lisp/mouse.el (context-menu-region): Use separate "List" and "String".
* lisp/thingatpt.el (string): New target 'string'.
(thing-at-point-bounds-of-string-at-point): New function.
(thing-at-point-bounds-of-list-at-point): Revert previous commit
by removing optional args 'escape-strings' and 'no-syntax-crossing'.
(list-or-string): Remove recently added target 'list-or-string'.
(thing-at-point-bounds-of-list-or-string-at-point): Remove function.
https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01737.html
2021-09-24 09:29:52 +03:00
Basil L. Contovounesios
4c891b2a05
Pacify recent warnings in ansi-color-tests.el
...
* test/lisp/ansi-color-tests.el: Remove invalid package keyword
'ansi', and unused dependency on cl-lib.
(yellow, bright-yellow): Replace prefix-less dynvars with
corresponding local lexvars.
(test-strings): Rename prefix-less dynvar...
(ansi-color-tests--strings): ...to this. All users updated.
(ansi-color-apply-on-region-test)
(ansi-color-apply-on-region-bold-is-bright-test): Simplify.
(ansi-color-apply-on-region-preserving-test): Reindent.
2021-09-24 00:30:06 +01:00
Lars Ingebrigtsen
6ff8c47cf0
Add `info-lookup-symbol' to the menu
...
* lisp/menu-bar.el (menu-bar-search-documentation-menu): Add entry
for `info-lookup-symbol' (bug#50759).
2021-09-23 23:38:21 +02:00
Lars Ingebrigtsen
794c5a0ba7
Add s Symbol entry in the glossary
...
* doc/emacs/glossary.texi (Glossary): Add an entry for Symbol
(bug#50760).
2021-09-23 23:33:36 +02:00
Konstantin Kharlamov
150fc9c845
Do not count git markers as "deleted lines"
...
* lisp/vc/diff-mode.el (diff-fixup-modifs): Skip "end of patch"
markers that `git-format-patch` leaves around (bug#50761).
2021-09-23 23:25:41 +02:00
Miha Rihtaršič
66d1513762
Fix problems with 'C-c C-n' in sh-script-mode
...
* lisp/progmodes/sh-script.el (sh-shell-process): If a *shell* buffer
doesn't exist, 'C-c C-n' creates one and displays it. This patch
prevents it from being displayed in the selected window.
Additionally, it ensures that the local `sh-shell-process' variable is
set in the correct buffer (bug#50765).
2021-09-23 23:19:11 +02:00
Stefan Kangas
b12b278c2a
checkdoc: Add abbreviation and simplify
...
* lisp/emacs-lisp/checkdoc.el (checkdoc-in-abbreviation-p): Add
abbreviation "a.k.a.". Simplify.
2021-09-23 22:59:20 +02:00
Lars Ingebrigtsen
cee5bda68d
Fix typo in previous man.el change
...
* lisp/man.el (Man-ansi-color-map): Fix typo in last checkin.
2021-09-23 22:57:53 +02:00
Jim Porter
d4a6e42e92
Add support for "bright" ANSI colors in term-mode
...
* list/term.el (ansi-term-color-vector): Add new faces.
(term-color-black, term-color-red, term-color-green, term-color-yellow)
(term-color-blue, term-color-magenta, term-color-cyan, term-color-white):
Inherit from 'ansi-color-COLOR'.
(term-color-bright-black, term-color-bright-red, term-color-bright-green)
(term-color-bright-yellow, term-color-bright-blue)
(term-color-bright-magenta, term-color-bright-cyan)
(term-color-bright-white): New faces.
(term--maybe-brighten-color): New function.
(term-handle-colors-array): Handle bright colors.
* test/lisp/term-tests.el (term-colors, term-colors-bold-is-bright):
New functions.
2021-09-23 22:57:53 +02:00
Jim Porter
ceb9da3b71
Add support for "bright" ANSI colors in ansi-color
...
* lisp/ansi-color.el (ansi-color-bold, ansi-color-faint, ansi-color-italic)
(ansi-color-underline, ansi-color-slow-blink, ansi-color-fast-blink)
(ansi-color-inverse, ansi-color-red, ansi-color-green, ansi-color-yellow)
(ansi-color-blue, ansi-color-magenta, ansi-color-cyan, ansi-color-white)
(ansi-color-bright-red, ansi-color-bright-green, ansi-color-bright-yellow)
(ansi-color-bright-blue, ansi-color-bright-magenta, ansi-color-bright-cyan)
(ansi-color-bright-white): New faces.
(ansi-color-basic-faces-vector, ansi-color-normal-colors-vector)
(ansi-color-bright-colors-vector): New constants.
(ansi-color-faces-vector, ansi-color-names-vector): Make obsolete.
(ansi-color-bold-is-bright): New defcustom.
(ansi-color--find-face): Sort ANSI codes and check
'ansi-color-bold-is-bright'.
(ansi-color-apply-sequence): Support bright ANSI colors.
(ansi-color-make-color-map, ansi-color-map, ansi-color-map-update):
Make obsolete.
(ansi-color-get-face-1): Add BRIGHT parameter.
* lisp/man.el (Man-ansi-color-basic-faces-vector): New variable.
(Man-ansi-color-map): Make obsolete.
(Man-fontify-manpage): Use 'Man-ansi-color-basic-faces-vector' here.
* test/lisp/ansi-color-tests.el
(ansi-color-apply-on-region-bold-is-bright-test): New function.
2021-09-23 22:57:53 +02:00
Stefan Kangas
55083d90a3
Avoid jumping too far in checkdoc-in-abbreviation-p
...
* lisp/emacs-lisp/checkdoc.el (checkdoc-in-abbreviation-p): Use
'forward-ward' instead of 'forward-sexp' to avoid jumping too far in
some situations. (Bug#50731)
* test/lisp/emacs-lisp/checkdoc-tests.el
(checkdoc-tests--abbrev-test): New helper function.
(checkdoc-tests-in-abbrevation-p/basic-case): Rename from
'checkdoc-tests-in-abbrevation-p'.
(checkdoc-tests-in-abbrevation-p/with-parens)
(checkdoc-tests-in-abbrevation-p/with-escaped-parens): Use above new
helper function.
(checkdoc-tests-in-abbrevation-p/single-char)
(checkdoc-tests-in-abbrevation-p/with-em-dash)
(checkdoc-tests-in-abbrevation-p/incorrect-abbreviation): New tests.
2021-09-23 22:35:40 +02:00
Philip Kaludercic
387af85c4d
Handle updates flags when setting flags
...
* nnmaildir.el (nnmaildir--article-set-flags): Handle updated flags
more gracefully
2021-09-23 20:54:40 +02:00
Dmitry Gutov
e646cb4e7a
A bit less overhead when converting hits
...
* lisp/progmodes/xref.el (xref--collect-matches):
Move 'remote-id' and 'syntax-needed' definitions to the caller
function. Bind 'inhibit-modification-hooks' to t (bug#50733).
2021-09-23 21:45:16 +03:00
Eli Zaretskii
0101e86df2
; Fix recently installed documentation
...
* etc/NEWS:
* lisp/thingatpt.el
(thing-at-point-bounds-of-list-or-string-at-point): Clarify
wording of the documentation of 'list-or-string'.
2021-09-23 21:08:19 +03:00
Dmitry Gutov
90a7233199
More per-match overhead reduction
...
* lisp/progmodes/xref.el (xref--show-common-initialize)
(xref-revert-buffer): Inhibit modification hooks (bug#50733).
(xref--insert-xrefs): Cosmetics (no measurable difference here).
2021-09-23 20:37:11 +03:00
Dmitry Gutov
d0e9b88bf7
xref-matches-in-files: Decrease per match and per group overhead
...
* lisp/progmodes/xref.el (xref-search-program-alist):
Add '--null' argument for slightly faster parsing and probably
better behavior with weirder file names.
(xref--alistify): Don't accept TEST argument, use 'assoc' instead
of 'cl-assoc', use a tash table during sorting (bug#50733).
2021-09-23 20:37:10 +03:00