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
09841f8d
Commit
09841f8d
authored
Jan 21, 1998
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(tq-filter): Use with-current-buffer.
parent
e8c86f8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
lisp/emacs-lisp/tq.el
lisp/emacs-lisp/tq.el
+4
-8
No files found.
lisp/emacs-lisp/tq.el
View file @
09841f8d
...
...
@@ -87,14 +87,10 @@ that's how we tell where the answer ends."
(
defun
tq-filter
(
tq
string
)
"Append STRING to the TQ's buffer; then process the new data."
(
let
((
old-buffer
(
current-buffer
)))
(
unwind-protect
(
progn
(
set-buffer
(
tq-buffer
tq
))
(
goto-char
(
point-max
))
(
insert
string
)
(
tq-process-buffer
tq
))
(
set-buffer
old-buffer
))))
(
with-current-buffer
(
tq-buffer
tq
)
(
goto-char
(
point-max
))
(
insert
string
)
(
tq-process-buffer
tq
)))
(
defun
tq-process-buffer
(
tq
)
"Check TQ's buffer for the regexp at the head of the queue."
...
...
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