diff options
| author | Glenn Morris | 2019-03-20 13:47:07 -0700 |
|---|---|---|
| committer | Glenn Morris | 2019-03-20 13:47:07 -0700 |
| commit | 1fc6afbdf1ce0f8b23780bd4d2630ed49f365013 (patch) | |
| tree | 515068805cee7b3c5c7fff7e924c2594b2572764 /lisp | |
| parent | 99b3d64e54bb896e7b35567ac7022f9d3fb16bbb (diff) | |
| parent | 24b6e6edcfe034f76de475657cb3997821cfd1f0 (diff) | |
| download | emacs-1fc6afbdf1ce0f8b23780bd4d2630ed49f365013.tar.gz emacs-1fc6afbdf1ce0f8b23780bd4d2630ed49f365013.zip | |
Merge from origin/emacs-26
24b6e6e (origin/emacs-26) * etc/AUTHORS: Update.
2f22a17 * ; ChangeLog.3 update
0f523de Improve indexing of the user manual
bd5795e Fix url-copy-file arglist
eaa188a ; * admin/notes/bugtracker: Minor additions and updates.
5ed05fb Fix downloading updates for packages with non-ASCII descriptions
e9f2d1f * etc/NEWS: Remove temporary markers.
24fc133 * doc/misc/cc-mode.texi (Config Basics): in @itemize, @asis -...
0f325d1 Don't clobber 'comint-input-autoexpand' in 'read-shell-command'
bc75589 Document restrictions when setting window margins, fringes or...
cc4cebf More improvements for 'read-buffer's doc string
d026d9a * lisp/progmodes/cc-defs.el: Update c-version to 5.33.2 for E...
5dbf08b * src/minibuf.c (Fread_buffer): Minor doc fixes. (Bug#34749)
# Conflicts:
# etc/NEWS
# lisp/url/url-handlers.el
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/emacs-lisp/package.el | 9 | ||||
| -rw-r--r-- | lisp/progmodes/cc-defs.el | 2 | ||||
| -rw-r--r-- | lisp/shell.el | 2 | ||||
| -rw-r--r-- | lisp/url/url-handlers.el | 12 |
4 files changed, 15 insertions, 10 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 5e8864ec73f..4c75fa1e72e 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -1573,14 +1573,16 @@ similar to an entry in `package-alist'. Save the cached copy to | |||
| 1573 | (member name package-unsigned-archives)) | 1573 | (member name package-unsigned-archives)) |
| 1574 | ;; If we don't care about the signature, save the file and | 1574 | ;; If we don't care about the signature, save the file and |
| 1575 | ;; we're done. | 1575 | ;; we're done. |
| 1576 | (progn (write-region content nil local-file nil 'silent) | 1576 | (progn (let ((coding-system-for-write 'utf-8)) |
| 1577 | (write-region content nil local-file nil 'silent)) | ||
| 1577 | (package--update-downloads-in-progress archive)) | 1578 | (package--update-downloads-in-progress archive)) |
| 1578 | ;; If we care, check it (perhaps async) and *then* write the file. | 1579 | ;; If we care, check it (perhaps async) and *then* write the file. |
| 1579 | (package--check-signature | 1580 | (package--check-signature |
| 1580 | location file content async | 1581 | location file content async |
| 1581 | ;; This function will be called after signature checking. | 1582 | ;; This function will be called after signature checking. |
| 1582 | (lambda (&optional good-sigs) | 1583 | (lambda (&optional good-sigs) |
| 1583 | (write-region content nil local-file nil 'silent) | 1584 | (let ((coding-system-for-write 'utf-8)) |
| 1585 | (write-region content nil local-file nil 'silent)) | ||
| 1584 | ;; Write out good signatures into archive-contents.signed file. | 1586 | ;; Write out good signatures into archive-contents.signed file. |
| 1585 | (when good-sigs | 1587 | (when good-sigs |
| 1586 | (write-region (mapconcat #'epg-signature-to-string good-sigs "\n") | 1588 | (write-region (mapconcat #'epg-signature-to-string good-sigs "\n") |
| @@ -3438,6 +3440,9 @@ short description." | |||
| 3438 | ;; Generate the Package Menu. | 3440 | ;; Generate the Package Menu. |
| 3439 | (let ((buf (get-buffer-create "*Packages*"))) | 3441 | (let ((buf (get-buffer-create "*Packages*"))) |
| 3440 | (with-current-buffer buf | 3442 | (with-current-buffer buf |
| 3443 | ;; Since some packages have their descriptions include non-ASCII | ||
| 3444 | ;; characters... | ||
| 3445 | (setq buffer-file-coding-system 'utf-8) | ||
| 3441 | (package-menu-mode) | 3446 | (package-menu-mode) |
| 3442 | 3447 | ||
| 3443 | ;; Fetch the remote list of packages. | 3448 | ;; Fetch the remote list of packages. |
diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el index f8b1b45de77..97272ca9d21 100644 --- a/lisp/progmodes/cc-defs.el +++ b/lisp/progmodes/cc-defs.el | |||
| @@ -87,7 +87,7 @@ | |||
| 87 | 87 | ||
| 88 | ;;; Variables also used at compile time. | 88 | ;;; Variables also used at compile time. |
| 89 | 89 | ||
| 90 | (defconst c-version "5.33.1" | 90 | (defconst c-version "5.33.2" |
| 91 | "CC Mode version number.") | 91 | "CC Mode version number.") |
| 92 | 92 | ||
| 93 | (defconst c-version-sym (intern c-version)) | 93 | (defconst c-version-sym (intern c-version)) |
diff --git a/lisp/shell.el b/lisp/shell.el index 8a2d4489b8a..264981bd435 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -488,7 +488,7 @@ Shell buffers. It implements `shell-completion-execonly' for | |||
| 488 | ;; Don't use pcomplete's defaulting mechanism, rely on | 488 | ;; Don't use pcomplete's defaulting mechanism, rely on |
| 489 | ;; shell-dynamic-complete-functions instead. | 489 | ;; shell-dynamic-complete-functions instead. |
| 490 | (set (make-local-variable 'pcomplete-default-completion-function) #'ignore) | 490 | (set (make-local-variable 'pcomplete-default-completion-function) #'ignore) |
| 491 | (setq comint-input-autoexpand shell-input-autoexpand) | 491 | (setq-local comint-input-autoexpand shell-input-autoexpand) |
| 492 | ;; Not needed in shell-mode because it's inherited from comint-mode, but | 492 | ;; Not needed in shell-mode because it's inherited from comint-mode, but |
| 493 | ;; placed here for read-shell-command. | 493 | ;; placed here for read-shell-command. |
| 494 | (add-hook 'completion-at-point-functions #'comint-completion-at-point nil t)) | 494 | (add-hook 'completion-at-point-functions #'comint-completion-at-point nil t)) |
diff --git a/lisp/url/url-handlers.el b/lisp/url/url-handlers.el index 2d0a4a21c44..e35d999e0fe 100644 --- a/lisp/url/url-handlers.el +++ b/lisp/url/url-handlers.el | |||
| @@ -44,7 +44,7 @@ | |||
| 44 | (declare-function mail-content-type-get "mail-parse" (ct attribute)) | 44 | (declare-function mail-content-type-get "mail-parse" (ct attribute)) |
| 45 | ;; mm-decode loads mm-bodies, which loads mm-util. | 45 | ;; mm-decode loads mm-bodies, which loads mm-util. |
| 46 | (declare-function mm-charset-to-coding-system "mm-util" | 46 | (declare-function mm-charset-to-coding-system "mm-util" |
| 47 | (charset &optional lbt allow-override silent)) | 47 | (charset &optional lbt allow-override silent)) |
| 48 | 48 | ||
| 49 | ;; Implementation status | 49 | ;; Implementation status |
| 50 | ;; --------------------- | 50 | ;; --------------------- |
| @@ -260,15 +260,15 @@ the arguments that would have been passed to OPERATION." | |||
| 260 | ;; The actual implementation | 260 | ;; The actual implementation |
| 261 | ;;;###autoload | 261 | ;;;###autoload |
| 262 | (defun url-copy-file (url newname &optional ok-if-already-exists | 262 | (defun url-copy-file (url newname &optional ok-if-already-exists |
| 263 | _keep-time _preserve-uid-gid) | 263 | _keep-time _preserve-uid-gid _preserve-permissions) |
| 264 | "Copy URL to NEWNAME. Both args must be strings. | 264 | "Copy URL to NEWNAME. Both args must be strings. |
| 265 | Signals a `file-already-exists' error if file NEWNAME already exists, | 265 | Signal a `file-already-exists' error if file NEWNAME already exists, |
| 266 | unless a third argument OK-IF-ALREADY-EXISTS is supplied and non-nil. | 266 | unless a third argument OK-IF-ALREADY-EXISTS is supplied and non-nil. |
| 267 | A number as third arg means request confirmation if NEWNAME already exists. | 267 | A number as third arg means request confirmation if NEWNAME already exists. |
| 268 | This is what happens in interactive use with M-x. | 268 | This is what happens in interactive use with M-x. |
| 269 | Fourth arg KEEP-TIME non-nil means give the new file the same | 269 | Fourth arg KEEP-TIME non-nil means give the new file the same |
| 270 | last-modified time as the old one. (This works on only some systems.) | 270 | last-modified time as the old one. (This works on only some systems.) |
| 271 | Fifth arg PRESERVE-UID-GID is ignored. | 271 | Args PRESERVE-UID-GID and PRESERVE-PERMISSIONS are ignored. |
| 272 | A prefix arg makes KEEP-TIME non-nil." | 272 | A prefix arg makes KEEP-TIME non-nil." |
| 273 | (if (and (file-exists-p newname) | 273 | (if (and (file-exists-p newname) |
| 274 | (not ok-if-already-exists)) | 274 | (not ok-if-already-exists)) |
| @@ -351,7 +351,7 @@ if it had been inserted from a file named URL." | |||
| 351 | (unless buffer (signal 'file-error (list url "No Data"))) | 351 | (unless buffer (signal 'file-error (list url "No Data"))) |
| 352 | (with-current-buffer buffer | 352 | (with-current-buffer buffer |
| 353 | ;; XXX: This is HTTP/S specific and should be moved to url-http | 353 | ;; XXX: This is HTTP/S specific and should be moved to url-http |
| 354 | ;; instead. See https://debbugs.gnu.org/17549. | 354 | ;; instead. See bug#17549. |
| 355 | (when (bound-and-true-p url-http-response-status) | 355 | (when (bound-and-true-p url-http-response-status) |
| 356 | ;; Don't signal an error if VISIT is non-nil, because | 356 | ;; Don't signal an error if VISIT is non-nil, because |
| 357 | ;; 'insert-file-contents' doesn't. This is required to | 357 | ;; 'insert-file-contents' doesn't. This is required to |
| @@ -364,7 +364,7 @@ if it had been inserted from a file named URL." | |||
| 364 | (< url-http-response-status 300))) | 364 | (< url-http-response-status 300))) |
| 365 | (let ((desc (nth 2 (assq url-http-response-status url-http-codes)))) | 365 | (let ((desc (nth 2 (assq url-http-response-status url-http-codes)))) |
| 366 | (kill-buffer buffer) | 366 | (kill-buffer buffer) |
| 367 | ;; Signal file-error per https://debbugs.gnu.org/16733. | 367 | ;; Signal file-error per bug#16733. |
| 368 | (signal 'file-error (list url desc)))))) | 368 | (signal 'file-error (list url desc)))))) |
| 369 | (url-insert-buffer-contents buffer url visit beg end replace))) | 369 | (url-insert-buffer-contents buffer url visit beg end replace))) |
| 370 | 370 | ||