1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-07 06:22:32 -08:00
Commit graph

151382 commits

Author SHA1 Message Date
Lars Ingebrigtsen
d608eb1c94 Guard against faulty flow-filled emails
* lisp/mail/flow-fill.el (fill-flowed): Don't bug out if there's a
space at the end of the buffer.  This is probably not allowed in
the flow-fill specification, but has been observed in the wild.
2020-09-11 16:45:16 +02:00
Alan Mackenzie
b054393dd1 CC Mode: Fix minor bugs in the string handling functions
These sometimes gave rise to the tail of a buffer being "stringed out".

* lixp/progmodes/cc-defs.el (c-will-be-unescaped): New macro.

* lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings)
(c-after-change-mark-abnormal-strings): Fix bugs in the handling of string
fence syntax-table text properties.
2020-09-11 14:22:04 +00:00
Eli Zaretskii
6dbef93048 Improve help-echo of Undo and Redo menu items
* lisp/menu-bar.el (undo-redo, undo): Improve the wording of
help-echo strings.
2020-09-11 17:13:44 +03:00
Lars Ingebrigtsen
bde93182bf Tweak previous mailcap patch (for external viewers)
* lisp/net/mailcap.el (mailcap-view-mime): Delete contents of the
buffer in the external case, too.
2020-09-11 15:37:00 +02:00
Michael Albinus
dbd8994e0d D-Bus: Implement other compound types of properties
* doc/misc/dbus.texi (Errors and Events):
* etc/NEWS: Mention dbus-show-dbus-errors.

* lisp/net/dbus.el (dbus-compound-types): New defconst.
(dbus): New defgroup.
(dbus-show-dbus-errors): New defcustom.
(dbus-ignore-errors): Use it.
(dbus-set-property): Simplify.
(dbus-property-handler): Implement other compound types of properties.

* test/lisp/net/dbus-tests.el (dbus--test-register-service)
(dbus-test05-register-property): Extend tests.
2020-09-11 15:34:33 +02:00
Andrea Corallo
c55884d72a * src/comp.c (emit_static_object): Make use of ARRAYELTS. 2020-09-11 15:04:34 +02:00
Andrea Corallo
ff593d934a * Make use of new 'gcc_jit_global_set_initializer' entry point
Use this brand new entry point to avoid the current workaround and its
load-time memcpys.

	* src/comp.c (gcc_jit_global_set_initializer): Add to the dynamic
	load machinery.
	(static_obj_t): Remove const qualifier from the data field.
	(emit_static_object): Make use of 'gcc_jit_global_set_initializer'
	when available.
	(load_static_obj): Use the blob for loading if that was emitted.
2020-09-11 15:04:28 +02:00
Lars Ingebrigtsen
2862f6b2bf Fix up eldef shortening of the minibuffer
* lisp/minibuf-eldef.el (minibuffer-default--in-prompt-regexps):
Don't include the ": " bit in the portion to be replaced
(bug#12443).
2020-09-11 14:52:25 +02:00
Lars Ingebrigtsen
8d9133c602 Improve diff-no-select doc string
* lisp/vc/diff.el (diff-no-select): Improve the doc string somewhat.
2020-09-11 14:26:15 +02:00
Lars Ingebrigtsen
a34a80a878 Fix viewing PDFs from eww with external viewers
* lisp/net/mailcap.el (mailcap-view-mime): Most MIME viewers can't
take input on stdin (and in any case, "-" is not how many of them
designate stdin) (bug#43318).  So rewrite to put the data on a
file and feed the file name to the viewer.
2020-09-11 14:06:07 +02:00
Mattias Engdegård
c0eee8cb2c Calc: regularise test names
* test/lisp/calc/calc-tests.el (calc-remove-units, calc-extract-units)
(calc-convert-units, calc-bug-23889, calc-trig, calc-format-radix)
(calc-calendar, calc-solve-linear-system):
Use a uniform naming convention (calc- prefix) to simplify test running.
2020-09-11 13:11:43 +02:00
Mattias Engdegård
891bbec2e0 Simplify big integer constants in Calc
* lisp/calc/calc-comb.el (math-small-factorial-table):
* lisp/calc/calc-funcs.el (math-bernoulli-b-cache):
* lisp/calc/calc.el (math-2-word-size, math-half-2-word-size):
No need for math-read-number-simple.
2020-09-11 13:02:59 +02:00
Mattias Engdegård
b5fe447480 Fix calc tests when running noninteractively
This error was introduced in 8e1376a391.

* lisp/calc/calc.el (calc--header-line): Prevent size from being negative.
2020-09-11 12:54:00 +02:00
Andrea Corallo
42b5a1101d * Update gitlab CI yml file
* .gitlab-ci.yml (test-native-bootstrap-speed0)
	(test-native-bootstrap-speed1, test-native-bootstrap-speed2):
	Update for new make invokation.
2020-09-11 11:18:48 +02:00
Andrea Corallo
3c58403b0f By default when building native compile only what's part of the dump image
To Ahead of Time compile the whole Emacs distro define NATIVE_FULL_AOT
when invoking make ex: 'make NATIVE_FULL_AOT=1'.

	* lisp/Makefile.in (NATIVE_SKIP_NONDUMP): New variable.
	(compile-main): Use it + rename NATIVE_DISABLE -> NATIVE_DISABLED.
	* lisp/emacs-lisp/comp.el
	(batch-byte-native-compile-for-bootstrap): Rename NATIVE_DISABLE
	-> NATIVE_DISABLED.
2020-09-11 11:01:11 +02:00
Eli Zaretskii
e2391d486e * lisp/simple.el (undo-redo): Doc fix. 2020-09-11 08:56:51 +03:00
Andrew G Cohen
8cf274f960 Allow an info structure as argument for gnus-group-get-parameter
* lisp/gnus/gnus.el (gnus-group-get-parameter): Allow the group
argument to be either a group name or a group info structure. This is
then parallel to gnus-group-set-parameter.
2020-09-11 10:31:47 +08:00
Stefan Monnier
f7e35f8162 * lisp/loadup.el ("button"): Move to after loaddefs.el 2020-09-10 22:10:02 -04:00
Andrew G Cohen
206cff84bd Clean up group-finding in Gnus nnir search
This is part of removing code from nnir.el that isn't related to
searching backends and therefore belongs somewhere else.

* lisp/gnus/gnus-group.el (gnus-group-make-search-group)
(gnus-group-read-ephemeral-search-group): Put the logic for
determining the groups to search here, rather than in nnir. Improve
documentation.
* lisp/gnus/gnus-int.el (gnus-server-get-active): Renamed from
'nnir-get-active.
* lisp/gnus/nnir.el (nnir-run-imap, nnir-run-find-grep): Use it.
(nnir-get-active): Remove.
(nnir-make-specs): Make obsolete.
* lisp/gnus/nnselect.el (nnselect-group-server):  Make obsolete in
favor of 'gnus-group-server.
2020-09-11 09:02:09 +08:00
Andrew G Cohen
f7be259400 Allow editing articles in Gnus nnselect groups
* lisp/gnus/nnselect.el (nnselect-request-replace-article): New function.
2020-09-11 07:31:56 +08:00
Elad Lahav
37c095a23f Fix QNX build
* configure.ac: The __NO_EXT_QNX flag is no longer needed, and is
masking the declaration of memset_s() (bug#43234).
Copyright-paperwork-exempt: yes
2020-09-11 00:01:06 +02:00
Boruch Baum
8e1376a391 Use a header line in calc mode instead of a regular in-buffer line
* lisp/calc/calc.el (calc-trail-here): Use a header line.
(calc--header-line): New function.
(calc-trail-mode): Use a header line.
2020-09-10 23:44:16 +02:00
Lars Ingebrigtsen
a4d37877f8 Tweak how `M-RET' in Message mode fills paragraphs
* lisp/gnus/message.el (message-newline-and-reformat): Pick up any
longer white-space prefix before starting to fill (bug#43299).
This fixes the problem of hitting M-RET on a line that's just ">".
2020-09-10 23:26:30 +02:00
Lars Ingebrigtsen
da344e1884 Doc fix for diff-no-select
* lisp/vc/diff.el (diff-no-select): Document the BUF argument
(bug#43307).
2020-09-10 23:03:50 +02:00
Caio Henrique
bd5b775452 Add a "Redo" entry to the menu
* lisp/menu-bar.el (menu-bar-edit-menu): Add "Redo" under "Undo"
in the Edit menu (bug#43315).

Copyright-paperwork-exempt: yes
2020-09-10 22:57:48 +02:00
Lars Ingebrigtsen
f3373901e5 Fix the font-lock-debug-fontify NEWS entry
* etc/NEWS: Fix the name of `font-lock-debug-fontify' (bug#43319).
2020-09-10 22:53:02 +02:00
Stefan Kangas
a70ce631c6 * lisp/textmodes/artist.el: Remove obsolete comments. 2020-09-10 21:14:29 +02:00
Juri Linkov
27b711f834 ; Fix typos in format-prompt 2020-09-10 21:58:26 +03:00
Stefan Kangas
4ba71eee8d Convert indent test for css-mode into automatic test
* test/lisp/textmodes/css-mode-tests.el (css-mode-test-indent): New
test.
(css-mode-tests-data-dir): New variable.
* test/manual/indent/css-mode.css: Move from here...
* test/lisp/textmodes/css-mode-resources/test-indent.css: ...to here.
2020-09-10 20:40:34 +02:00
Stefan Kangas
498773447a ; * test/manual/indent/elisp.el: Use lexical-binding. 2020-09-10 20:31:42 +02:00
Stefan Kangas
262d0c6acf Mark some tests as expensive
* test/lisp/autorevert-tests.el
(auto-revert-test00-auto-revert-mode)
(auto-revert-test03-auto-revert-tail-mode)
(auto-revert-test04-auto-revert-mode-dired):
* test/lisp/cedet/semantic-utest-c.el
(semantic-test-c-preprocessor-simulation):
* test/lisp/cedet/srecode-utest-getset.el
(srecode-utest-getset-output):
* test/lisp/emacs-lisp/cl-seq-tests.el (cl-seq-test-bug24264):
* test/lisp/emacs-lisp/package-tests.el
(package-test-update-archives-async):
* test/lisp/filenotify-tests.el (file-notify-test03-events)
(file-notify-test04-autorevert)
(file-notify-test05-file-validity, file-notify-test08-backup):
* test/lisp/net/gnutls-tests.el (test-gnutls-005-aead-ciphers):
* test/lisp/shadowfile-tests.el (shadow-test00-clusters)
(shadow-test09-shadow-copy-files):
2020-09-10 20:25:19 +02:00
Stefan Kangas
be4c4a7389 Use lexical-binding in mml-sec-tests.el
* test/lisp/gnus/mml-sec-tests.el: Use lexical-binding.
(mml-secure-test-mail-fixture)
(mml-secure-test-en-decrypt-with-passphrase): Fix warnings.
2020-09-10 19:32:53 +02:00
Stefan Kangas
ba3e2b80c0 * test/lisp/org/org-tests.el: Use lexical-binding. 2020-09-10 19:32:53 +02:00
Stefan Kangas
d32cf354b0 Use lexical-binding in url-future-tests.el
* test/lisp/url/url-future-tests.el: Use lexical-binding.
(url-future-tests--saver): New variable.
(url-future-tests): Use new variable.
2020-09-10 19:32:53 +02:00
Stefan Kangas
88a25960ec Use lexical-binding in semantic-utest-c.el
* test/lisp/cedet/semantic-utest-c.el: Use lexical-binding.
(semantic-test-gcc-output-parser): Fix warning.
2020-09-10 19:32:53 +02:00
Michael Albinus
be5047c0d2 Implement D-Bus properties with compound type.
* lisp/net/dbus.el (dbus-set-property): Fix thinko.
(dbus-register-property, dbus-property-handler): Support compound
properties.

* src/dbusbind.c (dbus-registered-objects-table): Fix docstring.

* test/lisp/net/dbus-tests.el (dbus--test-interface): Make it
different to `dbus--test-service'.
(dbus-test05-register-property)
(dbus-test05-register-property-several-paths): Adapt tests.
2020-09-10 18:49:22 +02:00
Nick Savage
70a8d06fe1 Open describe-function NEWS links in view-mode
* lisp/help-mode.el (help-news): Open describe-function NEWS links in
view-mode (Bug#39912)

Copyright-paperwork-exempt: yes
2020-09-10 15:18:46 +02:00
Alex Bochannek
6c46dddcb2 Fix up < and > "date" scoring rules in Gnus
* lisp/gnus/gnus-score.el (gnus-score-date): The previous < and >
"date" scoring rules (added in the previous patch) had reversed
logic (bug#43270).

Copyright-paperwork-exempt: yes
2020-09-10 15:16:04 +02:00
Mauro Aranda
c033bb8648 Fix :match function for the file widget
* lisp/wid-edit.el (file widget): Return nil if value is not a
string (bug#25678).
2020-09-10 15:12:50 +02:00
Lars Ingebrigtsen
5d522b430b Revert back to using ESC as viper-ESC-key again
* lisp/emulation/viper-keym.el (viper-ESC-key): Revert back to
using ESC instead of `escape' (bug#18182).  This allows using
`C-[' again on terminals for ESC.  The key should be mapped back
to `escape' by `function-key-map'.
2020-09-10 14:54:42 +02:00
Andrew G Cohen
be64c36dd4 Fix new summary-line after editing an article in Gnus
* lisp/gnus/gnus-sum.el (gnus-summary-edit-article-done): Strip ^M
from the ends of lines after saving an edited article. Otherwise the
new header isn't always parsed properly, resulting in an incorrect
subject line in the summary buffer.
2020-09-10 20:23:34 +08:00
Andrea Corallo
cb293cfb92 * Guard against trying to rename files into eln sys directory
* src/comp.c (file_in_eln_sys_dir): New function.
	(Fnative_elisp_load): Make use of.
2020-09-10 10:55:25 +02:00
Andrea Corallo
a26b14733b Merge remote-tracking branch 'savannah/master' into HEAD 2020-09-10 10:45:02 +02:00
Andrea Corallo
107514a6e2 * Fix rename file error when reloading the same file from an sys eln dir.
* src/comp.c (Fnative_elisp_load): Don't rename files we don't
	have the permission for.
2020-09-10 08:36:51 +02:00
Andrea Corallo
c2724c3ebb Revert "* src/comp.c (Fcomp__compile_ctxt_to_file): Don't cleanup caches at bootstrap."
This reverts commit 15acd27d1c.
2020-09-10 07:37:45 +02:00
Amin Bandali
931b9f5953
Set `generated-autoload-file' in erc-status-sidebar.el
* lisp/erc/erc-status-sidebar.el: Set `generated-autoload-file' to
ERC's dedicated "erc-loaddefs.el", since we don't need this file's
autoloaded functions to be available before ERC itself is loaded.
2020-09-09 23:07:49 -04:00
Basil L. Contovounesios
d08568e6e9 ; Silence byte-compilation warning in last change
* lisp/tab-line.el (tab-line-switch-cycling): Move definition before
first use.
2020-09-10 00:20:24 +01:00
Basil L. Contovounesios
60cb56e999 ; Fix typo in last change 2020-09-10 00:15:09 +01:00
Kiso Katsuyuki
5d43609095 Introduce a new variable tab-line-switch-cycling
If it is set t, enable cycling tab switch.  Default is nil.

Copyright-paperwork-exempt: yes
2020-09-09 22:24:06 +03:00
Kiso Katsuyuki
c3f986a455 Suppress errors of tab-line-switch functions
Traget errors occurs when tab-line-switch-to-prev-tab or
tab-line-switch-to-next-tab is invoked in a buffer which is not in
tabs

Copyright-paperwork-exempt: yes
2020-09-09 22:24:06 +03:00