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
9f112a3d
Commit
9f112a3d
authored
May 24, 1993
by
Richard M. Stallman
Browse files
(kill-new): Pass t as 2nd arg to interprogram-cut-function.
parent
798aa8d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
lisp/simple.el
lisp/simple.el
+11
-8
No files found.
lisp/simple.el
View file @
9f112a3d
...
...
@@ -900,20 +900,23 @@ when given no argument at the beginning of a line."
"
Function
to
call
to
make
a
killed
region
available
to
other
programs.
Most
window
systems
provide
some
sort
of
facility
for
cutting
and
pasting
text
between
the
windows
of
different
programs.
On
startup,
t
his
variable
is
set
to
a
function
which
emacs
will
call
whenever
text
is
put
in
the
kill
ring
to
make
the
new
kill
available
to
other
pasting
text
between
the
windows
of
different
programs.
T
his
variable
holds
a
function
that
Emacs
call
s
whenever
text
is
put
in
the
kill
ring
,
to
make
the
new
kill
available
to
other
programs.
The
function
takes
one
argument,
TEXT,
which
is
a
string
containing
the
text
which
should
be
made
available.
")
The
function
takes
one
or
two
arguments.
The
first
argument,
TEXT,
is
a
string
containing
the
text
which
should
be
made
available.
The
second,
PUSH,
if
non-nil
means
this
is
a
\"new\"
kill
;
nil
means
appending
to
an
\"old\"
kill.
")
(defvar interprogram-paste-function nil
"
Function
to
call
to
get
text
cut
from
other
programs.
Most
window
systems
provide
some
sort
of
facility
for
cutting
and
pasting
text
between
the
windows
of
different
programs.
On
startup,
t
his
variable
is
set
to
a
function
which
emacs
will
call
to
obtain
pasting
text
between
the
windows
of
different
programs.
T
his
variable
holds
a
function
that
Emacs
call
s
to
obtain
text
that
other
programs
have
provided
for
pasting.
The
function
should
be
called
with
no
arguments.
If
the
function
...
...
@@ -957,7 +960,7 @@ If `interprogram-cut-function' is non-nil, apply it to STRING."
(setcdr (nthcdr (1- kill-ring-max) kill-ring) nil))
(setq kill-ring-yank-pointer kill-ring)
(if interprogram-cut-function
(funcall interprogram-cut-function string)))
(funcall interprogram-cut-function string
t
)))
(defun kill-append (string before-p)
"
Append
STRING
to
the
end
of
the
latest
kill
in
the
kill
ring.
...
...
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