]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoAdapt Tramp's make-process for macOS.
Michael Albinus [Sun, 26 Sep 2021 08:32:15 +0000 (10:32 +0200)]
Adapt Tramp's make-process for macOS.

* lisp/net/tramp-sh.el (tramp-check-remote-uname): New defun.
(tramp-sh-handle-file-ownership-preserved-p)
(tramp-sh-handle-make-process, tramp-find-executable)
(tramp-find-shell, tramp-get-remote-stat): Use it.  (Bug#50748)

* test/lisp/net/tramp-tests.el (tramp-check-remote-uname): Declare.
(tramp-test29-start-file-process, tramp-test30-make-process):
Instrument for macOS.
(tramp--test-hpux-p): Adapt function.
(tramp--test-macos-p): New defun.

3 years agoExpand the ` doc string slightly
Lars Ingebrigtsen [Sun, 26 Sep 2021 06:47:08 +0000 (08:47 +0200)]
Expand the ` doc string slightly

* lisp/emacs-lisp/backquote.el (backquote): Note that ` is used
for other things in some macros (bug#25462).

3 years agoFix rendering non-ASCII text with links
Lars Ingebrigtsen [Sun, 26 Sep 2021 06:29:38 +0000 (08:29 +0200)]
Fix rendering non-ASCII text with links

* lisp/gnus/mm-view.el (mm-text-html-renderer-alist): Add a new
form for links.
(mm-links-remove-leading-blank): Make obsolete.
(mm-inline-wash-with-file):
(mm-inline-render-with-file): Make obsolete -- they were awkwardly
defined and only used with links.
(mm-inline-render-with-links): New function.

3 years agoAdd new macro with-environment-variables
Lars Ingebrigtsen [Sun, 26 Sep 2021 06:27:51 +0000 (08:27 +0200)]
Add new macro with-environment-variables

* doc/lispref/os.texi (System Environment): Document it.

* lisp/env.el (with-environment-variables): New macro.

3 years agoRevert "; Fix capitalization of F1..F12 keys in docs"
Stefan Kangas [Sat, 25 Sep 2021 20:49:47 +0000 (22:49 +0200)]
Revert "; Fix capitalization of F1..F12 keys in docs"

This reverts commit fe5b20410f68546821e6c87577d7f826167491dc.

This change was not correct; these are Lisp symbols that should be in
lower-case.  Problem reported by Mattias Engdegård <mattiase@acm.org>.

3 years ago; Bump seq version to 2.23
Stefan Kangas [Sat, 25 Sep 2021 19:44:44 +0000 (21:44 +0200)]
; Bump seq version to 2.23

3 years agoRevert part of previous doc fix
Stefan Kangas [Sat, 25 Sep 2021 19:25:58 +0000 (21:25 +0200)]
Revert part of previous doc fix

* lisp/emacs-lisp/derived.el (define-derived-mode): Revert part of
previous doc fix.  This change made the text confusing.  (Bug#17567)

3 years ago* lisp/tab-bar.el (tab-bar-new-tab-to): Use ignore-window-parameters.
Juri Linkov [Sat, 25 Sep 2021 19:24:48 +0000 (22:24 +0300)]
* lisp/tab-bar.el (tab-bar-new-tab-to): Use ignore-window-parameters.

Suggested by Adam Porter <adam@alphapapa.net> in
https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01758.html

3 years ago* lisp/tab-line.el: Add modified-buffer face
Adam Porter [Fri, 24 Sep 2021 04:47:56 +0000 (04:47 +0000)]
* lisp/tab-line.el: Add modified-buffer face

(tab-line-tab-modified): New face.
(tab-line-tab-face-modified): New function.
(tab-line-tab-face-functions): Use new function.

* etc/NEWS: Update.

3 years ago; Fix capitalization of F1..F12 keys in docs
Stefan Kangas [Sat, 25 Sep 2021 18:51:13 +0000 (20:51 +0200)]
; Fix capitalization of F1..F12 keys in docs

* doc/emacs/custom.texi (Function Keys):
* doc/misc/edt.texi (Unix):
* doc/misc/idlwave.texi (Custom Expression Examination):
* doc/misc/viper.texi (Improved Search, Vi Macros): Fix
capitalization of F1..F12 keys.

3 years ago; * lisp/wid-edit.el (natnum): rectify tag string
Mattias Engdegård [Sat, 25 Sep 2021 18:27:28 +0000 (20:27 +0200)]
; * lisp/wid-edit.el (natnum): rectify tag string

3 years agoFix byte-compiler crash for legal dynamic-binding code
Mattias Engdegård [Sat, 25 Sep 2021 10:15:21 +0000 (12:15 +0200)]
Fix byte-compiler crash for legal dynamic-binding code

This should really be taken care of by a syntax normalisation step in
the frontend, but there is no such step for non-lexbind code yet.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-letX): Tolerate bindingsa
without initialising expressions.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add test cases.

3 years ago; * doc/emacs/help.texi (Misc Help): @key{f1} -> @key{F1}
Mattias Engdegård [Sat, 25 Sep 2021 07:09:58 +0000 (09:09 +0200)]
; * doc/emacs/help.texi (Misc Help): @key{f1} -> @key{F1}

3 years agoConstant-propagate variables bound outside loops
Mattias Engdegård [Wed, 22 Sep 2021 09:03:30 +0000 (11:03 +0200)]
Constant-propagate variables bound outside loops

Previously, variables bound outside `while` loops were not substituted
inside even in the absense of mutation.  Add the necessary mutation
checking inside loops to allow propagation of values and aliased
variables.

* lisp/emacs-lisp/byte-opt.el
(byte-optimize--inhibit-outside-loop-constprop): New variable.
(byte-optimize-form-code-walker): First traverse each loop without
substitution to discover mutation, then without restrictions.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-test-loop): New.
(bytecomp-tests--test-cases): Add test cases.

3 years ago; Remove various duplicated words
Mattias Engdegård [Fri, 24 Sep 2021 12:18:57 +0000 (14:18 +0200)]
; Remove various duplicated words

* doc/lispref/searching.texi (Extending Rx):
* doc/lispref/strings.texi (Creating Strings):
* doc/misc/modus-themes.org (Measure color contrast (DIY)):
* etc/NEWS:
* lisp/find-file.el (ff-find-other-file):
* lisp/gnus/gnus-group.el (gnus-group-suspend):
* lisp/progmodes/cc-langs.el (c-ml-string-any-closer-re):
* lisp/progmodes/flymake.el (flymake-list-only-diagnostics):
* lisp/progmodes/xref.el (xref--group-name-for-display):
* lisp/transient.el (transient-child, transient-files)
(transient-infix-value):
* src/alloc.c:
* src/regex-emacs.c (regex_compile):

Remove duplicate words in comments, documentation etc.

3 years agoUse ambient lexical-binding value in ert-deftest body (bug#50738)
Mattias Engdegård [Thu, 23 Sep 2021 12:02:21 +0000 (14:02 +0200)]
Use ambient lexical-binding value in ert-deftest body (bug#50738)

* lisp/emacs-lisp/ert.el (ert-deftest):
Evaluate the body of `ert-deftest` with the `lexical-binding` value of
the source file (or more precisely the value in force when the
definition is evaluated), which is what everyone expected, instead of
always using dynamic binding which is what they got until now.
* test/lisp/emacs-lisp/ert-tests.el
(ert-test-deftest-lexical-binding-t): New test.

3 years agoRenege on anonymous &rest (bug#50268, bug#50720)
Mattias Engdegård [Thu, 23 Sep 2021 10:43:41 +0000 (12:43 +0200)]
Renege on anonymous &rest (bug#50268, bug#50720)

Allowing &rest without a variable name following turned out not to be
very useful, and it never worked properly.  Disallow it.

* lisp/emacs-lisp/bytecomp.el (byte-compile-check-lambda-list):
* src/eval.c (funcall_lambda):
Signal error for &rest without variable name.
* doc/lispref/functions.texi (Argument List): Adjust manual.
* etc/NEWS (file): Announce.
* test/src/eval-tests.el (eval-tests--bugs-24912-and-24913):
Extend test, also checking with and without lexical binding.
(eval-tests-accept-empty-optional-rest): Reduce to...
(eval-tests-accept-empty-optional): ...this, again checking
with and without lexical binding.

3 years agoClarify define-derived-mode docstring
Stefan Kangas [Sat, 25 Sep 2021 16:59:37 +0000 (18:59 +0200)]
Clarify define-derived-mode docstring

* lisp/emacs-lisp/derived.el (define-derived-mode): Doc fixes;
correctly mention that the mode name is used in the mode line, clarify
argument types, and how the mode hook is named.  (Bug17567)

(derived-mode-hook-name, derived-mode-map-name)
(derived-mode-syntax-table-name, derived-mode-abbrev-table-name):
Clarify that argument is a symbol.

3 years ago; Fix typo in ert.texi
Michael Albinus [Sat, 25 Sep 2021 16:50:32 +0000 (18:50 +0200)]
; Fix typo in ert.texi

3 years agoAdd myself as rcirc maintainer
Philip Kaludercic [Sat, 25 Sep 2021 16:32:33 +0000 (18:32 +0200)]
Add myself as rcirc maintainer

3 years ago* rcirc.el (rcirc-sentinel): Use process-status
Philip Kaludercic [Sat, 25 Sep 2021 15:59:52 +0000 (17:59 +0200)]
* rcirc.el (rcirc-sentinel): Use process-status

3 years ago* rcirc.texi (Using rcirc with bouncers): Remove confusing sentence
Philip Kaludercic [Sat, 25 Sep 2021 14:49:26 +0000 (16:49 +0200)]
* rcirc.texi (Using rcirc with bouncers): Remove confusing sentence

3 years ago* rcirc.el (rcirc-reconnect): Use rcirc-reconnect-delay
Philip Kaludercic [Sat, 25 Sep 2021 14:27:12 +0000 (16:27 +0200)]
* rcirc.el (rcirc-reconnect): Use rcirc-reconnect-delay

3 years ago* rcirc.el (rcirc-reconnect): Set rcirc-joined
Philip Kaludercic [Sat, 25 Sep 2021 14:25:03 +0000 (16:25 +0200)]
* rcirc.el (rcirc-reconnect): Set rcirc-joined

3 years ago* lisp/isearch.el (isearch-forward-regexp): Doc fix. (Bug22483)
Stefan Kangas [Sat, 25 Sep 2021 16:07:24 +0000 (18:07 +0200)]
* lisp/isearch.el (isearch-forward-regexp): Doc fix.  (Bug22483)

3 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 25 Sep 2021 15:57:17 +0000 (18:57 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

3 years ago; Another minor improvement in ERT manual
Eli Zaretskii [Sat, 25 Sep 2021 15:56:02 +0000 (18:56 +0300)]
; Another minor improvement in ERT manual

* doc/misc/ert.texi (Running Tests Interactively): State the
function run by each key, per conventions.

3 years agoMinor clarification of define-minor-mode :keymap argument
Stefan Kangas [Sat, 25 Sep 2021 15:54:49 +0000 (17:54 +0200)]
Minor clarification of define-minor-mode :keymap argument

* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Minor doc fix;
clarify by saying that ":keymap" should be an "unquoted variable
name".  (Bug#25505)

3 years ago; * doc/misc/ert.texi (Running Tests Interactively): Fix markup.
Eli Zaretskii [Sat, 25 Sep 2021 15:46:33 +0000 (18:46 +0300)]
; * doc/misc/ert.texi (Running Tests Interactively): Fix markup.

3 years agoButtonize functions in curved quotes in ERC
Stefan Kangas [Sat, 25 Sep 2021 15:03:13 +0000 (17:03 +0200)]
Buttonize functions in curved quotes in ERC

* lisp/erc/erc-button.el (erc-button-alist): Buttonize Emacs
functions in curved quotes.  (Bug#49964)

3 years agoExtend and improve ERT manual section on running interactively
Stefan Kangas [Sat, 25 Sep 2021 14:55:04 +0000 (16:55 +0200)]
Extend and improve ERT manual section on running interactively

* doc/misc/ert.texi (Running Tests Interactively): Format commands in
a table, improve indexing, and add several missing
commands.  (Bug#41829)

3 years ago; * lisp/mh-e/mh-scan.el: re-order variables to be actually alphabetical
Stephen Gildea [Sat, 25 Sep 2021 14:18:50 +0000 (07:18 -0700)]
; * lisp/mh-e/mh-scan.el: re-order variables to be actually alphabetical

3 years agoUpdate mh-scan regexp to match mh-note-allowlisted
Stephen Gildea [Sat, 25 Sep 2021 14:07:52 +0000 (07:07 -0700)]
Update mh-scan regexp to match mh-note-allowlisted

lisp/mh-e/mh-scan.el (mh-scan-good-msg-regexp, mh-scan-cmd-note-width):
Update to match new value ("A") of mh-note-allowlisted.

3 years ago; Fix omission in recent CONTRIBUTE doc change.
Basil L. Contovounesios [Sat, 25 Sep 2021 13:41:24 +0000 (14:41 +0100)]
; Fix omission in recent CONTRIBUTE doc change.

3 years ago; More instrumentation in autorevert-tests.el
Michael Albinus [Sat, 25 Sep 2021 10:20:46 +0000 (12:20 +0200)]
; More instrumentation in autorevert-tests.el

3 years agoDocument the new paren-space indentation rule
Lars Ingebrigtsen [Sat, 25 Sep 2021 10:11:26 +0000 (12:11 +0200)]
Document the new paren-space indentation rule

* doc/emacs/programs.texi (Lisp Indent): Mention the new
paren-space indentation rule.

3 years agoSome NEWS tagging
Lars Ingebrigtsen [Sat, 25 Sep 2021 09:57:13 +0000 (11:57 +0200)]
Some NEWS tagging

3 years ago'xref-search-program'-related doc string fixes
Lars Ingebrigtsen [Sat, 25 Sep 2021 09:54:13 +0000 (11:54 +0200)]
'xref-search-program'-related doc string fixes

* lisp/progmodes/xref.el (xref-search-program): Mention what this
variable controls.
(xref-matches-in-files): Mention the variables that controls it.

3 years agoDocument the 'string' thingatpt target
Lars Ingebrigtsen [Sat, 25 Sep 2021 09:45:30 +0000 (11:45 +0200)]
Document the 'string' thingatpt target

* doc/lispref/text.texi (Buffer Contents): Mention the 'string'
target.

3 years agoFix cursor motion around some Emoji sequences
Eli Zaretskii [Sat, 25 Sep 2021 09:18:27 +0000 (12:18 +0300)]
Fix cursor motion around some Emoji sequences

* src/character.h: Add TAG_SPACE and CANCEL_TAG to known Unicode
characters values.
* src/composite.c (char_composable_p): Recognize TAG characters
relevant to Emoji as composable regardless of their General
Category.  (Bug#39799)

3 years ago; Improve text about 'CONTRIBUTE'
Eli Zaretskii [Sat, 25 Sep 2021 07:45:38 +0000 (10:45 +0300)]
; Improve text about 'CONTRIBUTE'

* doc/emacs/trouble.texi (Contributing): Expand the
recently-changed text.

3 years agoUse explicit man-page section in references
Eli Zaretskii [Sat, 25 Sep 2021 07:30:27 +0000 (10:30 +0300)]
Use explicit man-page section in references

* lisp/dired-aux.el (dired-do-chmod): Use explicit man-page
section in the doc string.  This avoids inadvertently showing
the wrong man page, when several identically-named pages are
possible in different sections.  E.g., there's also chmod(2).

3 years ago; Improve recently added documentation
Eli Zaretskii [Sat, 25 Sep 2021 06:59:53 +0000 (09:59 +0300)]
; Improve recently added documentation

* etc/NEWS:
* doc/lispref/tips.texi (Documentation Tips): Improve and clarify
recently-added documentation of man page references.

3 years agosave-some-buffers-root doc string change
Lars Ingebrigtsen [Sat, 25 Sep 2021 05:32:48 +0000 (07:32 +0200)]
save-some-buffers-root doc string change

* lisp/files.el (save-some-buffers-root): Improve doc string.

3 years agoDo some NEWS tagging
Lars Ingebrigtsen [Sat, 25 Sep 2021 05:24:39 +0000 (07:24 +0200)]
Do some NEWS tagging

3 years agoDocument redisplay-skip-fontification-on-input
Lars Ingebrigtsen [Sat, 25 Sep 2021 05:22:07 +0000 (07:22 +0200)]
Document redisplay-skip-fontification-on-input

* doc/emacs/display.texi (Scrolling): Mention
redisplay-skip-fontification-on-input.

3 years ago; * doc/misc/gnus.texi (Gnus Registry Setup): Fix missing parenthesis.
Bastien Guerry [Sat, 25 Sep 2021 05:15:31 +0000 (07:15 +0200)]
; * doc/misc/gnus.texi (Gnus Registry Setup): Fix missing parenthesis.

3 years ago; tramp-auto-save-directory: set mode atomically when creating
Stephen Gildea [Sat, 25 Sep 2021 04:59:17 +0000 (21:59 -0700)]
; 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.

3 years agoAdd new user option ispell-help-timeout
Lars Ingebrigtsen [Sat, 25 Sep 2021 02:22:57 +0000 (04:22 +0200)]
Add new user option ispell-help-timeout

* lisp/textmodes/ispell.el (ispell-help-timeout): New user option.
(ispell-help): Use it.

3 years agoSet :type of suggest-key-bindings to natnum
Stefan Kangas [Fri, 24 Sep 2021 23:25:47 +0000 (01:25 +0200)]
Set :type of suggest-key-bindings to natnum

* lisp/simple.el (suggest-key-bindings): Set :type to
natnum.  (Bug#15809)

3 years agoNew :type natnum for defcustom
Stefan Kangas [Fri, 24 Sep 2021 23:15:49 +0000 (01:15 +0200)]
New :type natnum for defcustom

* lisp/wid-edit.el (natnum): New widget type.  (Bug#15809)
* doc/lispref/customize.texi (Simple Types): Document it.

3 years ago* lisp/dired-aux.el (dired-do-chmod): Simplify docstring.
Stefan Kangas [Sat, 25 Sep 2021 02:00:09 +0000 (04:00 +0200)]
* lisp/dired-aux.el (dired-do-chmod): Simplify docstring.

3 years agoAdd support for man page hyperlinks in doc strings
Stefan Kangas [Sat, 25 Sep 2021 01:03:34 +0000 (03:03 +0200)]
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)

3 years agoFix some instances in the Emacs manual with misleading prefix syntax
Lars Ingebrigtsen [Sat, 25 Sep 2021 01:59:42 +0000 (03:59 +0200)]
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).

3 years agoMake 'C-u C-x v v' handle unregistered files.
Manuel Giraud [Sat, 25 Sep 2021 01:38:43 +0000 (03:38 +0200)]
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).

3 years agoMention the 'r' key in ask-user-about-supersession-help
Daniel Martín [Fri, 24 Sep 2021 13:32:01 +0000 (15:32 +0200)]
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)

3 years agoIndent bodies of local function definitions properly in elisp-mode
akater [Sat, 25 Sep 2021 01:27:29 +0000 (03:27 +0200)]
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).

3 years agoClarify where to find CONTRIBUTE
Stefan Kangas [Sat, 25 Sep 2021 01:24:14 +0000 (03:24 +0200)]
Clarify where to find CONTRIBUTE

* doc/emacs/trouble.texi (Contributing): Say that CONTRIBUTE is
found in the development version of Emacs.  (Bug#37414)

3 years agoUse gzip to uncompess .xz files on MacOS
Lars Ingebrigtsen [Sat, 25 Sep 2021 01:05:27 +0000 (03:05 +0200)]
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).

3 years agoUse `temporary-file-directory' in `with-existing-directory'
Lars Ingebrigtsen [Sat, 25 Sep 2021 00:55:55 +0000 (02:55 +0200)]
Use `temporary-file-directory' in `with-existing-directory'

* lisp/subr.el (with-existing-directory): Use
`temporary-file-directory' over TMPDIR.

3 years agoFix alignment on font size change in tabulated-list-mode
Stefan Kangas [Fri, 24 Sep 2021 22:33:21 +0000 (00:33 +0200)]
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)

3 years agoDoc fix; cl-random is only pseudo-random
Stefan Kangas [Fri, 24 Sep 2021 22:05:55 +0000 (00:05 +0200)]
Doc fix; cl-random is only pseudo-random

* lisp/emacs-lisp/cl-extra.el (cl-random): Doc fix; say it's only
pseudo-random.

3 years agocheckdoc: Don't ask to disambiguate mode names
Stefan Kangas [Fri, 24 Sep 2021 21:42:08 +0000 (23:42 +0200)]
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)

3 years agoFix recently introduced bug in checkdoc
Stefan Kangas [Fri, 24 Sep 2021 21:00:57 +0000 (23:00 +0200)]
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.

3 years agoRevert change to use seq-random-elt in Tramp test
Stefan Kangas [Fri, 24 Sep 2021 20:17:04 +0000 (22:17 +0200)]
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.

3 years agocheckdoc: Improve wide line warning to decrease false positives
Stefan Kangas [Fri, 24 Sep 2021 20:04:55 +0000 (22:04 +0200)]
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.

3 years agoUse command substitution instead of raw keys in more places
Stefan Kangas [Fri, 24 Sep 2021 18:59:32 +0000 (20:59 +0200)]
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.

3 years agoPrefer seq-random-elt to nth+random
Stefan Kangas [Fri, 24 Sep 2021 17:41:03 +0000 (19:41 +0200)]
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.

3 years agoFix auto-revert-test05-global-notify
Michael Albinus [Fri, 24 Sep 2021 16:09:49 +0000 (18:09 +0200)]
Fix auto-revert-test05-global-notify

* test/lisp/autorevert-tests.el (auto-revert-test05-global-notify):
Adapt test for killed buffer.

3 years ago; * doc/misc/tramp.texi: Grammar fixes for process-connection-type
Robert Pluim [Fri, 24 Sep 2021 11:31:32 +0000 (13:31 +0200)]
; * doc/misc/tramp.texi: Grammar fixes for process-connection-type

3 years ago; * etc/NEWS: improve some recently added entries
Robert Pluim [Fri, 24 Sep 2021 11:30:10 +0000 (13:30 +0200)]
; * etc/NEWS: improve some recently added entries

3 years agoGenerate skin tone compositions from emoji-sequences.txt
Robert Pluim [Thu, 23 Sep 2021 09:31:46 +0000 (11:31 +0200)]
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.

3 years agoAdd a few more missing emoji overrides
Robert Pluim [Fri, 24 Sep 2021 11:05:05 +0000 (13:05 +0200)]
Add a few more missing emoji overrides

* admin/unidata/blocks.awk: Add some more emoji overrides.

3 years agoMove compose-gstring-for-variation-glyph
Robert Pluim [Tue, 21 Sep 2021 15:46:32 +0000 (17:46 +0200)]
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.

3 years agoUpdate provenance comment in charscript.el
Robert Pluim [Thu, 23 Sep 2021 09:22:00 +0000 (11:22 +0200)]
Update provenance comment in charscript.el

* admin/unidata/blocks.awk: Update comment about sources used to
generate charscript.el.

3 years ago; * etc/NEWS: Fix a recently modified entry.
Eli Zaretskii [Fri, 24 Sep 2021 11:07:15 +0000 (14:07 +0300)]
; * etc/NEWS: Fix a recently modified entry.

3 years ago; * etc/NEWS: Fix typo.
Stefan Kangas [Fri, 24 Sep 2021 10:26:09 +0000 (12:26 +0200)]
; * etc/NEWS: Fix typo.

3 years ago; * lisp/emacs-lisp/checkdoc.el (checkdoc-in-abbreviation-p): Doc fix.
Stefan Kangas [Thu, 23 Sep 2021 21:01:25 +0000 (23:01 +0200)]
; * lisp/emacs-lisp/checkdoc.el (checkdoc-in-abbreviation-p): Doc fix.

3 years ago; Instrument autorevert-tests.el
Michael Albinus [Fri, 24 Sep 2021 07:56:02 +0000 (09:56 +0200)]
; Instrument autorevert-tests.el

3 years ago; * doc/emacs/glossary.texi (Glossary): Improve the "symbol" entry.
Eli Zaretskii [Fri, 24 Sep 2021 07:25:08 +0000 (10:25 +0300)]
; * doc/emacs/glossary.texi (Glossary): Improve the "symbol" entry.

3 years ago* lisp/gnus/mm-uu.el (mm-uu-type-alist): Add markdown-diff/-emacs-sources
Juri Linkov [Fri, 24 Sep 2021 06:44:47 +0000 (09:44 +0300)]
* lisp/gnus/mm-uu.el (mm-uu-type-alist): Add markdown-diff/-emacs-sources

(Bug#50763)

3 years agoNew thing-at-point target 'string' used in context-menu-region
Juri Linkov [Fri, 24 Sep 2021 06:29:52 +0000 (09:29 +0300)]
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

3 years agoPacify recent warnings in ansi-color-tests.el
Basil L. Contovounesios [Thu, 23 Sep 2021 23:30:06 +0000 (00:30 +0100)]
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.

3 years agoAdd `info-lookup-symbol' to the menu
Lars Ingebrigtsen [Thu, 23 Sep 2021 21:38:21 +0000 (23:38 +0200)]
Add `info-lookup-symbol' to the menu

* lisp/menu-bar.el (menu-bar-search-documentation-menu): Add entry
for `info-lookup-symbol' (bug#50759).

3 years agoAdd s Symbol entry in the glossary
Lars Ingebrigtsen [Thu, 23 Sep 2021 21:33:36 +0000 (23:33 +0200)]
Add s Symbol entry in the glossary

* doc/emacs/glossary.texi (Glossary): Add an entry for Symbol
(bug#50760).

3 years agoDo not count git markers as "deleted lines"
Konstantin Kharlamov [Thu, 23 Sep 2021 21:25:41 +0000 (23:25 +0200)]
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).

3 years agoFix problems with 'C-c C-n' in sh-script-mode
Miha Rihtaršič [Thu, 23 Sep 2021 21:18:40 +0000 (23:18 +0200)]
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).

3 years agocheckdoc: Add abbreviation and simplify
Stefan Kangas [Thu, 23 Sep 2021 20:58:12 +0000 (22:58 +0200)]
checkdoc: Add abbreviation and simplify

* lisp/emacs-lisp/checkdoc.el (checkdoc-in-abbreviation-p): Add
abbreviation "a.k.a.".  Simplify.

3 years agoFix typo in previous man.el change
Lars Ingebrigtsen [Thu, 23 Sep 2021 20:57:49 +0000 (22:57 +0200)]
Fix typo in previous man.el change

* lisp/man.el (Man-ansi-color-map): Fix typo in last checkin.

3 years agoAdd support for "bright" ANSI colors in term-mode
Jim Porter [Thu, 23 Sep 2021 01:39:52 +0000 (18:39 -0700)]
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.

3 years agoAdd support for "bright" ANSI colors in ansi-color
Jim Porter [Thu, 23 Sep 2021 01:37:52 +0000 (18:37 -0700)]
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.

3 years agoAvoid jumping too far in checkdoc-in-abbreviation-p
Stefan Kangas [Thu, 23 Sep 2021 19:10:08 +0000 (21:10 +0200)]
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.

3 years agoHandle updates flags when setting flags
Philip Kaludercic [Wed, 15 Sep 2021 08:58:50 +0000 (10:58 +0200)]
Handle updates flags when setting flags

* nnmaildir.el (nnmaildir--article-set-flags): Handle updated flags
  more gracefully

3 years agoA bit less overhead when converting hits
Dmitry Gutov [Thu, 23 Sep 2021 18:40:36 +0000 (21:40 +0300)]
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).

3 years ago; Fix recently installed documentation
Eli Zaretskii [Thu, 23 Sep 2021 18:08:19 +0000 (21:08 +0300)]
; 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'.

3 years agoMore per-match overhead reduction
Dmitry Gutov [Thu, 23 Sep 2021 17:36:59 +0000 (20:36 +0300)]
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).

3 years agoxref-matches-in-files: Decrease per match and per group overhead
Dmitry Gutov [Thu, 23 Sep 2021 16:08:36 +0000 (19:08 +0300)]
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).

3 years agoFix string-distance for two empty strings
Philip Kaludercic [Thu, 23 Sep 2021 16:12:41 +0000 (18:12 +0200)]
Fix string-distance for two empty strings

* fns.c (Fstring_distance): Avoid using uninitialized memory.
* test/src/fns-tests.el (test-string-distance): Add test cases.

3 years ago* lisp/mouse.el (context-menu-region): Use save-excursion for syntax-ppss.
Juri Linkov [Thu, 23 Sep 2021 16:52:49 +0000 (19:52 +0300)]
* lisp/mouse.el (context-menu-region): Use save-excursion for syntax-ppss.

3 years agoNew thing-at-point target 'list-or-string' used in context-menu-region
Juri Linkov [Thu, 23 Sep 2021 16:32:36 +0000 (19:32 +0300)]
New thing-at-point target 'list-or-string' used in context-menu-region

* lisp/mouse.el (context-menu-region): Rearrange the order to
All>Defun>List>Line>Symbol.  Show title either "List" or "String"
depending on syntax-ppss, then use thing 'list-or-string' (bug#9054).

* lisp/thingatpt.el (thing-at-point-bounds-of-list-at-point): Add optional
args 'escape-strings' and 'no-syntax-crossing' like in 'up-list'.
(list-or-string): New target 'list-or-string'.
(thing-at-point-bounds-of-list-or-string-at-point): New function.