]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years ago* doc/misc/tramp.texi (Bug Reports): Describe, how to activate ELPA Tramp.
Michael Albinus [Mon, 11 Oct 2021 08:16:06 +0000 (10:16 +0200)]
* doc/misc/tramp.texi (Bug Reports): Describe, how to activate ELPA Tramp.

3 years ago; Fix typo in test/Makefile.in
Michael Albinus [Thu, 7 Oct 2021 12:15:01 +0000 (14:15 +0200)]
; Fix typo in test/Makefile.in

3 years agoFix syntax error in previous gnus-registry-install-shortcuts change
Lars Ingebrigtsen [Thu, 7 Oct 2021 07:33:29 +0000 (09:33 +0200)]
Fix syntax error in previous gnus-registry-install-shortcuts change

* lisp/gnus/gnus-registry.el (gnus-registry-install-shortcuts):
Fix syntax error in previous change.

3 years ago* lisp/net/tramp-archive.el (tramp-archive-autoload-file-name-handler): Scope
Stefan Monnier [Wed, 6 Oct 2021 16:15:26 +0000 (12:15 -0400)]
* lisp/net/tramp-archive.el (tramp-archive-autoload-file-name-handler): Scope

Fix the scoping of `tramp-archive-enabled`.

3 years agoMerge from origin/emacs-28
Glenn Morris [Wed, 6 Oct 2021 14:50:33 +0000 (07:50 -0700)]
Merge from origin/emacs-28

1ccd3eb721 (origin/emacs-28) ; Fix typo in etc/NEWS
0f28ee94ac * NEWS: Mention rcirc connects to #emacs by default
aacafbe267 Refactor mh-utils-tests macro 'with-mh-test-env'
ead5c5cc51 Avoid using variable before it has been initialized
b2c50d7cf3 Clarify docstring of blink-matching-paren
d2a34cabcf ; Very minor touch-up to a recent change
36a7ce4393 ; * doc/emacs/trouble.texi (After a Crash): Fix typo.
1cd1b2835b * doc/misc/gnus.texi (Loose Threads): Use regexp-opt in ex...
9f041cdfac Bump project.el version
ad2287e659 Retain compatibility with older project.el projects
d86b2e59c7 native-comp-available-p is the definitive test
1b383ac424 Minor fix of a recently installed documentation change
4d76765b6c Fix md5 issue in recent Gnulib merge
18308b739a Tweak recent 'configure' fix

# Conflicts:
# etc/NEWS

3 years agoReparent `gnus-article-mode-map' again
Lars Ingebrigtsen [Wed, 6 Oct 2021 11:19:13 +0000 (13:19 +0200)]
Reparent `gnus-article-mode-map' again

* lisp/gnus/gnus-art.el (:keymap): Make `button-buffer-map' the
parent of `gnus-article-mode-map' again.

3 years agoAdd new major mode 'clean-mode'
Lars Ingebrigtsen [Wed, 6 Oct 2021 10:55:17 +0000 (12:55 +0200)]
Add new major mode 'clean-mode'

* doc/lispref/modes.texi (Major Modes): Document it.

* lisp/simple.el (clean-mode): New major mode.

3 years agoAdd an optional parameter to kill-all-local-variables
Lars Ingebrigtsen [Wed, 6 Oct 2021 10:53:07 +0000 (12:53 +0200)]
Add an optional parameter to kill-all-local-variables

* doc/lispref/variables.texi (Creating Buffer-Local): Document it
(bug#30204).

* src/buffer.c (Fkill_all_local_variables): Allow killing
permanent local variables, too.

* src/print.c (temp_output_buffer_setup):
* src/minibuf.c (set_minibuffer_mode): Adjust callers.

3 years ago* admin/notes/emba (Emacs jobset): Update.
Michael Albinus [Wed, 6 Oct 2021 10:24:45 +0000 (12:24 +0200)]
* admin/notes/emba (Emacs jobset): Update.

* test/infra/gitlab-ci.yml (.test-template): Uncomment
'allow_failure', it isn't needed anymore.

3 years agoMake unused macro gnus-local-set-keys obsolete
Lars Ingebrigtsen [Wed, 6 Oct 2021 10:07:33 +0000 (12:07 +0200)]
Make unused macro gnus-local-set-keys obsolete

* lisp/gnus/gnus-util.el (gnus-local-set-keys): Make obsolete.

3 years agoMake unused gnus-define-keys-safe macro obsolete
Lars Ingebrigtsen [Wed, 6 Oct 2021 10:05:38 +0000 (12:05 +0200)]
Make unused gnus-define-keys-safe macro obsolete

* lisp/gnus/gnus-util.el (gnus-define-keys-safe): Make obsolete.

3 years agoUse `define-keymap' in gnus-registry-install-shortcuts
Lars Ingebrigtsen [Wed, 6 Oct 2021 10:04:37 +0000 (12:04 +0200)]
Use `define-keymap' in gnus-registry-install-shortcuts

* lisp/gnus/gnus-registry.el (gnus-registry-install-shortcuts):
Use `define-keymap'.

3 years agoMake `gnus-define-keymap' obsolete and adjust caller
Lars Ingebrigtsen [Wed, 6 Oct 2021 10:01:43 +0000 (12:01 +0200)]
Make `gnus-define-keymap' obsolete and adjust caller

* lisp/gnus/gnus-kill.el (gnus-kill-file-mode-map): Use
`define-keymap'.

* lisp/gnus/gnus-util.el (gnus-define-keymap): Make obsolete.

3 years agoFix gnus-start.el compilation warning
Lars Ingebrigtsen [Wed, 6 Oct 2021 09:58:16 +0000 (11:58 +0200)]
Fix gnus-start.el compilation warning

* lisp/gnus/gnus-start.el (gnus-save-newsrc-file-last-timestamp):
Move to avoid a compilation warning.

3 years agoFinish conversion of Gnus from `gnus-define-keys'
Lars Ingebrigtsen [Wed, 6 Oct 2021 09:57:22 +0000 (11:57 +0200)]
Finish conversion of Gnus from `gnus-define-keys'

* lisp/gnus/gnus-undo.el (gnus-undo-mode-map):
* lisp/gnus/gnus-salt.el (gnus-pick-mode-map):
(gnus-binary-mode-map):
(gnus-tree-mode-map):
* lisp/gnus/gnus-msg.el (gnus-summary-send-map):
* lisp/gnus/gnus-ml.el (gnus-mailing-list-mode-map):
* lisp/gnus/gnus-icalendar.el (gnus-icalendar-setup):
* lisp/gnus/gnus-art.el (gnus-article-mode-map):
(gnus-article-edit-mode-map): Use `define-keymap' instead of
* `gnus-define-keys'.

3 years agoClear gnus-save-newsrc-file-last-timestamp on start and exit
Lars Ingebrigtsen [Wed, 6 Oct 2021 09:18:16 +0000 (11:18 +0200)]
Clear gnus-save-newsrc-file-last-timestamp on start and exit

* lisp/gnus/gnus-start.el (gnus-clear-system): Clear
`gnus-save-newsrc-file-last-timestamp' on start and exit (bug#51053).

3 years agoImprove finding external documents in reftext
Arash Esbati [Wed, 6 Oct 2021 09:14:45 +0000 (11:14 +0200)]
Improve finding external documents in reftext

* lisp/textmodes/reftex-parse.el (reftex-parse-from-file): Extend
regexp in order to support \externalcitedocument macro and a
second optional argument provided by LaTeX package xr-hyper
(bug#51054).

3 years ago; Fix typo in etc/NEWS
Michael Albinus [Wed, 6 Oct 2021 08:57:02 +0000 (10:57 +0200)]
; Fix typo in etc/NEWS

3 years agoAdd tests for incomplete escape sequences in ansi-color-tests
Miha Rihtaršič [Tue, 5 Oct 2021 10:20:45 +0000 (12:20 +0200)]
Add tests for incomplete escape sequences in ansi-color-tests

* test/lisp/ansi-color-tests.el
(ansi-color-tests-equal-props): New function.
(ansi-color-incomplete-sequences-test): New ert test (bug#50806).

3 years agoDocumentation fixes for recent ansi-color additions
Miha Rihtaršič [Tue, 5 Oct 2021 09:14:22 +0000 (11:14 +0200)]
Documentation fixes for recent ansi-color additions

* lisp/ansi-color.el (ansi-color-context-region): Improve formatting.
* lisp/term.el
(term-ansi-face-already-done):
(term-handle-colors-array):
Fix obsoleting version (bug#50806).

3 years agoDocument the improved scroll-margin behavior
Yuri D'Elia [Wed, 6 Oct 2021 08:43:47 +0000 (10:43 +0200)]
Document the improved scroll-margin behavior

* etc/NEWS: document the improved `scroll-margin' behavior.

3 years agoPerform cleanup on errors in mouse-drag-track
Yuri D'Elia [Wed, 6 Oct 2021 08:43:22 +0000 (10:43 +0200)]
Perform cleanup on errors in mouse-drag-track

* lisp/mouse.el (mouse-drag-track): Disable both scroll-margin and
auto-hscroll-mode in mouse-drag-region and do not re-enable them until
dragging is over, making selections work as expected when inside the
margins.
* lisp/mouse.el (mouse-drag-track): Correctly reset original values
changed during execution if errors occur.

3 years agoImprove interaction between mouse-drag-region and scroll-margin
Yuri D'Elia [Wed, 6 Oct 2021 08:42:56 +0000 (10:42 +0200)]
Improve interaction between mouse-drag-region and scroll-margin

* lisp/mouse.el (mouse-drag-track): Disable both scroll-margin and
auto-hscroll-mode in mouse-drag-region and do not re-enable them until
dragging is over, making selections work as expected when inside the
margins.

3 years ago* NEWS: Mention rcirc connects to #emacs by default
Philip Kaludercic [Wed, 6 Oct 2021 07:16:14 +0000 (09:16 +0200)]
* NEWS: Mention rcirc connects to #emacs by default

3 years agoFix up gnus-summary-mode-map after previous change
Lars Ingebrigtsen [Wed, 6 Oct 2021 07:05:22 +0000 (09:05 +0200)]
Fix up gnus-summary-mode-map after previous change

* lisp/gnus/gnus-sum.el (:keymap): Fix two sub-maps that were
moved to the wrong place.

3 years agoRefactor mh-utils-tests macro 'with-mh-test-env'
Stephen Gildea [Wed, 6 Oct 2021 03:32:59 +0000 (20:32 -0700)]
Refactor mh-utils-tests macro 'with-mh-test-env'

* test/lisp/mh-e/mh-utils-tests.el (with-mh-test-env): Refactor to
reduce the size of the expanded macro.
(mh-test-utils-setup): New helper function.
(mh-ensure-native-trampolines): Absorbed by mh-test-utils-setup.

3 years agoAvoid using variable before it has been initialized
Stefan Kangas [Tue, 5 Oct 2021 21:22:16 +0000 (23:22 +0200)]
Avoid using variable before it has been initialized

* lisp/ibuffer.el (ibuffer-shrink-to-fit): Don't try to use
ibuffer-auto-mode variable before ibuf-ext.el has been loaded.
(Bug#51029)

3 years agoClarify docstring of blink-matching-paren
Stefan Kangas [Tue, 5 Oct 2021 21:11:31 +0000 (23:11 +0200)]
Clarify docstring of blink-matching-paren

* lisp/simple.el (blink-matching-paren): Clarify
docstring.  (Bug#51032)

3 years agoConvert more parts of Gnus from `gnus-define-keys' to `define-keymap'
Lars Ingebrigtsen [Tue, 5 Oct 2021 19:49:26 +0000 (21:49 +0200)]
Convert more parts of Gnus from `gnus-define-keys' to `define-keymap'

* lisp/gnus/spam.el (gnus-summary-mode-map):
* lisp/gnus/gnus-topic.el (gnus-topic-mode-map):
* lisp/gnus/gnus-sum.el (gnus-summary-mode-map):
* lisp/gnus/gnus-srvr.el (gnus-server-mode-map):
(gnus-server-mode-map):
(gnus-browse-mode-map):
* lisp/gnus/gnus-score.el (gnus-summary-score-map):
* lisp/gnus/gnus-draft.el (gnus-draft-mode-map):
* lisp/gnus/gnus-agent.el (gnus-agent-group-mode-map):
(gnus-agent-summary-mode-map):
(gnus-agent-server-mode-map):
(gnus-category-mode-map): Convert from `gnus-define-keys' to
`define-keymap'.

* lisp/gnus/gnus.el: Define more commands.

3 years ago; Very minor touch-up to a recent change
Stefan Kangas [Tue, 5 Oct 2021 19:35:09 +0000 (21:35 +0200)]
; Very minor touch-up to a recent change

* doc/lispintro/emacs-lisp-intro.texi (Design @value{COUNT-WORDS}):
Remove an unnecessary and potentially confusing "now".

3 years ago; * doc/emacs/trouble.texi (After a Crash): Fix typo.
Stefan Kangas [Tue, 5 Oct 2021 19:11:19 +0000 (21:11 +0200)]
; * doc/emacs/trouble.texi (After a Crash): Fix typo.

3 years ago* doc/misc/gnus.texi (Loose Threads): Use regexp-opt in example.
Stefan Kangas [Tue, 5 Oct 2021 17:31:52 +0000 (19:31 +0200)]
* doc/misc/gnus.texi (Loose Threads): Use regexp-opt in example.

3 years agoBump project.el version
Dmitry Gutov [Tue, 5 Oct 2021 16:58:26 +0000 (19:58 +0300)]
Bump project.el version

* lisp/progmodes/project.el: Bump the version.

3 years agoRetain compatibility with older project.el projects
Dmitry Gutov [Tue, 5 Oct 2021 02:45:09 +0000 (05:45 +0300)]
Retain compatibility with older project.el projects

* lisp/progmodes/xref.el (xref--analyze):
Retain compatibility with older project.el and its compatible
project definitions (for standalone Xref from ELPA).

3 years agonative-comp-available-p is the definitive test
Stephen Gildea [Tue, 5 Oct 2021 16:15:57 +0000 (09:15 -0700)]
native-comp-available-p is the definitive test

* doc/lispref/compile.texi (Native Compilation): Document
native-comp-available-p as the way to test for native compilation.
* lisp/emacs-lisp/package.el (package--native-compile-async):
* test/lisp/mh-e/mh-utils-tests.el (mh-ensure-native-trampolines):
Test for native compilation with native-comp-available-p.

Thank you to Andrea Corallo for reviewing this patch.

3 years agoMinor fix of a recently installed documentation change
Eli Zaretskii [Tue, 5 Oct 2021 16:20:51 +0000 (19:20 +0300)]
Minor fix of a recently installed documentation change

* doc/emacs/search.texi (Lax Search): Don't use ".." inside @samp,
it looks confusing, especially in print.  (Bug#51020)

3 years agoDo interactive mode tagging for proced.el
Stefan Kangas [Tue, 5 Oct 2021 16:16:48 +0000 (18:16 +0200)]
Do interactive mode tagging for proced.el

3 years agoFix md5 issue in recent Gnulib merge
Paul Eggert [Tue, 5 Oct 2021 16:08:02 +0000 (09:08 -0700)]
Fix md5 issue in recent Gnulib merge

When configured --with-native-compilation, Emacs needs md5_stream.
Problem reported by Andy Moreton (Bug#50985#23).
* admin/merge-gnulib (GNULIB_MODULES): Add crypto/md5,
needed for --with-native-compilation.
(AVOIDED_MODULES): Avoid crypto/af_alg, since Emacs doesn’t
need to bother with kernel-supported cryptography algorithms.
* lib/gnulib.mk.in, m4/gnulib-comp.m4:
Regenerate by running admin/merge-gnulib.
* lib/md5-stream.c: New file, copied from Gnulib.

3 years agoTweak recent 'configure' fix
Paul Eggert [Tue, 5 Oct 2021 16:03:47 +0000 (09:03 -0700)]
Tweak recent 'configure' fix

* configure.ac (gt_TYPE_WINT_T): Omit obsolete and
now-overridden definition.

3 years agoMerge from origin/emacs-28
Glenn Morris [Tue, 5 Oct 2021 14:50:22 +0000 (07:50 -0700)]
Merge from origin/emacs-28

63abe976ce (origin/emacs-28) Document minibuffer-default-prompt-forma...
b5afbedc90 Backward compatibility option for 'nobreak-char-display'
ea1b728a06 ; * lisp/dired.el: Fix typo.
984eafeb98 Unbreak the build after Gnulib update
5946370cd1 Check, whether an FUSE mount has been broken in Tramp
90575a6c0c Disable 'nobreak-char-display' in Eldoc buffers
570e2c9a17 Fix small error in comint-send-input
fd7bb31412 Update documentation of search-whitespace-regexp
1f4ced47a1 Fix cc-compat.el syntax error
b431f54c1b Mention `seq-uniq' in `delete-dups' documentation
0a7bab689c ; Minor stylistic fixes found by checkdoc
e2861e2d08 ; * etc/NEWS: Fix typo.
1a65d49931 Port recent Gnulib changes to MS-Windows
68a256c892 Update from Gnulib
63cb65dcce * Fix mh tests for native comp builds (bug#50975)
e606cc6f40 * Fix `batch-native-compile' not to spawn a subprocess
894dfe70da Fix native-compilation build from tarball on Cygwin
2ce5e08058 Remove U+FE0F from script-representative-chars

# Conflicts:
# etc/NEWS

3 years ago; Merge from origin/emacs-28
Glenn Morris [Tue, 5 Oct 2021 14:50:20 +0000 (07:50 -0700)]
; Merge from origin/emacs-28

The following commit was skipped:

9750e78202 Fix problem with 'vertical-motion' and emoji

3 years agoMerge from origin/emacs-28
Glenn Morris [Tue, 5 Oct 2021 14:50:20 +0000 (07:50 -0700)]
Merge from origin/emacs-28

13f459b3ac ; Describe PROBLEMS with Unicode display on some TTYs
7a98a62079 * test/README: Mention :nativecomp tag.

3 years agoDocument minibuffer-default-prompt-format in manual
Stefan Kangas [Tue, 5 Oct 2021 14:34:07 +0000 (16:34 +0200)]
Document minibuffer-default-prompt-format in manual

* doc/emacs/mini.texi (Basic Minibuffer): Mention
minibuffer-default-prompt-format.  (Bug#50935)

3 years agoFix recent "erts files" additions in ERT manual
Basil L. Contovounesios [Tue, 5 Oct 2021 14:31:17 +0000 (15:31 +0100)]
Fix recent "erts files" additions in ERT manual

* doc/misc/ert.texi (erts files): Indent examples with spaces rather
than tabs, since Texinfo treats tab characters as a single space;
see (info "(texinfo) @example").  Fix typos/thinkos.

3 years agoBackward compatibility option for 'nobreak-char-display'
Eli Zaretskii [Tue, 5 Oct 2021 14:12:49 +0000 (17:12 +0300)]
Backward compatibility option for 'nobreak-char-display'

* src/xdisp.c (syms_of_xdisp) <nobreak-char-ascii-display>: New
variable.
(get_next_display_element): If 'nobreak-char-ascii-display' is
non-nil, display non-ASCII space and hyphen characters as their
ASCII equivalents.  (Bug#50983)

* etc/NEWS:
* etc/PROBLEMS: Mention 'nobreak-char-ascii-display'.

3 years agoMake 'mapconcat' argument 'separator' optional
Stefan Kangas [Tue, 5 Oct 2021 13:36:31 +0000 (15:36 +0200)]
Make 'mapconcat' argument 'separator' optional

* src/fns.c (Fmapconcat): Make third 'separator' argument
optional.  (Bug#50965)
* doc/lispref/functions.texi (Mapping Functions): Update
documentation for above change.
* test/src/fns-tests.el (fns-tests-mapconcat): New test.

* doc/misc/cl.texi (Obsolete Setf Customization): Don't use third
mapconcat argument in example.
* lisp/emacs-lisp/subr-x.el (string-join): Doc fix.

3 years ago; * lisp/dired.el: Fix typo.
Stefan Kangas [Tue, 5 Oct 2021 13:20:28 +0000 (15:20 +0200)]
; * lisp/dired.el: Fix typo.

3 years agoMake two old function aliases obsolete
Stefan Kangas [Tue, 5 Oct 2021 13:17:41 +0000 (15:17 +0200)]
Make two old function aliases obsolete

* lisp/textmodes/bibtex.el (bibtex-find-crossref)
(bibtex-find-entry): Make function aliases obsolete.  These were left
behind when renaming functions, but never declared obsolete.

3 years agoUnbreak the build after Gnulib update
Eli Zaretskii [Tue, 5 Oct 2021 12:55:18 +0000 (15:55 +0300)]
Unbreak the build after Gnulib update

* lib/gnulib.mk.in (GNULIBHEADERS_OVERRIDE_WINT_T): Rename from
GNULIB_OVERRIDES_WINT_T.
* configure.ac (GNULIBHEADERS_OVERRIDE_WINT_T): Define.
(Bug#50985)

3 years agoSet advertised calling convention on make-face-* functions
Stefan Kangas [Tue, 5 Oct 2021 12:43:11 +0000 (14:43 +0200)]
Set advertised calling convention on make-face-* functions

* lisp/faces.el (make-face-bold, make-face-unbold)
(make-face-italic, make-face-unitalic, make-face-bold-italic):
Use `advertised-calling-convention` to avoid promoting the third
_noerror argument; it has been ignored since 1999.

3 years agoCheck, whether an FUSE mount has been broken in Tramp
Michael Albinus [Tue, 5 Oct 2021 09:27:48 +0000 (11:27 +0200)]
Check, whether an FUSE mount has been broken in Tramp

* lisp/net/tramp-fuse.el (tramp-fuse-mount-timeout): New defconst.
(tramp-fuse-mounted-p): Use it.  Check for a file property instead
of a connection property.
(tramp-fuse-unmount): Dito.

* lisp/net/tramp-sshfs.el (tramp-sshfs-maybe-open-connection):
Do not trust existence of a process, whether the volume is mounted.

3 years agoDisable 'nobreak-char-display' in Eldoc buffers
Augusto Stoffel [Tue, 5 Oct 2021 09:12:05 +0000 (11:12 +0200)]
Disable 'nobreak-char-display' in Eldoc buffers

* lisp/emacs-lisp/eldoc.el (eldoc--format-doc-buffer): Set
'nobreak-char-display' to nil in Eldoc buffers (bug#50989).

3 years agoChange the call convention for `defvar-keymap'
Lars Ingebrigtsen [Tue, 5 Oct 2021 08:34:37 +0000 (10:34 +0200)]
Change the call convention for `defvar-keymap'

* doc/lispref/keymaps.texi (Changing Key Bindings): Adjust
documentation.

* lisp/simple.el (special-mode-map):
* lisp/net/shr.el (shr-map):
* lisp/net/eww.el (eww-link-keymap):
(eww-mode-map):
(eww-submit-map):
(eww-textarea-map):
(eww-bookmark-mode-map):
(eww-history-mode-map):
(eww-buffers-mode-map):
* lisp/gnus/message.el (message-mode-map):
* lisp/gnus/gnus-html.el (gnus-html-image-map):
* lisp/gnus/gnus-eform.el (gnus-edit-form-mode-map):
* lisp/gnus/gnus-dired.el (gnus-dired-mode-map):
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-mode-map):
Adjust usage of `defvar-keymap'.

* lisp/subr.el (define-keymap, define-keymap--define): Change how
these functions call each other.
(defvar-keymap): Change interface to be more like `define-keymap'.

* lisp/emacs-lisp/lisp-mode.el (lisp-indent--defvar-keymap): Remove.
(lisp-indent-function): Don't use it.

3 years agoFix small error in comint-send-input
Miha Rihtaršič [Tue, 5 Oct 2021 07:42:28 +0000 (09:42 +0200)]
Fix small error in comint-send-input

* lisp/comint.el (comint-send-input): Run
comint-output-filter-functions with comint-last-output-start set
correctly (bug#51009).

3 years agoUpdate documentation about how M-x completes obsolete commands
Daniel Martín [Tue, 5 Oct 2021 07:39:03 +0000 (09:39 +0200)]
Update documentation about how M-x completes obsolete commands

* doc/emacs/m-x.texi (M-x): Mention that Emacs offers completion for
commands marked obsolete in the current version of Emacs (bug#51017).

3 years agoUpdate documentation of search-whitespace-regexp
Daniel Martín [Tue, 5 Oct 2021 07:37:56 +0000 (09:37 +0200)]
Update documentation of search-whitespace-regexp

* doc/emacs/search.texi (Lax Search): Update the documentation about
the default value of search-whitespace-regexp, as it is now
independent of the major mode's syntax table (bug#51020).

3 years agoFix cc-compat.el syntax error
Po Lu via [Tue, 5 Oct 2021 07:22:57 +0000 (09:22 +0200)]
Fix cc-compat.el syntax error

* lisp/obsolete/cc-compat.el (offsets): Fix syntax error in BOCM
style setup.

3 years agoMention `seq-uniq' in `delete-dups' documentation
Tak Kunihiro [Tue, 5 Oct 2021 07:11:33 +0000 (09:11 +0200)]
Mention `seq-uniq' in `delete-dups' documentation

* doc/lispref/lists.texi (Sets And Lists): Mention `seq-uniq'
(bug#50928).

* lisp/subr.el (delete-dups): Link to `seq-uniq' in doc string.

3 years agoIn term-mode, handle ANSI codes, specifying italic and other modes
Miha Rihtaršič [Mon, 27 Sep 2021 13:15:57 +0000 (15:15 +0200)]
In term-mode, handle ANSI codes, specifying italic and other modes

* etc/e/eterm-color.ti: Add new capabilities
* lisp/term.el: New faces and variables to support new ANSI modes.
(term-termcap-format): Add new capabilities
(term-emulate-terminal): When saving cursor, additionally save the new
variables.
(term--handle-colors-list): Handle ANSI codes, specifying italic other
modes.
* test/lisp/term-tests.el (ansi-test-strings): Adjust tests.

3 years agoAdd support for 256-color and 24bit ANSI colors in term-mode
Miha Rihtaršič [Sat, 25 Sep 2021 21:28:08 +0000 (23:28 +0200)]
Add support for 256-color and 24bit ANSI colors in term-mode

(term-ansi-face-already-done): Make obsolete
(term--maybe-brighten-color): Remove
(term--color-as-hex): New function
(term-handle-colors-array): Make obsolete in favour of the new
function 'term--handle-colors-list'.
(term--handle-colors-list): New function, that can also handle ANSI
codes 38 and 48.
(term-handle-ansi-escape): Use it

* test/lisp/term-tests.el (ansi-test-strings): Add tests for 256-color
and 24bit ANSI colors

3 years agoAdd support for 256-color and 24bit ANSI colors in ansi-color
Miha Rihtaršič [Tue, 5 Oct 2021 06:53:36 +0000 (08:53 +0200)]
Add support for 256-color and 24bit ANSI colors in ansi-color

* lisp/ansi-color.el (ansi-color--code-as-hex): New function to
convert from 256-color and 24-bit ANSI codes.
(ansi-color--face-vec-face): Add support for ANSI color codes greater
than 16
(ansi-color--update-face-vec): Add support for ANSI codes 38 and 48
which can specify 256-color and 24bit ANSI colors.

* test/lisp/ansi-color-tests.el (ansi-color-tests--strings): Add tests
for ANSI codes 38 and 34

3 years agoOptimize ansi-color.el
Miha Rihtaršič [Tue, 5 Oct 2021 06:47:07 +0000 (08:47 +0200)]
Optimize ansi-color.el

(ansi-color-context-region):
(ansi-color-context): Adjust doc string to the new format of
ansi-color context.

(ansi-color--find-face): Rename to ansi-color--face-vec-face
(ansi-color--face-vec-face): Adjust to the new format ansi-color
context.

(ansi-color-filter-apply):
(ansi-color-apply):
(ansi-color-filter-region):
(ansi-color-apply-on-region): Adjust to the new format of ansi-color
context in order to speed these functions up.

(ansi-color-apply-sequence): Make it obsolete.
(ansi-color--update-face-vec): New function to handle the new format
of ansi-color context.

(ansi-color-get-face-1): Make obsolete as this function isn't used any
more (bug#50806).

3 years agoMake `memory-report-object-size' work standalone
Lars Ingebrigtsen [Tue, 5 Oct 2021 06:40:52 +0000 (08:40 +0200)]
Make `memory-report-object-size' work standalone

* lisp/emacs-lisp/memory-report.el (memory-report--type-size):
Default to nil so that the test in `memory-report-object-size' works.
(memory-report--set-size): Initialize
memory-report-object-size.

3 years agoUse format-prompt for many more prompts
Stefan Kangas [Tue, 5 Oct 2021 01:34:08 +0000 (03:34 +0200)]
Use format-prompt for many more prompts

* lisp/bookmark.el (bookmark-completing-read):
* lisp/calc/calc-prog.el (calc-user-define-formula):
* lisp/calc/calc-store.el (calc-permanent-variable):
* lisp/calc/calc-units.el (calc-convert-units)
(calc-convert-exact-units, calc-convert-temperature):
* lisp/cedet/semantic/complete.el
(semantic-complete-read-tag-engine):
* lisp/cus-edit.el (customize-read-group):
* lisp/dired-aux.el (dired-do-chxxx):
* lisp/dired-x.el (dired-mark-unmarked-files):
* lisp/emacs-lisp/debug.el (cancel-debug-on-entry)
(cancel-debug-on-variable-change):
* lisp/emacs-lisp/edebug.el (edebug-cancel-on-entry)
(edebug-remove-instrumentation):
* lisp/epa.el (epa-read-file-name, epa-export-keys):
* lisp/faces.el (read-face-name):
* lisp/format.el (format-decode-buffer, format-decode-region):
* lisp/gnus/gnus-art.el (gnus-read-save-file-name):
* lisp/gnus/gnus-util.el (gnus-completing-read):
* lisp/gnus/message.el (message-check-news-header-syntax):
* lisp/info.el (Info-follow-reference):
* lisp/international/mule-diag.el (describe-font)
(describe-fontset):
* lisp/international/quail.el (quail-show-keyboard-layout):
* lisp/language/cyril-util.el
(standard-display-cyrillic-translit):
* lisp/mail/rmailkwd.el (rmail-read-label):
* lisp/mail/rmailmm.el (rmail-mime-save):
* lisp/mail/rmailout.el (rmail-output-read-file-name):
* lisp/man.el (Man-goto-section, Man-follow-manual-reference):
* lisp/menu-bar.el (emacs-index--prompt):
* lisp/net/ange-ftp.el (ange-ftp-get-passwd):
* lisp/proced.el (proced-send-signal):
* lisp/progmodes/cpp.el (cpp-choose-face):
* lisp/progmodes/ebrowse.el (ebrowse-set-tree-indentation):
* lisp/progmodes/etags.el (visit-tags-table)
(visit-tags-table-buffer):
* lisp/progmodes/grep.el (grep-read-files):
* lisp/progmodes/hideif.el (hide-ifdef-define):
* lisp/progmodes/pascal.el (pascal-goto-defun):
* lisp/progmodes/prolog.el (prolog-read-predicate):
* lisp/progmodes/sql.el (sql-get-login-ext):
* lisp/ses.el (ses-define-local-printer):
* lisp/textmodes/artist.el (artist-figlet-choose-font):
* lisp/textmodes/tex-mode.el (tex-compile):
* lisp/vc/diff.el (diff):
* lisp/vc/ediff-ptch.el (ediff-prompt-for-patch-file):
* lisp/vc/ediff-util.el (ediff-read-file-name):
* lisp/vc/pcvs.el (cvs-mode-mark-on-state):
* lisp/vc/vc.el (vc-diff-build-argument-list-internal)
(vc-revision-other-window, vc-retrieve-tag):
* lisp/wid-edit.el: Prefer format-prompt unconditionally.

* lisp/org/org-capture.el (org-capture-fill-template):
* lisp/org/org-refile.el (org-refile-get-location):
* lisp/progmodes/python.el (python-eldoc-at-point):
* lisp/progmodes/verilog-mode.el (verilog-surelint-off)
(verilog-goto-defun):
* lisp/progmodes/xref.el (xref--read-identifier): Prefer format-prompt
when it is fboundp.

3 years ago; Minor stylistic fixes found by checkdoc
Stefan Kangas [Mon, 27 Sep 2021 21:56:55 +0000 (23:56 +0200)]
; Minor stylistic fixes found by checkdoc

3 years ago; * etc/NEWS: Fix typo.
Stefan Kangas [Tue, 5 Oct 2021 00:01:27 +0000 (02:01 +0200)]
; * etc/NEWS: Fix typo.

3 years agoPort recent Gnulib changes to MS-Windows
Paul Eggert [Mon, 4 Oct 2021 19:11:39 +0000 (12:11 -0700)]
Port recent Gnulib changes to MS-Windows

* nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_free-posix)
(OMIT_GNULIB_MODULE_malloc-posix)
(OMIT_GNULIB_MODULE_realloc-gnu)
(OMIT_GNULIB_MODULE_realloc-posix):
New macros, since we don’t want these modules on MS-Windows.
* src/w32heap.c (heap_alloc, heap_realloc): New functions.
(malloc_after_dump, realloc_after_dump, realloc_before_dump):
Use them.

3 years agoUpdate from Gnulib
Paul Eggert [Mon, 4 Oct 2021 19:11:39 +0000 (12:11 -0700)]
Update from Gnulib

Make the following changes by hand, and run 'admin/merge-gnulib'.
* .gitignore: Add lib/malloc/*.gl.h.
* admin/merge-gnulib: Copy lib/af_alg.h and lib/save-cwd.h
directly from Gnulib, without worrying about Gnulib modules,
as these files are special cases.
(AVOIDED_MODULES): Remove malloc-posix.
* lib/malloc.c, lib/realloc.c, m4/malloc.m4, m4/realloc.m4:
* m4/year2038.m4: New files, copied from Gnulib.
* lib/malloca.c, lib/malloca.h:
* m4/close-stream.m4, m4/glibc21.m4, m4/malloca.m4:
Remove.  These are either no longer present in Gnulib, or are no
longer needed by modules that Emacs uses.
* oldXMenu/AddPane.c, oldXmenu/Addsel.c: Include XmenuInt.h first;
needed for new Gnulib.
* src/xmenu.c: Call emacs_abort, not abort.

3 years ago* Fix mh tests for native comp builds (bug#50975)
Andrea Corallo [Mon, 4 Oct 2021 20:47:30 +0000 (22:47 +0200)]
* Fix mh tests for native comp builds (bug#50975)

* test/lisp/mh-e/mh-utils-tests.el (mh-ensure-native-trampolines):
New function.
(mh-test-utils-setup-with-mocks)
(mh-test-utils-setup-with-variant): Use it.

3 years ago* Fix `batch-native-compile' not to spawn a subprocess
Andrea Corallo [Mon, 4 Oct 2021 19:15:02 +0000 (21:15 +0200)]
* Fix `batch-native-compile' not to spawn a subprocess

* lisp/emacs-lisp/comp.el (comp-running-batch-compilation): New var.
(comp-final): Use it.
(batch-native-compile): Bind `comp-running-batch-compilation' it.

3 years agoFix syntax error in define-keymap doc string
Lars Ingebrigtsen [Mon, 4 Oct 2021 19:02:23 +0000 (21:02 +0200)]
Fix syntax error in define-keymap doc string

* lisp/subr.el (define-keymap): Fix syntax error in (fn.

3 years agoFix native-compilation build from tarball on Cygwin
Ken Brown [Mon, 4 Oct 2021 18:47:57 +0000 (14:47 -0400)]
Fix native-compilation build from tarball on Cygwin

* src/Makefile.in (../native-lisp) [CYGWIN]: Rebase the *.eln
files after they are all created, to avoid fork problems later in
the build.  (Bug#50666)

3 years agoFix problem with 'vertical-motion' and emoji
Robert Pluim [Mon, 4 Oct 2021 16:47:04 +0000 (18:47 +0200)]
Fix problem with 'vertical-motion' and emoji

* src/font.c (font_range): Pass correct position to
font_for_char (Bug#51012).

3 years agoRemove U+FE0F from script-representative-chars
Robert Pluim [Mon, 4 Oct 2021 17:11:15 +0000 (19:11 +0200)]
Remove U+FE0F from script-representative-chars

* lisp/international/fontset.el (script-representative-chars): Remove
U+FE0F / VS-16 from the 'emoji' entry.  It could cause us to skip
fonts that don't have a glyph for it, even though we don't actually
need one.

3 years agoFix problem with 'vertical-motion' and emoji
Robert Pluim [Mon, 4 Oct 2021 16:47:04 +0000 (18:47 +0200)]
Fix problem with 'vertical-motion' and emoji

* src/font.c (font_range): Pass correct position to
font_for_char (Bug#51012).

3 years ago; Describe PROBLEMS with Unicode display on some TTYs
Eli Zaretskii [Mon, 4 Oct 2021 16:29:34 +0000 (19:29 +0300)]
; Describe PROBLEMS with Unicode display on some TTYs

* etc/TODO: Describe problems with Unicode display on some
text terminals.  (Bug#50865)  (Bug#50983)

3 years agoRun ERT tests with `lexical-binding` bound to `t`
Mattias Engdegård [Mon, 4 Oct 2021 16:11:40 +0000 (18:11 +0200)]
Run ERT tests with `lexical-binding` bound to `t`

* lisp/emacs-lisp/ert.el (ert-deftest, ert--run-test-internal):
Use t rather than the ambient file value for `lexical-binding` to
avoid bad lexbind coverage by mistake.

3 years ago* test/README: Mention :nativecomp tag.
Michael Albinus [Mon, 4 Oct 2021 16:01:06 +0000 (18:01 +0200)]
* test/README: Mention :nativecomp tag.

3 years agoMerge from origin/emacs-28
Glenn Morris [Mon, 4 Oct 2021 15:13:12 +0000 (08:13 -0700)]
Merge from origin/emacs-28

95a0227ff7 (origin/emacs-28) Avoid exiting when outputting error mess...
b7ae0232be ; * src/Makefile.in (../native-lisp): More tweaks of the r...
6e79f8a444 Remove implemented emoji items
00bcba5125 project.el NEWS tagging
704a39f508 thing-at-mouse NEWS tagging
3a9d5f04fb Mention ffap-file-name-with-spaces in the ffap doc strin

# Conflicts:
# etc/NEWS

3 years ago; Merge from origin/emacs-28
Glenn Morris [Mon, 4 Oct 2021 15:13:11 +0000 (08:13 -0700)]
; Merge from origin/emacs-28

The following commit was skipped:

ef6c43b896 Revert "Make info-look search harder for the Python info f...

3 years agoMerge from origin/emacs-28
Glenn Morris [Mon, 4 Oct 2021 15:13:11 +0000 (08:13 -0700)]
Merge from origin/emacs-28

3b8dda6c90 Add safety check in x_menu_show
e1fb731393 Tweak x_connection_closed when I/O error
595e506c82 * lisp/erc/erc.el (erc-user-mode): Set "+i" by default.
d00f3d4c05 Port unused decls to C2x
317eb2d5b5 Improve structure of TODO
c0793cd9de Don't use some obsolete names in documentation
87153cc915 Tweak x_hide_tip for consistency
7e871dcd27 Remove encode_terminal_code UNINITs
2a00634880 Port pdumper.c maybe_unused to C2x
6d9b3c0eaa Port systhreads.h to C2x
fd274d7d24 Pacify -Wanalyzer-null-argument in lisp_malloc
cc3fc94f09 Pacify gcc 11.2.1 -Wanalyzer-null-argument
d3a832a61a Simplify hack-read-symbol-shorthands again (bug#50946)
4831426158 Fix recipe for 'native-lisp' directory
0bb42ef803 ; * lisp/time-stamp.el (time-stamp-format): Doc string.
732c70a0d9 Simplify socket symlink-attack checking
fc32a3bd95 ; * doc/lispref/files.texi (Reading from Files): Fix wording.
3cc77aa976 Clarify (elisp) insert-file-contents with BEG or END not o...
5deeb0947d * src/Makefile.in: Simplify conditionals.
121a5abeae Move context-menu selection items Defun/List/Symbol to pro...
0c341e6e84 * lisp/tab-bar.el (tab-bar-detach-tab): Handle frame selec...
931a7276c0 * lisp/tab-line.el (tab-line-format): Add face-modified to...
3863919a00 Fix unmounting in Tramp
7a6d34cd1f * etc/themes/light-blue-theme.el: Add "Maintainer: emacs-d...
c1b1e1f545 Define HAVE_NATIVE_COMP in src/Makefile.in
137fa2d716 Rename elisp-shorthands to read-symbol-shorthands
e6fbc45b7b Font-lock shorthands in elisp-mode for quick visual recogn...
17e6f3bee5 ; Fix last change in tramp-sshfs.el
3dae1e33d1 Suppress superfluous error messages in Tramp
b228ec9fab Fix reading the tail of a file in shorthands.el
7fb2789509 Fix substitution of pretty quotes in code in easy-mmode
b47d7ce1b8 Fix agent directory deletion
b1a8a66fb0 ; * etc/TODO: Fix previous commit; delete the right thing.
6c01a21365 Clarify the purpose of internal--format-docstring-line
55dadbc57e * lisp/net/dictionary.el (context-menu-dictionary): Move m...
bb209cd5ab Update to Org 9.5-30-g10dc9d
4341e79a5f Remove bogus ":safe t" custom properties
b6f6b593c6 Fix 'apropos-compact-layout'
62d6cecfcd Remove bogus ":safe nil" custom properties
f9111d8784 The safe-local-variable property is a function (bug#50944)
3dc094abee ; Some minor tweaks to TODO
a5b4356d37 Revert "; * etc/TODO: Move elpa.gnu.org items to the end."
7bc0cee115 Revert "* etc/TODO: Rearrange to start with "Simple tasks"."
3489471417 Fix selection of fonts for Arabic on Posix platforms
13e5943386 ; Fix a typo in a doc string
bd60fca2fa Fix ox-koma-letter compilation warnings
340e527bed Preload paren.el
a9052248da Improve documentation of 'shift-select-mode'
d505971894 ; Standardize some license headers
9307889d68 Simplify shorthand injection (bug#50946)
5c77cc9584 ; * admin/release-branch.txt: Tweak previous.

# Conflicts:
# etc/NEWS
# test/lisp/subr-tests.el

3 years agoRevert "Fix problem with outputting error messages while dumping Emacs"
Eli Zaretskii [Mon, 4 Oct 2021 15:07:46 +0000 (18:07 +0300)]
Revert "Fix problem with outputting error messages while dumping Emacs"

This reverts commit 1428962590e216163f079ff838f39667383aec56.
A better fix was committed to the emacs-28 branch and will be
merged to master.

3 years agoAvoid exiting when outputting error messages during loadup
Gregory Heytings [Mon, 4 Oct 2021 14:13:46 +0000 (14:13 +0000)]
Avoid exiting when outputting error messages during loadup

* src/print.c (print_error_message): Don't call
'substitute-command-keys' when it isn't fboundp.

3 years agoRemove :copy from define-keymap
Lars Ingebrigtsen [Mon, 4 Oct 2021 14:37:30 +0000 (16:37 +0200)]
Remove :copy from define-keymap

* doc/lispref/keymaps.texi (Changing Key Bindings): Update
documentation.

* lisp/subr.el (define-keymap):
(define-keymap--define): Remove :copy from the signature.

* lisp/net/eww.el (eww-link-keymap): Use :parent.

3 years agoFix gnus-group-mode-map breakage from previous patch
Lars Ingebrigtsen [Mon, 4 Oct 2021 14:19:40 +0000 (16:19 +0200)]
Fix gnus-group-mode-map breakage from previous patch

* lisp/gnus/gnus-group.el (:keymap): Restore gnus-group-list-map
key strokes to the correct location.

3 years ago; * src/Makefile.in (../native-lisp): More tweaks of the recipe.
Eli Zaretskii [Mon, 4 Oct 2021 13:54:37 +0000 (16:54 +0300)]
; * src/Makefile.in (../native-lisp): More tweaks of the recipe.

3 years agoDocument with-memoization
Lars Ingebrigtsen [Mon, 4 Oct 2021 11:23:18 +0000 (13:23 +0200)]
Document with-memoization

* doc/misc/cl.texi (Modify Macros): Document with-memoization.

3 years agoAdd new command 'ensure-empty-lines'.
Lars Ingebrigtsen [Mon, 4 Oct 2021 11:15:41 +0000 (13:15 +0200)]
Add new command 'ensure-empty-lines'.

* doc/lispref/text.texi (Commands for Insertion): Document it.

* lisp/emacs-lisp/subr-x.el (ensure-empty-lines): New command.

3 years ago* test/infra/gitlab-ci.yml (test-native-comp-speed0): Fix thinko.
Michael Albinus [Mon, 4 Oct 2021 11:19:38 +0000 (13:19 +0200)]
* test/infra/gitlab-ci.yml (test-native-comp-speed0): Fix thinko.

3 years agoRemove implemented emoji items
Robert Pluim [Mon, 4 Oct 2021 11:17:28 +0000 (13:17 +0200)]
Remove implemented emoji items

* etc/TODO: Remove implemented emoji items.

3 years agoproject.el NEWS tagging
Lars Ingebrigtsen [Mon, 4 Oct 2021 10:59:31 +0000 (12:59 +0200)]
project.el NEWS tagging

3 years agothing-at-mouse NEWS tagging
Lars Ingebrigtsen [Mon, 4 Oct 2021 10:57:06 +0000 (12:57 +0200)]
thing-at-mouse NEWS tagging

3 years agoAdd new user option 'translate-upper-case-key-bindings'
Lars Ingebrigtsen [Mon, 4 Oct 2021 10:33:53 +0000 (12:33 +0200)]
Add new user option 'translate-upper-case-key-bindings'

* doc/lispref/commands.texi (Key Sequence Input): Document it.

* lisp/cus-start.el (standard): defcustom it.

* src/keyboard.c (read_key_sequence): Use it.
(syms_of_keyboard): New variable 'translate-upper-case-key-bindings'.

3 years agoRemove MozRepl stuff from js.el
Lars Ingebrigtsen [Mon, 4 Oct 2021 09:56:23 +0000 (11:56 +0200)]
Remove MozRepl stuff from js.el

* lisp/progmodes/js.el: Remove all the mozrepl stuff from js.el
(bug#40771).

3 years agoAvoid a warning in python-eldoc-setup-code
Carlos Pita [Mon, 4 Oct 2021 09:43:17 +0000 (11:43 +0200)]
Avoid a warning in python-eldoc-setup-code

* lisp/progmodes/python.el (python-eldoc-setup-code): Avoid a
deprecation warning about formatargspec (bug#50996).

3 years agoFix problem with outputting error messages while dumping Emacs
Gregory Heytings [Mon, 4 Oct 2021 09:18:07 +0000 (11:18 +0200)]
Fix problem with outputting error messages while dumping Emacs

* src/print.c (print_error_message): Don't call
substitute-command-keys while bootstrapping.

3 years agoMention ffap-file-name-with-spaces in the ffap doc strin
Lars Ingebrigtsen [Mon, 4 Oct 2021 09:09:38 +0000 (11:09 +0200)]
Mention ffap-file-name-with-spaces in the ffap doc strin

* lisp/ffap.el (find-file-at-point): Mention
ffap-file-name-with-spaces in the doc string.

3 years agoAllow computing :doc-spec info-look elements at run time
Lars Ingebrigtsen [Mon, 4 Oct 2021 08:53:39 +0000 (10:53 +0200)]
Allow computing :doc-spec info-look elements at run time

* lisp/info-look.el (info-lookup--expand-info): New function.
(:mode, info-lookup-add-help): Adjust doc string.
(info-lookup-add-help*): Allow adding a dynamic expansion.
(info-lookup): Expand.
(:mode): Use a dynamic expansion for Python to postpone the lookup.
(info-complete): Expand.

3 years agoRevert "Make info-look search harder for the Python info file"
Lars Ingebrigtsen [Mon, 4 Oct 2021 08:23:18 +0000 (10:23 +0200)]
Revert "Make info-look search harder for the Python info file"

This reverts commit 711eb40b9b9e2aabd0e23ec264e8e8f913329d33.

This leads to loading info-look being excessively slow if the info path is long.  It'll be reimplemented in Emacs 29.

3 years agoUpdate NEWS for 'define-keymap'
Lars Ingebrigtsen [Mon, 4 Oct 2021 08:17:03 +0000 (10:17 +0200)]
Update NEWS for 'define-keymap'