Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
e2eeabbb
Commit
e2eeabbb
authored
Aug 28, 1994
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Finsert_char): New arg INHERIT.
Use insert_and_inherit if requested.
parent
2e252751
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
src/editfns.c
src/editfns.c
+10
-5
No files found.
src/editfns.c
View file @
e2eeabbb
...
...
@@ -856,12 +856,14 @@ Any other markers at the point of insertion also end up after the text.")
return
Qnil
;
}
DEFUN
(
"insert-char"
,
Finsert_char
,
Sinsert_char
,
2
,
2
,
0
,
DEFUN
(
"insert-char"
,
Finsert_char
,
Sinsert_char
,
2
,
3
,
0
,
"Insert COUNT (second arg) copies of CHAR (first arg).
\n
\
Point and all markers are affected as in the function `insert'.
\n
\
Both arguments are required."
)
(
chr
,
count
)
Lisp_Object
chr
,
count
;
Both arguments are required.
\n
\
The optional third arg INHERIT, if non-nil, says to inherit text properties
\n
\
from adjoining text, if those properties are sticky."
)
(
chr
,
count
,
inherit
)
Lisp_Object
chr
,
count
,
inherit
;
{
register
unsigned
char
*
string
;
register
int
strlen
;
...
...
@@ -879,7 +881,10 @@ Both arguments are required.")
string
[
i
]
=
XFASTINT
(
chr
);
while
(
n
>=
strlen
)
{
insert
(
string
,
strlen
);
if
(
!
NILP
(
inherit
))
insert_and_inherit
(
string
,
strlen
);
else
insert
(
string
,
strlen
);
n
-=
strlen
;
}
if
(
n
>
0
)
...
...
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