1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-24 13:32:41 -08:00
Commit graph

141220 commits

Author SHA1 Message Date
Andrea Corallo
4c8a84002f * New native-comp CI setup
- Disable 'test-all' till is known to be broken in this branch.

- Run 'test-native-bootstrap' always (not only when scheduled).

- Set 'test-native-bootstrap' timeout to 3 hours.
2020-03-08 21:51:56 +00:00
Andrea Corallo
f055f52321 * Fix two find function functions for native compilation
`find-function-library' and `find-library-name' gets fixed for new eln
compilation directory layout.
2020-03-08 21:51:56 +00:00
Andrea Corallo
6c3efad161 * test-native-bootstrap CI test configured for speed 0
Run for now only speed 0 to limit memory usage and compilation time.
2020-03-08 12:34:43 +00:00
Andrea Corallo
cd9c1e4889 * Raise timeout for test-native-bootstrap CI test and build with -j2 2020-03-07 19:13:33 +00:00
Andrea Corallo
e4b5bd990b * Add test-native-bootstrap as CI test 2020-03-07 09:26:09 +00:00
Andrea Corallo
dc89f3a0df * Fix build for stock configuration
Vcomp_native_path_postfix is declared only in native configuration.
2020-03-04 22:01:04 +00:00
Andrea Corallo
6487d4ac5d Merge remote-tracking branch 'savannah/master' into HEAD 2020-03-04 11:07:53 +00:00
Stefan Kangas
cf45e8022e Declare speedbar-incompatible-version obsolete
This variable refers to a now ancient version of speedbar, and is no
longer useful.

* lisp/speedbar.el (speedbar-incompatible-version): Declare obsolete.
2020-03-04 05:50:26 +01:00
Daniel Colascione
1aa8780d7b Ignore spurious focus events
* src/xterm.c (x_detect_focus_change): Ignore FocusIn and FocusOut
events from grabs
2020-03-03 18:29:41 -08:00
Stéphane Boucher
21ebfa1dd8 Update default-directory in occur buffer (bug#39608)
* lisp/replace.el (occur-1): Update default-directory in occur buffer.

Copyright-paperwork-exempt: yes
2020-03-04 02:05:55 +02:00
AndreaCorallo
1f3ba658fc * Do not crash if the output directory is created in the meanwhile 2020-03-03 23:06:46 +00:00
AndreaCorallo
43b6f05dfb Hash eln ABI once and add it to the output compilation path 2020-03-03 22:23:41 +00:00
AndreaCorallo
f77f6ca770 Fix org for eln new compilation folder layout 2020-03-03 22:06:08 +00:00
AndreaCorallo
286e21c4e8 Rework `find-lisp-object-file-name'
Rework it for eln new compilation folder layout.
2020-03-03 21:01:37 +00:00
Paul Eggert
b48142ba19 Time division speedups
* src/timefns.c (frac_to_double) [FASTER_TIMEFNS]: Prefer intmax_t
division or double division to mpz division if they also yield the
correctly rounded result.
2020-03-03 10:20:33 -08:00
Paul Eggert
5e229f88f9 Fix rounding errors in time conversion
* src/timefns.c (frac_to_double): Pass FLT_RADIX to mpz_sizeinbase
instead of doing the radix calculation ourselves, not always
correctly.  Fix off-by-one error in scale, which caused
double-rounding.
(decode_time_components): Use frac_to_double (via decode_ticks_hz)
to fix double-rounding error that can occur even though
intermediate results are long double.
* test/src/timefns-tests.el (float-time-precision):
Test the above fixes.
2020-03-03 10:20:32 -08:00
Stefan Monnier
b28b7382e3 * etc/NEWS: Add entry missed in previous commit 2020-03-03 11:42:01 -05:00
Stefan Monnier
620f672518 * lisp/progmodes/elisp-mode.el (elisp-enable-lexical-binding): New command
(emacs-lisp-mode): Indicate lex/dyn binding mode in the mode line.
(elisp--dynlex-modeline-map): New var.
2020-03-03 11:34:49 -05:00
Štěpán Němec
0f94f698aa Use help-fns-short-filename in other describe- commands
The commit

2015-01-16T22:52:15-05:00!monnier@iro.umontreal.ca
24b7f77581
(Improve handling of doc-strings and describe-function for cl-generic)

added 'help-fns-short-filename', which provides file name shortening
smarter than a simple 'file-name-nondirectory' call, but besides the
generic/eieio functions ('cl--generic-describe', 'cl--describe-class',
'eieio-help-constructor'), it is currently only used by
'describe-function' (via 'help-fns-function-description-header').

Make the other help commands use it, too.

(Other than the obvious consistency/maintenance argument, my immediate
motivation for this change is the possibility to customize the file
name abbreviation by advising the function.)

* lisp/help.el (describe-mode): Move to help-fns.el.  The command was
already depending on 'find-lisp-object-file-name' defined there.
* lisp/help-fns.el (describe-variable) (describe-face) (describe-keymap)
(describe-mode): Use 'help-fns-short-filename'.
2020-03-03 10:52:27 -05:00
Paul Eggert
8518b14a76 Tweak GMP usage for (HI LO US PS) timestamps
* src/timefns.c (decode_time_components): Cut down on the number
of calls to GMP functions when generating old-style (HI LO US PS)
timestamps.
2020-03-02 12:40:59 -08:00
Alan Third
b4911a6f0d Fix macOS/GNUstep compilation warnings
* src/nsfns.m (handlePanelKeys): Unused function.
* src/nsterm.m (ns_set_appearance):
([EmacsView initFrameFromEmacs:]): Use EmacsWindow type instead of
NSWindow.
(ns_clip_to_row): Unused function.
(ns_dumpglyphs_stretch): Remove unused variable.
(ns_term_init):
([EmacsWindow setAppearance]): Only compile on macOS.
(ns_mouse_position): Make sure f is initialised on GNUstep.
* src/emacs.c (main): Move allocation of autorelease pool to before
first use.
2020-03-02 18:30:44 +00:00
Alan Third
68109c56e4 Fix #defines controlling when NS port draws to offscreen buffer
* src/nsterm.h (NS_DRAW_TO_BUFFER): New definition.
* src/nsterm.m (ns_update_begin):
(ns_update_end):
(ns_focus):
([EmacsView updateFrameSize:]):
([EmacsView initFrameFromEmacs:]):
([EmacsView copyRect:to:]): Use new #define.
2020-03-02 18:29:09 +00:00
Štěpán Němec
1939f7580b whitespace: Turn long lines regexp into a function (bug#36837)
* lisp/whitespace.el (whitespace-color-on): Turn long lines regexp
into a function to ensure it uses current 'whitespace-line-column'
and 'fill-column' values.  (Bug#36837)
(whitespace-lines-regexp): New function.
2020-03-01 22:54:32 -05:00
AndreaCorallo
bf4f620b2f * ; Clean-up out of date comment 2020-03-01 21:10:49 +00:00
Glenn Morris
13a69c829e ; Auto-commit of loaddefs files. 2020-03-01 10:04:27 -08:00
Stefan Kangas
1dd4a63140 * lisp/progmodes/cperl-mode.el: Clarify comment. 2020-03-01 01:56:42 +01:00
Stefan Kangas
228fb6f384 Remove more XEmacs compat code from viper
* lisp/emulation/viper-mous.el (viper-multiclick-timeout)
(viper-current-click-count, viper-last-click-event-timestamp)
(viper-mouse-click-insert-word)
(viper-mouse-click-search-word): Remove XEmacs compat code.
(viper-event-click-count): Redefine as obsolete function alias
for 'event-click-count'.
* lisp/emulation/viper-util.el (viper-check-version): Declare
obsolete.
2020-03-01 01:56:03 +01:00
Stefan Kangas
e98ee8ddac Make 'load-dangerous-libraries' obsolete (Bug#37819)
When 'load-dangerous-libraries' was t, Emacs allowed loading .elc
files compiled by XEmacs.  This patch removes the support for that use
case, and declares the variable obsolete.

* lisp/subr.el (load-dangerous-libraries): Declare obsolete.
* src/lread.c (Fload): Ignore its value, and thereby refuse to load
files byte compiled by XEmacs.
(syms_of_lread): Update doc string of 'bytecomp-version-regexp' to not
refer to it.
* doc/emacs/building.texi (Lisp Libraries): Remove its documentation.
2020-03-01 01:19:23 +01:00
Noah Friedman
79fe320566 Fix XEmacs-specific clause in definition of pascal-outline-map.
* lisp/progmodes/pascal.el (pascal-outline-map): Call set-keymap-name
on map, not pascal-outline-map, as the latter is not yet defined.
2020-02-29 14:50:51 -08:00
Philipp Stephani
3d2c82ac96 Unbreak build with CHECK_STRUCTS
* src/pdumper.c (dump_object): Fix hash for Lisp_Type after commit
202c3319a2.
2020-02-29 21:12:18 +01:00
AndreaCorallo
ce9e3a4ce7 Introduce 'effective_load_path' 2020-02-29 08:36:27 +00:00
AndreaCorallo
d0066e3061 * Keep comp-subr-list into pure space
Sad pure space is not effective nowdays but anyway... should go there.
2020-02-29 08:36:06 +00:00
Paul Eggert
8ab0e7316a Port timestamp tests to odd timezones, (TICKS . HZ)
* test/src/timefns-tests.el:
(format-time-string-padding-minimal-deletes-unneeded-zeros)
(format-time-string-padding-minimal-retains-needed-zeros)
(format-time-string-padding-spaces)
(format-time-string-padding-zeros-adds-on-insignificant-side):
Don't assume local time can represent 2000-02-15 00:00:00,
as there might be a DST jump over midnight.
Work even when timestamps are of (TICKS . HZ) form.
Simplify by avoiding need to call time-add.
2020-02-27 23:39:29 -08:00
Mattias Engdegård
ef4440a9c8 Revert "Signal an error for the regexp "[:alnum:]""
This reverts commit 8d5e8cddab.
2020-02-27 18:58:05 +01:00
Mattias Engdegård
4859e8db9b Revert "Don't complain about the regexp "[:-:]""
This reverts commit 3766bf728a.
2020-02-27 18:58:05 +01:00
Robert Pluim
77f69a90bf * src/nsterm.m ([EmacsView toolbarClicked:]): Fix last change 2020-02-27 12:32:50 -05:00
Stefan Monnier
c32d35e9b7 * src/gtkutil.c, src/nsterm.m: Fix bug#39808
Complete 3b4bd4be1d where I apparently failed to grep properly and
missed two more places where the dummy events were generated.

* src/nsterm.m ([EmacsView toolbarClicked:]):
* src/gtkutil.c (xg_tool_bar_callback): Don't emit dummy "prefix" events.
2020-02-27 11:18:28 -05:00
Stefan Monnier
125da00b14 * lisp/emacs-lisp/eldoc.el (eldoc-documentation-function): No nil value
(eldoc--supported-p): Move after the vars it uses.  Simplify.
(eldoc-print-current-symbol-info): Revert to previous code which
assumed a non-nil value of eldoc-documentation-function.
2020-02-26 22:47:32 -05:00
Paul Eggert
07da629926 nnmail-cache-close should not use nofollow
nnmail-cache-close did not work when ~/.nnmail-cache was a symlink
to some other directory.  Reported by Michael Albinus (Bug#39793).
* lisp/gnus/nnbabyl.el (nnbabyl-create-mbox):
* lisp/gnus/nndiary.el (nndiary-generate-nov-file):
* lisp/gnus/nnfolder.el (nnfolder-possibly-change-group):
* lisp/gnus/nnmbox.el (nnmbox-create-mbox):
* lisp/gnus/nnml.el (nnml-generate-nov-file):
Pass ‘excl’ to nnmail-write-region when creating a file, for safety.
* lisp/gnus/nnmail.el (nnmail-write-region):
Add optional MUSTBENEW arg, to stay consistent with write-region.
Past ‘nofollow’ to set-file-modes only when MUSTBENEW is ‘excl’.
2020-02-26 17:10:48 -08:00
Mattias Engdegård
3766bf728a Don't complain about the regexp "[:-:]"
Suggested by Clément Pit-Claudel.

* src/regex-emacs.c (regex_compile):
* test/src/regex-emacs-tests.el (regexp-invalid): Tolerate ranges.
2020-02-26 22:59:22 +01:00
AndreaCorallo
8788fab9e1 ; Nit fix in comment 2020-02-26 21:36:48 +00:00
Mattias Engdegård
8d5e8cddab Signal an error for the regexp "[:alnum:]"
Omitting the extra brackets is a common mistake; see discussion at
https://lists.gnu.org/archive/html/emacs-devel/2020-02/msg00215.html

* src/regex-emacs.c (reg_errcode_t, re_error_msgid): Add REG_ECLASSBR.
(regex_compile): Check for the mistake.
* test/src/regex-emacs-tests.el (regexp-invalid): Test.
* etc/NEWS: Announce.
2020-02-26 22:09:17 +01:00
Michael Albinus
2261f89324 Finish Tramp's implementation of 'nofollow
* lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy):
Do not use 'nofollow.
(tramp-adb-handle-set-file-modes):
* lisp/net/tramp-smb.el (tramp-smb-handle-set-file-modes):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-modes):
* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-modes):
Handle FLAG properly.
(tramp-get-remote-chmod-h): Adapt implementation.

* test/lisp/net/tramp-tests.el (tramp-get-remote-chmod-h): Declare.
(tramp--test-ignore-make-symbolic-link-error): Revert last change.
(tramp-test20-file-modes): Adapt test.
2020-02-26 18:43:11 +01:00
Ryan Olson
4a94881345 Show friendly message after package install
* lisp/emacs-lisp/package.el (package-install): Once we know the
package has successfully been installed using the `package-install`
command, instead of relying on the compile "Done" message, give a
message that tells the user that the package has been
installed.  (Bug#21857)

Copyright-paperwork-exempt: yes
2020-02-25 19:42:08 -05:00
Mark Oteiza
c0fcbd2c11 Expose ElDoc functions in a hook (Bug#28257)
* lisp/emacs-lisp/eldoc.el: Update commentary.
(eldoc--eval-expression-setup): Use new hook.
(eldoc--supported-p): Accomodate new hook.
(eldoc-documentation-functions): New hook.
(eldoc-documentation-default, eldoc-documentation-compose): New
functions.
(eldoc-documentation-function): Use 'eldoc-documentation-default' as new
default value.  Update documentation and custom attributes.
(eldoc-print-current-symbol-info): Accomodate possible null value for
'eldoc-documentation-function'.
* etc/NEWS: Mention them.
* doc/emacs/programs.texi (Emacs Lisp Documentation Lookup): Mention
new hook and changes to 'eldoc-documentation-function'.
* lisp/hexl.el (hexl-mode, hexl-revert-buffer-function):
* lisp/ielm.el (inferior-emacs-lisp-mode):
* lisp/progmodes/cfengine.el (cfengine3-mode):
* lisp/progmodes/elisp-mode.el (emacs-lisp-mode):
* lisp/progmodes/octave.el (octave-mode):
* lisp/progmodes/python.el (python-mode): Use new hook.
2020-02-25 18:15:12 -05:00
Mattias Engdegård
03c07c88d9 Generate 'substring' byte op (bug#39709)
The 'substring' byte op was not emitted, apparently by mistake.  Fix.
Suggested by Mark Oteiza <mvoteiza@udel.edu>.

* lisp/emacs-lisp/bytecomp.el (byte-defop-compiler): Add '1-3' clause.
(byte-compile-one-to-three-args): New.
* lisp/emacs-lisp/byte-opt.el (byte-compile-side-effect-free-ops):
Add 'byte-substring'.
* test/lisp/emacs-lisp/bytecomp-tests.el
(byte-opt-testsuite-arith-data): Test 'substring'.
2020-02-25 16:40:11 +01:00
Michael Albinus
64af3c94a6 Finish implementation of {set-}file-modes FLAG arg in Tramp
* lisp/net/tramp-adb.el (tramp-adb-handle-file-local-copy): Do not use
'nofollow for temporary files.  Use `tramp-compat-set-file-modes'.
(tramp-adb-handle-write-region): Do not use 'nofollow for
temporary files.
(tramp-adb-handle-set-file-modes): Implement FLAG.

* lisp/net/tramp-compat.el (tramp-compat-file-modes)
(tramp-compat-set-file-modes): New defaliases.

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-set-file-modes):
Make explicit check (eq flag 'nofollow).

* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-modes): Implement FLAG.
(tramp-do-copy-or-rename-file-directly)
(tramp-sh-handle-file-local-copy, tramp-sh-handle-write-region):
Do not use 'nofollow for temporary files.
(tramp-get-remote-chmod-h): New defun.

* lisp/net/tramp-smb.el (tramp-smb-handle-set-file-modes):
Implement FLAG.

* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-set-file-modes):
Implement FLAG.
(tramp-sudoedit-handle-write-region): Use `tramp-compat-set-file-modes'.

* lisp/net/tramp.el (tramp-default-file-modes): Optional argument FLAG.
(tramp-handle-file-modes): Use `file-truename' instead of
`file-chase-links'.  The latter function does not work for remote
file names.
(tramp-handle-write-region): Call `tramp-default-file-modes' with
'nofollow if needed.  Do not use 'nofollow for temporary files.

* test/lisp/net/tramp-tests.el
(tramp--test-ignore-make-symbolic-link-error): Check also for
"Cannot chmod .* with nofollow flag" error.
(tramp-test20-file-modes): Extend test.
(tramp--test-emacs28-p): New defun.
2020-02-25 13:25:57 +01:00
Mattias Engdegård
22524a6e39 Fix mistake in regexp cleanup
This error was introduced in 770f76f050.

* lisp/org/org.el (org-ts-regexp-inactive): Match up to the first ']'.
2020-02-25 12:04:40 +01:00
Eli Zaretskii
bcd88e738d ; * etc/NEWS: Improve wording of a recently-added entry. 2020-02-25 07:42:49 +02:00
Paul Eggert
a3d146fd8a Update from Gnulib
This incorporates:
2020-02-24 getloadavg: don't use /usr/local when cross-compiling on AIX
2020-02-24 fcntl: add witness of gnulib override
* lib/fcntl.in.h, m4/getloadavg.m4: Copy from Gnulib.
2020-02-24 17:55:39 -08:00