From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Removing duplicated lines Date: Thu, 29 Nov 2012 17:57:45 +0600 Message-ID: References: <80wqx4hdm9.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1354190280 23581 80.91.229.3 (29 Nov 2012 11:58:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2012 11:58:00 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Dani Moncayo Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 29 12:58:10 2012 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 1Te2kr-0004Y1-I6 for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2012 12:58:09 +0100 Original-Received: from localhost ([::1]:42529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te2kg-00066B-4z for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Nov 2012 06:57:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te2kZ-000663-0H for help-gnu-emacs@gnu.org; Thu, 29 Nov 2012 06:57:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Te2kV-00073f-4d for help-gnu-emacs@gnu.org; Thu, 29 Nov 2012 06:57:50 -0500 Original-Received: from mail-we0-f169.google.com ([74.125.82.169]:44553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te2kU-00073P-T9 for help-gnu-emacs@gnu.org; Thu, 29 Nov 2012 06:57:47 -0500 Original-Received: by mail-we0-f169.google.com with SMTP id t49so4570699wey.0 for ; Thu, 29 Nov 2012 03:57:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=/zaX6nQhpJqzIcMpcTJw+7rvKisNYx5pW0qIwixF2Mg=; b=eNUHkYCWVr+3s/9KyZqBVmPrBCIEVORX2098k/1tQfLzJcXrzn9ra0K13JkQzeWUZ3 iTQY/6PVcSZDO4BZ8jpHZkNdhu3iSej+UGN7Qj0u42eqHIcWKxSwVQ5mfs9xJ/Ittyj/ EDOR2rtEx8vEEtZI44MAd7F2mwQ1R8OgllCV1DSabw4LKoqnzxgZ31XM9hNzRmxxBgXo ilp0JN75JD/XSMsnRAl67AMgf9xk0GedaN+V8lA9eJx3upKwrQyPop+NGbbWX5X+yhXN bPGlcADZ867MSvmDqdGP2Z5xJBHgCyfwJi06ITvG7bSD9NKHTpKcFTFGy04IojA/Z9D3 DDpQ== Original-Received: by 10.216.199.206 with SMTP id x56mr9101231wen.75.1354190266087; Thu, 29 Nov 2012 03:57:46 -0800 (PST) Original-Received: by 10.217.62.202 with HTTP; Thu, 29 Nov 2012 03:57:45 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: 0NyaScU9sqZ28oQMc0VH1uRj_0Y X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.82.169 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:87934 Archived-At: On Thu, Nov 29, 2012 at 6:25 PM, Dani Moncayo wrote: >> Shell command on a region: `M-| uniq RET' > > Thanks, but this is not exactly what I'd like, because: > * It depends on a shell command, which might not be available > (specially under MS-Windows). True. But if you have Emacs on Windows, you can (should?) also have UnxUtils or GnuWin32 or Cygwin or msys. > * It shows the compacted region in the echo area (and therefore also > in the *Messages* buffer), but I'd like the command to modify the > region in-place (and show some message in the echo area like "nn > duplicated lines removed"). To modify in-place, prefix with C-u.