summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2019-03-20 13:47:07 -0700
committerGlenn Morris <rgm@gnu.org>2019-03-20 13:47:07 -0700
commit1fc6afbdf1ce0f8b23780bd4d2630ed49f365013 (patch)
tree515068805cee7b3c5c7fff7e924c2594b2572764 /lisp
parent99b3d64e54bb896e7b35567ac7022f9d3fb16bbb (diff)
parent24b6e6edcfe034f76de475657cb3997821cfd1f0 (diff)
downloademacs-1fc6afbdf1ce0f8b23780bd4d2630ed49f365013.tar.gz
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.el9
-rw-r--r--lisp/progmodes/cc-defs.el2
-rw-r--r--lisp/shell.el2
-rw-r--r--lisp/url/url-handlers.el12
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
(member name package-unsigned-archives))
;; If we don't care about the signature, save the file and
;; we're done.
- (progn (write-region content nil local-file nil 'silent)
+ (progn (let ((coding-system-for-write 'utf-8))
+ (write-region content nil local-file nil 'silent))
(package--update-downloads-in-progress archive))
;; If we care, check it (perhaps async) and *then* write the file.
(package--check-signature
location file content async
;; This function will be called after signature checking.
(lambda (&optional good-sigs)
- (write-region content nil local-file nil 'silent)
+ (let ((coding-system-for-write 'utf-8))
+ (write-region content nil local-file nil 'silent))
;; Write out good signatures into archive-contents.signed file.
(when good-sigs
(write-region (mapconcat #'epg-signature-to-string good-sigs "\n")
@@ -3438,6 +3440,9 @@ short description."
;; Generate the Package Menu.
(let ((buf (get-buffer-create "*Packages*")))
(with-current-buffer buf
+ ;; Since some packages have their descriptions include non-ASCII
+ ;; characters...
+ (setq buffer-file-coding-system 'utf-8)
(package-menu-mode)
;; 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 @@
;;; Variables also used at compile time.
-(defconst c-version "5.33.1"
+(defconst c-version "5.33.2"
"CC Mode version number.")
(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
;; Don't use pcomplete's defaulting mechanism, rely on
;; shell-dynamic-complete-functions instead.
(set (make-local-variable 'pcomplete-default-completion-function) #'ignore)
- (setq comint-input-autoexpand shell-input-autoexpand)
+ (setq-local comint-input-autoexpand shell-input-autoexpand)
;; Not needed in shell-mode because it's inherited from comint-mode, but
;; placed here for read-shell-command.
(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 @@
(declare-function mail-content-type-get "mail-parse" (ct attribute))
;; mm-decode loads mm-bodies, which loads mm-util.
(declare-function mm-charset-to-coding-system "mm-util"
- (charset &optional lbt allow-override silent))
+ (charset &optional lbt allow-override silent))
;; Implementation status
;; ---------------------
@@ -260,15 +260,15 @@ the arguments that would have been passed to OPERATION."
;; The actual implementation
;;;###autoload
(defun url-copy-file (url newname &optional ok-if-already-exists
- _keep-time _preserve-uid-gid)
+ _keep-time _preserve-uid-gid _preserve-permissions)
"Copy URL to NEWNAME. Both args must be strings.
-Signals a `file-already-exists' error if file NEWNAME already exists,
+Signal a `file-already-exists' error if file NEWNAME already exists,
unless a third argument OK-IF-ALREADY-EXISTS is supplied and non-nil.
A number as third arg means request confirmation if NEWNAME already exists.
This is what happens in interactive use with M-x.
Fourth arg KEEP-TIME non-nil means give the new file the same
last-modified time as the old one. (This works on only some systems.)
-Fifth arg PRESERVE-UID-GID is ignored.
+Args PRESERVE-UID-GID and PRESERVE-PERMISSIONS are ignored.
A prefix arg makes KEEP-TIME non-nil."
(if (and (file-exists-p newname)
(not ok-if-already-exists))
@@ -351,7 +351,7 @@ if it had been inserted from a file named URL."
(unless buffer (signal 'file-error (list url "No Data")))
(with-current-buffer buffer
;; XXX: This is HTTP/S specific and should be moved to url-http
- ;; instead. See https://debbugs.gnu.org/17549.
+ ;; instead. See bug#17549.
(when (bound-and-true-p url-http-response-status)
;; Don't signal an error if VISIT is non-nil, because
;; 'insert-file-contents' doesn't. This is required to
@@ -364,7 +364,7 @@ if it had been inserted from a file named URL."
(< url-http-response-status 300)))
(let ((desc (nth 2 (assq url-http-response-status url-http-codes))))
(kill-buffer buffer)
- ;; Signal file-error per https://debbugs.gnu.org/16733.
+ ;; Signal file-error per bug#16733.
(signal 'file-error (list url desc))))))
(url-insert-buffer-contents buffer url visit beg end replace)))