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

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

Emacs Lisp Question


From: drain
Subject: Emacs Lisp Question
Date: Thu, 27 Jun 2013 06:11:30 -0700 (PDT)

(defun copy-region-as-kill (beg end)
  "Save the region as if killed, but don't kill it.
     In Transient Mark mode, deactivate the mark.
     If `interprogram-cut-function' is non-nil, also save the text for a
window
     system cut and paste."
  (interactive "r")
  (if (eq last-command 'kill-region)
      (kill-append (filter-buffer-substring beg end) (< end beg))
    (kill-new (filter-buffer-substring beg end)))
  (if transient-mark-mode
      (setq deactivate-mark t))
  nil)

What is the "nil" doing at the end here? The syntax seems to be:

(defun copy-region-as-kill (beg end) [...] nil)



--
View this message in context: 
http://emacs.1067599.n5.nabble.com/Emacs-Lisp-Question-tp290340.html
Sent from the Emacs - Help mailing list archive at Nabble.com.



reply via email to

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