Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c87dbfd0
Commit
c87dbfd0
authored
Jan 21, 2000
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment change.
parent
2d5e9b54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
src/abbrev.c
src/abbrev.c
+7
-4
src/cmds.c
src/cmds.c
+1
-1
No files found.
src/abbrev.c
View file @
c87dbfd0
...
...
@@ -367,11 +367,14 @@ Returns the abbrev symbol, if expansion took place.")
{
Lisp_Object
expanded
,
prop
;
/* If expanding an abbrev which has only a hook, and the hook
has a non-nil `no-self-insert' property, let the return value
of the hook specify whether an expansion took place. If it
returns nil, no expansion has been done. */
/* If the abbrev has a hook function, run it. */
expanded
=
call0
(
hook
);
/* In addition, if the hook function is a symbol with a a
non-nil `no-self-insert' property, let the value it returned
specify whether we consider that an expansion took place. If
it returns nil, no expansion has been done. */
if
(
SYMBOLP
(
hook
)
&&
NILP
(
expanded
)
&&
(
prop
=
Fget
(
hook
,
intern
(
"no-self-insert"
)),
...
...
src/cmds.c
View file @
c87dbfd0
...
...
@@ -443,7 +443,7 @@ internal_self_insert (c, noautofill)
sym
=
Fexpand_abbrev
();
/* If we expanded an abbrev which has
only
a hook,
/* If we expanded an abbrev which has a hook,
and the hook has a non-nil `no-self-insert' property,
return right away--don't really self-insert. */
if
(
!
NILP
(
sym
)
&&
!
NILP
(
XSYMBOL
(
sym
)
->
function
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment