diff options
| author | Noam Postavsky | 2019-07-20 22:02:36 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2019-07-20 22:02:36 -0400 |
| commit | 6490269becdad96ca4b3b9db0d96dbb04ef2ab6a (patch) | |
| tree | 20cccad69113acfe3072dcf50a677b06c6d7b4fb /lisp | |
| parent | f02b9e9a6ff701d041ef86afe8b9a92ba8e4fd30 (diff) | |
| parent | 150bdfe43acde8423612cbff4eafbbb88878b497 (diff) | |
| download | emacs-6490269becdad96ca4b3b9db0d96dbb04ef2ab6a.tar.gz emacs-6490269becdad96ca4b3b9db0d96dbb04ef2ab6a.zip | |
Merge from emacs-26
150bdfe43a Handle completely undecoded input in term (Bug#29918)
021f32cca1 * doc/misc/forms.texi (Control File Format): Fix a doc error.
76538d09b7 Fix typo in package-alist docstring
b2fde4b5e8 * doc/lispref/text.texi (Mode-Specific Indent): Fix a typo...
7e62778548 ; Another minor change in 'bidi-display-reordering's doc s...
4455ddbe56 Improve doc string of 'bidi-display-reordering'
34ee26dd93 Add warning to bidi-display-reordering doc string
# Conflicts:
# lisp/term.el
# test/lisp/term-tests.el
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 |