aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-10-13 00:03:41 -0700
committerPaul Eggert2011-10-13 00:03:41 -0700
commit7ebd31ee0740d85527a498100d1f14dad5e0350f (patch)
treee2ca3fcb527b8a6cf62846ad764c9f1c22d27855 /src
parentd83cf4ccb94a5d4ea15980d76f7b16ee19909200 (diff)
parent2be4956d356f48ae65127679994a6ef6fa208914 (diff)
downloademacs-7ebd31ee0740d85527a498100d1f14dad5e0350f.tar.gz
emacs-7ebd31ee0740d85527a498100d1f14dad5e0350f.zip
Merge from trunk.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog12
-rw-r--r--src/doc.c8
-rw-r--r--src/xdisp.c9
3 files changed, 23 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9bcbc92f5a4..e22eab5f072 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,4 +1,4 @@
12011-10-12 Paul Eggert <eggert@cs.ucla.edu> 12011-10-13 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Fix integer width and related bugs. 3 Fix integer width and related bugs.
4 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): 4 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp):
@@ -789,6 +789,16 @@
789 789
7902011-10-12 Eli Zaretskii <eliz@gnu.org> 7902011-10-12 Eli Zaretskii <eliz@gnu.org>
791 791
792 * xdisp.c (find_row_edges): Handle the case where ROW comes from a
793 display string and the previous row comes from the same string and
794 is empty. (Bug#9739) (Bug#9738)
795
7962011-10-12 Stefan Monnier <monnier@iro.umontreal.ca>
797
798 * doc.c (get_doc_string): Encode file name (bug#9735).
799
8002011-10-12 Eli Zaretskii <eliz@gnu.org>
801
792 * bidi.c (bidi_level_of_next_char): 802 * bidi.c (bidi_level_of_next_char):
793 * xdisp.c (get_visually_first_element): Remove old incorrect 803 * xdisp.c (get_visually_first_element): Remove old incorrect
794 comments regarding the Unicode Line Separator character. 804 comments regarding the Unicode Line Separator character.
diff --git a/src/doc.c b/src/doc.c
index 9fbeb0b5ed5..b5a57d7d6f2 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -118,14 +118,16 @@ get_doc_string (Lisp_Object filepos, int unibyte, int definition)
118 If it is relative, combine it with Vdoc_directory. */ 118 If it is relative, combine it with Vdoc_directory. */
119 119
120 tem = Ffile_name_absolute_p (file); 120 tem = Ffile_name_absolute_p (file);
121 file = ENCODE_FILE (file);
121 if (NILP (tem)) 122 if (NILP (tem))
122 { 123 {
123 minsize = SCHARS (Vdoc_directory); 124 Lisp_Object docdir = ENCODE_FILE (Vdoc_directory);
125 minsize = SCHARS (docdir);
124 /* sizeof ("../etc/") == 8 */ 126 /* sizeof ("../etc/") == 8 */
125 if (minsize < 8) 127 if (minsize < 8)
126 minsize = 8; 128 minsize = 8;
127 SAFE_ALLOCA (name, char *, minsize + SCHARS (file) + 8); 129 SAFE_ALLOCA (name, char *, minsize + SCHARS (file) + 8);
128 strcpy (name, SSDATA (Vdoc_directory)); 130 strcpy (name, SSDATA (docdir));
129 strcat (name, SSDATA (file)); 131 strcat (name, SSDATA (file));
130 } 132 }
131 else 133 else
@@ -140,7 +142,7 @@ get_doc_string (Lisp_Object filepos, int unibyte, int definition)
140 if (!NILP (Vpurify_flag)) 142 if (!NILP (Vpurify_flag))
141 { 143 {
142 /* Preparing to dump; DOC file is probably not installed. 144 /* Preparing to dump; DOC file is probably not installed.
143 So check in ../etc. */ 145 So check in ../etc. */
144 strcpy (name, "../etc/"); 146 strcpy (name, "../etc/");
145 strcat (name, SSDATA (file)); 147 strcat (name, SSDATA (file));
146 148
diff --git a/src/xdisp.c b/src/xdisp.c
index 0be1c68780d..e9e8f8f4206 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -18653,7 +18653,12 @@ find_row_edges (struct it *it, struct glyph_row *row,
18653 seen_this_string = 1; 18653 seen_this_string = 1;
18654 } 18654 }
18655 else 18655 else
18656 abort (); 18656 /* If all the glyphs of the previous row were inserted
18657 by redisplay, it means the previous row was
18658 produced from a single newline, which is only
18659 possible if that newline came from the same string
18660 as the one which produced this ROW. */
18661 seen_this_string = 1;
18657 } 18662 }
18658 else 18663 else
18659 { 18664 {
@@ -18669,7 +18674,7 @@ find_row_edges (struct it *it, struct glyph_row *row,
18669 seen_this_string = 1; 18674 seen_this_string = 1;
18670 } 18675 }
18671 else 18676 else
18672 abort (); 18677 seen_this_string = 1;
18673 } 18678 }
18674 } 18679 }
18675 /* Take note of each display string that covers a newline only 18680 /* Take note of each display string that covers a newline only