diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/emacs-lisp/package.el | 4 | ||||
| -rw-r--r-- | lisp/term.el | 9 |
2 files changed, 7 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 9a350aadaca..53fa15d4199 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -547,8 +547,8 @@ name (a symbol) and DESC is a `package--bi-desc' structure.") | |||
| 547 | (defvar package-alist nil | 547 | (defvar package-alist nil |
| 548 | "Alist of all packages available for activation. | 548 | "Alist of all packages available for activation. |
| 549 | Each element has the form (PKG . DESCS), where PKG is a package | 549 | Each element has the form (PKG . DESCS), where PKG is a package |
| 550 | name (a symbol) and DESCS is a non-empty list of `package-desc' structure, | 550 | name (a symbol) and DESCS is a non-empty list of `package-desc' |
| 551 | sorted by decreasing versions. | 551 | structures, sorted by decreasing versions. |
| 552 | 552 | ||
| 553 | This variable is set automatically by `package-load-descriptor', | 553 | This variable is set automatically by `package-load-descriptor', |
| 554 | called via `package-initialize'. To change which packages are | 554 | called via `package-initialize'. To change which packages are |
diff --git a/lisp/term.el b/lisp/term.el index dec8f5a3178..f3411044b25 100644 --- a/lisp/term.el +++ b/lisp/term.el | |||
| @@ -2916,11 +2916,12 @@ See `term-prompt-regexp'." | |||
| 2916 | (when (= funny str-length) | 2916 | (when (= funny str-length) |
| 2917 | (let ((partial 0) | 2917 | (let ((partial 0) |
| 2918 | (count (length decoded-substring))) | 2918 | (count (length decoded-substring))) |
| 2919 | (while (eq (char-charset (aref decoded-substring | 2919 | (while (and (< partial count) |
| 2920 | (- count 1 partial))) | 2920 | (eq (char-charset (aref decoded-substring |
| 2921 | 'eight-bit) | 2921 | (- count 1 partial))) |
| 2922 | 'eight-bit)) | ||
| 2922 | (cl-incf partial)) | 2923 | (cl-incf partial)) |
| 2923 | (when (> partial 0) | 2924 | (when (> count partial 0) |
| 2924 | (setq term-terminal-undecoded-bytes | 2925 | (setq term-terminal-undecoded-bytes |
| 2925 | (substring decoded-substring (- partial))) | 2926 | (substring decoded-substring (- partial))) |
| 2926 | (setq decoded-substring | 2927 | (setq decoded-substring |