* Understanding kill-ring-save
@ 2015-08-21 17:09 Kaushal
2015-08-21 17:20 ` Drew Adams
0 siblings, 1 reply; 2+ messages in thread
From: Kaushal @ 2015-08-21 17:09 UTC (permalink / raw)
To: Emacs developers
[-- Attachment #1: Type: text/plain, Size: 792 bytes --]
Hi all,
I was trying to understand the basic function `kill-ring-save` and came up
with this question on emacs.SE: http://emacs.stackexchange.com/q/14937/115
I will reiterate the question(s) that arose over here:
- kill-ring-save has an optional argument REGION
- That arg is set internally as (prefix-numeric-value current-prefix-arg)
- So whether or not I use C-u, REGION will be a non-nil value, either 1 (if
I simply do M-w) or 4 (if I do C-u M-w).
Questions:
- Under what circumstances will the REGION value stay nil?
- When can `prefix-numeric-value` function return nil? Or can it?
If the answers to the above 2 questions are never, never and no, why do we
have the REGION argument? Or can that be set only in elisp? Example:
(kill-ring-save (region-beginning) (region-end) nil)
[-- Attachment #2: Type: text/html, Size: 1047 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-21 17:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-21 17:09 Understanding kill-ring-save Kaushal
2015-08-21 17:20 ` Drew Adams
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).