Miha Rihtaršič
45793b195c
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).
2021-09-01 10:10:44 +02:00
Marco Centurion
a0be0cdbd2
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
2021-09-01 09:38:00 +02:00
Philip Kaludercic
8761d30da0
Avoid failing if vc backend doesn't implement ignore-completion-table
...
* project.el (project-ignores): Handle vc-not-supported signals
2021-08-31 23:36:55 +02:00
Michael Albinus
e5c481b61c
; Add comment to tramp-read-passwd for debugging
2021-08-31 10:09:38 +02:00
Lars Ingebrigtsen
03dcceeeee
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).
2021-08-31 04:50:18 +02:00
Lars Ingebrigtsen
bd17fe1d9e
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).
2021-08-31 04:31:01 +02:00
Lars Ingebrigtsen
b612821388
call-process doc string clarification
...
* src/callproc.c (Fcall_process): Explicitly say that "output"
means both stdout and stderr (bug#37906).
2021-08-31 04:13:58 +02:00
Lars Ingebrigtsen
31b06ea36f
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.
2021-08-31 03:47:45 +02:00
Lars Ingebrigtsen
65ddaaf41f
Fix abnf parsing of <prose> elements
...
* lisp/progmodes/ebnf-abn.el (ebnf-abn-lex): Make <prose> parsing
work (bug#39663).
2021-08-31 03:17:21 +02:00
Lars Ingebrigtsen
50765f3f51
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.
2021-08-31 03:04:22 +02:00
Dmitry Gutov
d2ad64b7a5
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.
2021-08-31 02:47:31 +03:00
Harald Jörg
a1887cc5e6
; 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.
2021-08-30 20:32:41 +02:00
Andreas Schwab
6767e55659
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)
2021-08-30 19:00:46 +02:00
Stefan Monnier
ebd7c52f11
(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.
2021-08-30 10:52:25 -04:00
Stefan Monnier
455bed3c72
* 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.
2021-08-30 10:47:16 -04:00
Stefan Monnier
bc9516a6f1
* etc/NEWS: Fix typo
2021-08-30 09:16:21 -04:00
Eli Zaretskii
9e67ef88f2
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)
2021-08-30 15:48:35 +03:00
Eli Zaretskii
b654420b1b
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.
2021-08-30 15:42:32 +03:00
Lars Ingebrigtsen
670b423ebc
Fix typo in kill-buffer-delete-auto-save-files NEWS entry
2021-08-30 04:54:12 +02:00
Lars Ingebrigtsen
c221f17b1c
Make some non-ASCII work in ebnf2ps
...
* lisp/progmodes/ebnf2ps.el (ebnf-print-buffer): Make non-ASCII
work slightly better (bug#39663).
2021-08-30 03:14:08 +02:00
Lars Ingebrigtsen
6885c62a10
Fix typo in previous custom.texi change
...
* doc/emacs/custom.texi (Init Syntax): Fix typo in previous change
-- it's customize-set-variable.
2021-08-30 02:23:37 +02:00
Lars Ingebrigtsen
1dc79aa8fc
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).
2021-08-30 02:03:15 +02:00
Lars Ingebrigtsen
7dabcb1511
Make rfc2368 obsolete and add rfc6068
...
* lisp/obsolete/rfc2368.el: Moved here and made obsolete.
* lisp/mail/rfc6068.el (rfc6068-unhexify-string): New file.
2021-08-30 01:56:10 +02:00
Lars Ingebrigtsen
31226b0341
Only look for the port command on MacOS
...
* configure.ac: Only look for the port command on MacOS (bug#50259).
2021-08-30 01:20:30 +02:00
Lars Ingebrigtsen
5da9b3d2bd
Move vc-branch-p and vc-branch-part from vc.el to vc-rcs.el and rename
...
* lisp/vc/vc-rcs.el (vc-rcs-branch-p): Renamed from `vc-branch-p'
(old name made into obsolete alias) and moved from vc.el.
(vc-rcs-branch-part): Renamed from `vc-branch-part'
(old name made into obsolete alias) and moved from vc.el.
2021-08-29 22:37:30 +02:00
Lars Ingebrigtsen
7c7d58f454
Fix vc test for RCS
...
* test/lisp/vc/vc-tests.el (vc-test--rename-file): Fix test for RCS.
2021-08-29 21:56:22 +02:00
Lars Ingebrigtsen
5bd23b0cd3
Mention `set-variable' in the Init Syntax Emacs manual node
...
* doc/emacs/custom.texi (Init Syntax): Mention set-variable
(bug#50248).
(Init Examples): Add an example.
2021-08-29 21:32:01 +02:00
Clément Pit-Claudel
9117a76b53
Change --with-nativecomp to --with-native-compilation in messages
...
* configure.ac:
* test/infra/Dockerfile.emba:
* test/infra/gitlab-ci.yml: Fix mentions of --with-nativecomp
(bug#50255).
2021-08-29 21:32:01 +02:00
Augusto Stoffel
dce5f7aed6
Add support for OSC 7 in comint (current directory tracking)
...
* lisp/comint.el (comint-osc-directory-tracker, comint-osc-handlers):
Define and register a handler for OSC 7.
(comint-osc-process-output): Do fewer checks on
'comint-last-output-start'.
2021-08-29 21:32:01 +02:00
Kévin Le Gouguec
6392bc37ab
Tweak sh-script-mode indentation further
...
* lisp/progmodes/sh-script.el (sh-smie--default-backward-token):
Allow more parentheses in a token (bug#44592).
2021-08-29 21:32:01 +02:00
Philipp Stephani
8fa624b39b
Improve compatibility with musl-libc (Bug#48789)
...
* lib-src/seccomp-filter.c (export_filter): Remove use of
nonstandard macro TEMP_FAILURE_RETRY.
2021-08-29 20:51:39 +02:00
Eli Zaretskii
a2a0b70c8b
; * src/xfaces.c (gui_supports_face_attributes_p): Fix typo in comment.
2021-08-29 18:03:28 +03:00
Alan Mackenzie
9a1d54814e
C++ Mode: handle compound identifiers preceding brace lists correctly
...
* lisp/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): early in
function, check alternatively for c-back-over-compound-identifier when doing
c-backward-token-2.
* bracelist-36.{cc,res}: New test files.
2021-08-29 14:03:57 +00:00
Alan Third
3065b6b73b
Fix libexec installation on NS (bug#50250)
...
* lib-src/Makefile.in (ns_applibexecdir): New variable.
2021-08-29 13:09:21 +01:00
Eli Zaretskii
f1901fc308
Better document obsolescence of 'values'
...
* doc/lispref/eval.texi (Eval): Mention that 'values' is obsolete.
* etc/NEWS: Add a rationale for obsoleting 'values'.
2021-08-29 14:47:02 +03:00
Eli Zaretskii
dbec4ae06b
; Copy contents of oldXMenu/copyright.h into oldXMenu/*.[ch] files
2021-08-29 14:28:36 +03:00
Alan Third
b0fe06e656
Disable the NS app when no frames are left (bug#14619, bug#21357, bug#23586)
...
* src/nsfns.m (Fx_create_frame): Enable the app.
* src/nsterm.m (ns_delete_terminal): Disable the app.
2021-08-29 10:22:15 +01:00
Dmitry Gutov
8fb32387c1
; Remove copypasta accident
2021-08-29 03:58:01 +03:00
Dmitry Gutov
6d36177589
Add tests for vc-rename-file
...
* test/lisp/vc/vc-tests.el (vc-test--rename-file): New function.
(vc-test-%s05-rename-file): New family of tests (bug#39452).
2021-08-29 03:17:08 +03:00
Stefan Monnier
692da8c6a8
* etc/NEWS: Document the recent xterm.el change for \e[29~
2021-08-28 10:25:16 -04:00
Juri Linkov
55e77a811a
* lisp/progmodes/flymake.el: Bind mouse-3 to flymake-menu on mode-line.
...
* lisp/progmodes/flymake.el (flymake--mode-line-title):
Bind [mode-line down-mouse-3] to flymake-menu (bug#50067)
2021-08-27 20:12:30 +03:00
Juri Linkov
3360f03926
Revert part of 3572613550 (bug#39452)
...
* lisp/vc/vc-git.el (vc-git-rename-file): Don't use vc-git--literal-pathspecs.
2021-08-27 20:12:30 +03:00
Dario Gjorgjevski
4bb70549f7
Fix shell-script-mode indentation of continuation lines
...
* lisp/progmodes/sh-script.el (sh-smie--default-backward-token):
Fix indentation of continuation lines (bug#44592).
2021-08-27 19:08:41 +02:00
Michalis V
9224a86319
Fix completion of extended "..." syntax in eshell
...
* lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments): Expand
"..." (bug#19626).
2021-08-27 18:46:04 +02:00
Lars Ingebrigtsen
e26d628a4e
Don't overly truncate tabulated-list headers
...
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-init-header):
Don't overly truncate headers that are before a right-aligned
column (bug#44594).
(tabulated-list--available-space): Separated out into own
function...
(tabulated-list-print-col): ... from here.
2021-08-27 18:41:42 +02:00
Lars Ingebrigtsen
185759e07a
Fix `M-X TAB' completion for commands marked for multiple modes
...
* lisp/simple.el (command-completion-using-modes-p): Fix
completion over commands that are defined for multiple modes
(bug#50228).
2021-08-27 17:27:52 +02:00
Lars Ingebrigtsen
61323c6d76
Put advice documentation at the end of the displayed doc string
...
* lisp/emacs-lisp/nadvice.el (advice--make-docstring): Put the
advice things at the end of the documentation (bug#50222). It's
important to have the first line of the original documentation
remain the first line, because it's used when doing one-line
summaries of the function.
2021-08-27 17:15:17 +02:00
Thierry Volpiatto
d0693617b8
Make `eshell-command' also work when asynchronous
...
* lisp/eshell/esh-cmd.el (eshell-eval-command): Make asynchronous
`eshell-command' work (e.g. `M-x eshell-command RET sleep 10 &')
(bug#50209).
2021-08-27 17:15:17 +02:00
Christophe Troestler
0d45ad99da
lisp/newcomment.el: Uncommenting with whitespace `comment-continue'
...
* lisp/newcomment.el (uncomment-region-default-1): Make
all-whitespace `comment-continue' work (bug#50226).
Copyright-paperwork-exempt: yes
2021-08-27 17:15:17 +02:00
Andrea Corallo
f7da671493
* Forward `comp-file-preloaded-p' to async workers
...
* lisp/emacs-lisp/comp.el (comp-run-async-workers): Forward
`comp-file-preloaded-p' to async workers.
2021-08-27 15:30:20 +02:00