diff options
| author | Glenn Morris | 2018-08-14 09:06:43 -0700 |
|---|---|---|
| committer | Glenn Morris | 2018-08-14 09:06:43 -0700 |
| commit | d113142a8b8c815ecd6ff1418694cb878db5f45c (patch) | |
| tree | 633f01eefae0388b9cae7b7b2169abe8b2ebb660 | |
| parent | 396a33a3656a0e2bbe2f24a81df64914491c44e5 (diff) | |
| parent | 614cc65f2dae346b2e30326cd5de01f891933eed (diff) | |
| download | emacs-d113142a8b8c815ecd6ff1418694cb878db5f45c.tar.gz emacs-d113142a8b8c815ecd6ff1418694cb878db5f45c.zip | |
Merge from origin/emacs-26
614cc65 ; * lisp/simple.el (line-move-visual): Fix typo.
d2ad4ba Do not consider external packages to be removable (Bug#27822)
ec0995c * src/alloc.c: Remove obsolete comments.
ec6f588 Better support utf-8-with-signature and utf-8-hfs in HTML
eb026a8 Don't use -Wabi compiler option
| -rw-r--r-- | configure.ac | 1 | ||||
| -rw-r--r-- | lisp/emacs-lisp/package.el | 13 | ||||
| -rw-r--r-- | lisp/international/mule.el | 12 | ||||
| -rw-r--r-- | lisp/simple.el | 2 | ||||
| -rw-r--r-- | src/alloc.c | 4 |
5 files changed, 25 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 0b8849eea23..7b9448e13b0 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -966,6 +966,7 @@ AS_IF([test $gl_gcc_warnings = no], | |||
| 966 | nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning | 966 | nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning |
| 967 | nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations | 967 | nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations |
| 968 | nw="$nw -Wbad-function-cast" # These casts are no worse than others. | 968 | nw="$nw -Wbad-function-cast" # These casts are no worse than others. |
| 969 | nw="$nw -Wabi" # Not useful, perceived as noise | ||
| 969 | 970 | ||
| 970 | # Emacs doesn't care about shadowing; see | 971 | # Emacs doesn't care about shadowing; see |
| 971 | # <https://lists.gnu.org/r/emacs-diffs/2011-11/msg00265.html>. | 972 | # <https://lists.gnu.org/r/emacs-diffs/2011-11/msg00265.html>. |
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 362335220f0..cacc8b0c18c 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -1754,6 +1754,15 @@ if it is still empty." | |||
| 1754 | (indirect indirect-deps) | 1754 | (indirect indirect-deps) |
| 1755 | (t (delete-dups (append direct-deps indirect-deps)))))) | 1755 | (t (delete-dups (append direct-deps indirect-deps)))))) |
| 1756 | 1756 | ||
| 1757 | (defun package--user-installed-p (package) | ||
| 1758 | "Return non-nil if PACKAGE is a user-installed package. | ||
| 1759 | PACKAGE is the package name, a symbol. Check whether the package | ||
| 1760 | was installed into `package-user-dir' where we assume to have | ||
| 1761 | control over." | ||
| 1762 | (let* ((pkg-desc (cadr (assq package package-alist))) | ||
| 1763 | (dir (package-desc-dir pkg-desc))) | ||
| 1764 | (file-in-directory-p dir package-user-dir))) | ||
| 1765 | |||
| 1757 | (defun package--removable-packages () | 1766 | (defun package--removable-packages () |
| 1758 | "Return a list of names of packages no longer needed. | 1767 | "Return a list of names of packages no longer needed. |
| 1759 | These are packages which are neither contained in | 1768 | These are packages which are neither contained in |
| @@ -1763,7 +1772,9 @@ These are packages which are neither contained in | |||
| 1763 | ;; `p' and its dependencies are needed. | 1772 | ;; `p' and its dependencies are needed. |
| 1764 | append (cons p (package--get-deps p))))) | 1773 | append (cons p (package--get-deps p))))) |
| 1765 | (cl-loop for p in (mapcar #'car package-alist) | 1774 | (cl-loop for p in (mapcar #'car package-alist) |
| 1766 | unless (memq p needed) | 1775 | unless (or (memq p needed) |
| 1776 | ;; Do not auto-remove external packages. | ||
| 1777 | (not (package--user-installed-p p))) | ||
| 1767 | collect p))) | 1778 | collect p))) |
| 1768 | 1779 | ||
| 1769 | (defun package--used-elsewhere-p (pkg-desc &optional pkg-list all) | 1780 | (defun package--used-elsewhere-p (pkg-desc &optional pkg-list all) |
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index a5e7477e758..0267b154409 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -2545,7 +2545,17 @@ This function is intended to be added to `auto-coding-functions'." | |||
| 2545 | (let* ((match (match-string 2)) | 2545 | (let* ((match (match-string 2)) |
| 2546 | (sym (intern (downcase match)))) | 2546 | (sym (intern (downcase match)))) |
| 2547 | (if (coding-system-p sym) | 2547 | (if (coding-system-p sym) |
| 2548 | sym | 2548 | ;; If the encoding tag is UTF-8 and the buffer's |
| 2549 | ;; encoding is one of the variants of UTF-8, use the | ||
| 2550 | ;; buffer's encoding. This allows, e.g., saving an | ||
| 2551 | ;; HTML file as UTF-8 with BOM when the tag says UTF-8. | ||
| 2552 | (let ((sym-type (coding-system-type sym)) | ||
| 2553 | (bfcs-type | ||
| 2554 | (coding-system-type buffer-file-coding-system))) | ||
| 2555 | (if (and (coding-system-equal 'utf-8 sym-type) | ||
| 2556 | (coding-system-equal 'utf-8 bfcs-type)) | ||
| 2557 | buffer-file-coding-system | ||
| 2558 | sym)) | ||
| 2549 | (message "Warning: unknown coding system \"%s\"" match) | 2559 | (message "Warning: unknown coding system \"%s\"" match) |
| 2550 | nil))))) | 2560 | nil))))) |
| 2551 | 2561 | ||
diff --git a/lisp/simple.el b/lisp/simple.el index 8d770478aa9..6040d48a991 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -6019,7 +6019,7 @@ into account variable-width characters and line continuation. | |||
| 6019 | If nil, `line-move' moves point by logical lines. | 6019 | If nil, `line-move' moves point by logical lines. |
| 6020 | A non-nil setting of `goal-column' overrides the value of this variable | 6020 | A non-nil setting of `goal-column' overrides the value of this variable |
| 6021 | and forces movement by logical lines. | 6021 | and forces movement by logical lines. |
| 6022 | A window that is horizontally scrolled also forces movement by logical | 6022 | A window that is horizontally scrolled also forces movement by logical |
| 6023 | lines." | 6023 | lines." |
| 6024 | :type 'boolean | 6024 | :type 'boolean |
| 6025 | :group 'editing-basics | 6025 | :group 'editing-basics |
diff --git a/src/alloc.c b/src/alloc.c index 337668f9c31..fb8a8c98b08 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -2655,8 +2655,6 @@ make_float (double float_value) | |||
| 2655 | 2655 | ||
| 2656 | if (float_free_list) | 2656 | if (float_free_list) |
| 2657 | { | 2657 | { |
| 2658 | /* We use the data field for chaining the free list | ||
| 2659 | so that we won't use the same field that has the mark bit. */ | ||
| 2660 | XSETFLOAT (val, float_free_list); | 2658 | XSETFLOAT (val, float_free_list); |
| 2661 | float_free_list = float_free_list->u.chain; | 2659 | float_free_list = float_free_list->u.chain; |
| 2662 | } | 2660 | } |
| @@ -2760,8 +2758,6 @@ DEFUN ("cons", Fcons, Scons, 2, 2, 0, | |||
| 2760 | 2758 | ||
| 2761 | if (cons_free_list) | 2759 | if (cons_free_list) |
| 2762 | { | 2760 | { |
| 2763 | /* We use the cdr for chaining the free list | ||
| 2764 | so that we won't use the same field that has the mark bit. */ | ||
| 2765 | XSETCONS (val, cons_free_list); | 2761 | XSETCONS (val, cons_free_list); |
| 2766 | cons_free_list = cons_free_list->u.s.u.chain; | 2762 | cons_free_list = cons_free_list->u.s.u.chain; |
| 2767 | } | 2763 | } |