diff options
| author | Paul Eggert | 2017-12-02 21:38:05 -0800 |
|---|---|---|
| committer | Paul Eggert | 2017-12-02 21:38:05 -0800 |
| commit | 9d7f0e27e0592132c1b5b9c280192333eaf288b8 (patch) | |
| tree | adb2a804b43c535b1dc2c05bf0fd60c51085c683 /src | |
| parent | 4c048aaf06863057b9dd695639f70cc937b02755 (diff) | |
| parent | 04e5b28ff1691345e023a944dc6a6a9e9573bd07 (diff) | |
| download | emacs-9d7f0e27e0592132c1b5b9c280192333eaf288b8.tar.gz emacs-9d7f0e27e0592132c1b5b9c280192333eaf288b8.zip | |
Merge from origin/emacs-26
04e5b28ff1 Fix bug in i18n/l10n optimization
8227087194 Let autoload-compute-prefix be set file-locally (Bug#29471)
98ca7d5f26 Improve edit-kbd-macro prompting in case of remapped keys ...
c02c1f6be7 Add tests on electric-indentation and Python multiline str...
946bb6d225 Disable electric indent for python strings (Bug#29305)
35f1ed10e4 ; ChangeLog.2: Fix bug reference.
ac316634e4 Fix buffer overflow in fontname conversion (Bug#29523)
bf9b972843 Fix byte compilation of files with leading directories
ac144dc835 * lisp/files.el (make-backup-file-name-1): Fix scoping error.
1b351c8a47 Revert Tramp commit from 2017-11-20
77cf972592 Improve documentation of buffer-list commands and features
66ec92af00 Fix backing up remote files in local directories on MS-Win...
7e61e74da7 * doc/emacs/mule.texi (Output Coding): Clarify sendmail co...
1e25cd79ff Revert "Fix backing up remote files in local directories o...
f52d79500b Fix a typo in ELisp manual
bf26fc3656 * lisp/composite.el (find-composition): Fix a typo in the ...
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 4 | ||||
| -rw-r--r-- | src/nsterm.m | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/editfns.c b/src/editfns.c index 34ae59c5138..e671ba0761c 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -4919,7 +4919,7 @@ styled_format (ptrdiff_t nargs, Lisp_Object *args, bool message) | |||
| 4919 | else if (discarded[bytepos] == 1) | 4919 | else if (discarded[bytepos] == 1) |
| 4920 | { | 4920 | { |
| 4921 | position++; | 4921 | position++; |
| 4922 | if (translated == info[fieldn].start) | 4922 | if (fieldn < nspec && translated == info[fieldn].start) |
| 4923 | { | 4923 | { |
| 4924 | translated += info[fieldn].end - info[fieldn].start; | 4924 | translated += info[fieldn].end - info[fieldn].start; |
| 4925 | fieldn++; | 4925 | fieldn++; |
| @@ -4939,7 +4939,7 @@ styled_format (ptrdiff_t nargs, Lisp_Object *args, bool message) | |||
| 4939 | else if (discarded[bytepos] == 1) | 4939 | else if (discarded[bytepos] == 1) |
| 4940 | { | 4940 | { |
| 4941 | position++; | 4941 | position++; |
| 4942 | if (translated == info[fieldn].start) | 4942 | if (fieldn < nspec && translated == info[fieldn].start) |
| 4943 | { | 4943 | { |
| 4944 | translated += info[fieldn].end - info[fieldn].start; | 4944 | translated += info[fieldn].end - info[fieldn].start; |
| 4945 | fieldn++; | 4945 | fieldn++; |
diff --git a/src/nsterm.m b/src/nsterm.m index 59a42eed887..50e06c94d45 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -9152,9 +9152,9 @@ ns_xlfd_to_fontname (const char *xlfd) | |||
| 9152 | const char *ret; | 9152 | const char *ret; |
| 9153 | 9153 | ||
| 9154 | if (!strncmp (xlfd, "--", 2)) | 9154 | if (!strncmp (xlfd, "--", 2)) |
| 9155 | sscanf (xlfd, "--%*[^-]-%[^-]179-", name); | 9155 | sscanf (xlfd, "--%*[^-]-%179[^-]-", name); |
| 9156 | else | 9156 | else |
| 9157 | sscanf (xlfd, "-%*[^-]-%[^-]179-", name); | 9157 | sscanf (xlfd, "-%*[^-]-%179[^-]-", name); |
| 9158 | 9158 | ||
| 9159 | /* stopgap for malformed XLFD input */ | 9159 | /* stopgap for malformed XLFD input */ |
| 9160 | if (strlen (name) == 0) | 9160 | if (strlen (name) == 0) |