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 /lisp | |
| 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
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/emacs-lisp/package.el | 13 | ||||
| -rw-r--r-- | lisp/international/mule.el | 12 | ||||
| -rw-r--r-- | lisp/simple.el | 2 |
3 files changed, 24 insertions, 3 deletions
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 |