Merge from origin/emacs-28
1a1b206a8b
Adapt the recent 'num_processors' change to MS-Windows7cb4637923
Minor fix to clarify a sentence in emacs-lisp-introab60144ea3
; Pacify recent shorthand unused lexarg warnings.e9df86004f
Make tty-run-terminal-initialization load the .elc file (i...07edc28bdb
Fix ert errors when there's a test that binds `debug-on-er...96278de8ac
New function num-processors575e626105
Add symbol property 'save-some-buffers-function' (bug#46374)a3e10af95c
Keep reading when typed RET in read-char-from-minibuffer a...013e3be832
* lisp/userlock.el (ask-user-about-supersession-threat): A...ae61d7a57d
Fix point positioning on mouse clicks with non-zero line-h...4c7e74c386
Complete shorthands to longhands for symbol-completing tablesc2513c5d0d
Add new failing test for bug#510891d1e96377c
; * lisp/emacs-lisp/shortdoc.el: Fix typo.6bf29072e9
Avoid mapping file names through 'substring'bcce93f04c
Update to Org 9.5-46-gb714745d408f1a24
Expanded testing of MH-E with multiple MH variantsb497add971
Fix Seccomp filter for newer GNU/Linux systems (Bug#51073).75d9fbec88
Tramp code cleanup # Conflicts: # etc/NEWS # test/lisp/progmodes/elisp-mode-tests.el
This commit is contained in:
commit
8aceb37b47
42 changed files with 1082 additions and 177 deletions
|
@ -3876,26 +3876,13 @@ processes from `comp-async-compilations'"
|
|||
do (remhash file-name comp-async-compilations))
|
||||
(hash-table-count comp-async-compilations))
|
||||
|
||||
(declare-function w32-get-nproc "w32.c")
|
||||
(defvar comp-num-cpus nil)
|
||||
(defun comp-effective-async-max-jobs ()
|
||||
"Compute the effective number of async jobs."
|
||||
(if (zerop native-comp-async-jobs-number)
|
||||
(or comp-num-cpus
|
||||
(setf comp-num-cpus
|
||||
;; FIXME: we already have a function to determine
|
||||
;; the number of processors, see get_native_system_info in w32.c.
|
||||
;; The result needs to be exported to Lisp.
|
||||
(max 1 (/ (cond ((eq 'windows-nt system-type)
|
||||
(w32-get-nproc))
|
||||
((executable-find "nproc")
|
||||
(string-to-number
|
||||
(shell-command-to-string "nproc")))
|
||||
((eq 'berkeley-unix system-type)
|
||||
(string-to-number
|
||||
(shell-command-to-string "sysctl -n hw.ncpu")))
|
||||
(t 1))
|
||||
2))))
|
||||
(max 1 (/ (num-processors) 2))))
|
||||
native-comp-async-jobs-number))
|
||||
|
||||
(defvar comp-last-scanned-async-output nil)
|
||||
|
|
|
@ -781,6 +781,10 @@ This mainly sets up debugger-related bindings."
|
|||
(ert--run-test-debugger test-execution-info
|
||||
args)))
|
||||
(debug-on-error t)
|
||||
;; Don't infloop if the error being called is erroring
|
||||
;; out, and we have `debug-on-error' bound to nil inside
|
||||
;; the test.
|
||||
(backtrace-on-error-noninteractive nil)
|
||||
(debug-on-quit t)
|
||||
;; FIXME: Do we need to store the old binding of this
|
||||
;; and consider it in `ert--run-test-debugger'?
|
||||
|
|
|
@ -1319,11 +1319,11 @@ function's documentation in the Info manual")))
|
|||
(princ value (current-buffer))
|
||||
(insert "\n"))
|
||||
(:eg-result
|
||||
(insert " eg. " double-arrow " ")
|
||||
(insert " e.g. " double-arrow " ")
|
||||
(prin1 value (current-buffer))
|
||||
(insert "\n"))
|
||||
(:eg-result-string
|
||||
(insert " eg. " double-arrow " ")
|
||||
(insert " e.g. " double-arrow " ")
|
||||
(princ value (current-buffer))
|
||||
(insert "\n")))))
|
||||
;; Insert the arglist after doing the evals, in case that's pulled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue