diff options
| author | Glenn Morris | 2014-09-07 23:00:58 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-09-07 23:00:58 -0700 |
| commit | c04714f7c87956eb49e803d69290793f15fdaa90 (patch) | |
| tree | bf673719000a4e8d20178433870c1759d1759020 /src | |
| parent | 4612d1eab721a1010312382d1048c8b3a67b18fa (diff) | |
| parent | 6e82d877a4a59feb4390baeb2ccc57e7cd03593d (diff) | |
| download | emacs-c04714f7c87956eb49e803d69290793f15fdaa90.tar.gz emacs-c04714f7c87956eb49e803d69290793f15fdaa90.zip | |
Merge from emacs-24; up to 2014-07-08T06:24:07Z!eggert@cs.ucla.edu
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/data.c | 8 | ||||
| -rw-r--r-- | src/dispnew.c | 7 | ||||
| -rw-r--r-- | src/sysdep.c | 2 |
4 files changed, 18 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2654abd32d4..4e01e155c2e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2014-09-08 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * dispnew.c (prepare_desired_row): When MODE_LINE_P is zero, | ||
| 4 | always make sure the marginal areas of the row are in sync with | ||
| 5 | what the window wants. (Bug#18419) | ||
| 6 | |||
| 7 | * data.c (set_internal): Use assq_no_quit, not Fassq, to find an | ||
| 8 | existing binding of a variable, to avoid silently aborting | ||
| 9 | commands that use specbind. (Bug#18331) | ||
| 10 | |||
| 1 | 2014-09-07 Paul Eggert <eggert@cs.ucla.edu> | 11 | 2014-09-07 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 12 | ||
| 3 | Fix bug uncovered by changing alloca to auto buffer (Bug#18410). | 13 | Fix bug uncovered by changing alloca to auto buffer (Bug#18410). |
diff --git a/src/data.c b/src/data.c index a155fe6f84a..fd515af5003 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -1311,10 +1311,10 @@ set_internal (Lisp_Object symbol, Lisp_Object newval, Lisp_Object where, | |||
| 1311 | 1311 | ||
| 1312 | /* Find the new binding. */ | 1312 | /* Find the new binding. */ |
| 1313 | XSETSYMBOL (symbol, sym); /* May have changed via aliasing. */ | 1313 | XSETSYMBOL (symbol, sym); /* May have changed via aliasing. */ |
| 1314 | tem1 = Fassq (symbol, | 1314 | tem1 = assq_no_quit (symbol, |
| 1315 | (blv->frame_local | 1315 | (blv->frame_local |
| 1316 | ? XFRAME (where)->param_alist | 1316 | ? XFRAME (where)->param_alist |
| 1317 | : BVAR (XBUFFER (where), local_var_alist))); | 1317 | : BVAR (XBUFFER (where), local_var_alist))); |
| 1318 | set_blv_where (blv, where); | 1318 | set_blv_where (blv, where); |
| 1319 | blv->found = 1; | 1319 | blv->found = 1; |
| 1320 | 1320 | ||
diff --git a/src/dispnew.c b/src/dispnew.c index 73b6253e124..bc5164f3ba8 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -1082,8 +1082,7 @@ prepare_desired_row (struct window *w, struct glyph_row *row, bool mode_line_p) | |||
| 1082 | if (w->right_margin_cols > 0) | 1082 | if (w->right_margin_cols > 0) |
| 1083 | row->glyphs[RIGHT_MARGIN_AREA] = row->glyphs[LAST_AREA]; | 1083 | row->glyphs[RIGHT_MARGIN_AREA] = row->glyphs[LAST_AREA]; |
| 1084 | } | 1084 | } |
| 1085 | else if (row == MATRIX_MODE_LINE_ROW (w->desired_matrix) | 1085 | else |
| 1086 | || row == MATRIX_HEADER_LINE_ROW (w->desired_matrix)) | ||
| 1087 | { | 1086 | { |
| 1088 | /* The real number of glyphs reserved for the margins is | 1087 | /* The real number of glyphs reserved for the margins is |
| 1089 | recorded in the glyph matrix, and can be different from | 1088 | recorded in the glyph matrix, and can be different from |
| @@ -1093,8 +1092,8 @@ prepare_desired_row (struct window *w, struct glyph_row *row, bool mode_line_p) | |||
| 1093 | int right = w->desired_matrix->right_margin_glyphs; | 1092 | int right = w->desired_matrix->right_margin_glyphs; |
| 1094 | 1093 | ||
| 1095 | /* Make sure the marginal areas of this row are in sync with | 1094 | /* Make sure the marginal areas of this row are in sync with |
| 1096 | what the window wants, when the 1st/last row of the matrix | 1095 | what the window wants, when the row actually displays text |
| 1097 | actually displays text and not header/mode line. */ | 1096 | and not header/mode line. */ |
| 1098 | if (w->left_margin_cols > 0 | 1097 | if (w->left_margin_cols > 0 |
| 1099 | && (left != row->glyphs[TEXT_AREA] - row->glyphs[LEFT_MARGIN_AREA])) | 1098 | && (left != row->glyphs[TEXT_AREA] - row->glyphs[LEFT_MARGIN_AREA])) |
| 1100 | row->glyphs[TEXT_AREA] = row->glyphs[LEFT_MARGIN_AREA] + left; | 1099 | row->glyphs[TEXT_AREA] = row->glyphs[LEFT_MARGIN_AREA] + left; |
diff --git a/src/sysdep.c b/src/sysdep.c index 34fd8b1044b..24cc5cb0b40 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -2457,7 +2457,7 @@ emacs_full_write (int fildes, char const *buf, ptrdiff_t nbyte, | |||
| 2457 | { | 2457 | { |
| 2458 | if (errno == EINTR) | 2458 | if (errno == EINTR) |
| 2459 | { | 2459 | { |
| 2460 | /* I originally used `QUIT' but that might causes files to | 2460 | /* I originally used `QUIT' but that might cause files to |
| 2461 | be truncated if you hit C-g in the middle of it. --Stef */ | 2461 | be truncated if you hit C-g in the middle of it. --Stef */ |
| 2462 | if (process_signals && pending_signals) | 2462 | if (process_signals && pending_signals) |
| 2463 | process_pending_signals (); | 2463 | process_pending_signals (); |