help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The rectangle selected region question is replaced with " symbol's f


From: Michael Heerdegen
Subject: Re: The rectangle selected region question is replaced with " symbol's function definition is void : t " error
Date: Tue, 07 May 2019 12:41:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]