diff options
| author | Glenn Morris | 2012-12-30 10:09:01 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-12-30 10:09:01 -0800 |
| commit | d5e5e7b41166815a843148f2081d19bc14b628b2 (patch) | |
| tree | 6afd575b3a741ce26e5ec1e2665d45dfab8cbb52 /src | |
| parent | 4f752957f174b5ab95ef6b9428669b1b1ecf0bab (diff) | |
| parent | 5c560880659048888420389c02e20d6867ec81df (diff) | |
| download | emacs-d5e5e7b41166815a843148f2081d19bc14b628b2.tar.gz emacs-d5e5e7b41166815a843148f2081d19bc14b628b2.zip | |
Merge from emacs-24; up to 2012-12-05T00:13:56Z!yamaoka@jpl.org
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 13 | ||||
| -rw-r--r-- | src/Makefile.in | 10 | ||||
| -rw-r--r-- | src/dispextern.h | 13 | ||||
| -rw-r--r-- | src/xdisp.c | 7 |
4 files changed, 33 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e95df2b8953..983ff107912 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2012-12-30 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * src/Makefile.in (TEMACS_LDFLAGS2): Remove. | ||
| 4 | (LIBS_GNUSTEP): Define. | ||
| 5 | (LIBES): Add $(LIBS_GNUSTEP). | ||
| 6 | (temacs$(EXEEXT)): Use $(LDFLAGS) instead of $(TEMACS_LDFLAGS2). | ||
| 7 | |||
| 8 | 2012-12-30 Eli Zaretskii <eliz@gnu.org> | ||
| 9 | |||
| 10 | * xdisp.c (set_cursor_from_row): Don't confuse a truncation or | ||
| 11 | continuation glyph on a TTY with an indication of an empty line. | ||
| 12 | (Bug#13277) | ||
| 13 | |||
| 1 | 2012-12-29 Eli Zaretskii <eliz@gnu.org> | 14 | 2012-12-29 Eli Zaretskii <eliz@gnu.org> |
| 2 | 15 | ||
| 3 | * fileio.c (Fset_file_selinux_context, Fset_file_acl): Return t if | 16 | * fileio.c (Fset_file_selinux_context, Fset_file_acl): Return t if |
diff --git a/src/Makefile.in b/src/Makefile.in index 0e91eaecb17..045c6df1dae 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -111,9 +111,6 @@ LD_SWITCH_SYSTEM_TEMACS=@LD_SWITCH_SYSTEM_TEMACS@ | |||
| 111 | ## Flags to pass to ld only for temacs. | 111 | ## Flags to pass to ld only for temacs. |
| 112 | TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_TEMACS) | 112 | TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_TEMACS) |
| 113 | 113 | ||
| 114 | ## $LDFLAGS or empty if NS_IMPL_GNUSTEP (for some reason). | ||
| 115 | TEMACS_LDFLAGS2 = @TEMACS_LDFLAGS2@ | ||
| 116 | |||
| 117 | ## If available, the full path to the paxctl program. | 114 | ## If available, the full path to the paxctl program. |
| 118 | ## On grsecurity/PaX systems, unexec will fail due to a gap between | 115 | ## On grsecurity/PaX systems, unexec will fail due to a gap between |
| 119 | ## the bss section and the heap. This can be prevented by disabling | 116 | ## the bss section and the heap. This can be prevented by disabling |
| @@ -230,6 +227,9 @@ LIBX_OTHER=@LIBX_OTHER@ | |||
| 230 | ## configure, which should set it to nil in non-X builds. | 227 | ## configure, which should set it to nil in non-X builds. |
| 231 | LIBX_BASE=$(LIBXMENU) $(LD_SWITCH_X_SITE) | 228 | LIBX_BASE=$(LIBXMENU) $(LD_SWITCH_X_SITE) |
| 232 | 229 | ||
| 230 | ## Only used for GNUstep | ||
| 231 | LIBS_GNUSTEP=@LIBS_GNUSTEP@ | ||
| 232 | |||
| 233 | LIBSOUND= @LIBSOUND@ | 233 | LIBSOUND= @LIBSOUND@ |
| 234 | CFLAGS_SOUND= @CFLAGS_SOUND@ | 234 | CFLAGS_SOUND= @CFLAGS_SOUND@ |
| 235 | 235 | ||
| @@ -400,7 +400,7 @@ otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(GMALLOC_OBJ) $(RALLOC_OBJ) \ | |||
| 400 | ## Note that SunOS needs -lm to come before -lc; otherwise, you get | 400 | ## Note that SunOS needs -lm to come before -lc; otherwise, you get |
| 401 | ## duplicated symbols. If the standard libraries were compiled | 401 | ## duplicated symbols. If the standard libraries were compiled |
| 402 | ## with GCC, we might need LIB_GCC again after them. | 402 | ## with GCC, we might need LIB_GCC again after them. |
| 403 | LIBES = $(LIBS) $(W32_LIBS) $(LIBX_BASE) $(LIBIMAGE) \ | 403 | LIBES = $(LIBS) $(W32_LIBS) $(LIBS_GNUSTEP) $(LIBX_BASE) $(LIBIMAGE) \ |
| 404 | $(LIBX_OTHER) $(LIBSOUND) \ | 404 | $(LIBX_OTHER) $(LIBSOUND) \ |
| 405 | $(RSVG_LIBS) $(IMAGEMAGICK_LIBS) $(LIB_CLOCK_GETTIME) \ | 405 | $(RSVG_LIBS) $(IMAGEMAGICK_LIBS) $(LIB_CLOCK_GETTIME) \ |
| 406 | $(LIB_EACCESS) $(LIB_TIMER_TIME) $(DBUS_LIBS) \ | 406 | $(LIB_EACCESS) $(LIB_TIMER_TIME) $(DBUS_LIBS) \ |
| @@ -475,7 +475,7 @@ $(lib)/libgnu.a: $(config_h) | |||
| 475 | 475 | ||
| 476 | temacs$(EXEEXT): $(START_FILES) stamp-oldxmenu $(obj) $(otherobj) \ | 476 | temacs$(EXEEXT): $(START_FILES) stamp-oldxmenu $(obj) $(otherobj) \ |
| 477 | $(lib)/libgnu.a $(W32_RES) | 477 | $(lib)/libgnu.a $(W32_RES) |
| 478 | $(CC) $(LD_FIRSTFLAG) $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(TEMACS_LDFLAGS2) \ | 478 | $(CC) $(LD_FIRSTFLAG) $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \ |
| 479 | -o temacs $(START_FILES) $(obj) $(otherobj) $(lib)/libgnu.a $(LIBES) \ | 479 | -o temacs $(START_FILES) $(obj) $(otherobj) $(lib)/libgnu.a $(LIBES) \ |
| 480 | $(W32_RES_LINK) | 480 | $(W32_RES_LINK) |
| 481 | test "$(CANNOT_DUMP)" = "yes" || \ | 481 | test "$(CANNOT_DUMP)" = "yes" || \ |
diff --git a/src/dispextern.h b/src/dispextern.h index aa40f019fbe..414992089e2 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -317,13 +317,18 @@ struct glyph | |||
| 317 | Lisp string, this is a position in that string. If it is a | 317 | Lisp string, this is a position in that string. If it is a |
| 318 | buffer, this is a position in that buffer. A value of -1 | 318 | buffer, this is a position in that buffer. A value of -1 |
| 319 | together with a null object means glyph is a truncation glyph at | 319 | together with a null object means glyph is a truncation glyph at |
| 320 | the start of a row. */ | 320 | the start of a row. Right truncation and continuation glyphs at |
| 321 | the right edge of a row have their position set to the next | ||
| 322 | buffer position that is not shown on this row. Glyphs inserted | ||
| 323 | by redisplay, such as the empty space after the end of a line on | ||
| 324 | TTYs, or the overlay-arrow on a TTY, have this set to -1. */ | ||
| 321 | ptrdiff_t charpos; | 325 | ptrdiff_t charpos; |
| 322 | 326 | ||
| 323 | /* Lisp object source of this glyph. Currently either a buffer or | 327 | /* Lisp object source of this glyph. Currently either a buffer or a |
| 324 | a string, if the glyph was produced from characters which came from | 328 | string, if the glyph was produced from characters which came from |
| 325 | a buffer or a string; or 0 if the glyph was inserted by redisplay | 329 | a buffer or a string; or 0 if the glyph was inserted by redisplay |
| 326 | for its own purposes such as padding. */ | 330 | for its own purposes, such as padding or truncation/continuation |
| 331 | glyphs, or the overlay-arrow glyphs on TTYs. */ | ||
| 327 | Lisp_Object object; | 332 | Lisp_Object object; |
| 328 | 333 | ||
| 329 | /* Width in pixels. */ | 334 | /* Width in pixels. */ |
diff --git a/src/xdisp.c b/src/xdisp.c index 1eb5146b1ca..d1cd589364b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -14189,7 +14189,12 @@ set_cursor_from_row (struct window *w, struct glyph_row *row, | |||
| 14189 | CHARPOS is zero or negative. */ | 14189 | CHARPOS is zero or negative. */ |
| 14190 | int empty_line_p = | 14190 | int empty_line_p = |
| 14191 | (row->reversed_p ? glyph > glyphs_end : glyph < glyphs_end) | 14191 | (row->reversed_p ? glyph > glyphs_end : glyph < glyphs_end) |
| 14192 | && INTEGERP (glyph->object) && glyph->charpos > 0; | 14192 | && INTEGERP (glyph->object) && glyph->charpos > 0 |
| 14193 | /* On a TTY, continued and truncated rows also have a glyph at | ||
| 14194 | their end whose OBJECT is zero and whose CHARPOS is | ||
| 14195 | positive (the continuation and truncation glyphs), but such | ||
| 14196 | rows are obviously not "empty". */ | ||
| 14197 | && !(row->continued_p || row->truncated_on_right_p); | ||
| 14193 | 14198 | ||
| 14194 | if (row->ends_in_ellipsis_p && pos_after == last_pos) | 14199 | if (row->ends_in_ellipsis_p && pos_after == last_pos) |
| 14195 | { | 14200 | { |