Andrea Corallo
2f78ac32bb
* Add `comp--install-trampoline' machinery
...
* src/comp.c (Fcomp__install_trampoline): New function to
install a subr trampoline into the function relocation table.
Once this is done any call from native compiled Lisp to the
related primitive will go through the `funcall' trampoline
making advicing effective.
2020-09-23 21:08:02 +02:00
Andrea Corallo
2ab0966b2f
Make CHECK_SUBR public
...
* src/data.c (CHECK_SUBR): Move from here to...
* src/lisp.h (CHECK_SUBR): ...to here.
2020-09-23 20:53:33 +02:00
Andrea Corallo
9d4fd669cf
* lisp/emacs-lisp/comp.el (comp-final): Log when interactively invoked.
2020-09-23 20:48:23 +02:00
Andrea Corallo
63c65b4fe0
* lisp/emacs-lisp/comp.el (native-compile): Add OUTPUT parameter.
2020-09-23 20:47:34 +02:00
Andrea Corallo
4a50f54144
* Fix MacOS Emacs.app installation (bug#43532)
...
* src/comp.c (Fcomp_el_to_eln_filename): Adapt the filename
hashing algorithm to allow for producing a MacOS self-contained
Emacs.app.
2020-09-22 14:43:21 +02:00
Andrea Corallo
89a2e79b7d
* Make use of use of subr-primitive-p' in find-function-library'
...
* lisp/emacs-lisp/find-func.el (find-function-library): Use
`subr-primitive-p'.
2020-09-21 21:46:18 +02:00
Andrea Corallo
69c32e0187
* Sandbox syncronous libgccjit invocation on interactive sessions
...
Avoid unnecessary memory fragmentation/leakeage
* lisp/emacs-lisp/comp.el (comp-final1): New function.
(comp-final): Invoke `comp-final1' in a child process if in an
interactive session or directly otherwhise.
2020-09-21 21:46:07 +02:00
Andrea Corallo
5a8be1719a
Merge remote-tracking branch 'savannah/master' into HEAD
2020-09-21 21:45:02 +02:00
Stefan Kangas
fb68645b5a
Move several completions from eshell to pcomplete (Bug#10585)
...
* lisp/eshell/em-unix.el (eshell-complete-hostname)
(pcomplete/ftp, pcomplete/ncftp, pcomplete/ping)
(pcomplete/rlogin, pcomplete/telnet, pcomplete/rsh):
Move from here...
* lisp/pcmpl-unix.el (pcmpl-unix-complete-hostname)
(pcomplete/ftp, pcomplete/ncftp, pcomplete/ping)
(pcomplete/rlogin, pcomplete/telnet, pcomplete/rsh):
...to here. Make old names into aliases.
* lisp/eshell/esh-util.el (eshell-hosts-file)
(eshell-host-names, eshell-host-timestamp)
(eshell-read-hosts-file, eshell-read-hosts)
(eshell-read-host-names): Move from here...
* lisp/pcomplete.el (pcomplete-hosts-file)
(pcomplete--host-name-cache)
(pcomplete--host-name-cache-timestamp)
(pcomplete-read-hosts-file, pcomplete-read-hosts)
(pcomplete-read-host-names): ...to here. Make old names into
aliases.
* lisp/eshell/em-unix.el (eshell-complete-host-reference): Update
caller.
2020-09-21 20:38:56 +02:00
Stefan Kangas
600d3f0669
Move pcomplete/bcc32 from eshell to pcmpl-x (Bug#10585)
...
* lisp/eshell/em-xtra.el (pcomplete/bcc32, pcomplete/bcc): Move
from here...
* lisp/pcmpl-x.el (pcomplete/bcc32, pcomplete/bcc): ...to here.
2020-09-21 20:38:56 +02:00
Stefan Kangas
9fff5491c3
Convert a manual test for nxml-mode to unit test
...
* test/manual/indent/nxml.xml: Delete file.
* test/lisp/nxml/nxml-mode-tests.el
(nxml-mode-test-comment-bug-17264): New test based on deleted file.
2020-09-21 18:47:55 +02:00
Stefan Kangas
b63c3535b0
Convert manual indent test for ruby-mode into unit test
...
* test/manual/indent/ruby.rb: Move from here...
* test/lisp/progmodes/ruby-mode-resources/ruby.rb: ...to here.
* test/lisp/progmodes/ruby-mode-tests.el
(ruby-mode-tests-data-dir): New variable.
(ruby--indent/converted-from-manual-test): New test.
2020-09-21 18:47:55 +02:00
Stefan Kangas
1d98bed6c3
Convert manual indent test for scheme-mode into unit test
...
* test/manual/indent/scheme.scm: Delete file.
* test/lisp/progmodes/scheme-tests.el: New file with unit test for
scheme-mode based on deleted file.
2020-09-21 18:47:55 +02:00
Stefan Kangas
01f7fdb2a0
Convert manual indent test for ps-mode into unit test
...
* test/manual/indent/ps-mode.ps: Delete file.
* test/lisp/progmodes/ps-mode-tests.el (ps-mode-test-indent):
New unit test based on deleted file.
2020-09-21 18:47:55 +02:00
Sam Steingold
fb8c319825
(json-encode-string): Strip properties to fix bug#43549
2020-09-21 11:50:39 -04:00
Lin Sun
fa560bea19
Fix problem with ede-mode bugging out on non-existent files
...
* lisp/cedet/ede/emacs.el: Check whether the directory exists in
ede-emacs-find-in-directories before using it (bug#43547).
2020-09-21 17:33:13 +02:00
Lars Ingebrigtsen
018278a8d0
Fix recent change to window-max-chars-per-line
...
* lisp/window.el (window-max-chars-per-line):
line-number-display-width can return a floating point number, but
we want an integer (bug#43548).
2020-09-21 17:24:02 +02:00
Lars Ingebrigtsen
ca4a37e093
Doc string fix for gnus-summary-hide-thread
...
* lisp/gnus/gnus-sum.el (gnus-summary-hide-thread): Remove text
from doc string apparently copy-pasted from the function above.
2020-09-21 17:20:14 +02:00
dickmao
c8f809dbb9
Remove a misleading message in gnus-summary-hide-thread
...
* lisp/gnus/gnus-sum.el (gnus-summary-hide-thread):
Jump past invisible thread instead of begging off with an out-of-band
diagnostic (bug#43538).
2020-09-21 17:19:14 +02:00
Stefan Kangas
d5d642eb71
Convert manual indent test for opascal-mode into unit test
...
* test/manual/indent/opascal.pas: Delete file.
* test/lisp/progmodes/opascal-tests.el: New file with unit test for
oposcal-mode based on deleted file.
2020-09-21 16:46:21 +02:00
Stefan Kangas
31cb935cd7
Convert manual indent test for lisp-mode into unit test
...
* test/manual/indent/lisp.lisp: Delete file.
* test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-indent-defun):
New unit test based on deleted file.
2020-09-21 16:46:21 +02:00
Stefan Kangas
f3e2d3418a
Convert manual indent test for elisp-mode into unit test
...
* test/manual/indent/elisp.el: Delete file.
* test/lisp/progmodes/elisp-mode-tests.el (elisp-indent-basic):
New unit test based on deleted file.
2020-09-21 16:46:21 +02:00
Stefan Kangas
12ca463833
; * test/lisp/textmodes/css-mode-tests.el: Add TODO.
2020-09-21 16:46:21 +02:00
Stephen Berman
7a2ac61b5d
Fix check in `newline' for blank lines
...
* lisp/simple.el (newline): Clarify doc string and fix check for
blank lines (bug#13810).
2020-09-21 16:35:31 +02:00
Lars Ingebrigtsen
e8d80f1e14
Fix line width in M-x term on -nw with line numbers
...
* lisp/window.el (window-max-chars-per-line): Make the line width
more correct in the presence of display-line-numbers-mode (bug#34513).
2020-09-21 16:10:13 +02:00
Lars Ingebrigtsen
d2b754ec1a
Add more isearch submatch faces
...
* doc/emacs/search.texi (Search Customizations): Adjust
documentation.
* lisp/isearch.el (search-highlight-submatches): Be a boolean.
(isearch-group-{6-9}): New faces.
(isearch-highlight): Use the variable as a boolean.
2020-09-21 15:57:00 +02:00
Stefan Kangas
ebad35e4d9
; Fix more trivial typos
2020-09-21 15:51:07 +02:00
Juri Linkov
611b85b663
Tweak how Man selects the previous window on failure
...
* lisp/man.el (Man-bgproc-sentinel): Ensure that we select the
correct previous window (bug#38164).
2020-09-21 15:06:00 +02:00
Stefan Kangas
462dbc1cb2
; Fix typos
2020-09-21 14:26:42 +02:00
Lars Ingebrigtsen
e72d3793bc
Allow disabling the verbose eldoc truncation message
...
* doc/emacs/programs.texi (Lisp Doc): Document it.
* lisp/emacs-lisp/eldoc.el (eldoc-display-truncation-message): New
variable (bug#43543).
(eldoc--handle-docs): Use it.
2020-09-21 14:15:39 +02:00
Nicolas Graner
4cb1e30988
Fix default value in checkboxes in eww
...
* lisp/net/eww.el (eww-submit): Checked checkboxes need a default
value (bug#43542).
Copyright-paperwork-exempt: yes
2020-09-21 14:15:39 +02:00
Michael Albinus
63f9d9af81
Add D-Bus tests
...
* doc/misc/dbus.texi (Type Conversion): Precise basic type values.
* lisp/net/dbus.el (dbus-register-property): Send signal directly.
* src/dbusbind.c (xd_signature): Accept non-nil objects for
DBUS_TYPE_BOOLEAN.
* test/lisp/net/dbus-tests.el (dbus-test01-basic-types)
(dbus-test01-compound-types): New tests.
2020-09-21 13:41:30 +02:00
Glenn Morris
81aed7becf
; * lisp/emacs-lisp/syntax.el (syntax-propertize-function): Doc fix.
2020-09-20 17:20:08 -07:00
Glenn Morris
7a5132954b
Merge from origin/emacs-27
...
02a31c9632 (origin/emacs-27) Minor improvement in the ELisp manual's ...
f750def778 Mention in PROBLEMS the problems with fonts and Uniscribe
082d8a21b1 Minor copyedits in 'line-height' documentation
5b23393bcc ; * src/frame.c (syms_of_frame) <make-pointer-invisible>: ...
2020-09-20 17:18:16 -07:00
Glenn Morris
2e33c3fd8d
; Merge from origin/emacs-27
...
The following commit was skipped:
c151797da9 * doc/misc/eww.texi: Document the `w' key's double function
2020-09-20 17:18:16 -07:00
Glenn Morris
3675993d76
Merge from origin/emacs-27
...
df04f3e755 Fix a rare segfault in syntax.c
fd1fe1e1ec Add doc to syntax-propertize-function saying it must do a ...
fcd599bbea Minor copyedits of doc of 'with-silent-modifications'
759399cdb1 Improve documentation of 'max-mini-window-height'
3223302aa2 Use modern constant names for the NS pasteboard
985703d380 Fix doc string of 'toggle-menu-bar-mode-from-frame'
184a4977c7 Make vc-bzr tests work with brz 3.1 (bug#43314)
# Conflicts:
# lisp/emacs-lisp/syntax.el
# src/syntax.c
2020-09-20 17:18:16 -07:00
Glenn Morris
15c594c282
; Merge from origin/emacs-27
...
The following commit was skipped:
03093baf90 diff-no-select doc string clarification
2020-09-20 17:10:50 -07:00
Glenn Morris
5a2125b854
Merge from origin/emacs-27
...
694acda5f2 Fix compilation on TERMINFO platforms with GCC 10
f3373901e5 Fix the font-lock-debug-fontify NEWS entry
# Conflicts:
# etc/NEWS
2020-09-20 17:10:50 -07:00
Lars Ingebrigtsen
ec6254e552
Fix infloop when folding difficult headers in Message
...
* lisp/mail/rfc2047.el (rfc2047-fold-field): Return the end point.
* lisp/gnus/message.el (message--fold-long-headers): Use that to
reliably achieve progress.
2020-09-21 00:26:54 +02:00
Lars Ingebrigtsen
f4d186b3b8
Allow not selecting messages in Gnus before resending
...
* lisp/gnus/gnus-msg.el (gnus-summary-resend-message): Allow not
selecting messages. This is faster when resending huge spam messages.
2020-09-21 00:22:22 +02:00
Lars Ingebrigtsen
6d9297abe0
Make xterm-mouse-event check whether the click event is valid
...
* lisp/xt-mouse.el (xterm-mouse-event): Defensively check against
a situation that shouldn't happen (but does) (bug#17378).
2020-09-20 23:32:45 +02:00
Alan Mackenzie
6089dec2b4
C++ Mode: Modernize the fontification of "using"
...
Since "using" is now used in three distinct ways in C++, write a special
function to handle these rather than attempting to adapt the old regular
expressions.
* lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Amend to allow the
argument TYPES to be a face. This face is given to the declarator being
processed.
(c-font-lock-single-decl): Make an argument to c-font-lock-declarators nil or
t, not merely nil or non-nil.
(c-complex-decl-matchers): Include c-font-lock-c++-using in the C++ value of
this variable.
(c-font-lock-c++-using): New function.
* lisp/progmodes/cc-langs.el (c-using-kwds, c-using-key): New lang
consts/vars.
(c-modifier-kwds): Remove "using" from the C++ value.
2020-09-20 19:57:05 +00:00
Lars Ingebrigtsen
2007cd3cac
Restore the previous minimum-width specs in the line/column mode lines
...
* lisp/bindings.el (mode-line-position-line-format)
(mode-line-position-column-format)
(mode-line-position-column-line-format, mode-line-position):
Restore the previous min-width specs (bug#28648).
2020-09-20 21:43:01 +02:00
Lars Ingebrigtsen
dc2168ebf2
Make (let ((:key 'foo)) :key) signal an error in lexical elisp, too
...
* src/lread.c (intern_sym): Mark keywords as special (bug#38872).
2020-09-20 21:30:54 +02:00
Lars Ingebrigtsen
300a5a5757
Fix typo in dbus.texi
...
* doc/misc/dbus.texi (Type Conversion): Remove spurious { character.
2020-09-20 19:20:57 +02:00
Michael Albinus
f8624fb834
Make D-Bus properties type safe
...
* doc/misc/dbus.texi (Properties and Annotations):
Precise dbus-get-property and dbus-set-property.
(Type Conversion): Explain :byte and :boolean type conversion.
(Errors and Events): dbus-ignore-errors returns nil when there is
a D-Bus error. Remove dbus-show-dbus-errors.
* etc/NEWS: Some D-Bus relevant changes.
* lisp/net/dbus.el (dbus-show-dbus-errors): Remove.
(dbus-ignore-errors): Replay implamentation without that variable.
(dbus-check-arguments): New defun.
(dbus-list-activatable-names, dbus-list-names)
(dbus-list-queued-owners, dbus-get-name-owner, dbus-introspect)
(dbus-get-all-properties, dbus-get-all-managed-objects): Don't debug.
(dbus-get-property, dbus-set-property): Propagate errors.
(dbus-register-property): Check for valid VALUE.
(dbus-property-handler): Simplify.
* src/dbusbind.c (Fdbus_message_internal): Adapt docstring.
Handle DBUS_MESSAGE_TYPE_INVALID.
* test/lisp/net/dbus-tests.el (dbus-show-dbus-errors): Don't declare.
(dbus-test06-register-property)
(dbus-test06-register-property-emits-signal): Adapt tests.
2020-09-20 16:44:17 +02:00
Eli Zaretskii
02a31c9632
Minor improvement in the ELisp manual's Introduction
...
* doc/lispref/intro.texi (Printing Notation): Clarify what
"execute code" means in this context. (Bug#43463)
2020-09-20 17:33:55 +03:00
Eli Zaretskii
209dfa11a4
Improve documentation of a recently-added feature
...
* lisp/isearch.el (search-highlight-submatches): Improve the doc
string.
* doc/emacs/search.texi (Search Customizations): Improve the
documentation of 'search-highlight-submatches'.
* etc/NEWS: Minor change of the entry for
'search-highlight-submatches'.
2020-09-20 17:16:38 +03:00
Juri Linkov
09e109851b
Highlight regexp sub-expressions
...
* doc/emacs/search.texi (Search Customizations): Document it.
* lisp/isearch.el (search-highlight-submatches): New variable.
(isearch-group-1, isearch-group-2, isearch-group-3)
(isearch-group-4, isearch-group-5): New faces.
(isearch-highlight): Use them.
(isearch-dehighlight): Ditto (bug#6227).
2020-09-20 15:46:19 +02:00
Kévin Le Gouguec
f8d8d28bc6
Tweak dired warning about "wildcard" characters
...
* lisp/dired-aux.el (dired-isolated-string-re): Use explicitly
numbered groups.
(dired--star-or-qmark-p): Add START parameter. Make sure to
return the first isolated match.
(dired--need-confirm-positions, dired--mark-positions)
(dired--highlight-no-subst-chars, dired--no-subst-explain)
(dired--no-subst-ask, dired--no-subst-confirm): New functions.
(dired-do-shell-command): Use them (bug#28969, bug#35564).
* test/lisp/dired-aux-tests.el (dired-test-bug27496): Adapt to
new prompt.
(dired-test--check-highlighting): New test helper.
(dired-test-highlight-metachar): New tests.
2020-09-20 14:16:19 +02:00