changeset 18537:6a726658dfa9

(Fchar_width): Check if the current buffer has display table.
author Kenichi Handa <handa@m17n.org>
date Wed, 02 Jul 1997 12:53:57 +0000
parents 69c0e220b626
children d4c11d4de7f4
files src/charset.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.c	Wed Jul 02 12:53:53 1997 +0000
+++ b/src/charset.c	Wed Jul 02 12:53:57 1997 +0000
@@ -747,13 +747,14 @@
 {
   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);