aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2005-06-09 07:30:09 +0000
committerKenichi Handa2005-06-09 07:30:09 +0000
commit3ea04370915600d36cc97c6c2a11e4044664e1ea (patch)
treef2ae29c2c30cfa7f0831e2f2724eb39da0c18acd
parentd113efea8e0a56aedd60615f5dc6669c72aca77f (diff)
downloademacs-3ea04370915600d36cc97c6c2a11e4044664e1ea.tar.gz
emacs-3ea04370915600d36cc97c6c2a11e4044664e1ea.zip
(get_next_display_element): Sync with the change in
HEAD (2005-06-08).
-rw-r--r--src/xdisp.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 54e6c7fe8f6..8d146ebcb23 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -5244,8 +5244,7 @@ get_next_display_element (it)
5244 highlighting. */ 5244 highlighting. */
5245 5245
5246 if (! EQ (Vshow_nonbreak_escape, Qt) 5246 if (! EQ (Vshow_nonbreak_escape, Qt)
5247 && (it->c == 0x8a0 || it->c == 0x920 5247 && it->c == 0xA0)
5248 || it->c == 0xe20 || it->c == 0xf20))
5249 { 5248 {
5250 /* Merge the no-break-space face into the current face. */ 5249 /* Merge the no-break-space face into the current face. */
5251 face_id = merge_faces (it->f, Qno_break_space, 0, 5250 face_id = merge_faces (it->f, Qno_break_space, 0,
@@ -5284,10 +5283,25 @@ get_next_display_element (it)
5284 it->face_id); 5283 it->face_id);
5285 } 5284 }
5286 5285
5286 /* Handle soft hyphens in the mode where they only get
5287 highlighting. */
5288
5289 if (! EQ (Vshow_nonbreak_escape, Qt)
5290 && it->c == 0xAD)
5291 {
5292 g = it->c = '-';
5293 XSETINT (it->ctl_chars[0], g);
5294 ctl_len = 1;
5295 goto display_control;
5296 }
5297
5298 /* Handle non-break space and soft hyphen
5299 with the escape glyph. */
5300
5287 if (it->c == 0xA0 || it->c == 0xAD) 5301 if (it->c == 0xA0 || it->c == 0xAD)
5288 { 5302 {
5289 XSETINT (it->ctl_chars[0], escape_glyph); 5303 XSETINT (it->ctl_chars[0], escape_glyph);
5290 g = it->c; 5304 g = it->c = (it->c == 0xA0 ? ' ' : '-');
5291 XSETINT (it->ctl_chars[1], g); 5305 XSETINT (it->ctl_chars[1], g);
5292 ctl_len = 2; 5306 ctl_len = 2;
5293 goto display_control; 5307 goto display_control;