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
Open sidebar
emacs
emacs
Commits
e73adad8
Commit
e73adad8
authored
Feb 25, 2019
by
Tassilo Horn
Browse files
; Fixup docs for replace-{buffer,region}-contents
parent
3ec62eec
Pipeline
#860
passed with stage
in 59 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
doc/lispref/text.texi
doc/lispref/text.texi
+6
-6
No files found.
doc/lispref/text.texi
View file @
e73adad8
...
...
@@ -4468,18 +4468,18 @@ If the actual costs exceed this limit, heuristics are used to provide
a faster but suboptimal solution. The default value is 1000000.
@code{replace-buffer-contents} returns t if a non-destructive
replacement could be performed. Otherwise, i.e., if
MAX-SECS was
exceeded, it returns nil.
replacement could be performed. Otherwise, i.e., if
@code{max-secs}
was
exceeded, it returns nil.
@end deffn
@def
fn Command
replace-region-contents beg end replace-fn
&
optional max-secs max-costs
@def
un
replace-region-contents beg end replace-fn
&
optional max-secs max-costs
This function replaces the region between @code{beg} and @code{end}
using the given @code{replace-fn}. The function @code{replace-fn} is
run in the current buffer narrowed to the specified region and it
should return either a string or a buffer replacing the region.
The replacement is performed using @code{replace-buffer-contents}
which also describes the @code{max-secs} and @code{max-costs}
The replacement is performed using @code{replace-buffer-contents}
(see
above)
which also describes the @code{max-secs} and @code{max-costs}
arguments and the return value.
Note: If the replacement is a string, it will be placed in a temporary
...
...
@@ -4487,7 +4487,7 @@ buffer so that @code{replace-buffer-contents} can operate on it.
Therefore, if you already have the replacement in a buffer, it makes
no sense to convert it to a string using @code{buffer-substring} or
similar.
@end def
f
n
@end def
u
n
@node Decompression
@section Dealing With Compressed Data
...
...
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