Andrea Corallo
8db8c851ad
Always set load-true-file-name' where
load-file-name' is set too.
...
Fix bug#40620.
* lisp/cus-dep.el (custom-make-dependencies): Set
load-true-file-name.
* lisp/emacs-lisp/package.el (package-quickstart-refresh):
Likewise.
* lisp/international/mule.el (load-with-code-conversion):
Likewise.
* lisp/loadup.el (load-true-file-name): Likewise.
2020-04-14 19:58:41 +01:00
Andrea Corallo
8decfbe4d7
* lisp/emacs-lisp/comp.el (native-compile-async): Better error message.
2020-04-14 08:48:24 +01:00
Andrea Corallo
b7678cf10e
* lisp/emacs-lisp/comp.el (comp-finalize-relocs): Better commentary.
2020-04-13 20:44:09 +01:00
Andrea Corallo
9f42f35418
* Fix native-compile-async for bug#40602.
...
* lisp/emacs-lisp/comp.el (native-compile-async): Relax coherency condition.
2020-04-13 20:44:09 +01:00
Andrea Corallo
517c123fd4
Merge remote-tracking branch 'savannah/master' into HEAD
2020-04-13 18:11:12 +01:00
Glenn Morris
0a4b992c42
Merge from origin/emacs-27
...
1dfc497fac
Minor wording change in Introduction to Programming in Ema...
ff09b4eeac
Fix 'flymake-show-diagnostics-buffer' when line numbers ar...
63e8d0ea87
Fix last changes describing mail commands
01212a762f
Do setup Flymake in file-less Elisp buffers
36873ef2b2
Fix error message for ‘cl-struct-unknown-slot’ (bug#39995)
3f9310b0fe
Fix and improve documentation of mail-related features
1482a75efa
Fix build failure with Fx_gtk_debug
cf57663f2a
Mention jit-lock deferred as an alternative to fast-but-im...
# Conflicts:
# etc/NEWS
2020-04-13 09:02:29 -07:00
Štěpán Němec
188bd80a90
gnus-shorten-url: Improve and avoid args-out-of-range error
...
'gnus-shorten-url' (used by 'gnus-summary-browse-url') ignored
fragment identifiers and didn't check substring bounds, in some cases
leading to runtime errors, e.g.:
(gnus-shorten-url "https://some.url.with/path/and#also_a_long_target " 40)
;; => Lisp error: (args-out-of-range "/path/and" -18 nil)
This commit makes it account for #fragments and fixes faulty string
computation, reusing existing helper function. (bug#39980)
* lisp/vc/ediff-init.el (ediff-truncate-string-left): Rename to
'string-truncate-left' and move...
* lisp/emacs-lisp/subr-x.el (string-truncate-left): ...here.
All callers changed.
* lisp/gnus/gnus-sum.el (gnus-shorten-url): Fix args-out-of-range
error, don't drop #fragments, use 'string-truncate-left'.
2020-04-13 12:12:00 +02:00
Andrea Corallo
f9a1d4b3f7
Merge remote-tracking branch 'savannah/master' into HEAD
2020-04-12 16:53:36 +01:00
Philipp Stephani
36873ef2b2
Fix error message for ‘cl-struct-unknown-slot’ (bug#39995)
...
* lisp/emacs-lisp/cl-macs.el (cl-struct-unknown-slot): Remove spurious
format specifiers.
2020-04-12 15:12:16 +02:00
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