From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mdj Newsgroups: gmane.emacs.help Subject: Re: Emacs Lisp Programming Questions Date: Wed, 7 Oct 2009 00:53:12 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <58e09c24-7598-4920-9318-dc21b9226023@a6g2000vbp.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1254970426 21348 80.91.229.12 (8 Oct 2009 02:53:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Oct 2009 02:53:46 +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 Oct 08 04:53:36 2009 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 1Mvj8J-0003xF-LO for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Oct 2009 04:53:35 +0200 Original-Received: from localhost ([127.0.0.1]:49332 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mvj8J-00084P-6Z for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Oct 2009 22:53:35 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!m3g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 139.130.5.94 Original-X-Trace: posting.google.com 1254901992 14523 127.0.0.1 (7 Oct 2009 07:53:12 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 7 Oct 2009 07:53:12 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m3g2000pri.googlegroups.com; posting-host=139.130.5.94; posting-account=gKwMEAoAAACgdZoRArZlfcCSOA8KWMxg User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.14) Gecko/2009091106 CentOS/3.0.14-1.el5.centos Firefox/3.0.14, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:173621 X-Mailman-Approved-At: Wed, 07 Oct 2009 22:53:12 -0400 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:68746 Archived-At: On Oct 7, 8:40=A0am, "clint.laskowski" wrote: > BUT, I do not want the answer to this problem (i.e., I don't want an > Elisp answer) ... I want hints on how to program it. I want to learn > the answer myself, if possible. My own (lazy) solution to this problem is to use the elisp function shell-command-on-region to invoke the unix command 'uniq' which implements the logic you want. Whether or not you consider this a sufficiently 'emacsy' solution depends on your personal prejudices, but it does have the advantage of being whipped up in a few seconds with a quick lambda of the aforementioned function onto a global-set- key Matt