summaryrefslogtreecommitdiff
path: root/src/cmds.c
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2003-07-08 21:25:35 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2003-07-08 21:25:35 +0000
commit53abaf54171e06ccd9afae37a6ad9d4dca4bfcea (patch)
tree59117d6e3f9288cb3db3fc3b0fa37f2a38696b3c /src/cmds.c
parentd775d486e940230aaed8c313a2a16c205b6ac54c (diff)
downloademacs-53abaf54171e06ccd9afae37a6ad9d4dca4bfcea.tar.gz
(Qexpand_abbrev): New sym.
(syms_of_cmds): Initialize it. (internal_self_insert): Use it to call expand-abbrev.
Diffstat (limited to 'src/cmds.c')
-rw-r--r--src/cmds.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/cmds.c b/src/cmds.c
index 61458691174..4d7228e88ad 100644
--- a/src/cmds.c
+++ b/src/cmds.c
@@ -1,5 +1,6 @@
/* Simple built-in editing commands.
- Copyright (C) 1985, 93, 94, 95, 96, 97, 1998, 2001, 02 Free Software Foundation, Inc.
+ Copyright (C) 1985, 93, 94, 95, 96, 97, 1998, 2001, 02, 03
+ Free Software Foundation, Inc.
This file is part of GNU Emacs.
@@ -368,12 +369,13 @@ Whichever character you type to run this command is inserted. */)
return 0. A value of 1 indicates this *might* not have been simple.
A value of 2 means this did things that call for an undo boundary. */
+static Lisp_Object Qexpand_abbrev;
+
int
internal_self_insert (c, noautofill)
int c;
int noautofill;
{
- extern Lisp_Object Fexpand_abbrev ();
int hairy = 0;
Lisp_Object tem;
register enum syntaxcode synt;
@@ -477,7 +479,7 @@ internal_self_insert (c, noautofill)
int modiff = MODIFF;
Lisp_Object sym;
- sym = Fexpand_abbrev ();
+ sym = call0 (Qexpand_abbrev);
/* If we expanded an abbrev which has a hook,
and the hook has a non-nil `no-self-insert' property,
@@ -565,6 +567,9 @@ syms_of_cmds ()
Qoverwrite_mode_binary = intern ("overwrite-mode-binary");
staticpro (&Qoverwrite_mode_binary);
+ Qexpand_abbrev = intern ("expand-abbrev");
+ staticpro (&Qexpand_abbrev);
+
DEFVAR_LISP ("self-insert-face", &Vself_insert_face,
doc: /* If non-nil, set the face of the next self-inserting character to this.
See also `self-insert-face-command'. */);