]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years agoClarify completion-list-mode NEWS entry
Lars Ingebrigtsen [Sun, 5 Sep 2021 09:34:32 +0000 (11:34 +0200)]
Clarify completion-list-mode NEWS entry

* etc/NEWS: Clarify completion-list-mode entry (bug#50394).

3 years ago; * doc/emacs/maintaining.texi (Looking Up Identifiers): Fix last change.
Eli Zaretskii [Sun, 5 Sep 2021 09:30:35 +0000 (12:30 +0300)]
; * doc/emacs/maintaining.texi (Looking Up Identifiers): Fix last change.

3 years ago* lisp/progmodes/xref.el: Fix defcustoms (bug#50067)
Juri Linkov [Sun, 5 Sep 2021 08:36:30 +0000 (11:36 +0300)]
* lisp/progmodes/xref.el: Fix defcustoms (bug#50067)

* lisp/progmodes/xref.el (xref-auto-jump-to-first-definition)
(xref-auto-jump-to-first-xref, xref-search-program): Fix defcustoms.

3 years agoImprove documentation of new Xref options
Eli Zaretskii [Sun, 5 Sep 2021 07:59:07 +0000 (10:59 +0300)]
Improve documentation of new Xref options

* doc/emacs/maintaining.texi (Looking Up Identifiers):
* etc/NEWS: Document the new Xref user options.  Move a lost
Xref-related entry to the rest of them.

3 years agoFixes for 'python-shell-send-string' and 'python-shell-send-file'
Augusto Stoffel [Sat, 4 Sep 2021 09:16:11 +0000 (11:16 +0200)]
Fixes for 'python-shell-send-string' and 'python-shell-send-file'

* lisp/progmodes/python.el (python-shell-send-string): use a temporary
file for sufficiently long strings.
(python-shell-send-file, python-shell-eval-file-setup-code): Avoid
showing "plumbing code" in the traceback (bug#32042).

3 years agoFix error handling in 'ispell-init-process'
Ian W [Sat, 4 Sep 2021 03:53:24 +0000 (20:53 -0700)]
Fix error handling in 'ispell-init-process'

* lisp/textmodes/ispell.el (ispell-init-process): When Ispell
initialization reports an error, call 'ispell-accept-output' only
if the Ispell process is still alive.  (Bug#50370)

Copyright-paperwork-exempt: yes

3 years agoCleanup tramp-tests.el
Michael Albinus [Sun, 5 Sep 2021 07:23:30 +0000 (09:23 +0200)]
Cleanup tramp-tests.el

* test/lisp/net/tramp-tests.el
(tramp--test--deftest-direct-async-process): Fix macro declaration.
(tramp-test29-start-file-process, tramp-test30-make-process):
Do not run connection type test for direct async processes.

3 years ago* test/lisp/vc/vc-tests.el (vc-test-sccs06-version-diff): Fix it.
Glenn Morris [Sun, 5 Sep 2021 01:39:20 +0000 (18:39 -0700)]
* test/lisp/vc/vc-tests.el (vc-test-sccs06-version-diff): Fix it.

3 years agoBelated fix
Dmitry Gutov [Sun, 5 Sep 2021 00:52:29 +0000 (03:52 +0300)]
Belated fix

* lisp/progmodes/xref.el: (xref--show-xref-buffer):
Fix support for xref-auto-jump-to-first-xref.

3 years ago* lisp/progmodes/xref.el: Bump version.
Dmitry Gutov [Sun, 5 Sep 2021 00:36:30 +0000 (03:36 +0300)]
* lisp/progmodes/xref.el: Bump version.

3 years agoXref: automatic jumping to the first definition or reference
Dmitry Gutov [Sun, 5 Sep 2021 00:35:43 +0000 (03:35 +0300)]
Xref: automatic jumping to the first definition or reference

* lisp/progmodes/xref.el (xref-auto-jump-to-first-definition)
(xref-auto-jump-to-first-xref): New user options.
Discussed in bug#50067.
(xref--show-xrefs, xref--show-defs): Use them here.
(xref--auto-jump-first): New function, handles different values.
(xref-show-definitions-buffer)
(xref-show-definitions-buffer-at-bottom): Use it.

3 years agoFix test on machines with Bzr not set up
Dmitry Gutov [Sat, 4 Sep 2021 23:44:08 +0000 (02:44 +0300)]
Fix test on machines with Bzr not set up

* test/lisp/vc/vc-tests.el (vc-test--version-diff):
Add EMAIL= to the environment to avoid potential failure.

3 years agoAdd tests for vc-version-diff
Matthias Meulien [Sat, 4 Sep 2021 23:32:49 +0000 (02:32 +0300)]
Add tests for vc-version-diff

* test/lisp/vc/vc-tests.el (vc-test--version-diff):
New function.
(vc-test-%s06-version-diff): New family of tests.

3 years agoRename xref-select-and-{goto,show}-xref
Dmitry Gutov [Sat, 4 Sep 2021 22:45:46 +0000 (01:45 +0300)]
Rename xref-select-and-{goto,show}-xref

* lisp/progmodes/xref.el (xref-select-and-show-xref):
Rename from xref-select-and-goto-xref (bug#35376).
Update all references.

3 years agoAvoid segfault in command-modes
Basil L. Contovounesios [Sat, 4 Sep 2021 16:04:26 +0000 (17:04 +0100)]
Avoid segfault in command-modes

* src/data.c (Fcommand_modes): Check that bytecode object is
interactive before accessing its interactive spec to avoid
segfaulting (bug#50376).

3 years ago; * etc/NEWS: Fix copyright year; file recreated in 2019 for 28.1.
Stefan Kangas [Sat, 4 Sep 2021 18:11:12 +0000 (20:11 +0200)]
; * etc/NEWS: Fix copyright year; file recreated in 2019 for 28.1.

3 years ago; * etc/NEWS: Fix markup in recent example.
Basil L. Contovounesios [Sat, 4 Sep 2021 16:06:39 +0000 (17:06 +0100)]
; * etc/NEWS: Fix markup in recent example.

3 years ago* lisp/emacs-lisp/timer.el (timer-create): Don't inline it
Stefan Monnier [Fri, 3 Sep 2021 23:41:23 +0000 (19:41 -0400)]
* lisp/emacs-lisp/timer.el (timer-create): Don't inline it

3 years agoImprove documentation of line truncation and wrapping
Eli Zaretskii [Sat, 4 Sep 2021 10:34:32 +0000 (13:34 +0300)]
Improve documentation of line truncation and wrapping

* doc/emacs/display.texi (Line Truncation, Visual Line Mode):
* doc/lispref/display.texi (Truncation): Document that turning on
line truncation disables wrapping, and vice versa.

* src/buffer.c (syms_of_buffer) <truncate-lines>:
* src/xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>:
Warn against turning on when 'visual-line-mode' is in effect.
* lisp/simple.el (visual-line-mode): Document that this mode
disables line truncation.  (Bug#29664)

3 years agoAllow killing the diff buffer after `C-x v u'
Lars Ingebrigtsen [Sat, 4 Sep 2021 09:14:12 +0000 (11:14 +0200)]
Allow killing the diff buffer after `C-x v u'

* doc/emacs/maintaining.texi (VC Undo): Document this.
* lisp/vc/vc.el (vc-revert-show-diff): Allow a `kill' value.
(vc-revert): Use it (bug#16902).

3 years agoImprove error message in ielm on printing errors
Lars Ingebrigtsen [Sat, 4 Sep 2021 08:38:50 +0000 (10:38 +0200)]
Improve error message in ielm on printing errors

* lisp/ielm.el (ielm-eval-input): Don't claim that there's a bug
on pp -- it may just be something that nests too far (bug#18012).

3 years agoAdd a customization group link from whitespace-mode
Lars Ingebrigtsen [Sat, 4 Sep 2021 08:19:39 +0000 (10:19 +0200)]
Add a customization group link from whitespace-mode

* lisp/whitespace.el (whitespace-mode): Add a link to the
whitespace customization group to see the faces (bug#18296).

3 years agoAdd support for customization group hyperlinks in doc strings
Lars Ingebrigtsen [Sat, 4 Sep 2021 08:19:03 +0000 (10:19 +0200)]
Add support for customization group hyperlinks in doc strings

* lisp/help-mode.el (help-customization-group): New button.
(help-xref-customization-group-regexp): New const.
(help-make-xrefs): Use them to allow making customization group
buttons.

3 years agoMake multi-frame `M-x calendar' setup work when `pop-up-frames'
Lars Ingebrigtsen [Sat, 4 Sep 2021 07:34:29 +0000 (09:34 +0200)]
Make multi-frame `M-x calendar' setup work when `pop-up-frames'

* lisp/calendar/calendar.el (calendar): Make the calendar frame
setup work when pop-up-frames is non-nil (bug#19256).

3 years agoTweak hi-lock-mode doc string
Lars Ingebrigtsen [Sat, 4 Sep 2021 07:11:37 +0000 (09:11 +0200)]
Tweak hi-lock-mode doc string

* lisp/hi-lock.el (hi-lock-mode): Tweak the doc string so that
running hi-lock-mode in a *Help* buffer showing this help text
won't issue an error (bug#20977).

3 years agoMake `M-x term' offer completion
Lars Ingebrigtsen [Sat, 4 Sep 2021 06:59:14 +0000 (08:59 +0200)]
Make `M-x term' offer completion

* lisp/term.el (term): Have completion in the prompt (bug#21296).

3 years agoAdd diary-offset to diary-lib.el
Yuchen Pei [Sat, 4 Sep 2021 06:28:57 +0000 (08:28 +0200)]
Add diary-offset to diary-lib.el

* doc/emacs/calendar.texi: Document the change.
* lisp/calendar/diary-lib.el (diary-offset):
* test/lisp/calendar/icalendar-tests.el: Add a test (bug#50195).

3 years ago* etc/DISTRIB: Refer to gnu.org instead of the deleted file etc/GNU.
Stefan Kangas [Sat, 4 Sep 2021 07:05:22 +0000 (09:05 +0200)]
* etc/DISTRIB: Refer to gnu.org instead of the deleted file etc/GNU.

3 years agoMerge from origin/emacs-27
Glenn Morris [Fri, 3 Sep 2021 14:50:25 +0000 (07:50 -0700)]
Merge from origin/emacs-27

0aa0410372 (origin/emacs-27, emacs-27) Fix "Finder" description for m...

3 years agoChange Python eval to send directly instead of using temporary files
Augusto Stoffel [Fri, 3 Sep 2021 12:26:51 +0000 (14:26 +0200)]
Change Python eval to send directly instead of using temporary files

* lisp/progmodes/python.el (python-shell-eval-setup-code): New
const for setting up eval (bug#49822).
(python-shell--encode-string): New function.
(python-shell-send-string): Use it to send commands directly
instead of writing to a temporary file.
(python-shell-send-string-no-output): Adjust sending.
(python-shell-send-file): Ditto.

3 years agoUpdate to CSS Flexible Box Layout Module Level 2
Theodor Thornhill [Fri, 3 Sep 2021 10:21:49 +0000 (12:21 +0200)]
Update to CSS Flexible Box Layout Module Level 2

* css-mode.el (css-property-alist): Update link.

3 years agoUpdate to CSS Containment Module Level 2
Theodor Thornhill [Fri, 3 Sep 2021 10:19:36 +0000 (12:19 +0200)]
Update to CSS Containment Module Level 2

* css-mode.el (css-property-alist): Update contain, and add
content-visibility.

3 years agoUpdate to CSS Grid Layout Module Level 2
Theodor Thornhill [Fri, 3 Sep 2021 10:14:32 +0000 (12:14 +0200)]
Update to CSS Grid Layout Module Level 2

* css-mode.el (css-property-alist): Update to the newer spec, and add
the subgrid keywords

3 years agoClean up css-property-alist for alignment
Theodor Thornhill [Fri, 3 Sep 2021 10:07:47 +0000 (12:07 +0200)]
Clean up css-property-alist for alignment

* css-mode.el (css-property-alist, css-value-class-alist): Provide new
position related entries for use in css-property-alist.  Make sure
that property-alist reflect the spec:
https://www.w3.org/TR/css-align-3/#property-index

3 years agoFix `describe-function' for autoloaded adviced functions
Lars Ingebrigtsen [Fri, 3 Sep 2021 11:48:44 +0000 (13:48 +0200)]
Fix `describe-function' for autoloaded adviced functions

* lisp/emacs-lisp/nadvice.el (advice--make-single-doc): Factor
out.
(advice--make-docstring): From here (bug#23523).  Also include
advices for autoloads.

3 years agoAllow gud-mi to edit two executables with the same name
Lars Ingebrigtsen [Fri, 3 Sep 2021 10:44:18 +0000 (12:44 +0200)]
Allow gud-mi to edit two executables with the same name

* lisp/progmodes/gud.el (gud-common-init): Allow editing two
executables with the same name (bug#22772).

3 years ago; Fix typos
Stefan Kangas [Fri, 3 Sep 2021 09:13:53 +0000 (11:13 +0200)]
; Fix typos

3 years agoMake recent timer changes more backwards-compatible
Lars Ingebrigtsen [Fri, 3 Sep 2021 08:40:21 +0000 (10:40 +0200)]
Make recent timer changes more backwards-compatible

* lisp/emacs-lisp/timer.el (timerp, timer-event-handler): Make
backwards-compatible with old .elc files that have their own
versions of `timer-create'd structures.

3 years agoFix message in previous toggle-truncate-lines change
Lars Ingebrigtsen [Fri, 3 Sep 2021 08:15:05 +0000 (10:15 +0200)]
Fix message in previous toggle-truncate-lines change

* lisp/simple.el (toggle-truncate-lines): Fix message in previous
change.

3 years agoAllow not putting pasted text onto the kill ring under xterm
Lars Ingebrigtsen [Fri, 3 Sep 2021 07:45:32 +0000 (09:45 +0200)]
Allow not putting pasted text onto the kill ring under xterm

* lisp/term/xterm.el (xterm-paste): Don't put pasted text onto the
kill ring (bug#28868).
(xterm-store-paste-on-kill-ring): New user option.

3 years ago* etc/NEWS: Announce recent change in 'toggle-truncate-lines'.
Eli Zaretskii [Fri, 3 Sep 2021 07:04:40 +0000 (10:04 +0300)]
* etc/NEWS: Announce recent change in 'toggle-truncate-lines'.

3 years agoSync latest SKK-JISYO.L
Stefan Kangas [Fri, 3 Sep 2021 08:39:25 +0000 (10:39 +0200)]
Sync latest SKK-JISYO.L

* leim/SKK-DIC/SKK-JISYO.L: Sync to current upstream version.

3 years agoUpdate publicsuffix.txt from upstream
Stefan Kangas [Fri, 3 Sep 2021 08:34:57 +0000 (10:34 +0200)]
Update publicsuffix.txt from upstream

* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/public_suffix_list.dat
dated 2021-09-02 22:13:03 UTC.

3 years agoMake toggle-truncate-lines disable visual-line-mode
Lars Ingebrigtsen [Fri, 3 Sep 2021 06:36:03 +0000 (08:36 +0200)]
Make toggle-truncate-lines disable visual-line-mode

* lisp/simple.el (toggle-truncate-lines): Disable
`visual-line-mode' (bug#29664).

3 years agoAvoid cl-lib alias for cadadr and friends
Stefan Kangas [Wed, 28 Jul 2021 11:42:05 +0000 (13:42 +0200)]
Avoid cl-lib alias for cadadr and friends

* lisp/edmacro.el (edmacro-fix-menu-commands):
* lisp/frameset.el (frameset-move-onscreen):
* lisp/htmlfontify.el (hfy-face-at, hfy-merge-adjacent-spans)
(hfy-mark-tag-names):
* lisp/mail/footnote.el (footnote--make-hole)
(footnote-back-to-message):
* lisp/net/eudc.el (eudc-get-email, eudc-get-phone):
* lisp/net/rcirc.el (rcirc-make-trees, rcirc-handler-333)
(rcirc-authenticate):
* lisp/play/5x5.el (5x5-draw-grid, 5x5-solver):
* lisp/play/decipher.el (decipher-insert-frequency-counts):
* lisp/ses.el (ses-relocate-range):
* test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-step-into-macro-error)
(edebug-tests-error-stepping-into-subr): Avoid using cl-lib aliases
for cadadr and friends that now reside in subr.el.

3 years agoMove cl-lib tests for caaXr to subr-tests.el
Stefan Kangas [Wed, 28 Jul 2021 11:31:40 +0000 (13:31 +0200)]
Move cl-lib tests for caaXr to subr-tests.el

* test/lisp/emacs-lisp/cl-lib-tests.el (cl-test-caaar)
(cl-test-caadr): Move tests using a cl-lib alias from here...
* test/lisp/subr-tests.el (subr-test-caaar, subr-test-caadr): ...to
here.  The functions under test are in subr.el.

3 years agoAdd CSS Box Alignment Module Level 3 to css-mode
Theodor Thornhill [Fri, 3 Sep 2021 06:14:48 +0000 (08:14 +0200)]
Add CSS Box Alignment Module Level 3 to css-mode

* lisp/textmodes/css-mode.el (css-property-alist): Consolidate
`align-{contents, items, self}', as well as the corresponding
values for `justify-{contents, items, self}' and `place-{contents,
items, self}'.  Values extracted from the flex part and into its
own block (bug#50345).

3 years agoAdd selection to css-pseudo-element-ids
Theodor Thornhill [Fri, 3 Sep 2021 06:13:49 +0000 (08:13 +0200)]
Add selection to css-pseudo-element-ids

* lisp/textmodes/css-mode.el (css-pseudo-element-ids): Add
selection as an element id (bug#50345).

3 years agoFix `revert-buffer' message in `find-file-select'
Lars Ingebrigtsen [Thu, 2 Sep 2021 16:44:55 +0000 (18:44 +0200)]
Fix `revert-buffer' message in `find-file-select'

* lisp/files.el (find-file-noselect): Refer to revert-buffer-quick
here since we're in a file-based buffer.

3 years agoFix memory-report test failure
Lars Ingebrigtsen [Fri, 3 Sep 2021 05:46:39 +0000 (07:46 +0200)]
Fix memory-report test failure

* test/lisp/emacs-lisp/memory-report-tests.el: Fix test build failure.

3 years agoFix recently broken vc-delete-file with Git
Dmitry Gutov [Fri, 3 Sep 2021 00:34:18 +0000 (03:34 +0300)]
Fix recently broken vc-delete-file with Git

* lisp/vc/vc-git.el (vc-git-delete-file):
Treat FILE as string, not list (bug#50334).

3 years agoMore fixes for recently added vc-rename test
Glenn Morris [Fri, 3 Sep 2021 00:16:18 +0000 (17:16 -0700)]
More fixes for recently added vc-rename test

* test/lisp/vc/vc-tests.el (vc-test-cvs05-rename-file): Skip.
(vc-test-sccs05-rename-file): Treat like RCS.

3 years agoSupport forges by type rather than by host
Tassilo Horn [Thu, 2 Sep 2021 20:07:16 +0000 (22:07 +0200)]
Support forges by type rather than by host

Formerly, bug-reference-setup-from-vc-alist basically had one entry
per host (like gitlab.com).  Restructure so that it's easy to add new
hosts being just an instance of some type of forge such as SourceHut,
Gitea, or GitLab.

While we're at it, add support for gitea.com, salsa.debian.org, and
framagit.org, the latter two being GitLab instances.

* lisp/progmodes/bug-reference.el (bug-reference-gitea-instances)
(bug-reference-gitlab-instances,bug-reference-sourcehut-instances):
New variables listing online instances of those forges.
(bug-reference--setup-from-vc-alist): New function (and variable for
caching) using the former three new variables to generate suitable VC
auto-setup alist.
(bug-reference-try-setup-from-vc): Use both
bug-reference-setup-from-vc-alist and
bug-reference--setup-from-vc-alist.

3 years ago* lisp/abbrev.el: Improve docstrings of inverse commands (bug#50303)
Juri Linkov [Thu, 2 Sep 2021 17:34:28 +0000 (20:34 +0300)]
* lisp/abbrev.el: Improve docstrings of inverse commands (bug#50303)

* lisp/abbrev.el (add-mode-abbrev, add-global-abbrev)
(inverse-add-mode-abbrev, inverse-add-global-abbrev):
Add interlinking to opposite commands in docstrings.

3 years ago; * doc/emacs/dired.texi (Operating on Files): Fix last change.
Eli Zaretskii [Thu, 2 Sep 2021 16:07:25 +0000 (19:07 +0300)]
; * doc/emacs/dired.texi (Operating on Files): Fix last change.

3 years agoFix expansion of non-ASCII $HOME
Eli Zaretskii [Thu, 2 Sep 2021 15:49:01 +0000 (18:49 +0300)]
Fix expansion of non-ASCII $HOME

* src/fileio.c (Fexpand_file_name): Make the file name multibyte
if the value of $HOME is multibyte.  (Bug#50266)

3 years agoFix 'clone-frame' on TTY frames
Eli Zaretskii [Thu, 2 Sep 2021 11:58:41 +0000 (14:58 +0300)]
Fix 'clone-frame' on TTY frames

* src/frame.c (Fmake_terminal_frame): Make a separate copy of the
faces for the new frame before calling modify-frame-parameters, as
on TTY frames that needs the faces already set up.  (Bug#34715)

3 years agoImprove a recent change in 'mule-cmds.el'
Eli Zaretskii [Thu, 2 Sep 2021 10:43:00 +0000 (13:43 +0300)]
Improve a recent change in 'mule-cmds.el'

* lisp/international/mule-cmds.el
(select-safe-coding-system--format-list): Display codepoints in
hex and as characters.  Display the ellipsis in a better place.
Enlarge the limit to 5 codepoints, as the display is now easier to
grasp.
(select-safe-coding-system-interactively): Don't use
'select-safe-coding-system--format-list' for "rejected"
coding-systems, as those don't come with characters and positions.

3 years agoMake the coding system warning prettier
Lars Ingebrigtsen [Thu, 2 Sep 2021 08:51:39 +0000 (10:51 +0200)]
Make the coding system warning prettier

* lisp/international/mule-cmds.el
(select-safe-coding-system--format-list): New function to display
the coding system information in a more readable format (bug#31062).
(select-safe-coding-system-interactively): Use it.

3 years agoReformat up-list and backward-up-list doc strings
Lars Ingebrigtsen [Thu, 2 Sep 2021 08:22:52 +0000 (10:22 +0200)]
Reformat up-list and backward-up-list doc strings

* lisp/emacs-lisp/lisp.el (backward-up-list): Reformat the doc
string into several paragraphs (bug#31349).
(up-list): Ditto and fix the "start" to be "end".

3 years agoisearch*-lax-whitespace doc string improvements
Lars Ingebrigtsen [Thu, 2 Sep 2021 07:57:30 +0000 (09:57 +0200)]
isearch*-lax-whitespace doc string improvements

* lisp/isearch.el (isearch-regexp-lax-whitespace):
* lisp/isearch.el (isearch-lax-whitespace): Mention the key binding
in the doc string (bug#31790).

3 years agoFix documentation of `dired-do-touch'
Lars Ingebrigtsen [Thu, 2 Sep 2021 07:49:06 +0000 (09:49 +0200)]
Fix documentation of `dired-do-touch'

* doc/emacs/dired.texi (Operating on Files): Fix documentation of
`dired-do-touch' (bug#50323).

3 years agomemory-report: support calculating size for structures
Yikai Zhao [Thu, 2 Sep 2021 07:37:06 +0000 (09:37 +0200)]
memory-report: support calculating size for structures

* lisp/emacs-lisp/memory-report.el (memory-report--object-size-1): Add
support for cl-defstruct types (bug#50301).

3 years agoFix up previous ebfn2ps tweak
Lars Ingebrigtsen [Thu, 2 Sep 2021 07:19:54 +0000 (09:19 +0200)]
Fix up previous ebfn2ps tweak

* lisp/progmodes/ebnf2ps.el (ebnf-print-buffer): Remove NOOP decode
step.

3 years agoAdd a test for bug#50320 in sh-script
Lars Ingebrigtsen [Thu, 2 Sep 2021 06:43:48 +0000 (08:43 +0200)]
Add a test for bug#50320 in sh-script

3 years agoRevert "Tweak sh-script-mode indentation further"
Lars Ingebrigtsen [Thu, 2 Sep 2021 06:41:30 +0000 (08:41 +0200)]
Revert "Tweak sh-script-mode indentation further"

This reverts commit 6392bc37ab3b7eb83465d9b2248d21173373ae73.

The changes led to errors throughout (bug#50320).

3 years agotramp-auto-save-directory: make private
Stephen Gildea [Thu, 2 Sep 2021 03:42:28 +0000 (20:42 -0700)]
tramp-auto-save-directory: make private

* lisp/net/tramp.el (tramp-handle-make-auto-save-file-name):
chmod 0700 tramp-auto-save-directory when creating

Thanks to Michael Albinus for reviewing this patch.

3 years agoFix segfault with invalid key-translation-map binding
Eli Zaretskii [Wed, 1 Sep 2021 16:27:43 +0000 (19:27 +0300)]
Fix segfault with invalid key-translation-map binding

* src/keyboard.c (access_keymap_keyremap): Don't assume an invalid
function is specified as a symbol.  Reported by Perry E. Metzger
<perry@piermont.com>.

3 years agoFilter out the `name' parameter in clone-frame
Lars Ingebrigtsen [Wed, 1 Sep 2021 14:27:06 +0000 (16:27 +0200)]
Filter out the `name' parameter in clone-frame

* lisp/frame.el (clone-frame): Filter out the `name' parameter,
because two frames shouldn't have the same name and this will
lead to a warning.

3 years agoDon't have epg bug out on non-existent packages
Lars Ingebrigtsen [Wed, 1 Sep 2021 10:15:21 +0000 (12:15 +0200)]
Don't have epg bug out on non-existent packages

* lisp/epg.el (epg--start): We may be called from contexts where
the directory doesn't exist, but we need to have an existing
directory here for the process (bug#32004).

3 years agoAdd new macro `with-existing-directory'
Lars Ingebrigtsen [Wed, 1 Sep 2021 10:13:19 +0000 (12:13 +0200)]
Add new macro `with-existing-directory'

* doc/lispref/files.texi (Testing Accessibility): Document it.
* lisp/subr.el (with-existing-directory): New macro (bug#32004).

3 years ago; Auto-commit of loaddefs files.
Glenn Morris [Wed, 1 Sep 2021 13:45:01 +0000 (06:45 -0700)]
; Auto-commit of loaddefs files.

3 years ago* Add a dll loader entry for gcc_jit_context_new_cast (bug#50315)
Kien Nguyen [Wed, 1 Sep 2021 09:56:51 +0000 (18:56 +0900)]
* Add a dll loader entry for gcc_jit_context_new_cast (bug#50315)

* src/comp.c: Add a dll loader entry for
'gcc_jit_context_new_cast' (bug#50315).

3 years agoAdd new command `clone-frame'
Drew Adams [Wed, 1 Sep 2021 09:42:48 +0000 (11:42 +0200)]
Add new command `clone-frame'

* doc/emacs/frames.texi (Creating Frames): Document it.

* lisp/frame.el (clone-frame): New command and keystroke (bug#34715).

3 years agoMake set-foreground-color display completions using foreground colors
Glenn Morris [Wed, 1 Sep 2021 09:26:51 +0000 (11:26 +0200)]
Make set-foreground-color display completions using foreground colors

* lisp/faces.el (defined-colors-with-face-attributes): Also create
colors for foregrounds (bug#33799).
(read-color): Also allow varying the foreground color.

* lisp/frame.el (set-foreground-color): Vary the foreground color.

3 years agoFix (setf (map-elt map key) (my-func))
Lars Ingebrigtsen [Wed, 1 Sep 2021 08:32:49 +0000 (10:32 +0200)]
Fix (setf (map-elt map key) (my-func))

* lisp/emacs-lisp/map.el (map-elt): Ensure that the value isn't
referenced more than once (bug#50290).

3 years agoAutoload calc-grab-sum-across and calc-grab-sum-down
Lars Ingebrigtsen [Wed, 1 Sep 2021 08:14:33 +0000 (10:14 +0200)]
Autoload calc-grab-sum-across and calc-grab-sum-down

* lisp/calc/calc.el (calc-grab-sum-down):
(calc-grab-sum-across): Autoload, since they can be used from
outside Calc (bug#50311).

3 years agoIn batch mode, avoid killing Emacs with C-g in the minibuffer
Miha Rihtaršič [Wed, 1 Sep 2021 08:10:44 +0000 (10:10 +0200)]
In batch mode, avoid killing Emacs with C-g in the minibuffer

* src/keyboard.c (Fcommand_error_default_function): Don't kill emacs
when handling the minibuffer-quit condition (bug#48603).

3 years agoUse "gzip -d" instead of "gunzip"
Marco Centurion [Wed, 1 Sep 2021 07:37:12 +0000 (09:37 +0200)]
Use "gzip -d" instead of "gunzip"

* lisp/dired-aux.el (dired-compress-file-suffixes): Use "gzip -d"
instead of "gunzip" since we already assume that "gzip" exists on
the system (bug#10990).

Copyright-paperwork-exempt: yes

3 years agoAvoid failing if vc backend doesn't implement ignore-completion-table
Philip Kaludercic [Tue, 31 Aug 2021 20:24:02 +0000 (22:24 +0200)]
Avoid failing if vc backend doesn't implement ignore-completion-table

* project.el (project-ignores): Handle vc-not-supported signals

3 years ago; Add comment to tramp-read-passwd for debugging
Michael Albinus [Tue, 31 Aug 2021 08:09:38 +0000 (10:09 +0200)]
; Add comment to tramp-read-passwd for debugging

3 years agoRename xref--mouse-2 and adjust documentation
Lars Ingebrigtsen [Tue, 31 Aug 2021 02:50:18 +0000 (04:50 +0200)]
Rename xref--mouse-2 and adjust documentation

* doc/emacs/maintaining.texi (Xref Commands): `mouse-1' is bound
to `xref-goto-xref', not `mouse-2' (bug#35376).
(Xref Commands): Mention what `mouse-2' does.

* lisp/progmodes/xref.el (xref--button-map): Adjust.
(xref-select-and-goto-xref): Rename from xref--mouse-2 (bug#35376).

3 years agoFix point placement after ispell-complete-word
Lars Ingebrigtsen [Tue, 31 Aug 2021 02:31:01 +0000 (04:31 +0200)]
Fix point placement after ispell-complete-word

* lisp/textmodes/ispell.el (ispell-complete-word): Leave point at
the end of the inserted word instead of a less than useful amount
of distance from the start of the word (bug#37552).

3 years agocall-process doc string clarification
Lars Ingebrigtsen [Tue, 31 Aug 2021 02:13:58 +0000 (04:13 +0200)]
call-process doc string clarification

* src/callproc.c (Fcall_process): Explicitly say that "output"
means both stdout and stderr (bug#37906).

3 years agoMake calc plotting through gnuplot work on non-X gnuplots
Lars Ingebrigtsen [Tue, 31 Aug 2021 01:47:45 +0000 (03:47 +0200)]
Make calc plotting through gnuplot work on non-X gnuplots

* lisp/calc/calc-graph.el (calc-graph-plot): Fall back on "dumb"
if we don't support the terminal (bug#50237).
(calc-gnuplot-command): Say whether the command errored out.

3 years agoFix abnf parsing of <prose> elements
Lars Ingebrigtsen [Tue, 31 Aug 2021 01:17:21 +0000 (03:17 +0200)]
Fix abnf parsing of <prose> elements

* lisp/progmodes/ebnf-abn.el (ebnf-abn-lex): Make <prose> parsing
work (bug#39663).

3 years agoMake run-at-time try harder to run at integral multiples
Lars Ingebrigtsen [Tue, 31 Aug 2021 01:04:22 +0000 (03:04 +0200)]
Make run-at-time try harder to run at integral multiples

* lisp/emacs-lisp/timer.el (timer): Add new slot integral-multiple.
(timerp): Adjust.
(timer-event-handler): Recompute the delay if requested
(bug#39099).
(run-at-time): Mark the timer as recomputable if given a t
parameter.

* src/keyboard.c (decode_timer): Adjust.

3 years agoMove the expansion of abbreviated names to vc-git.el
Dmitry Gutov [Mon, 30 Aug 2021 23:47:31 +0000 (02:47 +0300)]
Move the expansion of abbreviated names to vc-git.el

* lisp/vc/vc-git.el (vc-git--literal-pathspec):
Perform the expansion of abbreviated file names here instead
(bug#39452).

* lisp/vc/vc.el (vc-root-diff, vc-print-root-log):
Undo the recent change.

3 years ago; cperl-mode.el: Fix border cases of inserting with elisp
Harald Jörg [Mon, 30 Aug 2021 16:53:51 +0000 (18:53 +0200)]
; cperl-mode.el: Fix border cases of inserting with elisp

* lisp/progmodes/cperl-mode.el (cperl-unwind-to-safe): Replace
(and extend) inline comment by a docstring.  Handle edge cases when
inserting text with elisp (related to Bug#28962).
(cperl-process-here-doc): Add syntax-type `here-doc-start'.
(cperl-find-pods-heres): Make sure that the results of this
function are immediately visible.

* test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-14343):
Add test cases for "empty" here-documents and inserting at the
edges of a here-document.

3 years agoImplement proper type conversion in native compiler
Andreas Schwab [Mon, 30 Aug 2021 16:26:46 +0000 (18:26 +0200)]
Implement proper type conversion in native compiler

* src/comp.c (enum cast_kind_of_type): Remove.
(comp_t): Add cast_ptr_to_int, cast_int_to_ptr, remove
cast_type_sizes, cast_type_kind, cast_type_names, cast_union_fields,
cast_union_field_biggest_type.
(emit_coerce): Remove check for type size.
(struct cast_type): Remove bytes_size.
(define_type_punning): New function.
(define_cast_from_to): Implement proper type conversion.
(define_cast_functions): Adjust.  (bug#50230)

3 years ago(cperl-test-bug-14343): Make it work for perl-mode
Stefan Monnier [Mon, 30 Aug 2021 14:52:25 +0000 (10:52 -0400)]
(cperl-test-bug-14343): Make it work for perl-mode

* test/lisp/progmodes/cperl-mode-tests.el (cperl--tests-heredoc-face):
New const.
(cperl-test-heredocs, cperl-test-bug-14343): Use it.
(cperl-test-identify-no-heredoc): Remove left-over message.

3 years ago* test/lisp/progmodes/cperl-mode-tests.el: Adjust here-doc tests for perl-mode
Stefan Monnier [Mon, 30 Aug 2021 14:47:16 +0000 (10:47 -0400)]
* test/lisp/progmodes/cperl-mode-tests.el: Adjust here-doc tests for perl-mode

(cperl-test-identify-heredoc, cperl-test-identify-no-heredoc):
Tweak tests so they can also be used for perl-mode.

3 years ago* etc/NEWS: Fix typo
Stefan Monnier [Mon, 30 Aug 2021 13:16:21 +0000 (09:16 -0400)]
* etc/NEWS: Fix typo

3 years agoImprove documentation of 'ispell-hunspell-add-multi-dic'
Eli Zaretskii [Mon, 30 Aug 2021 12:48:35 +0000 (15:48 +0300)]
Improve documentation of 'ispell-hunspell-add-multi-dic'

* lisp/textmodes/ispell.el (ispell-hunspell-add-multi-dic):
Explain in the doc string how to call from Lisp.  (Bug#50241)

3 years agoMinor improvement in 'get-locale-names' on MS-Windows
Eli Zaretskii [Mon, 30 Aug 2021 12:42:32 +0000 (15:42 +0300)]
Minor improvement in 'get-locale-names' on MS-Windows

* lisp/international/mule-cmds.el (get-locale-names): Delete
duplicate locales from the list returned by the MS-Windows
implementation.

3 years agoFix typo in kill-buffer-delete-auto-save-files NEWS entry
Lars Ingebrigtsen [Mon, 30 Aug 2021 02:54:12 +0000 (04:54 +0200)]
Fix typo in kill-buffer-delete-auto-save-files NEWS entry

3 years agoMake some non-ASCII work in ebnf2ps
Lars Ingebrigtsen [Mon, 30 Aug 2021 01:14:08 +0000 (03:14 +0200)]
Make some non-ASCII work in ebnf2ps

* lisp/progmodes/ebnf2ps.el (ebnf-print-buffer): Make non-ASCII
work slightly better (bug#39663).

3 years agoFix typo in previous custom.texi change
Lars Ingebrigtsen [Mon, 30 Aug 2021 00:23:37 +0000 (02:23 +0200)]
Fix typo in previous custom.texi change

* doc/emacs/custom.texi (Init Syntax): Fix typo in previous change
-- it's customize-set-variable.

3 years agoMake epg use rfc6068 for decoding %-encoded strings
Lars Ingebrigtsen [Mon, 30 Aug 2021 00:03:15 +0000 (02:03 +0200)]
Make epg use rfc6068 for decoding %-encoded strings

* lisp/epg.el (epg--decode-percent-escape-as-utf-8): Make obsolete
and adjust callers.
(epg--decode-hexstring): Ditto.

* lisp/mail/rfc6068.el (rfc6068-unhexify-string): Allow returning
non-decoded octets (bug#39689).

3 years agoMake rfc2368 obsolete and add rfc6068
Lars Ingebrigtsen [Sun, 29 Aug 2021 23:56:10 +0000 (01:56 +0200)]
Make rfc2368 obsolete and add rfc6068

* lisp/obsolete/rfc2368.el: Moved here and made obsolete.

* lisp/mail/rfc6068.el (rfc6068-unhexify-string): New file.