summaryrefslogtreecommitdiff
path: root/src/cmds.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1998-10-19 00:40:10 +0000
committerKenichi Handa <handa@m17n.org>1998-10-19 00:40:10 +0000
commit221e209072ff72468dff8a01cfeb0366bdda2e45 (patch)
treebf5a7fa83b8fbad9c7d15053bce70652383d14df /src/cmds.c
parentc2a1cf81feaf1dc68d096e3755198ed9eba8f826 (diff)
downloademacs-221e209072ff72468dff8a01cfeb0366bdda2e45.tar.gz
(internal_self_insert): Check Vauto_fill_chars.
Diffstat (limited to 'src/cmds.c')
-rw-r--r--src/cmds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmds.c b/src/cmds.c
index e09261fc789..c6a94b1f3b8 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -468,7 +468,9 @@ internal_self_insert (c, noautofill)
else
insert_and_inherit (str, len);
- if ((c == ' ' || c == '\n')
+ if ((CHAR_TABLE_P (Vauto_fill_chars)
+ ? !NILP (CHAR_TABLE_REF (Vauto_fill_chars, c))
+ : (c == ' ' || c == '\n'))
&& !noautofill
&& !NILP (current_buffer->auto_fill_function))
{