projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5d301d
)
(Fchar_width): Check if the current buffer has display
author
Kenichi Handa
<handa@m17n.org>
Wed, 2 Jul 1997 12:53:57 +0000
(12:53 +0000)
committer
Kenichi Handa
<handa@m17n.org>
Wed, 2 Jul 1997 12:53:57 +0000
(12:53 +0000)
table.
src/charset.c
patch
|
blob
|
history
diff --git
a/src/charset.c
b/src/charset.c
index 9ba1143baf97b851515240dfd623d320bac67dba..2e30fcc67a68cb3b3c6f5c273c3e35699a73f263 100644
(file)
--- 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);