* 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
* RE: Understanding kill-ring-save
2015-08-21 17:09 Understanding kill-ring-save Kaushal
@ 2015-08-21 17:20 ` Drew Adams
0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2015-08-21 17:20 UTC (permalink / raw)
To: Kaushal, Emacs developers
Coincidentally (due to the the same emacs.SE question), I filed
bug #21315 for this. This change should never have been able to
see the light of day without appropriate doc.
^ 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.