diff options
author | Kenichi Handa <handa@m17n.org> | 1997-07-02 12:53:57 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1997-07-02 12:53:57 +0000 |
commit | 51c4025fa5064e0db4344a1421fcf1739671675a (patch) | |
tree | e1f286238fa2592f2d82139f08511e8114a45df2 /src | |
parent | a5d301dfecb69988da16a8405ea642aac35230a3 (diff) | |
download | emacs-51c4025fa5064e0db4344a1421fcf1739671675a.tar.gz |
(Fchar_width): Check if the current buffer has display
table.
Diffstat (limited to 'src')
-rw-r--r-- | src/charset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/charset.c b/src/charset.c index 9ba1143baf9..2e30fcc67a6 100644 --- a/src/charset.c +++ b/src/charset.c @@ -747,13 +747,14 @@ The width is measured by how many columns it occupies on the screen.") { Lisp_Object val, disp; int c; + struct Lisp_Char_Table *dp = buffer_display_table (); CHECK_NUMBER (ch, 0); c = XINT (ch); /* Get the way the display table would display it. */ - disp = DISP_CHAR_VECTOR (buffer_display_table (current_buffer), (c)); + disp = dp ? DISP_CHAR_VECTOR (dp, c) : Qnil; if (VECTORP (disp)) XSETINT (val, XVECTOR (disp)->size); |