mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 06:50:23 -08:00
Merge from origin/emacs-26
614cc65; * lisp/simple.el (line-move-visual): Fix typo.d2ad4baDo not consider external packages to be removable (Bug#27822)ec0995c* src/alloc.c: Remove obsolete comments.ec6f588Better support utf-8-with-signature and utf-8-hfs in HTMLeb026a8Don't use -Wabi compiler option
This commit is contained in:
commit
d113142a8b
5 changed files with 25 additions and 7 deletions
|
|
@ -966,6 +966,7 @@ AS_IF([test $gl_gcc_warnings = no],
|
||||||
nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
|
nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
|
||||||
nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
|
nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
|
||||||
nw="$nw -Wbad-function-cast" # These casts are no worse than others.
|
nw="$nw -Wbad-function-cast" # These casts are no worse than others.
|
||||||
|
nw="$nw -Wabi" # Not useful, perceived as noise
|
||||||
|
|
||||||
# Emacs doesn't care about shadowing; see
|
# Emacs doesn't care about shadowing; see
|
||||||
# <https://lists.gnu.org/r/emacs-diffs/2011-11/msg00265.html>.
|
# <https://lists.gnu.org/r/emacs-diffs/2011-11/msg00265.html>.
|
||||||
|
|
|
||||||
|
|
@ -1754,6 +1754,15 @@ if it is still empty."
|
||||||
(indirect indirect-deps)
|
(indirect indirect-deps)
|
||||||
(t (delete-dups (append direct-deps indirect-deps))))))
|
(t (delete-dups (append direct-deps indirect-deps))))))
|
||||||
|
|
||||||
|
(defun package--user-installed-p (package)
|
||||||
|
"Return non-nil if PACKAGE is a user-installed package.
|
||||||
|
PACKAGE is the package name, a symbol. Check whether the package
|
||||||
|
was installed into `package-user-dir' where we assume to have
|
||||||
|
control over."
|
||||||
|
(let* ((pkg-desc (cadr (assq package package-alist)))
|
||||||
|
(dir (package-desc-dir pkg-desc)))
|
||||||
|
(file-in-directory-p dir package-user-dir)))
|
||||||
|
|
||||||
(defun package--removable-packages ()
|
(defun package--removable-packages ()
|
||||||
"Return a list of names of packages no longer needed.
|
"Return a list of names of packages no longer needed.
|
||||||
These are packages which are neither contained in
|
These are packages which are neither contained in
|
||||||
|
|
@ -1763,7 +1772,9 @@ These are packages which are neither contained in
|
||||||
;; `p' and its dependencies are needed.
|
;; `p' and its dependencies are needed.
|
||||||
append (cons p (package--get-deps p)))))
|
append (cons p (package--get-deps p)))))
|
||||||
(cl-loop for p in (mapcar #'car package-alist)
|
(cl-loop for p in (mapcar #'car package-alist)
|
||||||
unless (memq p needed)
|
unless (or (memq p needed)
|
||||||
|
;; Do not auto-remove external packages.
|
||||||
|
(not (package--user-installed-p p)))
|
||||||
collect p)))
|
collect p)))
|
||||||
|
|
||||||
(defun package--used-elsewhere-p (pkg-desc &optional pkg-list all)
|
(defun package--used-elsewhere-p (pkg-desc &optional pkg-list all)
|
||||||
|
|
|
||||||
|
|
@ -2545,7 +2545,17 @@ This function is intended to be added to `auto-coding-functions'."
|
||||||
(let* ((match (match-string 2))
|
(let* ((match (match-string 2))
|
||||||
(sym (intern (downcase match))))
|
(sym (intern (downcase match))))
|
||||||
(if (coding-system-p sym)
|
(if (coding-system-p sym)
|
||||||
sym
|
;; If the encoding tag is UTF-8 and the buffer's
|
||||||
|
;; encoding is one of the variants of UTF-8, use the
|
||||||
|
;; buffer's encoding. This allows, e.g., saving an
|
||||||
|
;; HTML file as UTF-8 with BOM when the tag says UTF-8.
|
||||||
|
(let ((sym-type (coding-system-type sym))
|
||||||
|
(bfcs-type
|
||||||
|
(coding-system-type buffer-file-coding-system)))
|
||||||
|
(if (and (coding-system-equal 'utf-8 sym-type)
|
||||||
|
(coding-system-equal 'utf-8 bfcs-type))
|
||||||
|
buffer-file-coding-system
|
||||||
|
sym))
|
||||||
(message "Warning: unknown coding system \"%s\"" match)
|
(message "Warning: unknown coding system \"%s\"" match)
|
||||||
nil)))))
|
nil)))))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2655,8 +2655,6 @@ make_float (double float_value)
|
||||||
|
|
||||||
if (float_free_list)
|
if (float_free_list)
|
||||||
{
|
{
|
||||||
/* We use the data field for chaining the free list
|
|
||||||
so that we won't use the same field that has the mark bit. */
|
|
||||||
XSETFLOAT (val, float_free_list);
|
XSETFLOAT (val, float_free_list);
|
||||||
float_free_list = float_free_list->u.chain;
|
float_free_list = float_free_list->u.chain;
|
||||||
}
|
}
|
||||||
|
|
@ -2760,8 +2758,6 @@ DEFUN ("cons", Fcons, Scons, 2, 2, 0,
|
||||||
|
|
||||||
if (cons_free_list)
|
if (cons_free_list)
|
||||||
{
|
{
|
||||||
/* We use the cdr for chaining the free list
|
|
||||||
so that we won't use the same field that has the mark bit. */
|
|
||||||
XSETCONS (val, cons_free_list);
|
XSETCONS (val, cons_free_list);
|
||||||
cons_free_list = cons_free_list->u.s.u.chain;
|
cons_free_list = cons_free_list->u.s.u.chain;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue