From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: Want to grep for text in selected coding... Date: Tue, 28 Feb 2012 23:18:25 +0200 Organization: At home. Message-ID: <87wr768xni.fsf@desktop.home.int> References: <84y5s4ctjn.fsf@bifit.com.ua> <83vcn8vxd5.fsf@gnu.org> <871upeagg1.fsf@desktop.home.int> <834nuaem7a.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1330463952 3600 80.91.229.3 (28 Feb 2012 21:19:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 28 Feb 2012 21:19:12 +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 Feb 28 22:19: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 1S2URy-0007Xr-EV for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Feb 2012 22:19:10 +0100 Original-Received: from localhost ([::1]:50355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2URx-0001ux-In for geh-help-gnu-emacs@m.gmane.org; Tue, 28 Feb 2012 16:19:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2URl-0001ta-3A for help-gnu-emacs@gnu.org; Tue, 28 Feb 2012 16:19:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2URe-0007Fo-K1 for help-gnu-emacs@gnu.org; Tue, 28 Feb 2012 16:18:56 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:35905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2URe-0007F5-9K for help-gnu-emacs@gnu.org; Tue, 28 Feb 2012 16:18:50 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S2URc-0007HI-OE for help-gnu-emacs@gnu.org; Tue, 28 Feb 2012 22:18:48 +0100 Original-Received: from 105-111-202-46.pool.ukrtel.net ([46.202.111.105]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Feb 2012 22:18:48 +0100 Original-Received: from gavenkoa by 105-111-202-46.pool.ukrtel.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Feb 2012 22:18:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 105-111-202-46.pool.ukrtel.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:f443lTpXl+LO3p1G50iqKQlUhZU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:83892 Archived-At: On 2012-02-28, Eli Zaretskii wrote: >> From: Oleksandr Gavenko >> Date: Tue, 28 Feb 2012 21:47:10 +0200 >> >> > I suggest to use "M-x occur" and its derivatives instead. >> >> Personally I found bad about Emacs that it depends on tools which come from >> '70 (like find, grep, ls) and work perfectly only with LANG=C. > > ??? But I just suggested (above) that you use "M-x occur", which does > NOT depend on any external tool, and DOES handle every possible > encoding and locale on Earth. > ==>Show all lines in the **current buffer** containing a match for REGEXP. I highlight limitation of occur. Sorry for bad explaining of problem in previous posts... "M-s o" is my most frequent key sequence after "C-s" and "C-x o" )) But when I need search in a set of files... occur fail. >> Emacs must take example from Far manager which have option to perform search >> in all codings suitable for Russian lang (cp866, cp1251, koi8-r, UTF-8). > > ??? But "occur" can already do that. > Yes for single file and NO for multiply files... What I forget mention that Far file manager make search in all possible encodings in single user request! For English people this feature may look quite silly but I am sad when see how my colleges just perform work in Far while I read about coding system, read Emacs manual and look for answer over Internet for basic feature like searching... Currently I think that I need enhanced version of "find/grep" and bind in to Emacs (which perform search in >>file hierarchy<< in selected set of >>coding system<< at once). Anyone have suggestions? I would like to see recursive search in selected coding system as Emacs core feature without any external dependency... Has it sense to request this feature at bug-gnu-emacs@gnu.org? -- Best regards!