From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mathias Dahl" Newsgroups: gmane.emacs.devel Subject: Re: recording-elisp.el - try recording commands as elisp code Date: Tue, 6 Nov 2007 17:33:30 +0100 Message-ID: <7dbe73ed0711060833p6a57778x2277035cb2966954@mail.gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1194366824 2527 80.91.229.12 (6 Nov 2007 16:33:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 Nov 2007 16:33:44 +0000 (UTC) Cc: yzhh , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 06 17:33:48 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 1IpRN6-0006qb-3V for ged-emacs-devel@m.gmane.org; Tue, 06 Nov 2007 17:33:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpRMv-0005GX-9X for ged-emacs-devel@m.gmane.org; Tue, 06 Nov 2007 11:33:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IpRMr-0005D9-QD for emacs-devel@gnu.org; Tue, 06 Nov 2007 11:33:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IpRMq-0005AA-8I for emacs-devel@gnu.org; Tue, 06 Nov 2007 11:33:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpRMq-00059x-1L for emacs-devel@gnu.org; Tue, 06 Nov 2007 11:33:32 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IpRMp-000406-Sl for emacs-devel@gnu.org; Tue, 06 Nov 2007 11:33:32 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so2521942wah for ; Tue, 06 Nov 2007 08:33:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=7QJQceyMH+xVvPmqiwkvrx/hRBqdoE34qn9CuBT/eP4=; b=J/83Rr+eDa2Ws7Hy9aXyl0RuCYS3N8XX4cZrOOwOJgpJnlUGnkET5jVnMbu5hvvN169ar/6wY96v+aK3RdJANjF78Uv+PJOBZlYshlUzpWdN4TaW6ZVGh015DqyaPAt/Ox1VdAw7+oPBxDdLaUJ0MdTxTqxZZElRy72bNne35i0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GytlO+5U/tg1iGpzzRbj5O4najg3dQET/DeITY1UtqbyT4J6zaPcnD9SnDRSj54/4H1jRGUElz/xXKCosl2GriSWUZiRjPkFSuMVjyQ7ZEjqo2WjAyuASp5UVuj/nvFDIZUL7AxcCqpqZ7+ZxrVNIU2RYa40gMxD53ArS2qOmLY= Original-Received: by 10.114.199.1 with SMTP id w1mr6617672waf.1194366810527; Tue, 06 Nov 2007 08:33:30 -0800 (PST) Original-Received: by 10.114.151.12 with HTTP; Tue, 6 Nov 2007 08:33:30 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:82666 Archived-At: > If you offer user choices, I think the only way to make that easy to use > is to generate output in one way (the default), then let the user point at > various places in the generated Lisp code and give commands that say > "generate this function call using a different method". Slightly off-topic, but this got me wondering if it would be useful with a command similar to `checkdoc', something that would scan through the code for various "mistakes", suggesting changes. For example suggesting `replace-string' to be replaced by the loop discussed earlier. Does something like this already exist? I would imagine this would be useful to beginning elispers.