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
Juri Linkov
a573d6bd88
Replace flyspell-use-mouse-3-for-menu with context-menu-mode (bug#50067)
...
* doc/emacs/fixit.texi (Spelling): Replace mentions of
flyspell-use-mouse-3-for-menu with context-menu-mode.
* lisp/mouse.el (context-menu-map): Use the function from the
text property context-menu-function at mouse click event.
* lisp/textmodes/flyspell.el (flyspell--set-use-mouse-3-for-menu):
Remove function.
(flyspell-use-mouse-3-for-menu): Remove defcustom added recently in 28.1.
(flyspell-context-menu): New function.
(flyspell-mode): Don't call flyspell--set-use-mouse-3-for-menu.
(flyspell-mode-on): Replace flyspell-use-mouse-3-for-menu
with context-menu-mode.
(make-flyspell-overlay): When context-menu-mode is non-nil,
put overlay context-menu-function with flyspell-context-menu
instead of using keymap flyspell-mouse-map.
2021-08-27 09:24:07 +03:00
Lars Ingebrigtsen
9c1bbad907
python-shell-interpreter doc string clarification
...
* lisp/progmodes/python.el (python-shell-interpreter): Note what
to do when using ipython3 (bug#44732).
2021-08-27 04:49:57 +02:00
Lars Ingebrigtsen
cc5b6cb6bc
Fix backtrace when query-about-changed-file nil and file has changed
...
* lisp/userlock.el (userlock--check-content-unchanged): Make the
assertion more robust -- we may be called here from a different
contexts if `query-about-changed-file' is nil.
2021-08-27 04:00:58 +02:00
Noah Evans
8567ec8bcf
Fix recentering issue in `follow-mode'
...
* lisp/follow.el (follow-recenter): Make `C-c . C-l' work in
windows before the middle one, too (bug#50220).
Copyright-paperwork-exempt: yes
2021-08-27 03:43:19 +02:00
Lars Ingebrigtsen
602419bbca
Enable setting timeclock-workday after switching mode on
...
* lisp/calendar/timeclock.el (timeclock--previous-workday): New
variable.
(timeclock-find-discrep): Use it to flush values when
timeclock-workday changes (bug#50216).
(timeclock-mode-line-display): Mention `timeclock-workday' setting
in doc string.
2021-08-27 03:10:46 +02:00
Lars Ingebrigtsen
ee2ffd9c9e
Fix problem with symlinks in compile buffers
...
* lisp/progmodes/compile.el (compilation-find-file): Avoid
`expand-file-name' when computing the file names, because that will
reliably give the wrong result when there's symlinks and ".."
involved (bug#8035).
2021-08-26 19:28:34 +02:00
Philip Kaludercic
869579170b
timeclock.el: Update example configuration
...
* lisp/calendar/timeclock.el: Update comments that were no longer
correct (bug#50211).
2021-08-26 16:23:29 +02:00
Lars Ingebrigtsen
e4ec39e52d
Make dired-chmod-program obsolete
...
* lisp/dired.el (dired-chmod-program): Make into a defvar and make
obsolete (bug#50190).
* lisp/net/ange-ftp.el (ange-ftp-process-file): Remove usage of
dired-chmod-program.
2021-08-26 16:12:17 +02:00
Lars Ingebrigtsen
fc4d3eea5a
Revert "Add support for "bright" ANSI colors in ansi-color"
...
This reverts commit c8e3347ec0 .
Jim Porter's paperwork isn't finalised yet.
2021-08-26 15:22:28 +02:00
Lars Ingebrigtsen
2e2400a13f
Revert "Add support for "bright" ANSI colors in term-mode"
...
This reverts commit 2b2a103db0 .
Jim Porter's paperwork isn't finalized yet.
2021-08-26 15:21:52 +02:00
Lars Ingebrigtsen
e1ca0ba7d4
Revert "Add missing :version tags to new faces"
...
This reverts commit 9759fb596b .
Jim Porter's paperwork isn't finalized yet.
2021-08-26 15:21:10 +02:00
Michael Albinus
e5f82c1305
Improve robustness of shadowfile.el
...
* lisp/shadowfile.el (shadow-site-help): New defconst.
(shadow-read-site): Use it.
(shadow-make-fullname, shadow-contract-file-name)
(shadow-define-literal-group): Handle errors more robust. (Bug#49596)
* test/lisp/shadowfile-tests.el (shadow-test06-literal-groups):
Extend test.
2021-08-26 13:14:19 +02:00