aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKenichi Handa2010-05-27 13:24:30 +0900
committerKenichi Handa2010-05-27 13:24:30 +0900
commit2b25da455e14b3712f544ebf7fb1c83d17353130 (patch)
tree09aa79ae0ab208d2404852a2ceb1aa63f7e3d5ca /lisp
parentb705058384311a5b4d059d7c71de2e8984802ca6 (diff)
downloademacs-2b25da455e14b3712f544ebf7fb1c83d17353130.tar.gz
emacs-2b25da455e14b3712f544ebf7fb1c83d17353130.zip
language/hebrew.el (hebrew-shape-gstring): Check if a glyph element of GSTRING is nil.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/language/hebrew.el3
2 files changed, 8 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fd5d16a710c..e72dfd2614b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-05-27 Kenichi Handa <handa@m17n.org>
2
3 * language/hebrew.el (hebrew-shape-gstring): Check if a glyph
4 element of GSTRING is nil.
5
12010-05-25 Chong Yidong <cyd@stupidchicken.com> 62010-05-25 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * log-edit.el (log-edit-strip-single-file-name): Default to nil. 8 * log-edit.el (log-edit-strip-single-file-name): Default to nil.
diff --git a/lisp/language/hebrew.el b/lisp/language/hebrew.el
index 5c39bb22416..f024251c60b 100644
--- a/lisp/language/hebrew.el
+++ b/lisp/language/hebrew.el
@@ -92,6 +92,9 @@ Bidirectional editing is supported.")))
92 (nchars (lgstring-char-len gstring)) 92 (nchars (lgstring-char-len gstring))
93 (nglyphs (lgstring-glyph-len gstring)) 93 (nglyphs (lgstring-glyph-len gstring))
94 (base-width (lglyph-width (lgstring-glyph gstring 0)))) 94 (base-width (lglyph-width (lgstring-glyph gstring 0))))
95 (while (and (> nglyphs 1)
96 (not (lgstring-glyph gstring (1- nglyphs))))
97 (setq nglyphs (1- nglyphs)))
95 (while (> nglyphs 1) 98 (while (> nglyphs 1)
96 (setq nglyphs (1- nglyphs)) 99 (setq nglyphs (1- nglyphs))
97 (let* ((glyph (lgstring-glyph gstring nglyphs)) 100 (let* ((glyph (lgstring-glyph gstring nglyphs))