]> git.eshelyaron.com Git - emacs.git/log
emacs.git
3 years ago* rcirc.texi: Replace defun-rcirc-command with rcirc-define-command
Philip Kaludercic [Sat, 11 Sep 2021 14:43:56 +0000 (16:43 +0200)]
* rcirc.texi: Replace defun-rcirc-command with rcirc-define-command

3 years ago* rcirc.texi: Document rcirc-track-abbrevate-flag
Philip Kaludercic [Sat, 11 Sep 2021 14:40:18 +0000 (16:40 +0200)]
* rcirc.texi: Document rcirc-track-abbrevate-flag

3 years ago* rcirc.texi: Document rcirc-nick-filter and rcirc-channel-filter
Philip Kaludercic [Sat, 11 Sep 2021 14:37:42 +0000 (16:37 +0200)]
* rcirc.texi: Document rcirc-nick-filter and rcirc-channel-filter

3 years ago* rcirc.texi: Document rcirc-track-ignore-server-buffer-flag
Philip Kaludercic [Sat, 11 Sep 2021 14:01:45 +0000 (16:01 +0200)]
* rcirc.texi: Document rcirc-track-ignore-server-buffer-flag

3 years ago* rcirc.texi: Document rcirc-omit-responses-after-join
Philip Kaludercic [Sat, 11 Sep 2021 13:56:44 +0000 (15:56 +0200)]
* rcirc.texi: Document rcirc-omit-responses-after-join

3 years agoRename rcirc-omit-after-reconnect to rcirc-omit-after-connect
Philip Kaludercic [Sat, 11 Sep 2021 13:32:19 +0000 (15:32 +0200)]
Rename rcirc-omit-after-reconnect to rcirc-omit-after-connect

* rcirc.el (rcirc-omit-after-reconnect): Remove variable
(rcirc-omit-responses-after-join): Add variable
(rcirc-reconncting): Remove variable
(rcirc-joined): Add variable
(rcirc-get-buffer-create): Set rcirc-joined
(rcirc-print): Use rcirc-joined
(reconnect): Remove code relating to rcirc-reconncting

3 years agoMerge branch 'master' into feature/rcirc-update
Philip Kaludercic [Fri, 10 Sep 2021 18:33:15 +0000 (20:33 +0200)]
Merge branch 'master' into feature/rcirc-update

3 years agoFix double reconnection bug
Philip Kaludercic [Fri, 10 Sep 2021 16:57:11 +0000 (18:57 +0200)]
Fix double reconnection bug

* rcirc.el (rcirc-sentinel): Don't reconnect if reconnecting
(reconnect): Use delete-process instead of kill-process

3 years agoAdd rcirc-track-ignore-server-buffer-flag option
Philip Kaludercic [Tue, 7 Sep 2021 19:53:22 +0000 (21:53 +0200)]
Add rcirc-track-ignore-server-buffer-flag option

* rcirc.el (rcirc-track-ignore-server-buffer-flag): Add option
(rcirc-record-activity): Use rcirc-track-ignore-server-buffer-flag

3 years agoUse fresh symbol for argument list
Philip Kaludercic [Tue, 7 Sep 2021 09:03:36 +0000 (11:03 +0200)]
Use fresh symbol for argument list

* rcirc.el (rcirc-define-command): Use make-symbol instead of gensym

3 years agoAllow /reconnect while connecting
Philip Kaludercic [Tue, 7 Sep 2021 08:33:51 +0000 (10:33 +0200)]
Allow /reconnect while connecting

* rcirc.el (reconnect): Kill previous process and start a new one

3 years agoMention list of capabilities that should be implemented
Philip Kaludercic [Mon, 6 Sep 2021 21:26:05 +0000 (23:26 +0200)]
Mention list of capabilities that should be implemented

* rcirc.el (rcirc-implemented-capabilities): Add comment

3 years agoImplement standard-replies capability
Philip Kaludercic [Mon, 6 Sep 2021 20:37:33 +0000 (22:37 +0200)]
Implement standard-replies capability

* rcirc.el (rcirc-implemented-capabilities): Add standard-replies to list
(rcirc-response-formats): Add response formats for WARN, FAIL and NOTE
(rcirc-handler-FAIL): Add handler
(rcirc-handler-WARN): Add handler
(rcirc-handler-NOTE): Add handler

3 years agoConnect to server asynchronously
Philip Kaludercic [Mon, 6 Sep 2021 17:10:46 +0000 (19:10 +0200)]
Connect to server asynchronously

* rcirc.el (rcirc-connect): Add :nowait option to open-network-stream
(rcirc-sentinel): Handle "open\n" events

3 years agoNormalise nested `progn` forms in byte-code optimiser
Mattias Engdegård [Mon, 6 Sep 2021 12:41:26 +0000 (14:41 +0200)]
Normalise nested `progn` forms in byte-code optimiser

* lisp/emacs-lisp/byte-opt.el (byte-optimize-body): Flatten body.
This simplifies the source tree and reduces the number of different
cases that other optimisations need to take into account.

3 years agoMore robust optimisation of `ignore`
Mattias Engdegård [Thu, 10 Jun 2021 19:27:16 +0000 (21:27 +0200)]
More robust optimisation of `ignore`

Treat `ignore` as any other function during source-level optimisation,
to avoid having its warning-suppression effects cancelled by repeated
passes.  Instead, define a custom code generation function.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker):
Don't treat `ignore' specially here.
(side-effect-free-fns): Don't mark `ignore` as side-effect-free
or error-free (although it is), since that would allow the optimiser
to elide calls.
* lisp/emacs-lisp/bytecomp.el (ignore, byte-compile-ignore):
Define and register a code-gen function.

3 years agoOptimise `member` and `assoc` (etc) with constant empty list
Mattias Engdegård [Wed, 28 Jul 2021 19:07:58 +0000 (21:07 +0200)]
Optimise `member` and `assoc` (etc) with constant empty list

* lisp/emacs-lisp/byte-opt.el
(byte-optimize-assq): New.
(byte-optimize-member, byte-optimize-assoc, byte-optimize-memq):
When the list argument is constant nil, the result is always nil.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add test cases.

3 years agoFixup dired-do-find-regexp-and-replace
Dmitry Gutov [Mon, 6 Sep 2021 14:07:25 +0000 (17:07 +0300)]
Fixup dired-do-find-regexp-and-replace

* lisp/dired-aux.el (dired-do-find-regexp-and-replace):
Disregard the customized value of xref-auto-jump-to-first-xref
(it breaks the xref-query-replace-in-results invocation).

* lisp/progmodes/xref.el (xref-auto-jump-to-first-xref):
Mention the caveat for users or xref distributed through ELPA.

3 years agoRevert an accidential change in etc/NEWS
Michael Albinus [Mon, 6 Sep 2021 13:16:51 +0000 (15:16 +0200)]
Revert an accidential change in etc/NEWS

3 years ago; Fix typos in etc/NEWS
Michael Albinus [Mon, 6 Sep 2021 13:06:07 +0000 (15:06 +0200)]
; Fix typos in etc/NEWS

3 years agoMake calc-grab-region work with rectangular selects
Lars Ingebrigtsen [Mon, 6 Sep 2021 10:56:02 +0000 (12:56 +0200)]
Make calc-grab-region work with rectangular selects

* lisp/calc/calc.el (calc-grab-region): Heed `rectangle-mark-mode'
(bug#50403).

3 years agoRestore the debugging window size more reliably
martin rudalics [Mon, 6 Sep 2021 10:48:07 +0000 (12:48 +0200)]
Restore the debugging window size more reliably

* lisp/emacs-lisp/debug.el (debug): Restore the debugging window
size more reliably (bug#12921).

3 years agoAdd a tooltip to the comint-mode mode line format
Lars Ingebrigtsen [Mon, 6 Sep 2021 10:36:32 +0000 (12:36 +0200)]
Add a tooltip to the comint-mode mode line format

* lisp/comint.el (comint-mode): Add a tooltip to say what the :run
bit means (bug#13776).

3 years agoImprove the info-mode mode line
Lars Ingebrigtsen [Mon, 6 Sep 2021 10:33:22 +0000 (12:33 +0200)]
Improve the info-mode mode line

* lisp/info.el (Info-set-mode-line): Add a help echo to help
explain what the thing in parentheses is (bug#13776).

3 years ago; * lisp/tab-bar.el (toggle-frame-tab-bar, tab-bar-new-tab-to): Doc fix.
Eli Zaretskii [Mon, 6 Sep 2021 10:13:22 +0000 (13:13 +0300)]
; * lisp/tab-bar.el (toggle-frame-tab-bar, tab-bar-new-tab-to): Doc fix.

3 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Mon, 6 Sep 2021 10:12:54 +0000 (13:12 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

3 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Mon, 6 Sep 2021 10:12:30 +0000 (13:12 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

3 years agoSimplify `image-dired-dired-file-marked-p'
Lars Ingebrigtsen [Mon, 6 Sep 2021 10:10:37 +0000 (12:10 +0200)]
Simplify `image-dired-dired-file-marked-p'

* lisp/image-dired.el (image-dired-dired-file-marked-p): Use
`dired-re-mark' instead of open-coding the opposite regexp (bug#14925).

3 years ago; * etc/NEWS: Rearrange and fix wording of some entries.
Eli Zaretskii [Mon, 6 Sep 2021 10:10:16 +0000 (13:10 +0300)]
; * etc/NEWS: Rearrange and fix wording of some entries.

3 years agoImprove the gnus-group-default-list-level doc string
Lars Ingebrigtsen [Mon, 6 Sep 2021 09:12:00 +0000 (11:12 +0200)]
Improve the gnus-group-default-list-level doc string

* lisp/gnus/gnus-group.el (gnus-group-default-list-level): Improve
doc string.

3 years agoReset gnus-group-use-permanent-levels when Gnus restarts
Lars Ingebrigtsen [Mon, 6 Sep 2021 09:07:55 +0000 (11:07 +0200)]
Reset gnus-group-use-permanent-levels when Gnus restarts

* lisp/gnus/gnus-start.el (gnus-clear-system): Reset
`gnus-group-use-permanent-levels' upon Gnus restart (bug#50416).

3 years agoMake `gnus-group-use-permanent-levels' work better
Allen Li [Mon, 6 Sep 2021 08:59:54 +0000 (10:59 +0200)]
Make `gnus-group-use-permanent-levels' work better

* lisp/gnus/gnus-group.el (gnus-group-default-level): Removed implicit
setting of gnus-group-use-permanent-levels.
(gnus-group-list-groups): Set gnus-group-use-permanent-levels
explicitly.
(gnus-group-get-new-news): Set gnus-group-use-permanent-levels
explicitly (bug#50417).
(gnus-group-get-new-news): When the user has given a numeric
prefix, use that as the list level.

3 years ago; * etc/NEWS: Restore entry that had been inadvertently deleted.
Stefan Kangas [Mon, 6 Sep 2021 06:47:10 +0000 (08:47 +0200)]
; * etc/NEWS: Restore entry that had been inadvertently deleted.

3 years ago* etc/NEWS: Reorder "Isearch and Replace" items
Juri Linkov [Mon, 6 Sep 2021 06:32:39 +0000 (09:32 +0300)]
* etc/NEWS: Reorder "Isearch and Replace" items

3 years ago* doc/emacs/maintaining.texi (Xref Commands): Fix indexing.
Eli Zaretskii [Mon, 6 Sep 2021 04:28:05 +0000 (07:28 +0300)]
* doc/emacs/maintaining.texi (Xref Commands): Fix indexing.

3 years ago* etc/NEWS: Improve file organization.
Stefan Kangas [Mon, 6 Sep 2021 02:27:12 +0000 (04:27 +0200)]
* etc/NEWS: Improve file organization.

3 years agoImprove documentation of save-place-abbreviate-file-names
Stefan Kangas [Sun, 5 Sep 2021 07:27:00 +0000 (09:27 +0200)]
Improve documentation of save-place-abbreviate-file-names

* lisp/saveplace.el (save-place-abbreviate-file-names): Document why
you might want to enable this option.

3 years ago* etc/NEWS: Don't mention a fixed bug.
Stefan Kangas [Sun, 5 Sep 2021 05:54:35 +0000 (07:54 +0200)]
* etc/NEWS: Don't mention a fixed bug.

3 years ago; * test/lisp/newcomment-tests.el: Fix copyright year.
Stefan Kangas [Sat, 4 Sep 2021 20:25:02 +0000 (22:25 +0200)]
; * test/lisp/newcomment-tests.el: Fix copyright year.

3 years agoproject--files-in-directory: Fix handling of ignores
Dmitry Gutov [Mon, 6 Sep 2021 02:01:07 +0000 (05:01 +0300)]
project--files-in-directory: Fix handling of ignores

* lisp/progmodes/project.el (project--files-in-directory):
Pass "." as the DIR argument to 'find' because otherwise the ignore
expression can match the project root directory name, which we don't
want to happen (bug#50240).  Fixup the resulting file names at the end
with concatenation.
Originally I thought it could lead to worse performance, but the
results show equal or slightly better timings.

* lisp/progmodes/xref.el (xref-matches-in-directory):
Apply a similar fix.
(xref--find-ignores-arguments): Use file-name-as-directory, so
that when passed "." replace-match still had the expected effect.

* test/lisp/progmodes/project-tests.el (project-ignores-bug-50240):
New test.

* test/lisp/progmodes/xref-tests.el
(xref-matches-in-directory-filters-with-ignores): New test.

3 years agoTry to fix vc-test-git06-version-diff on Hydra
Dmitry Gutov [Sun, 5 Sep 2021 23:32:46 +0000 (02:32 +0300)]
Try to fix vc-test-git06-version-diff on Hydra

* test/lisp/vc/vc-tests.el (vc-test--version-diff):
Fix Git backend when running in clean environment.
(vc-test-git06-version-diff): Unskip on Hydra.

3 years ago* test/lisp/vc/vc-tests.el (vc-test-git06-version-diff): Skip on hydra.
Glenn Morris [Sun, 5 Sep 2021 21:04:43 +0000 (14:04 -0700)]
* test/lisp/vc/vc-tests.el (vc-test-git06-version-diff): Skip on hydra.

3 years ago* lisp/progmodes/xref.el: Bump the version again.
Dmitry Gutov [Sun, 5 Sep 2021 19:25:15 +0000 (22:25 +0300)]
* lisp/progmodes/xref.el: Bump the version again.

3 years agoImplement multi-prefix capability
Philip Kaludercic [Sun, 5 Sep 2021 18:42:48 +0000 (20:42 +0200)]
Implement multi-prefix capability

* rcirc.el (rcirc-implemented-capabilities): Add capability
(rcirc-user-nick): Handle multiple prefixes

3 years agoFix rcirc-track-abbrevate-flag documentation
Philip Kaludercic [Sun, 5 Sep 2021 18:34:18 +0000 (20:34 +0200)]
Fix rcirc-track-abbrevate-flag documentation

* rcirc.el (rcirc-track-abbrevate-flag): Rephrase docstring

3 years agoStore symbols in rcirc-acked-capabilities
Philip Kaludercic [Sun, 5 Sep 2021 18:30:43 +0000 (20:30 +0200)]
Store symbols in rcirc-acked-capabilities

* rcirc.el (rcirc-handler-CAP): Use intern and downcase

3 years ago; * lisp/indent.el (tab-first-completion): Fix :version tag.
Eli Zaretskii [Sun, 5 Sep 2021 18:24:22 +0000 (21:24 +0300)]
; * lisp/indent.el (tab-first-completion): Fix :version tag.

3 years agoPrint value on malformed input
Philip Kaludercic [Sun, 5 Sep 2021 17:13:48 +0000 (19:13 +0200)]
Print value on malformed input

* rcirc.el (rcirc-define-command): Unquote argument

3 years agoAutoload cl-struct-slot-info
Lars Ingebrigtsen [Sun, 5 Sep 2021 14:52:11 +0000 (16:52 +0200)]
Autoload cl-struct-slot-info

* lisp/emacs-lisp/cl-macs.el (cl-struct-slot-info): Autoload
(bug#50301).

* test/lisp/emacs-lisp/memory-report-tests.el: Don't require cl-macs.

3 years ago; * etc/NEWS: Fix a recent change.
Eli Zaretskii [Sun, 5 Sep 2021 10:33:46 +0000 (13:33 +0300)]
; * etc/NEWS: Fix a recent change.

3 years agoImprove the documentation around the read-key/minibuffer prompting
Lars Ingebrigtsen [Sun, 5 Sep 2021 10:02:16 +0000 (12:02 +0200)]
Improve the documentation around the read-key/minibuffer prompting

* lisp/subr.el (read-char-choice-use-read-key): Explain the
difference.
(read-char-choice): Mention the variables.
(y-or-n-p-use-read-key): Explain the difference.
(y-or-n-p): Mention the variable (bug#50390).

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 agoReplace with-current-buffer with buffer-local-value where applicable
Philip Kaludercic [Sat, 4 Sep 2021 23:39:52 +0000 (01:39 +0200)]
Replace with-current-buffer with buffer-local-value where applicable

* rcirc.el (rcirc-buffer-process): Use buffer-local-value
(rcirc-last-quit-line): Use buffer-local-value
(rcirc-bury-buffers): Use buffer-local-value
(rcirc-record-activity): Use buffer-local-value

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).