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
c75d4986
Commit
c75d4986
authored
May 31, 1999
by
Karl Heuer
Browse files
(append-next-kill): Use an arg to distinguish
interactive calls from Lisp calls, rather than (interactive-p).
parent
005f7830
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lisp/simple.el
lisp/simple.el
+6
-4
No files found.
lisp/simple.el
View file @
c75d4986
...
...
@@ -1838,10 +1838,12 @@ visual feedback indicating the extent of the region being copied."
(
message
"Saved text from \"%s\""
(
substring
killed-text
0
message-len
))))))))
(
defun
append-next-kill
()
"Cause following command, if it kills, to append to previous kill."
(
interactive
)
(
if
(
interactive-p
)
(
defun
append-next-kill
(
&optional
interactive
)
"Cause following command, if it kills, to append to previous kill.
The argument is used for internal purposes; do not supply one."
(
interactive
"p"
)
;; We don't use (interactive-p), since that breaks kbd macros.
(
if
interactive
(
progn
(
setq
this-command
'kill-region
)
(
message
"If the next command is a kill, it will append"
))
...
...
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