* The rectangle selected region question is replaced with " symbol's function definition is void : t " error
@ 2019-05-06 9:07 Budi
2019-05-07 10:41 ` Michael Heerdegen
0 siblings, 1 reply; 2+ messages in thread
From: Budi @ 2019-05-06 9:07 UTC (permalink / raw)
To: help-gnu-emacs
The rectangle selected region question is replaced with " symbol's
function definition is void : t " error problem as calling a function
the copy into clipboard function is meant to save to kill-ring with or
without a selected region, if it exist then save that region otherwise
make up a full line region and save that
but got symbol's function definition is void : t error above
(defun copy (b e)
(interactive "r")
(if (use-region-p) (call-interactively 'kill-ring-save)
(beginning-of-line)
(push-mark (line-end-position))
(activate-mark)
(call-interactively 'kill-ring-save)
(deactivate-mark)
(pop-mark)))
(global-set-key (kbd "C-c") 'copy)
invaluable thanks to anyone help me out.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: The rectangle selected region question is replaced with " symbol's function definition is void : t " error
2019-05-06 9:07 The rectangle selected region question is replaced with " symbol's function definition is void : t " error Budi
@ 2019-05-07 10:41 ` Michael Heerdegen
0 siblings, 0 replies; 2+ messages in thread
From: Michael Heerdegen @ 2019-05-07 10:41 UTC (permalink / raw)
To: Budi; +Cc: help-gnu-emacs
Budi <budikusasi@gmail.com> writes:
> The rectangle selected region question is replaced with " symbol's
> function definition is void : t " error problem as calling a function
>
> the copy into clipboard function is meant to save to kill-ring with or
> without a selected region, if it exist then save that region otherwise
> make up a full line region and save that
> but got symbol's function definition is void : t error above
> (defun copy (b e)
> (interactive "r")
> (if (use-region-p) (call-interactively 'kill-ring-save)
> (beginning-of-line)
> (push-mark (line-end-position))
> (activate-mark)
> (call-interactively 'kill-ring-save)
> (deactivate-mark)
> (pop-mark)))
> (global-set-key (kbd "C-c") 'copy)
I still don't understand when the error occurs. Can you maybe post a
step by step recipe?
Michael.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-07 10:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-06 9:07 The rectangle selected region question is replaced with " symbol's function definition is void : t " error Budi
2019-05-07 10:41 ` Michael Heerdegen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).