Commit graph

7246 commits

Author SHA1 Message Date
Philipp Stephani
aed427ece5 Also use named functions for the ‘gv’ declare forms (Bug#40491)
* lisp/emacs-lisp/gv.el (gv--expander-defun-declaration)
(gv--setter-defun-declaration): New helper functions; use them.
2020-04-12 14:27:33 +02:00
Philipp Stephani
4f197a5e79 Use named functions in {defun,macro}-declarations-alist (Bug#40491)
* lisp/emacs-lisp/byte-run.el (byte-run--set-advertised-calling-convention)
(byte-run--set-obsolete, byte-run--set-interactive-only)
(byte-run--set-pure, byte-run--set-side-effect-free)
(byte-run--set-compiler-macro, byte-run--set-doc-string)
(byte-run--set-indent, byte-run--set-debug)
(byte-run--set-no-font-lock-keyword): New helper functions.
(defun-declarations-alist, macro-declarations-alist): Use them.
2020-04-12 13:18:43 +02:00
Andrea Corallo
4abb8c822c Merge remote-tracking branch 'savannah/master' into HEAD 2020-04-06 18:06:29 +01:00
Andrea Corallo
32a079aef2 * lisp/emacs-lisp/comp.el (comp-c-func-name): Fix for M-x disassemble 2020-04-06 20:03:34 +01:00
Andrea Corallo
37a9d1e42b * lisp/emacs-lisp/comp.el (native-compile): Better documentation. 2020-04-05 21:10:49 +01:00
Glenn Morris
333f63d537 Merge from origin/emacs-27
6de20c7eab (origin/emacs-27) Fix syntax error in man page.
f8607d3c03 Handle filling of indented ChangeLog function entries
7e78f0d1b2 Fix void-variable n-reb in re-builder (Bug#40409)
452d776a5d Fix small bug in copy_string_contents.
fa823653ff Fix invocations of gpg from Gnus
d4f51d0a2e Don't draw GTK's internal border and tab bar on top of eac...
38731d504e ; * src/buffer.c (syms_of_buffer) <inhibit-read-only>: Doc...
44ac9e48bb Tweak htmlfontify's generated output
2020-04-05 07:50:15 -07:00
Stefan Monnier
a32c55bd9f * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Avoid known cl-defsubst breakage 2020-04-05 09:54:53 -04:00
Noam Postavsky
7e78f0d1b2 Fix void-variable n-reb in re-builder (Bug#40409)
* lisp/emacs-lisp/re-builder.el (reb-while): Take the current value of
the counter instead of its name.
(reb-mark-non-matching-parenthesis): Bind n-reb to 0 at the start and
don't wrongly treat it as dynamicly bound.
2020-04-04 20:06:54 -04:00
Andrea Corallo
fcce8dd361 Merge remote-tracking branch 'savannah/master' into HEAD 2020-04-03 19:06:57 +01:00
Štěpán Němec
2c45091791 load-library, locate-library: Use read-library-name
* lisp/emacs-lisp/find-func.el (read-library-name): Add autoload
cookie.
* lisp/files.el (load-library)
* lisp/subr.el (locate-library): Use 'read-library-name' when called
interactively. (bug#6652 bug#6679)
2020-04-03 14:54:49 +03:00
Andrea Corallo
00ee320a62 Merge remote-tracking branch 'savannah/master' into HEAD 2020-03-29 12:31:24 +01:00
Andrea Corallo
530faee275 Fix free function compilation 2020-03-29 12:30:33 +01:00
Andrea Corallo
53f9bc6908 * comp.el (comp-output-base-filename): Handle src being a symbol 2020-03-29 12:30:33 +01:00
Andrea Corallo
d5f6dc131b Prevent collisions in C namespace and function shadowing
This rework make functions being indexed by their unique C symbol name
preventing multiple lisp function with the same name colliding.
2020-03-29 12:30:33 +01:00
Stefan Monnier
09d67716e5 * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Declare the type immediately 2020-03-27 17:14:34 -04:00
Eli Zaretskii
74489bdcb6 Improve the UI of 'list-timers'
* lisp/emacs-lisp/timer-list.el (list-timers): Display both "Next"
and "Repeat" in units of seconds, for consistency.
(timer-list-mode): Add help-echo to column headers.
2020-03-25 16:18:37 +02:00
Andrea Corallo
4acc4ac667 * comp.el (native-compile-async): Fix excessive messaging 2020-03-24 19:10:20 +00:00
Andrea Corallo
f7e10297d1 Merge remote-tracking branch 'savannah/master' into HEAD 2020-03-24 16:22:06 +00:00
Noam Postavsky
78f76fe16e Make cl-concatenate an alias of seq-concatenate
* lisp/emacs-lisp/cl-extra.el (cl-concatenate): Use defalias instead
of apply.  This is simpler and more efficient.
2020-03-23 18:58:21 -04:00
Andrea Corallo
73ced8c23e * comp.el : Fix typo introduced by f8b07ff4f3 2020-03-23 22:27:17 +00:00
Andrea Corallo
8cc8adb04d Merge remote-tracking branch 'savannah/master' into HEAD 2020-03-23 20:38:07 +00:00
Andrea Corallo
f8b07ff4f3 Guard against function redefinition during deferred load 2020-03-23 20:37:59 +00:00
Glenn Morris
5d5d5d492c Merge from origin/emacs-27
d66331aea4 (origin/emacs-27) Don't build the Gnulib 'utimens' module ...
f2351a689b Add Harfbuzz dependency
8944310d7c Don't signal during backtrace unrewind (Bug#40088)
8709aaddd8 Fix a couple of problems in changelog generating functions
9ab85f087f Fix cl-concatenate (Bug#40180)
561e9fb91b Improve documentation of project.el commands
b28a9a6cc3 Make svg images with links valid
7515252cce * lisp/tab-line.el (tab-line-new-button-show): New defcustom.

# Conflicts:
#	etc/NEWS
#	nt/gnulib-cfg.mk
2020-03-23 09:48:15 -07:00
Noam Postavsky
9ab85f087f Fix cl-concatenate (Bug#40180)
* lisp/emacs-lisp/cl-extra.el (cl-concatenate): Use apply, to avoid
adding extra nesting of args.
* test/lisp/emacs-lisp/cl-extra-tests.el (cl-concatenate): New test.
2020-03-22 23:06:31 -04:00
Andrea Corallo
eb1d22b136 Merge remote-tracking branch 'savannah/master' into HEAD 2020-03-22 16:11:53 +00:00
Andrea Corallo
ef30feb554 * comp.el: Add missing require 2020-03-22 15:57:00 +00:00
Andrea Corallo
e05a62a968 Have a fast build option triggered by env var NATIVE_FAST_BOOT 2020-03-22 15:50:58 +00:00
Stefan Kangas
813478c855 Revert "Signal user-error on duplicate package refresh" (Bug#39187)
This reverts commit a6d87ea045.
2020-03-22 12:16:11 +01:00
Stefan Kangas
271f9a6aed Remove obsolete XEmacs comment
* lisp/emacs-lisp/edebug.el (edebug--display-1): Remove comment
regarding an XEmacs exclusive variable.
2020-03-21 07:38:44 +01:00
Stefan Kangas
c1772ce296 Declare some <package>-version variables obsolete
These are not used for anything these days and can therefore be
removed.  Package developers should check the Emacs version instead.
Ref: https://lists.gnu.org/r/emacs-devel/2020-03/msg00080.html

* lisp/calendar/icalendar.el (icalendar-version):
* lisp/dframe.el (dframe-version):
* lisp/emacs-lisp/checkdoc.el (checkdoc-version):
* lisp/emulation/edt.el (edt-version):
* lisp/international/mule.el (mule-version)
(mule-version-date):
* lisp/linum.el (linum-version):
* lisp/play/bubbles.el (bubbles-version):
* lisp/speedbar.el (speedbar-version):
* lisp/textmodes/remember.el (remember-version):
* lisp/url/url-vars.el (url-version):
* lisp/woman.el (woman-version): Declare obsolete.

* lisp/emacs-lisp/checkdoc.el (checkdoc-start-section):
* lisp/speedbar.el (speedbar-mode):
* lisp/url/url-about.el (url-about-protocols):
* lisp/url/url-http.el (url-http--user-agent-default-string):
* lisp/url/url-news.el (url-news-fetch-message-id):
* lisp/woman.el (woman-menu, woman-mode): Stop using variables
declared obsolete above.
2020-03-21 02:49:25 +01:00
Stefan Kangas
84548f8dc7 Add "Old-" prefix to "Version" header in some cases
These version numbers are historical accidents and not relevant today.
Ref: https://lists.gnu.org/r/emacs-devel/2020-03/msg00080.html

* lisp/calendar/icalendar.el:
* lisp/emacs-lisp/checkdoc.el:
* lisp/hippie-exp.el:
* lisp/linum.el:
* lisp/master.el:
* lisp/progmodes/cwarn.el:
* lisp/repeat.el:
* lisp/ruler-mode.el:
* lisp/textmodes/remember.el:
* lisp/wdired.el:
* lisp/woman.el: Change "Version" header to "Old-Version".
2020-03-21 02:48:24 +01:00
Andrea Corallo
64a6709f64 * comp.el (comp-async-jobs-number): Fix customize type. 2020-03-19 18:37:32 +00:00
Andrea Corallo
981cc15750 Merge remote-tracking branch 'savannah/master' into HEAD 2020-03-19 16:49:55 +00:00
Andrea Corallo
b070571f93 * comp.el (comp-run-async-workers): Load only if compilation succeed 2020-03-19 16:49:23 +00:00
Andrea Corallo
7565a4a117 Command late load when deferring compilation 2020-03-19 13:50:25 +00:00
Andrea Corallo
c3e640bfa6 * comp.el: Extend `native-compile-async' for load and late-load 2020-03-19 13:50:25 +00:00
Andrea Corallo
034d9b319c * comp.el: late-load support optional as `native-compile' parameter 2020-03-19 08:38:10 +00:00
Andrea Corallo
f2c437761f * comp.el: Have the compiler generates 'late_top_level_run' 2020-03-19 08:37:40 +00:00
Glenn Morris
45630d0252 Merge from origin/emacs-27
3a8a231810 * lisp/textmodes/fill.el (fill-nobreak-predicate): Fix doc...
cbe643104d Improve Package Menu hiding docstrings
8d28c98ae0 Fix display of Big5 characters when using Fontconfig
2020-03-18 07:50:36 -07:00
Andrea Corallo
159f61baa9 Trigger native compilation when loading bytecode
Introduce a first mechanism to trigger compilation when lex elc files
are loaded.  This is off by default and has to be better tested.
2020-03-16 23:08:34 +00:00
Andrea Corallo
ea8864fb67 * comp.el: (native-compile-async) do not duplicate queue entries 2020-03-16 22:56:36 +00:00
Andrea Corallo
0b28bf0529 * comp.el: Estimate async worker number using system CPU number
This only when `comp-async-jobs-number' is 0 (default).
2020-03-16 22:56:36 +00:00
Andrea Corallo
92fdfa4b5a * comp.el: Make compilation logic to be dynamically controllable
Introduce `comp-async-jobs-number' to control async job number, this
can be now adjusted dynamically.

Also make `native-compile-async' able to dynamically queue new
compilations.
2020-03-16 22:56:14 +00:00
Andrea Corallo
a8c20f67be Merge remote-tracking branch 'savannah/master' into HEAD 2020-03-15 10:31:03 +00:00
Andrea Corallo
7359f9e363 * comp.el: Fix missing rx require 2020-03-15 10:27:02 +00:00
Adam Porter
46a4ca4774 comp.el: Minor improvements
Change: (comp-start-async-worker) Refactor slightly

Change: (comp-start-async-worker) Inline (comp-to-file-p)

Change: (comp-source-files) Rename from comp-src-pool

Add: (comp-start-async-worker) Assertion

Change: (comp-async-processes) Rename from comp-prc-pool

Tidy: (native-compile)

Rename variables, improve docstring, adjust log message, simplify
filename code.

Tidy: (batch-native-compile) Docstring

Tidy: whitespace-cleanup

Tidy: (comp-start-async-worker) Use () instead of nil

Tidy: (comp-files-queue) Rename from comp-source-files

Change: (native-compile-async) Improve paths support

Tidy: Comment

Save a line for one word.  :)

Change: (comp-log) Rewrite without macro, follow tail

Change: (native-compile-async) Use end-of-string in filename regexps

Change: (native-compile-async) Use cl-loop instead of dotimes

Add/Change: (comp-log-to-buffer) And use in comp-log

Comment: Tidy comment

Fix: (configure.ac) Option description

Fix: (comp-log) Argument

Fix: (comp-start-async-worker) Variable name

Change: Undo whitespace changes

Some of them included incorrect indentation because the
macros' (declare (indent)) forms were not loaded.  The
whitespace-cleanup should be run from Emacs 27+ with the file loaded.
2020-03-15 10:24:08 +00:00
Stefan Monnier
f9685f9847 * lisp/emacs-lisp/package.el (package-activate-1): Avoid duplicates
in `Info-directory-list`.
2020-03-14 14:59:45 -04:00
Andrea Corallo
7438001385 Merge remote-tracking branch 'savannah/master' into HEAD 2020-03-14 15:14:12 +00:00
Stefan Kangas
cbe643104d Improve Package Menu hiding docstrings
* lisp/emacs-lisp/package.el (package-menu-toggle-hiding): Add
reference to 'package-menu-hidden-regexps'.
* lisp/emacs-lisp/package.el (package-menu-hide-package): Improve
docstring to say that hiding is saved in a user option.  Fix a
typo.  (Bug#39436)
2020-03-14 10:03:09 +01:00
Andrea Corallo
144e8f64b6 Prefix native compilation folders with "eln-" 2020-03-13 22:21:08 +00:00