From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: richardeng Newsgroups: gmane.emacs.help Subject: How could I modify list element? Date: Tue, 09 Dec 2008 22:15:01 +0800 Message-ID: <493E7D65.3020405@foxmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1228836441 23828 80.91.229.12 (9 Dec 2008 15:27:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2008 15:27:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 09 16:28:25 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LA4V6-0007eH-Kf for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Dec 2008 16:27:52 +0100 Original-Received: from localhost ([127.0.0.1]:43869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LA4Tv-0000XD-IW for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Dec 2008 10:26:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LA3N2-0006LV-Hd for help-gnu-emacs@gnu.org; Tue, 09 Dec 2008 09:15:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LA3N0-0006Kc-Ho for help-gnu-emacs@gnu.org; Tue, 09 Dec 2008 09:15:28 -0500 Original-Received: from [199.232.76.173] (port=41608 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LA3N0-0006KX-AD for help-gnu-emacs@gnu.org; Tue, 09 Dec 2008 09:15:26 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:49463) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LA3N0-0005Nx-JA for help-gnu-emacs@gnu.org; Tue, 09 Dec 2008 09:15:26 -0500 Original-Received: from smtpbg3.foxmail.com ([121.14.102.33]) by mx20.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LA3Ms-0000At-Eb for help-gnu-emacs@gnu.org; Tue, 09 Dec 2008 09:15:19 -0500 Original-Received: from 172.23.147.140 (foxmail.com [172.23.147.140]) by smtpbg3 (foxmail.com) with SMTP id BtRUsXYG; Tue, 09 Dec 2008 22:15:08 +0800 (envelope-from richardeng@foxmail.com) X-QQ-mid: esmtp512288321083001928 Original-Received: from [192.168.1.202] (unknown [116.224.216.28]) by smtp.foxmail.com (Postfix) with ESMTP id for ; Tue, 9 Dec 2008 22:15:08 +0800 (CST) User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Tue, 09 Dec 2008 10:26:15 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60499 Archived-At: Hi all, setcar/setcdr is not convenient. In a long list, ex. (setq a '(a b c d e f g)) I want to change 'e to 'E. I need a function: (set-list-elt list old-elt new-elt) How? translate list to vector, modify, then turn it back???