Merge from origin/emacs-28

# Conflicts:
#	lisp/startup.el
This commit is contained in:
Eli Zaretskii 2022-02-18 10:38:42 +02:00
commit c2913c30b1
4 changed files with 16 additions and 11 deletions

View file

@ -6668,7 +6668,9 @@ buffer's text.
The argument @var{slice} specifies a slice of the image to insert. If
@var{slice} is @code{nil} or omitted the whole image is inserted.
Otherwise, @var{slice} is a list @code{(@var{x} @var{y} @var{width}
(However, note that images are chopped on display at the window's
right edge, because wrapping images is not supported.) Otherwise,
@var{slice} is a list @code{(@var{x} @var{y} @var{width}
@var{height})} which specifies the @var{x} and @var{y} positions and
@var{width} and @var{height} of the image area to insert. Integer
values are in units of pixels. A floating-point number in the range

View file

@ -1141,7 +1141,7 @@ Internal use only. Should be called at startup time."
(defconst xlfd-regexp-pointsize-subnum 6) ; POINT_SIZE
(defconst xlfd-regexp-resx-subnum 7) ; RESOLUTION_X
(defconst xlfd-regexp-resy-subnum 8) ; RESOLUTION_Y
(defconst xlfd-regexp-spacing-subnum 8) ; SPACING
(defconst xlfd-regexp-spacing-subnum 9) ; SPACING
(defconst xlfd-regexp-avgwidth-subnum 10) ; AVERAGE_WIDTH
(defconst xlfd-regexp-registry-subnum 11) ; REGISTRY and ENCODING

View file

@ -304,6 +304,9 @@ usually do not have translators for other languages.\n\n")))
(emacs-bug--system-description)
(insert "Configured features:\n" system-configuration-features "\n\n")
(fill-region (line-beginning-position -1) (point))
(when (and (featurep 'native-compile)
(null (native-comp-available-p)))
(insert "(NATIVE_COMP present but libgccjit not available)\n\n"))
(insert "Important settings:\n")
(mapc
(lambda (var)

View file

@ -603,16 +603,16 @@ It is the default value of the variable `top-level'."
(setq user-emacs-directory
(startup--xdg-or-homedot startup--xdg-config-home-emacs nil))
(unless (native-comp-available-p)
;; Disable deferred async compilation and trampoline synthesis
;; in this session. This is necessary if libgccjit is not
;; available on MS-Windows, but Emacs was built with
;; native-compilation support.
(setq native-comp-deferred-compilation nil
comp-enable-subr-trampolines nil))
(when (featurep 'native-compile)
;; Form the initial value of `native-comp-eln-load-path'.
(unless (native-comp-available-p)
;; Disable deferred async compilation and trampoline synthesis
;; in this session. This is necessary if libgccjit is not
;; available on MS-Windows, but Emacs was built with
;; native-compilation support.
(setq native-comp-deferred-compilation nil
comp-enable-subr-trampolines nil))
;; Form `native-comp-eln-load-path'.
(let ((path-env (getenv "EMACSNATIVELOADPATH")))
(when path-env
(dolist (path (split-string path-env path-separator))