From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: drain Newsgroups: gmane.emacs.help Subject: Emacs Lisp Question Date: Thu, 27 Jun 2013 06:11:30 -0700 (PDT) Message-ID: <1372338690045-290340.post@n5.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1372339145 7946 80.91.229.3 (27 Jun 2013 13:19:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Jun 2013 13:19:05 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 27 15:19:07 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UsC6M-0005hp-Qh for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Jun 2013 15:19:06 +0200 Original-Received: from localhost ([::1]:53940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsC6M-00061K-Dc for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Jun 2013 09:19:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsC68-0005ur-05 for Help-gnu-emacs@gnu.org; Thu, 27 Jun 2013 09:18:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsC66-0006AT-PX for Help-gnu-emacs@gnu.org; Thu, 27 Jun 2013 09:18:51 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:49401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsC66-00069w-KZ for Help-gnu-emacs@gnu.org; Thu, 27 Jun 2013 09:18:50 -0400 Original-Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UsBz0-0000mj-ET for Help-gnu-emacs@gnu.org; Thu, 27 Jun 2013 06:11:30 -0700 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 216.139.236.26 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91768 Archived-At: (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.