From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: yzhh Newsgroups: gmane.emacs.devel Subject: pp-to-string, defun and "()" Date: Sun, 04 Nov 2007 17:22:09 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1194168174 21349 80.91.229.12 (4 Nov 2007 09:22:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Nov 2007 09:22:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 04 10:22:57 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iobgr-0004MM-D2 for ged-emacs-devel@m.gmane.org; Sun, 04 Nov 2007 10:22:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iobgg-0001aO-RZ for ged-emacs-devel@m.gmane.org; Sun, 04 Nov 2007 04:22:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iobgd-0001Ug-CR for emacs-devel@gnu.org; Sun, 04 Nov 2007 04:22:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iobgc-0001Rd-GI for emacs-devel@gnu.org; Sun, 04 Nov 2007 04:22:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iobgc-0001RD-B2 for emacs-devel@gnu.org; Sun, 04 Nov 2007 04:22:30 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Iobgb-0004vn-Ro for emacs-devel@gnu.org; Sun, 04 Nov 2007 04:22:30 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IobgU-0006jl-BH for emacs-devel@gnu.org; Sun, 04 Nov 2007 09:22:22 +0000 Original-Received: from 211.90.238.185 ([211.90.238.185]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Nov 2007 09:22:22 +0000 Original-Received: from yezonghui by 211.90.238.185 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 Nov 2007 09:22:22 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 211.90.238.185 User-Agent: KNode/0.10.5 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:82489 Archived-At: The following code is intended for produce the string of a defun, (pp-to-string `(defun recorded-commands () "Commands recorded during the last 'recording commands' cycle." (interactive) ,@(reclisp-post-process reclisp-recorded-commands))) It produces (defun recorded-commands nil "Commands recorded during the last 'recording commands' cycle." (interactive) ... The "()" is translated to "nil" which does not look good, and the doc string is put in the same line place. Any suggesting? -- regards, yzhh